index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="status_bar"></view>
  5. <view class="index-bg">
  6. <image src="../../static/icon/index-bg.png" mode=""></image>
  7. </view>
  8. <view class="top-search flex">
  9. <view class="search-box flex" @click="clickSearch()">
  10. <image class="search" src="../../static/icon/search-h.png" mode=""></image>
  11. <view class="search-font">输入关键词搜索</view>
  12. </view>
  13. </view>
  14. <!-- 顶部logo and 搜索 end-->
  15. <view class="jg" style="background-color: #fff;"></view>
  16. <!-- 轮播图 start -->
  17. <swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  18. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  19. @click="bannerNavToUrl(item)">
  20. <image :src="item.pic" />
  21. </swiper-item>
  22. </swiper>
  23. <!-- 分类 start -->
  24. <view class="cate-section flex">
  25. <view class="cate-item flex" @click="navto('/pages/category/category')">
  26. <view class="img-wrapper flex">
  27. <image src="../../static/icon/in1.png" mode=""></image>
  28. </view>
  29. <view class="item-title">产品中心</view>
  30. </view>
  31. <view class="cate-item flex" @click="navto('/pages/index/artDetail?id=2')">
  32. <view class="img-wrapper flex">
  33. <image src="../../static/icon/in2.png" mode=""></image>
  34. </view>
  35. <view class="item-title">公司简介</view>
  36. </view>
  37. <view class="cate-item flex" @click="openKf()">
  38. <view class="img-wrapper flex">
  39. <image src="../../static/icon/in3.png" mode=""></image>
  40. </view>
  41. <view class="item-title">联系客服</view>
  42. </view>
  43. <view class="cate-item flex" @click="navto('/pages/user/shareQrCode')">
  44. <view class="img-wrapper flex">
  45. <image src="../../static/icon/in4.png" mode=""></image>
  46. </view>
  47. <view class="item-title">邀请好友</view>
  48. </view>
  49. </view>
  50. <view class="tongz">
  51. <view class="tongz-left flex">
  52. <view class="left">
  53. <image class="image-left" src="../../static/img/tong.png" mode=""></image>
  54. <view class="tongz-title">系统公告</view>
  55. </view>
  56. <u-notice-bar style="width: 100%;" mode="vertical" type="none" :volume-icon="false" :more-icon="true"
  57. :list="text1" @click="goDetails" @getMore="navTo('/pages/index/artlist?type=1')"></u-notice-bar>
  58. </view>
  59. </view>
  60. <!-- 分类 ed -->
  61. <view class="jg"></view>
  62. <!-- 会员商品 start -->
  63. <view class="vip-box">
  64. <view class="vip-title flex">
  65. <view class="vip-left">
  66. <image class="vip-left-icon" src="../../static/img/fire.png" mode=""></image>
  67. <view class="vip-left-font">
  68. 礼包专区
  69. </view>
  70. </view>
  71. <view class="vip-right" @click="navTo('/pages/product/classify?type=5')">
  72. <view class="vip-right-font">
  73. 更多
  74. </view>
  75. <image class="vip-right-icon" src="../../static/img/back.png" mode=""></image>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="product-box" v-if="goodList.length > 0">
  80. <view class="hotgoods">
  81. <view class="hotgoods-item" v-for="item in goodList" :key="item.id"
  82. @click="navto('/pages/product/product?id=' + item.id)" style="height: 520rpx;">
  83. <view class="image-wrapper">
  84. <image class="image" :src="item.image" mode="scaleToFill"></image>
  85. <view class="give-jf">
  86. 赠{{item.give_award_range *1}}绿色积分
  87. </view>
  88. </view>
  89. <view class="flex"
  90. style="flex-direction: column;justify-content: space-between;align-items: flex-start;height: 170rpx;">
  91. <view class="title clamp2">{{item.store_name}}</view>
  92. <view class="hot-price">
  93. <view class="price">
  94. <text class="font-size-sm"></text>
  95. <text>¥{{ item.price * 1 }}</text>
  96. <!-- <text class="give-jf" v-if="item.give_integral*1 > 0">赠{{item.give_integral*1}}积分</text> -->
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 会员商品 end -->
  104. <view class="jg" v-if="firstList.length > 0"></view>
  105. <!-- 商品列表 start -->
  106. <view class="product-box" v-if="firstList.length > 0">
  107. <view class="product-tit flex">
  108. <view class="hx"></view>
  109. <view class="tit">爆款推荐</view>
  110. <view class="hx"></view>
  111. </view>
  112. </view>
  113. <view class="product-box" v-if="firstList.length > 0">
  114. <view class="hotgoods">
  115. <view class="hotgoods-item" v-for="item in firstList" :key="item.id"
  116. @click="navto('/pages/product/product?id=' + item.id)" style="height: 520rpx;">
  117. <view class="image-wrapper">
  118. <image class="image" :src="item.image" mode="scaleToFill"></image>
  119. </view>
  120. <view class="flex"
  121. style="flex-direction: column;justify-content: space-between;align-items: flex-start;height: 170rpx;">
  122. <view class="title clamp2">{{item.store_name}}</view>
  123. <view class="hot-price">
  124. <view class="price">
  125. <text class="font-size-sm"></text>
  126. <text>¥{{ item.price * 1 }}</text>
  127. <!-- <text class="give-jf" v-if="item.give_integral*1 > 0">赠{{item.give_integral*1}}积分</text> -->
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 商品列表 ed-->
  135. <uni-popup ref="popupkf" type="center">
  136. <view class="popup-box">
  137. <view class="img">
  138. <image src="../../static/img/img009.png" mode=""></image>
  139. </view>
  140. <view class="mian">
  141. <view class="delivery">
  142. <view class="title">已经为您定制专属客服</view>
  143. <image src="../../static/img/img010.png" mode=""></image>
  144. </view>
  145. <view class="nocancel">客服VX:{{ text }}</view>
  146. <view class="comfirm-box">
  147. <view class="cancel" @click="cancel">取消</view>
  148. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  149. </view>
  150. </view>
  151. </view>
  152. </uni-popup>
  153. </view>
  154. </template>
  155. <script>
  156. import {
  157. loadIndexs
  158. } from '@/api/index.js';
  159. import {
  160. getUserInfo,
  161. spread,
  162. article
  163. } from '@/api/user.js';
  164. import {
  165. getProducts,
  166. groomList
  167. } from '@/api/product.js';
  168. import {
  169. saveUrl,
  170. interceptor
  171. } from '@/utils/loginUtils';
  172. import {
  173. mapState,
  174. mapMutations
  175. } from 'vuex';
  176. // #ifdef H5
  177. import {
  178. weixindata,
  179. shareLoad
  180. } from '@/utils/wxAuthorized';
  181. // #endif
  182. export default {
  183. data() {
  184. return {
  185. text1: [],
  186. article: [],
  187. text: 'tingjiu1688', //客服微信
  188. page: 1,
  189. limit: 10,
  190. loadingType: 'more',
  191. swiperHeight: 0,
  192. checkid: 0,
  193. titleNViewBackground: '',
  194. swiperCurrent: 0,
  195. swiperLength: 0,
  196. carouselList: [], //轮播列表
  197. firstList: [],
  198. goodList: [], //商品列表
  199. };
  200. },
  201. computed: {
  202. ...mapState('user', ['hasLogin', 'userInfo'])
  203. },
  204. onReachBottom() {
  205. console.log('到底');
  206. this.getGoodList();
  207. },
  208. onLoad: function(option) {
  209. // #ifdef MP
  210. if (option.scene) {
  211. // 存储小程序邀请人
  212. uni.setStorage({
  213. key: 'spread_code',
  214. data: option.scene
  215. });
  216. }
  217. // #endif
  218. // #ifdef H5
  219. uni.setStorage({
  220. key: 'spread',
  221. data: option.spread
  222. });
  223. // #endif
  224. article({}, 1).then(({
  225. data
  226. }) => {
  227. data.forEach(e => {
  228. this.text1.push(e.synopsis);
  229. });
  230. this.article = data;
  231. });
  232. },
  233. onShow: function() {
  234. this.getGoodList();
  235. this.loadData();
  236. },
  237. methods: {
  238. getGoodList() {
  239. let obj = this;
  240. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  241. return;
  242. }
  243. obj.loadingType = 'loading';
  244. groomList({
  245. page: obj.page,
  246. limit: obj.limit,
  247. }, 5).then(res => {
  248. obj.goodList = obj.goodList.concat(res.data.list);
  249. if (obj.limit == res.data.length) {
  250. obj.page++;
  251. obj.loadingType = 'more';
  252. } else {
  253. obj.loadingType = 'noMore';
  254. }
  255. });
  256. },
  257. // 打开客服
  258. openKf() {
  259. this.$refs.popupkf.open();
  260. },
  261. // 关闭客服
  262. cancel() {
  263. this.$refs.popupkf.close();
  264. },
  265. navto(url, type = 0) {
  266. if (type == 1) {
  267. if (!this.hasLogin) {
  268. // 保存地址
  269. saveUrl();
  270. // 登录拦截
  271. interceptor();
  272. } else {
  273. uni.navigateTo({
  274. url,
  275. fail() {
  276. uni.switchTab({
  277. url
  278. });
  279. }
  280. });
  281. }
  282. } else {
  283. uni.navigateTo({
  284. url,
  285. fail() {
  286. uni.switchTab({
  287. url
  288. });
  289. }
  290. });
  291. }
  292. },
  293. navTo(url) {
  294. if (url == '') {
  295. this.$api.msg('暂未开通,敬请期待');
  296. } else {
  297. this.navto(url);
  298. }
  299. },
  300. goDetails(e) {
  301. uni.navigateTo({
  302. url: '/pages/index/artDetail?id=' + this.article[e].id
  303. });
  304. },
  305. // 點擊搜索框
  306. clickSearch() {
  307. uni.navigateTo({
  308. url: '/pages/product/search'
  309. });
  310. },
  311. // 监听图片加载完成
  312. onImageError(key, index) {
  313. this[key][index].image = '/static/error/errorImage.jpg';
  314. },
  315. // 请求载入数据
  316. async loadData() {
  317. loadIndexs({})
  318. .then(({
  319. data
  320. }) => {
  321. let goods = data.info;
  322. console.log(goods, '商品信息');
  323. this.carouselList = data.banner;
  324. this.swiperLength = this.carouselList.length;
  325. this.firstList = data.info.firstList; //首页商品
  326. uni.stopPullDownRefresh();
  327. })
  328. .catch(e => {
  329. uni.stopPullDownRefresh();
  330. });
  331. },
  332. //轮播图切换修改背景色
  333. swiperChange(e) {
  334. const index = e.detail.current;
  335. this.swiperCurrent = index;
  336. this.titleNViewBackground = this.carouselList[index].background;
  337. },
  338. // 轮播图跳转
  339. bannerNavToUrl(item) {
  340. // #ifdef H5
  341. console.log(item.wap_url.indexOf('http'), 'banner');
  342. if (item.wap_url.indexOf('http') >= 0) {
  343. window.location.href = item.wap_url;
  344. }
  345. // #endif
  346. //测试数据没有写id,用title代替
  347. uni.navigateTo({
  348. url: item.wap_url
  349. });
  350. },
  351. comfirm(text) {
  352. console.log(text);
  353. const result = this.uniCopy(text);
  354. if (result === false) {
  355. uni.showToast({
  356. title: '不支持'
  357. });
  358. } else {
  359. uni.showToast({
  360. title: '复制成功',
  361. icon: 'none'
  362. });
  363. }
  364. this.$refs.popupkf.close();
  365. },
  366. uniCopy(content) {
  367. /**
  368. * 小程序端 和 app端的复制逻辑
  369. */
  370. //#ifndef H5
  371. uni.setClipboardData({
  372. data: content,
  373. success: function() {
  374. console.log('success');
  375. return true;
  376. }
  377. });
  378. //#endif
  379. /**
  380. * H5端的复制逻辑
  381. */
  382. // #ifdef H5
  383. if (!document.queryCommandSupported('copy')) {
  384. //为了兼容有些浏览器 queryCommandSupported 的判断
  385. // 不支持
  386. return false;
  387. }
  388. let textarea = document.createElement('textarea');
  389. textarea.value = content;
  390. textarea.readOnly = 'readOnly';
  391. document.body.appendChild(textarea);
  392. textarea.select(); // 选择对象
  393. textarea.setSelectionRange(0, content.length); //核心
  394. let result = document.execCommand('copy'); // 执行浏览器复制命令
  395. textarea.remove();
  396. return result;
  397. // #endif
  398. },
  399. // 打开客服
  400. openKf() {
  401. this.$refs.popupkf.open();
  402. },
  403. // 关闭客服
  404. cancel() {
  405. this.$refs.popupkf.close();
  406. }
  407. }
  408. };
  409. </script>
  410. <style lang="scss">
  411. page {
  412. background: #ffff;
  413. min-height: 100%;
  414. height: auto;
  415. }
  416. // 顶部搜索
  417. .top-search {
  418. position: relative;
  419. z-index: 2;
  420. height: 80rpx;
  421. padding: 0 20rpx;
  422. .top-logo {
  423. width: 50rpx;
  424. // height: 50rpx;
  425. margin-right: 10rpx;
  426. image {
  427. width: 48rpx;
  428. }
  429. }
  430. .search-box {
  431. justify-content: center;
  432. width: 698rpx;
  433. height: 60rpx;
  434. background: #eeeeee;
  435. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  436. border-radius: 30rpx;
  437. .search {
  438. width: 34rpx;
  439. height: 34rpx;
  440. }
  441. .search-font {
  442. margin-left: 14rpx;
  443. font-size: 28rpx;
  444. font-family: PingFang SC;
  445. font-weight: 500;
  446. color: #cbcbcb;
  447. }
  448. }
  449. }
  450. // 顶部轮播图
  451. .top-swiper {
  452. width: 690rpx;
  453. height: 360rpx;
  454. border-radius: 20rpx;
  455. margin: 20rpx auto 0;
  456. image {
  457. width: 690rpx;
  458. height: 360rpx;
  459. border-radius: 20rpx;
  460. }
  461. }
  462. .swiper-btm {
  463. height: 60rpx;
  464. width: 750rpx;
  465. background-color: #fff;
  466. margin-bottom: 20rpx;
  467. font-size: 21rpx;
  468. font-weight: 500;
  469. color: #333333;
  470. .btm-item {
  471. flex-grow: 1;
  472. justify-content: center;
  473. image {
  474. width: 25rpx;
  475. height: 25rpx;
  476. margin-right: 14rpx;
  477. }
  478. }
  479. }
  480. .jg {
  481. margin-top: 20rpx;
  482. height: 20rpx;
  483. background: #f8f8f8;
  484. }
  485. .vip-box {
  486. padding: 30rpx 20rpx 0;
  487. .vip-title {
  488. line-height: 1;
  489. }
  490. .vip-left {
  491. display: flex;
  492. align-items: center;
  493. .vip-left-icon {
  494. width: 38rpx;
  495. height: 38rpx;
  496. }
  497. .vip-left-font {
  498. margin-left: 10rpx;
  499. font-size: 32rpx;
  500. font-family: PingFang SC;
  501. font-weight: 800;
  502. color: #363636;
  503. }
  504. }
  505. .vip-right {
  506. display: flex;
  507. align-items: center;
  508. .vip-right-icon {
  509. width: 10rpx;
  510. height: 20rpx;
  511. }
  512. .vip-right-font {
  513. margin-right: 10rpx;
  514. font-size: 24rpx;
  515. font-family: PingFang SC;
  516. font-weight: 500;
  517. color: #989898;
  518. }
  519. }
  520. }
  521. // 分类
  522. .cate-section {
  523. justify-content: space-around;
  524. background-color: #fff;
  525. padding: 45rpx 0 30rpx;
  526. .cate-item {
  527. flex-grow: 0;
  528. width: 20%;
  529. flex-direction: column;
  530. text-align: center;
  531. align-items: center;
  532. justify-content: space-around;
  533. .img-wrapper {
  534. width: 124rpx;
  535. height: 124rpx;
  536. border-radius: 20rpx;
  537. position: relative;
  538. image {
  539. width: 124rpx;
  540. height: 124rpx;
  541. position: absolute;
  542. left: 50%;
  543. top: 50%;
  544. transform: translate(-50%, -50%);
  545. }
  546. }
  547. .item-title {
  548. margin-top: 15rpx;
  549. font-size: 26rpx;
  550. font-weight: 500;
  551. color: #666666;
  552. }
  553. }
  554. }
  555. .tongz {
  556. width: 690rpx;
  557. margin: 32rpx auto 0;
  558. padding: 0 30rpx 0 24rpx;
  559. background: #f8f8fa;
  560. position: relative;
  561. .tongz-left {
  562. width: 640rpx;
  563. .left {
  564. flex-shrink: 0;
  565. display: flex;
  566. align-items: center;
  567. }
  568. .tongz-title {
  569. margin-left: 10rpx;
  570. font-size: 26rpx;
  571. font-family: PingFang SC;
  572. font-weight: bold;
  573. color: #ff1a1a;
  574. }
  575. .image-left {
  576. width: 28rpx;
  577. height: 28rpx;
  578. }
  579. .tongz-font {
  580. margin-left: 22rpx;
  581. font-size: 28rpx;
  582. font-family: Source Han Sans CN;
  583. font-weight: 400;
  584. color: #0f253a;
  585. }
  586. }
  587. .tongz-right {
  588. position: relative;
  589. z-index: 11;
  590. width: 12rpx;
  591. height: 26rpx;
  592. image {
  593. width: 100%;
  594. height: 100%;
  595. }
  596. }
  597. }
  598. .hotgoods {
  599. margin-top: 38rpx;
  600. width: 100%;
  601. display: flex;
  602. flex-wrap: wrap;
  603. padding: 0 20rpx 30rpx;
  604. justify-content: space-between;
  605. .hotgoods-item {
  606. width: 345rpx;
  607. background-color: #ffffff;
  608. border-radius: 12rpx;
  609. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  610. margin-bottom: 20rpx;
  611. .image-wrapper {
  612. width: 345rpx;
  613. height: 345rpx;
  614. border-radius: 3px;
  615. position: relative;
  616. .give-jf {
  617. position: absolute;
  618. top: 0;
  619. left: 0;
  620. padding: 8rpx;
  621. background: linear-gradient(90deg, #65B2E9, #CA57DC);
  622. border-radius: 10rpx 0px 10rpx 0px;
  623. font-size: 22rpx;
  624. font-weight: 500;
  625. color: #FFFFFF;
  626. }
  627. .image {
  628. width: 100%;
  629. height: 100%;
  630. opacity: 1;
  631. border-radius: 12rpx 12rpx 0 0;
  632. }
  633. }
  634. .title {
  635. margin-top: 24rpx;
  636. padding: 0 20rpx;
  637. font-size: 32rpx;
  638. font-weight: 500;
  639. color: #333333;
  640. }
  641. .hot-price {
  642. display: flex;
  643. justify-content: flex-start;
  644. align-items: center;
  645. // padding: 14rpx 0 30rpx;
  646. .hotPrice-box {
  647. padding: 2rpx 6rpx;
  648. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  649. border-radius: 5rpx;
  650. text-align: center;
  651. line-height: 28rpx;
  652. font-size: 20rpx;
  653. font-family: Source Han Sans CN;
  654. font-weight: 400;
  655. color: #ffffff;
  656. }
  657. .price {
  658. margin-left: 10rpx;
  659. font-size: 36rpx;
  660. color: #ff0000;
  661. font-weight: 500;
  662. display: flex;
  663. justify-content: flex-start;
  664. align-items: center;
  665. .ot-pirce {
  666. margin-left: 7rpx;
  667. font-size: 26rpx;
  668. font-weight: 500;
  669. text-decoration: line-through;
  670. color: #999999;
  671. align-self: flex-end;
  672. }
  673. }
  674. .yuanPrice {
  675. margin-left: 10rpx;
  676. font-size: 20rpx;
  677. font-family: PingFang SC;
  678. font-weight: 500;
  679. text-decoration: line-through;
  680. color: #999999;
  681. }
  682. .cart-icon {
  683. image {
  684. width: 44rpx;
  685. height: 44rpx;
  686. }
  687. }
  688. }
  689. }
  690. }
  691. .index-bg {
  692. position: absolute;
  693. top: 0;
  694. left: 0;
  695. right: 0;
  696. width: 750rpx;
  697. height: 460rpx;
  698. image {
  699. width: 100%;
  700. height: 100%;
  701. }
  702. }
  703. .popup-box {
  704. width: 522rpx;
  705. height: 605rpx;
  706. background-color: #ffffff;
  707. border-radius: 20rpx;
  708. position: relative;
  709. .product-tit {
  710. justify-content: center;
  711. .hx {
  712. width: 120rpx;
  713. height: 1rpx;
  714. background: #989898;
  715. }
  716. .tit {
  717. margin: 0 70rpx;
  718. font-size: 30rpx;
  719. font-weight: 500;
  720. color: #363636;
  721. }
  722. }
  723. .img {
  724. position: relative;
  725. top: -56rpx;
  726. left: 0;
  727. width: 522rpx;
  728. height: 132rpx;
  729. display: flex;
  730. justify-content: center;
  731. image {
  732. border-radius: 20rpx 20rpx 0 0;
  733. width: 450rpx;
  734. height: 132rpx;
  735. }
  736. }
  737. .mian {
  738. margin-top: -44rpx;
  739. display: flex;
  740. flex-direction: column;
  741. align-items: center;
  742. // padding: 32rpx 32rpx;
  743. background-color: #ffffff;
  744. border-radius: 0 0 20rpx 20rpx;
  745. text-align: center;
  746. .delivery {
  747. font-size: 40rpx;
  748. color: #333333;
  749. display: flex;
  750. align-items: center;
  751. flex-direction: column;
  752. image {
  753. margin-top: 48rpx;
  754. width: 172rpx;
  755. height: 160rpx;
  756. }
  757. }
  758. .nocancel {
  759. font-size: 32rpx;
  760. color: #333333;
  761. margin-top: 14rpx;
  762. }
  763. .comfirm-box {
  764. margin-top: 52rpx;
  765. display: flex;
  766. // margin-bottom: 32rpx;
  767. // justify-content: space-around;
  768. .cancel {
  769. display: flex;
  770. align-items: center;
  771. justify-content: center;
  772. width: 197rpx;
  773. height: 74rpx;
  774. border: 1px solid #dcc786;
  775. border-radius: 38rpx;
  776. font-size: 32rpx;
  777. color: #605128;
  778. }
  779. .comfirm {
  780. margin-left: 32rpx;
  781. display: flex;
  782. align-items: center;
  783. justify-content: center;
  784. width: 197rpx;
  785. height: 74rpx;
  786. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  787. border-radius: 38px;
  788. font-size: 32rpx;
  789. color: #605128;
  790. }
  791. }
  792. }
  793. }
  794. .product-box {
  795. background: #ffffff;
  796. padding: 26rpx 0 20rpx;
  797. .product-tit {
  798. justify-content: center;
  799. image {
  800. width: 609rpx;
  801. height: 31rpx;
  802. }
  803. .hx {
  804. width: 120rpx;
  805. height: 1rpx;
  806. background: #363636;
  807. color: #363636;
  808. line-height: 28px;
  809. }
  810. .tit {
  811. margin: 0 70rpx;
  812. font-size: 32rpx;
  813. font-weight: 500;
  814. color: #363636;
  815. }
  816. }
  817. .in-ban {
  818. margin-top: 40rpx;
  819. width: 750rpx;
  820. height: 220rpx;
  821. }
  822. }
  823. </style>