index.vue 18 KB

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