index.vue 18 KB

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