index.vue 18 KB

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