index.vue 19 KB

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