index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  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/category/category')">
  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. fail() {
  317. uni.switchTab({
  318. url
  319. })
  320. }
  321. });
  322. }
  323. },
  324. openSubscribe: function(e) {
  325. let page = e;
  326. // #ifndef MP
  327. uni.navigateTo({
  328. url: page
  329. });
  330. // #endif
  331. // #ifdef MP
  332. uni.showLoading({
  333. title: '正在加载'
  334. });
  335. openBargainSubscribe()
  336. .then(res => {
  337. uni.hideLoading();
  338. uni.navigateTo({
  339. url: page
  340. });
  341. })
  342. .catch(err => {
  343. uni.hideLoading();
  344. });
  345. // #endif
  346. },
  347. getBargainList() {
  348. let that = this;
  349. getBargainList({
  350. page: that.page,
  351. limit: that.limit
  352. })
  353. .then(function(res) {
  354. that.$set(that, 'bargainlist', res.data.slice(0, 2));
  355. console.log(that.bargainlist)
  356. })
  357. .catch(res => {
  358. console.log(res, 'getBargainList');
  359. });
  360. },
  361. Mask() {
  362. this.MaskShow = false;
  363. this.shareShow = true;
  364. uni.setStorage({
  365. key: 'FirstEntry',
  366. data: true,
  367. success: function() {
  368. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  369. }
  370. });
  371. },
  372. Toshare() {
  373. if (this.userInfo == '') {
  374. getUserInfo({})
  375. .then(({
  376. data
  377. }) => {
  378. this.setUserInfo(data);
  379. this.userInfo = data;
  380. })
  381. .catch(e => {});
  382. } else {
  383. this.shareShow = false;
  384. uni.navigateTo({
  385. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  386. });
  387. }
  388. },
  389. Tocancel() {
  390. this.shareShow = false;
  391. },
  392. // 监听切换事件
  393. listChange(e) {
  394. this.checkid = e.detail.current;
  395. },
  396. // 點擊搜索框
  397. clickSearch() {
  398. uni.navigateTo({
  399. url: '/pages/product/search'
  400. });
  401. },
  402. // 点击触发领取优惠券
  403. setCoupons(item) {
  404. // 判断是否已经领取了优惠券
  405. let obj = this;
  406. uni.showModal({
  407. title: '领取提示',
  408. content: '是否领取优惠券',
  409. success(e) {
  410. if (e.confirm) {
  411. setCoupons({
  412. couponId: item.id
  413. }).then(e => {
  414. item.is_use = true;
  415. uni.showToast({
  416. title: '领取成功',
  417. type: 'top',
  418. duration: 2000
  419. });
  420. });
  421. }
  422. }
  423. });
  424. },
  425. //商品种类切换
  426. change(item) {
  427. let id = item;
  428. this.checkid = id;
  429. if (this.checkid == 1) {
  430. // console.log(1);
  431. this.detail = this.selected_detail;
  432. } else if (this.checkid == 2) {
  433. // console.log(2);
  434. this.detail = this.new_product;
  435. } else {
  436. this.detail = this.cheap_good;
  437. }
  438. },
  439. // 监听图片加载完成
  440. onImageError(key, index) {
  441. this[key][index].image = '/static/error/errorImage.jpg';
  442. },
  443. // 请求载入数据
  444. async loadData() {
  445. loadIndexs({})
  446. .then(({
  447. data
  448. }) => {
  449. let goods = data.info;
  450. this.carouselList = data.banner;
  451. console.log(this.carouselList, 'this.carouselList++++++++')
  452. this.swiperLength = this.carouselList.length;
  453. // this.bastList = data.giftInfo; //会员礼包
  454. uni.stopPullDownRefresh();
  455. })
  456. .catch(e => {
  457. uni.stopPullDownRefresh();
  458. });
  459. },
  460. //轮播图切换修改背景色
  461. swiperChange(e) {
  462. const index = e.detail.current;
  463. this.swiperCurrent = index;
  464. this.titleNViewBackground = this.carouselList[index].background;
  465. },
  466. //详情页
  467. navToDetailPage(item) {
  468. let id = item.id;
  469. uni.navigateTo({
  470. url: '/pages/product/product?id=' + id + '&isVip=1'
  471. });
  472. },
  473. // 轮播图跳转
  474. bannerNavToUrl(item) {
  475. // #ifdef H5
  476. console.log(item.wap_url.indexOf('http'), 'banner');
  477. if (item.wap_url.indexOf('http') >= 0) {
  478. window.location.href = item.wap_url;
  479. }
  480. // #endif
  481. //测试数据没有写id,用title代替
  482. uni.navigateTo({
  483. url: item.wap_url
  484. });
  485. },
  486. getProduct() {
  487. getProducts().then(res => {
  488. console.log(res.data)
  489. this.bastList = res.data
  490. })
  491. }
  492. }
  493. };
  494. </script>
  495. <style lang="scss">
  496. .carousel-section {
  497. position: relative;
  498. padding-top: 10px;
  499. .bg {
  500. position: absolute;
  501. top: 0;
  502. left: 0;
  503. width: 750rpx;
  504. height: 378rpx;
  505. image {
  506. width: 100%;
  507. height: 100%;
  508. }
  509. }
  510. .titleNview-placing {
  511. height: var(--status-bar-height);
  512. box-sizing: content-box;
  513. }
  514. .search {
  515. justify-content: flex-start;
  516. padding: 10rpx 32rpx 20rpx;
  517. align-items: center;
  518. .address {
  519. width: 32rpx;
  520. height: 38rpx;
  521. }
  522. .shop-name {
  523. height: 38rpx;
  524. position: relative;
  525. top: -4rpx;
  526. z-index: 100;
  527. font-size: 30rpx;
  528. font-family: PingFang SC;
  529. font-weight: 500;
  530. color: #ffffff;
  531. padding-left: 10rpx;
  532. }
  533. .shop-jt {
  534. margin-left: 8rpx;
  535. width: 16rpx;
  536. height: 10rpx;
  537. }
  538. .input-box {
  539. margin-left: 10rpx;
  540. position: relative;
  541. z-index: 99;
  542. width: 700rpx;
  543. height: 60rpx;
  544. background: rgba(255, 255, 255, 0.4);
  545. border-radius: 30rpx;
  546. .input-content {
  547. position: relative;
  548. z-index: 11;
  549. border-radius: 99rpx;
  550. flex-grow: 1;
  551. padding: 5rpx 30rpx;
  552. background: rgba(255, 255, 255, 0.4);
  553. .iconsearch {
  554. font-size: 50rpx;
  555. color: #ffffff;
  556. }
  557. .input {
  558. margin-left: 19rpx;
  559. flex-grow: 1;
  560. color: #ffffff;
  561. input {
  562. font-size: 28rpx;
  563. color: #ffffff;
  564. }
  565. }
  566. }
  567. .input-button {
  568. padding-left: 20rpx;
  569. font-size: $font-base;
  570. height: 100%;
  571. }
  572. }
  573. }
  574. }
  575. .carousel {
  576. position: relative;
  577. z-index: 3;
  578. width: 100%;
  579. height: 360rpx;
  580. .carousel-item {
  581. width: 100%;
  582. height: 100%;
  583. padding: 0 28rpx;
  584. overflow: hidden;
  585. }
  586. image {
  587. width: 100%;
  588. height: 100%;
  589. border-radius: $border-radius-sm;
  590. }
  591. }
  592. .navbar {
  593. position: relative;
  594. z-index: 2;
  595. margin-top: -200rpx;
  596. width: 750rpx;
  597. height: 462rpx;
  598. background: #ffffff;
  599. border-radius: 40rpx;
  600. .navbar-box {
  601. padding-top: 250rpx;
  602. .navbar-item {
  603. display: flex;
  604. flex-direction: column;
  605. align-items: center;
  606. width: 25%;
  607. .nitem-image {
  608. width: 98rpx;
  609. height: 98rpx;
  610. }
  611. .nitem-font {
  612. margin-top: 22rpx;
  613. font-size: 26rpx;
  614. font-family: PingFang SC;
  615. font-weight: 500;
  616. color: #000000;
  617. }
  618. }
  619. }
  620. }
  621. .product-box {
  622. margin-top: 20rpx;
  623. background: #ffffff;
  624. padding: 26rpx 30rpx 20rpx;
  625. .product-title {
  626. display: flex;
  627. align-items: center;
  628. .pt-image {
  629. width: 36rpx;
  630. height: 36rpx;
  631. }
  632. .pt-title {
  633. margin-left: 8rpx;
  634. font-size: 32rpx;
  635. font-family: PingFang SC;
  636. font-weight: bold;
  637. color: #333333;
  638. }
  639. .pt-tip {
  640. margin-left: 16rpx;
  641. font-size: 20rpx;
  642. font-family: PingFang SC;
  643. font-weight: bold;
  644. color: #95a0b1;
  645. }
  646. }
  647. .hotgoods {
  648. margin-top: 38rpx;
  649. width: 100%;
  650. display: flex;
  651. flex-wrap: wrap;
  652. padding: 0 0 30rpx;
  653. .hotgoods-item {
  654. width: 48%;
  655. background-color: #ffffff;
  656. border-radius: 12rpx;
  657. &:nth-child(2n + 1) {
  658. margin-right: 24rpx;
  659. }
  660. .image-wrapper {
  661. width: 100%;
  662. height: 330rpx;
  663. border-radius: 3px;
  664. overflow: hidden;
  665. position: relative;
  666. .image-bg {
  667. position: absolute;
  668. top: 0;
  669. left: 0;
  670. right: 0;
  671. bottom: 0;
  672. width: 100%;
  673. height: 100%;
  674. opacity: 1;
  675. border-radius: 12rpx 12rpx 0 0;
  676. z-index: 2;
  677. }
  678. .image {
  679. width: 100%;
  680. height: 100%;
  681. opacity: 1;
  682. border-radius: 12rpx 12rpx 0 0;
  683. }
  684. }
  685. .title {
  686. margin-top: 24rpx;
  687. font-size: 28rpx;
  688. font-family: PingFang SC;
  689. font-weight: 500;
  690. color: #333333;
  691. }
  692. .hot-price {
  693. display: flex;
  694. justify-content: flex-start;
  695. align-items: center;
  696. padding: 14rpx 0 30rpx;
  697. .hotPrice-box {
  698. width: 70rpx;
  699. height: 28rpx;
  700. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  701. border-radius: 5rpx;
  702. text-align: center;
  703. line-height: 28rpx;
  704. font-size: 20rpx;
  705. font-family: Source Han Sans CN;
  706. font-weight: 400;
  707. color: #ffffff;
  708. }
  709. .price {
  710. margin-left: 10rpx;
  711. font-size: 40rpx;
  712. color: #ff0000;
  713. font-weight: 500;
  714. }
  715. .yuanPrice {
  716. margin-left: 10rpx;
  717. font-size: 20rpx;
  718. font-family: PingFang SC;
  719. font-weight: 500;
  720. text-decoration: line-through;
  721. color: #999999;
  722. }
  723. .cart-icon {
  724. image {
  725. width: 44rpx;
  726. height: 44rpx;
  727. }
  728. }
  729. }
  730. }
  731. }
  732. }
  733. .popup-box {
  734. width: 522rpx;
  735. height: 605rpx;
  736. background-color: #ffffff;
  737. border-radius: 20rpx;
  738. position: relative;
  739. .img {
  740. position: relative;
  741. top: -56rpx;
  742. left: 0;
  743. width: 522rpx;
  744. height: 132rpx;
  745. display: flex;
  746. justify-content: center;
  747. image {
  748. border-radius: 20rpx 20rpx 0 0;
  749. width: 450rpx;
  750. height: 132rpx;
  751. }
  752. }
  753. .mian {
  754. margin-top: -44rpx;
  755. display: flex;
  756. flex-direction: column;
  757. align-items: center;
  758. // padding: 32rpx 32rpx;
  759. background-color: #ffffff;
  760. border-radius: 0 0 20rpx 20rpx;
  761. text-align: center;
  762. .delivery {
  763. font-size: 40rpx;
  764. color: #333333;
  765. display: flex;
  766. align-items: center;
  767. flex-direction: column;
  768. .title {}
  769. image {
  770. margin-top: 48rpx;
  771. width: 172rpx;
  772. height: 160rpx;
  773. }
  774. }
  775. .nocancel {
  776. font-size: 32rpx;
  777. color: #333333;
  778. margin-top: 14rpx;
  779. }
  780. .comfirm-box {
  781. margin-top: 52rpx;
  782. display: flex;
  783. // margin-bottom: 32rpx;
  784. // justify-content: space-around;
  785. .cancel {
  786. display: flex;
  787. align-items: center;
  788. justify-content: center;
  789. width: 197rpx;
  790. height: 74rpx;
  791. border: 1px solid #dcc786;
  792. border-radius: 38rpx;
  793. font-size: 32rpx;
  794. color: #605128;
  795. }
  796. .comfirm {
  797. margin-left: 32rpx;
  798. display: flex;
  799. align-items: center;
  800. justify-content: center;
  801. width: 197rpx;
  802. height: 74rpx;
  803. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  804. border-radius: 38px;
  805. font-size: 32rpx;
  806. color: #605128;
  807. }
  808. }
  809. }
  810. }
  811. .cnxh {
  812. text-align: center;
  813. font-size: 30rpx;
  814. font-weight: 500;
  815. color: #363636;
  816. display: flex;
  817. justify-content: center;
  818. align-items: center;
  819. padding: 20rpx 0;
  820. .hx {
  821. width: 120rpx;
  822. height: 1rpx;
  823. background: #989898;
  824. margin: 0 40rpx;
  825. }
  826. }
  827. </style>