index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. <template>
  2. <view class="container">
  3. <view class="carousel-section">
  4. <!-- 背景色区域 -->
  5. <view class="bg">
  6. <image src="../../static/index/index13.png" mode=""></image>
  7. </view>
  8. <!-- 标题栏和状态栏占位符 -->
  9. <view class="titleNview-placing"></view>
  10. <!-- 搜素栏 -->
  11. <view class="search flex">
  12. <!-- <image src="../../static/index/index09.png" class="address"></image> -->
  13. <!-- <view class="shop-name clamp" @click.stop="canChange == 0?nav('/pages/shoping/list'):''">{{ storeInfo.name }}</view> -->
  14. <!-- <view class="shop-name clamp">椒江区</view> -->
  15. <!-- <image class="shop-jt" src="../../static/index/index07.png" mode=""></image> -->
  16. <view class="input-box flex" @click.stop="clickSearch">
  17. <view class=" input-content flex">
  18. <view class="iconfont iconsearch"></view>
  19. <view class="input"><input type="text" disabled value="输入关键字搜索" /></view>
  20. </view>
  21. </view>
  22. </view>
  23. <swiper class="carousel" autoplay="true" duration="400" interval="5000" :indicator-dots="true"
  24. indicator-active-color="#FFFFFF">
  25. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
  26. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  27. <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  28. </swiper-item>
  29. </swiper>
  30. </view>
  31. <view class="navbar">
  32. <view class="navbar-box flex">
  33. <view class="navbar-item" @click="navTo('/pages/index/jfShop')">
  34. <image class="nitem-image" src="../../static/index/index03.png" mode=""></image>
  35. <view class="nitem-font">积分兑换</view>
  36. </view>
  37. <view class="navbar-item" @click="navTo('/pages/index/jieshao')">
  38. <image class="nitem-image" src="../../static/index/index04.png" mode=""></image>
  39. <view class="nitem-font">产品介绍</view>
  40. </view>
  41. <view class="navbar-item" @click="navTo('/pages/index/shopStore')">
  42. <image class="nitem-image" src="../../static/index/index32.png" mode=""></image>
  43. <view class="nitem-font">附近门店</view>
  44. </view>
  45. <view class="navbar-item" @click="navTo('/pages/user/messageCenter')">
  46. <image class="nitem-image" src="../../static/index/index33.png" mode=""></image>
  47. <view class="nitem-font">消息通知</view>
  48. </view>
  49. <view class="navbar-item" @click="navTo('/pages/user/shareQrCode')">
  50. <image class="nitem-image" src="../../static/index/index02.png" mode=""></image>
  51. <view class="nitem-font">邀请有礼</view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="vipShop" @click="navTo('/pages/user/newVip')">
  56. <image src="../../static/img/indexqg.png" mode=""></image>
  57. </view>
  58. <view class="product-box" v-if="bastList.length != 0">
  59. <view class="cnxh">
  60. <view class="hx"></view>
  61. <view class="">红积分专区</view>
  62. <view class="hx"></view>
  63. </view>
  64. <view class="hotgoods">
  65. <view class="hotgoods-item" v-for="item in bastList" :key="item.id" @click="navToDetailPage(item)">
  66. <view class="image-wrapper">
  67. <image class="image-bg" src="../../static/img/libao-bg.png" mode=""></image>
  68. <image class="image" :src="item.image" mode="scaleToFill"></image>
  69. </view>
  70. <view class="title clamp2">{{ item.store_name }}</view>
  71. <view class="hot-price">
  72. <view class="hotPrice-box">会员价</view>
  73. <view class="price">
  74. <text class="font-size-sm">¥</text>
  75. {{ item.price * 1 }}
  76. </view>
  77. <view class="yuanPrice">{{ item.ot_price }}</view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 客服 -->
  83. <uni-popup ref="popupkf" type="center">
  84. <view class="popup-box">
  85. <view class="img">
  86. <image src="../../static/img/img009.png" mode=""></image>
  87. </view>
  88. <view class="mian">
  89. <view class="delivery">
  90. <view class="title">已经为您定制专属客服</view>
  91. <image src="../../static/img/img010.png" mode=""></image>
  92. </view>
  93. <view class="nocancel">客服VX:{{ text }}</view>
  94. <view class="comfirm-box">
  95. <view class="cancel" @click="kfClose()">取消</view>
  96. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  97. </view>
  98. </view>
  99. </view>
  100. </uni-popup>
  101. </view>
  102. </template>
  103. <script>
  104. import {
  105. lookSubpoints,
  106. lookOneself
  107. } from '../../api/user.js';
  108. import seckill from '../../components/seckill/seckill.vue';
  109. import {
  110. loadIndexs
  111. } from '@/api/index.js';
  112. import {
  113. getUserInfo,
  114. spread
  115. } from '@/api/user.js';
  116. import {
  117. setCoupons
  118. } from '@/api/functionalUnit.js';
  119. import {
  120. getBargainList,
  121. getProducts
  122. } from '@/api/product.js';
  123. import {
  124. saveUrl,
  125. interceptor
  126. } from '@/utils/loginUtils';
  127. import {
  128. mapState,
  129. mapMutations
  130. } from 'vuex';
  131. import {
  132. tabbar
  133. } from '@/utils/tabbar.js';
  134. // #ifdef H5
  135. import {
  136. weixindata,
  137. shareLoad
  138. } from '@/utils/wxAuthorized';
  139. // #endif
  140. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  141. export default {
  142. components: {
  143. seckill
  144. },
  145. data() {
  146. return {
  147. text: 'x18258617070',
  148. tabbar: tabbar,
  149. current: 0,
  150. shareShow: false, //分享海报
  151. pageProportion: 0, //保存页面基于750宽度的比例
  152. swiperHeight: 0,
  153. checkid: 0,
  154. titleNViewBackground: '',
  155. longitude: 0, //经度
  156. latitude: 0, //纬度
  157. swiperCurrent: 0,
  158. swiperLength: 0,
  159. carouselList: [], //轮播列表
  160. bastList: [], //会员礼包
  161. shoplist: [], //商店列表
  162. page: 1,
  163. limit: 5,
  164. bargainlist: []
  165. };
  166. },
  167. computed: {
  168. ...mapState(['loginInterceptor', 'baseURL']),
  169. ...mapState('user', ['hasLogin', 'userInfo'])
  170. },
  171. onLoad: function(option) {
  172. // #ifdef MP
  173. if (option.scene) {
  174. // 存储小程序邀请人
  175. uni.setStorage({
  176. key: 'spread_code',
  177. data: option.scene
  178. });
  179. }
  180. // #endif
  181. // #ifdef H5
  182. this.IndexShare();
  183. //#endif
  184. },
  185. onShow: function() {
  186. // 判断是否强制登录
  187. // if (!this.hasLogin) {
  188. // // 登录拦截
  189. // interceptor();
  190. // }
  191. this.loadData();
  192. this.getProduct();
  193. // this.getBargainList();
  194. },
  195. //下拉刷新
  196. onPullDownRefresh() {
  197. this.loadData();
  198. },
  199. // #ifndef MP
  200. // 监听导航栏输入框点击事件
  201. onNavigationBarSearchInputClicked(e) {
  202. //跳转到搜索页面
  203. this.clickSearch();
  204. },
  205. //点击导航栏 buttons 时触发
  206. onNavigationBarButtonTap(e) {
  207. const index = e.index;
  208. if (index === 0) {
  209. this.$api.msg('点击了扫描');
  210. } else if (index === 1) {
  211. // #ifdef APP-PLUS
  212. const pages = getCurrentPages();
  213. const page = pages[pages.length - 1];
  214. const currentWebview = page.$getAppWebview();
  215. currentWebview.hideTitleNViewButtonRedDot({
  216. index
  217. });
  218. // #endif
  219. uni.navigateTo({
  220. url: '/pages/user/notice'
  221. });
  222. }
  223. },
  224. // #endif
  225. methods: {
  226. ...mapMutations(['setLat', 'setLon']),
  227. kfClose() {
  228. this.$refs.popupkf.close();
  229. },
  230. // 复制
  231. comfirm(text) {
  232. console.log(text);
  233. const result = uniCopy(text);
  234. if (result === false) {
  235. uni.showToast({
  236. title: '不支持'
  237. });
  238. } else {
  239. uni.showToast({
  240. title: '复制成功',
  241. icon: 'none'
  242. });
  243. }
  244. this.$refs.popupkp.close();
  245. },
  246. // #ifdef H5
  247. IndexShare() {
  248. let obj = this;
  249. let pages = getCurrentPages();
  250. // 获取当前页面
  251. let page = pages[pages.length - 1];
  252. let path = '#/' + page.route + '?';
  253. // 保存传值
  254. for (let i in page.options) {
  255. path += i + '=' + page.options[i] + '&';
  256. }
  257. console.log(obj.Path);
  258. // 保存邀请人
  259. path += 'spread=' + this.userInfo.uid;
  260. let data = {
  261. link: this.baseURL + '/index/' + path,
  262. title: this.userInfo.nickname + '邀请您进入响亮商城',
  263. desc: '欢迎加入响亮商城',
  264. imgUrl: 'https://xl.liuniu946.com/index/static/img/logo.jpg'
  265. };
  266. console.log(data, '分享数据');
  267. shareLoad(data);
  268. },
  269. // #endif
  270. //砍价商品推荐详情页
  271. // navToDetailPages(item) {
  272. // let id = item.product_id;
  273. // //let type = 2;
  274. // uni.navigateTo({
  275. // url: '/pages/product/product?id=' + id
  276. // });
  277. // },
  278. navTo(url) {
  279. if(!this.hasLogin){
  280. saveUrl();
  281. interceptor();
  282. }else {
  283. if (url == '') {
  284. this.$api.msg('暂未开通,敬请期待');
  285. } else {
  286. uni.navigateTo({
  287. url,
  288. fail() {
  289. uni.switchTab({
  290. url
  291. });
  292. }
  293. });
  294. }
  295. }
  296. },
  297. openSubscribe: function(e) {
  298. let page = e;
  299. // #ifndef MP
  300. uni.navigateTo({
  301. url: page
  302. });
  303. // #endif
  304. // #ifdef MP
  305. uni.showLoading({
  306. title: '正在加载'
  307. });
  308. openBargainSubscribe()
  309. .then(res => {
  310. uni.hideLoading();
  311. uni.navigateTo({
  312. url: page
  313. });
  314. })
  315. .catch(err => {
  316. uni.hideLoading();
  317. });
  318. // #endif
  319. },
  320. getBargainList() {
  321. let that = this;
  322. getBargainList({
  323. page: that.page,
  324. limit: that.limit
  325. })
  326. .then(function(res) {
  327. that.$set(that, 'bargainlist', res.data.slice(0, 2));
  328. console.log(that.bargainlist);
  329. })
  330. .catch(res => {
  331. console.log(res, 'getBargainList');
  332. });
  333. },
  334. Mask() {
  335. this.MaskShow = false;
  336. this.shareShow = true;
  337. uni.setStorage({
  338. key: 'FirstEntry',
  339. data: true,
  340. success: function() {
  341. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  342. }
  343. });
  344. },
  345. Toshare() {
  346. if (this.userInfo == '') {
  347. getUserInfo({})
  348. .then(({
  349. data
  350. }) => {
  351. this.setUserInfo(data);
  352. this.userInfo = data;
  353. })
  354. .catch(e => {});
  355. } else {
  356. this.shareShow = false;
  357. uni.navigateTo({
  358. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  359. });
  360. }
  361. },
  362. Tocancel() {
  363. this.shareShow = false;
  364. },
  365. // 监听切换事件
  366. listChange(e) {
  367. this.checkid = e.detail.current;
  368. },
  369. // 點擊搜索框
  370. clickSearch() {
  371. uni.navigateTo({
  372. url: '/pages/product/search'
  373. });
  374. },
  375. // 点击触发领取优惠券
  376. setCoupons(item) {
  377. // 判断是否已经领取了优惠券
  378. let obj = this;
  379. uni.showModal({
  380. title: '领取提示',
  381. content: '是否领取优惠券',
  382. success(e) {
  383. if (e.confirm) {
  384. setCoupons({
  385. couponId: item.id
  386. }).then(e => {
  387. item.is_use = true;
  388. uni.showToast({
  389. title: '领取成功',
  390. type: 'top',
  391. duration: 2000
  392. });
  393. });
  394. }
  395. }
  396. });
  397. },
  398. //商品种类切换
  399. change(item) {
  400. let id = item;
  401. this.checkid = id;
  402. if (this.checkid == 1) {
  403. // console.log(1);
  404. this.detail = this.selected_detail;
  405. } else if (this.checkid == 2) {
  406. // console.log(2);
  407. this.detail = this.new_product;
  408. } else {
  409. this.detail = this.cheap_good;
  410. }
  411. },
  412. // 监听图片加载完成
  413. onImageError(key, index) {
  414. this[key][index].image = '/static/error/errorImage.jpg';
  415. },
  416. // 请求载入数据
  417. async loadData() {
  418. loadIndexs({})
  419. .then(({
  420. data
  421. }) => {
  422. let goods = data.info;
  423. this.carouselList = data.banner;
  424. console.log(this.carouselList, 'this.carouselList++++++++');
  425. this.swiperLength = this.carouselList.length;
  426. // this.bastList = data.giftInfo; //会员礼包
  427. uni.stopPullDownRefresh();
  428. })
  429. .catch(e => {
  430. uni.stopPullDownRefresh();
  431. });
  432. },
  433. //轮播图切换修改背景色
  434. swiperChange(e) {
  435. const index = e.detail.current;
  436. this.swiperCurrent = index;
  437. this.titleNViewBackground = this.carouselList[index].background;
  438. },
  439. //详情页
  440. navToDetailPage(item) {
  441. let id = item.id;
  442. uni.navigateTo({
  443. url: '/pages/product/product?id=' + id + '&isVip=1'
  444. });
  445. },
  446. // 轮播图跳转
  447. bannerNavToUrl(item) {
  448. // #ifdef H5
  449. console.log(item.wap_url.indexOf('http'), 'banner');
  450. if (item.wap_url.indexOf('http') >= 0) {
  451. window.location.href = item.wap_url;
  452. }
  453. // #endif
  454. //测试数据没有写id,用title代替
  455. uni.navigateTo({
  456. url: item.wap_url
  457. });
  458. },
  459. getProduct() {
  460. getProducts().then(res => {
  461. console.log(res.data);
  462. this.bastList = res.data;
  463. });
  464. }
  465. }
  466. };
  467. </script>
  468. <style lang="scss">
  469. .carousel-section {
  470. position: relative;
  471. padding-top: 10px;
  472. .bg {
  473. position: absolute;
  474. top: 0;
  475. left: 0;
  476. width: 750rpx;
  477. height: 378rpx;
  478. image {
  479. width: 100%;
  480. height: 100%;
  481. }
  482. }
  483. .titleNview-placing {
  484. height: var(--status-bar-height);
  485. box-sizing: content-box;
  486. }
  487. .search {
  488. justify-content: flex-start;
  489. padding: 10rpx 32rpx 20rpx;
  490. align-items: center;
  491. .address {
  492. width: 32rpx;
  493. height: 38rpx;
  494. }
  495. .shop-name {
  496. height: 38rpx;
  497. position: relative;
  498. top: -4rpx;
  499. z-index: 100;
  500. font-size: 30rpx;
  501. font-family: PingFang SC;
  502. font-weight: 500;
  503. color: #ffffff;
  504. padding-left: 10rpx;
  505. }
  506. .shop-jt {
  507. margin-left: 8rpx;
  508. width: 16rpx;
  509. height: 10rpx;
  510. }
  511. .input-box {
  512. margin-left: 10rpx;
  513. position: relative;
  514. z-index: 99;
  515. width: 700rpx;
  516. height: 60rpx;
  517. background: rgba(255, 255, 255, 0.4);
  518. border-radius: 30rpx;
  519. .input-content {
  520. position: relative;
  521. z-index: 11;
  522. border-radius: 99rpx;
  523. flex-grow: 1;
  524. padding: 5rpx 30rpx;
  525. background: rgba(255, 255, 255, 0.4);
  526. .iconsearch {
  527. font-size: 50rpx;
  528. color: #ffffff;
  529. }
  530. .input {
  531. margin-left: 19rpx;
  532. flex-grow: 1;
  533. color: #ffffff;
  534. input {
  535. font-size: 28rpx;
  536. color: #ffffff;
  537. }
  538. }
  539. }
  540. .input-button {
  541. padding-left: 20rpx;
  542. font-size: $font-base;
  543. height: 100%;
  544. }
  545. }
  546. }
  547. }
  548. .vipShop{
  549. width: 750rpx;
  550. padding: 0 30rpx;
  551. height: 200rpx;
  552. image{
  553. width: 100%;
  554. height: 100%;
  555. }
  556. }
  557. .carousel {
  558. position: relative;
  559. z-index: 3;
  560. width: 100%;
  561. height: 360rpx;
  562. .carousel-item {
  563. width: 100%;
  564. height: 100%;
  565. padding: 0 28rpx;
  566. overflow: hidden;
  567. }
  568. image {
  569. width: 100%;
  570. height: 100%;
  571. border-radius: $border-radius-sm;
  572. }
  573. }
  574. .navbar {
  575. position: relative;
  576. z-index: 2;
  577. margin-top: -200rpx;
  578. width: 750rpx;
  579. height: 462rpx;
  580. background: #ffffff;
  581. border-radius: 40rpx;
  582. .navbar-box {
  583. padding-top: 250rpx;
  584. .navbar-item {
  585. display: flex;
  586. flex-direction: column;
  587. align-items: center;
  588. width: 25%;
  589. .nitem-image {
  590. width: 98rpx;
  591. height: 98rpx;
  592. }
  593. .nitem-font {
  594. margin-top: 22rpx;
  595. font-size: 26rpx;
  596. font-family: PingFang SC;
  597. font-weight: 500;
  598. color: #000000;
  599. }
  600. }
  601. }
  602. }
  603. .product-box {
  604. // margin-top: 20rpx;
  605. background: #ffffff;
  606. padding: 15rpx 30rpx 20rpx;
  607. .product-title {
  608. display: flex;
  609. align-items: center;
  610. .pt-image {
  611. width: 36rpx;
  612. height: 36rpx;
  613. }
  614. .pt-title {
  615. margin-left: 8rpx;
  616. font-size: 32rpx;
  617. font-family: PingFang SC;
  618. font-weight: bold;
  619. color: #333333;
  620. }
  621. .pt-tip {
  622. margin-left: 16rpx;
  623. font-size: 20rpx;
  624. font-family: PingFang SC;
  625. font-weight: bold;
  626. color: #95a0b1;
  627. }
  628. }
  629. .hotgoods {
  630. margin-top: 38rpx;
  631. width: 100%;
  632. display: flex;
  633. flex-wrap: wrap;
  634. padding: 0 0 30rpx;
  635. .hotgoods-item {
  636. width: 48%;
  637. background-color: #ffffff;
  638. border-radius: 12rpx;
  639. &:nth-child(2n + 1) {
  640. margin-right: 24rpx;
  641. }
  642. .image-wrapper {
  643. width: 100%;
  644. height: 330rpx;
  645. border-radius: 3px;
  646. overflow: hidden;
  647. position: relative;
  648. .image-bg {
  649. position: absolute;
  650. top: 0;
  651. left: 0;
  652. right: 0;
  653. bottom: 0;
  654. width: 100%;
  655. height: 100%;
  656. opacity: 1;
  657. border-radius: 12rpx 12rpx 0 0;
  658. z-index: 2;
  659. }
  660. .image {
  661. width: 100%;
  662. height: 100%;
  663. opacity: 1;
  664. border-radius: 12rpx 12rpx 0 0;
  665. }
  666. }
  667. .title {
  668. margin-top: 24rpx;
  669. font-size: 28rpx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #333333;
  673. }
  674. .hot-price {
  675. display: flex;
  676. justify-content: flex-start;
  677. align-items: center;
  678. padding: 14rpx 0 30rpx;
  679. .hotPrice-box {
  680. width: 70rpx;
  681. height: 28rpx;
  682. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  683. border-radius: 5rpx;
  684. text-align: center;
  685. line-height: 28rpx;
  686. font-size: 20rpx;
  687. font-family: Source Han Sans CN;
  688. font-weight: 400;
  689. color: #ffffff;
  690. }
  691. .price {
  692. margin-left: 10rpx;
  693. font-size: 40rpx;
  694. color: #ff0000;
  695. font-weight: 500;
  696. }
  697. .yuanPrice {
  698. margin-left: 10rpx;
  699. font-size: 20rpx;
  700. font-family: PingFang SC;
  701. font-weight: 500;
  702. text-decoration: line-through;
  703. color: #999999;
  704. }
  705. .cart-icon {
  706. image {
  707. width: 44rpx;
  708. height: 44rpx;
  709. }
  710. }
  711. }
  712. }
  713. }
  714. }
  715. .popup-box {
  716. width: 522rpx;
  717. height: 605rpx;
  718. background-color: #ffffff;
  719. border-radius: 20rpx;
  720. position: relative;
  721. .img {
  722. position: relative;
  723. top: -56rpx;
  724. left: 0;
  725. width: 522rpx;
  726. height: 132rpx;
  727. display: flex;
  728. justify-content: center;
  729. image {
  730. border-radius: 20rpx 20rpx 0 0;
  731. width: 450rpx;
  732. height: 132rpx;
  733. }
  734. }
  735. .mian {
  736. margin-top: -44rpx;
  737. display: flex;
  738. flex-direction: column;
  739. align-items: center;
  740. // padding: 32rpx 32rpx;
  741. background-color: #ffffff;
  742. border-radius: 0 0 20rpx 20rpx;
  743. text-align: center;
  744. .delivery {
  745. font-size: 40rpx;
  746. color: #333333;
  747. display: flex;
  748. align-items: center;
  749. flex-direction: column;
  750. .title {}
  751. image {
  752. margin-top: 48rpx;
  753. width: 172rpx;
  754. height: 160rpx;
  755. }
  756. }
  757. .nocancel {
  758. font-size: 32rpx;
  759. color: #333333;
  760. margin-top: 14rpx;
  761. }
  762. .comfirm-box {
  763. margin-top: 52rpx;
  764. display: flex;
  765. // margin-bottom: 32rpx;
  766. // justify-content: space-around;
  767. .cancel {
  768. display: flex;
  769. align-items: center;
  770. justify-content: center;
  771. width: 197rpx;
  772. height: 74rpx;
  773. border: 1px solid #dcc786;
  774. border-radius: 38rpx;
  775. font-size: 32rpx;
  776. color: #605128;
  777. }
  778. .comfirm {
  779. margin-left: 32rpx;
  780. display: flex;
  781. align-items: center;
  782. justify-content: center;
  783. width: 197rpx;
  784. height: 74rpx;
  785. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  786. border-radius: 38px;
  787. font-size: 32rpx;
  788. color: #605128;
  789. }
  790. }
  791. }
  792. }
  793. .cnxh {
  794. text-align: center;
  795. font-size: 30rpx;
  796. font-weight: 500;
  797. color: #363636;
  798. display: flex;
  799. justify-content: center;
  800. align-items: center;
  801. padding: 20rpx 0;
  802. .hx {
  803. width: 120rpx;
  804. height: 1rpx;
  805. background: #989898;
  806. margin: 0 40rpx;
  807. }
  808. }
  809. </style>