index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="status_bar"></view>
  5. <view class="top-bg"></view>
  6. <view class="top-search flex">
  7. <view class="search-box flex" @click="clickSearch()">
  8. <image class="search" src="../../static/icon/search-w.png" mode=""></image>
  9. <view class="search-font">输入关键词搜索</view>
  10. </view>
  11. </view>
  12. <!-- 顶部logo and 搜索 end-->
  13. <view class="jg" style="background-color: #fff;"></view>
  14. <!-- 轮播图 start -->
  15. <swiper class="top-swiper" 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.image" />
  19. </swiper-item>
  20. </swiper>
  21. <!-- 轮播图 end -->
  22. <!-- 分类 start -->
  23. <!-- 分类 ed -->
  24. <view class="jg">
  25. </view>
  26. <view class="store-wrap">
  27. <image src="/static/img/index/store1.png" mode="" class="bn1"></image>
  28. <view class="store" v-for="(item,index) in storeList" :key="index" @click="goStore(item)">
  29. <view class="store-info flex">
  30. <image :src="item.logo" class="store-logo" mode=""></image>
  31. <view class="store-base">
  32. <view class="name clamp">
  33. {{item.name}}
  34. </view>
  35. <view class="address clamp2">
  36. {{item.address}}
  37. </view>
  38. <view class="time">
  39. <!-- 营业时间: 08:30~18:30 -->
  40. {{item.status_name}}
  41. </view>
  42. </view>
  43. <view class="store-dis">
  44. {{item.range}}km
  45. </view>
  46. </view>
  47. <view class="goods-wrap" v-if="item.goods.length > 0">
  48. <scroll-view scroll-x="true" style="width: 684rpx;">
  49. <view class="flex">
  50. <view class="good" v-for="(good,indeg) in item.goods" :key="indeg">
  51. <image :src="good.image" class="good-img" mode=""></image>
  52. <view class="good-name clamp">
  53. {{good.store_name}}
  54. </view>
  55. <view class="goood-price">
  56. ¥{{good.price}}
  57. </view>
  58. </view>
  59. </view>
  60. </scroll-view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 商品列表 ed-->
  65. <uni-popup ref="popupkf" type="center">
  66. <view class="popup-box">
  67. <view class="img">
  68. <image src="../../static/img/img009.png" mode=""></image>
  69. </view>
  70. <view class="mian">
  71. <view class="delivery">
  72. <view class="title">已经为您定制专属客服</view>
  73. <image src="../../static/img/img010.png" mode=""></image>
  74. </view>
  75. <view class="nocancel">客服VX:{{ text }}</view>
  76. <view class="comfirm-box">
  77. <view class="cancel" @click="cancel">取消</view>
  78. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  79. </view>
  80. </view>
  81. </view>
  82. </uni-popup>
  83. </view>
  84. </template>
  85. <script>
  86. import { getStoreList } from '@/api/store.js'
  87. import {
  88. loadIndexs,
  89. groom1
  90. } from '@/api/index.js';
  91. import {
  92. getUserInfo,
  93. // spread
  94. } from '@/api/user.js';
  95. import {
  96. getBargainList,
  97. getProducts,
  98. goodsDetail,
  99. poster
  100. } from '@/api/product.js';
  101. import {
  102. saveUrl,
  103. interceptor
  104. } from '@/utils/loginUtils';
  105. import {
  106. mapState,
  107. mapMutations
  108. } from 'vuex';
  109. // #ifdef H5
  110. import {
  111. weixindata,
  112. shareLoad
  113. } from '@/utils/wxAuthorized';
  114. // #endif
  115. export default {
  116. data() {
  117. return {
  118. menu: [],
  119. storeList: [],
  120. bastList: [], //爆款推荐
  121. muted: false,
  122. cateList: [],
  123. text: '13105637866', //客服微信
  124. // page: 1,
  125. limitt: 20,
  126. loadingType: 'more',
  127. current: 0,
  128. shareShow: false, //分享海报
  129. pageProportion: 0, //保存页面基于750宽度的比例
  130. swiperHeight: 0,
  131. checkid: 0,
  132. titleNViewBackground: '',
  133. swiperCurrent: 0,
  134. swiperLength: 0,
  135. carouselList: [], //轮播列表
  136. page: 1,
  137. limit: 5,
  138. latitude: 0,
  139. longitude:0
  140. };
  141. },
  142. computed: {
  143. ...mapState('user', ['hasLogin', 'userInfo']),
  144. ...mapState('baseUrl'),
  145. },
  146. onShareAppMessage(options) {
  147. // 设置菜单中的转发按钮触发转发事件时的转发内容
  148. let pages = getCurrentPages(); //获取加载的页面
  149. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  150. let url = currentPage.route; //当前页面url
  151. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  152. let shareObj = {}
  153. if (this.userInfo.uid) {
  154. shareObj = {
  155. title: this.userInfo.nickname + '邀请您加入易趣果园', // 默认是小程序的名称(可以写slogan等)
  156. path: url + '?scene=' + this.userInfo.uid, // 默认是当前页面,必须是以‘/’开头的完整路径
  157. imageUrl: '',
  158. success: function(res) {
  159. // 转发成功之后的回调
  160. if (res.errMsg == 'shareAppMessage:ok') {}
  161. },
  162. fail: function() {
  163. // 转发失败之后的回调
  164. if (res.errMsg == 'shareAppMessage:fail cancel') {
  165. // 用户取消转发
  166. } else if (res.errMsg == 'shareAppMessage:fail') {
  167. // 转发失败,其中 detail message 为详细失败信息
  168. }
  169. }
  170. };
  171. } else {
  172. shareObj = {
  173. title: '7131', // 默认是小程序的名称(可以写slogan等)
  174. path: url, // 默认是当前页面,必须是以‘/’开头的完整路径
  175. imageUrl: '',
  176. success: function(res) {
  177. // 转发成功之后的回调
  178. if (res.errMsg == 'shareAppMessage:ok') {}
  179. },
  180. fail: function() {
  181. // 转发失败之后的回调
  182. if (res.errMsg == 'shareAppMessage:fail cancel') {
  183. // 用户取消转发
  184. } else if (res.errMsg == 'shareAppMessage:fail') {
  185. // 转发失败,其中 detail message 为详细失败信息
  186. }
  187. }
  188. };
  189. }
  190. return shareObj;
  191. },
  192. onReachBottom() {
  193. console.log('到底', this.baseUrl)
  194. },
  195. onLoad: function(option) {
  196. // #ifdef MP
  197. if (option.scene) {
  198. // 存储小程序邀请人
  199. uni.setStorage({
  200. key: 'spread_code',
  201. data: option.scene
  202. });
  203. }
  204. // #endif
  205. // #ifdef H5
  206. shareLoad()
  207. if (option.spread) {
  208. // 存储小程序邀请人
  209. uni.setStorage({
  210. key: 'spread',
  211. data: option.spread
  212. });
  213. }
  214. // #endif
  215. },
  216. onShow: function() {
  217. this.loadData();
  218. this.getLocation()
  219. },
  220. onHide() {},
  221. onReachBottom() {
  222. this.getStoreList()
  223. },
  224. methods: {
  225. goStore(item) {
  226. uni.setStorageSync('storeInfo',item)
  227. uni.navigateTo({
  228. url: '/pages/category/category?id=' + item.id
  229. })
  230. },
  231. getStoreList() {
  232. console.log(this.loadingType ,'this.loadingType ')
  233. if(this.loadingType == 'noMore' || this.loadingType == 'loading') return;
  234. this.loadingType = 'loading'
  235. try {
  236. getStoreList({
  237. store: 1,
  238. latitude: this.latitude,
  239. longitude: this.longitude,
  240. page: this.page,
  241. limit: this.limit
  242. }).then(res => {
  243. let arr = res.data.list.list
  244. this.storeList = this.storeList.concat(arr)
  245. if(arr.length == this.limit) {
  246. this.loadingType = 'more'
  247. }else {
  248. this.loadingType = 'noMore'
  249. }
  250. this.page++
  251. })
  252. } catch (error) {
  253. console.log(error,'errr');
  254. //TODO handle the exception
  255. }
  256. },
  257. getLocation() {
  258. let that = this
  259. uni.getLocation({
  260. type: 'gcj02',
  261. success(res) {
  262. that.latitude = res.latitude
  263. that.longitude = res.longitude
  264. uni.setStorageSync('lat',res.latitude)
  265. uni.setStorageSync('lng',res.longitude)
  266. console.log(res)
  267. that.getStoreList()
  268. },
  269. fail(err) {
  270. if (err.errMsg.includes('auth deny')) {
  271. // that.showAuthGuide().then(res => {
  272. // console.log(res);
  273. // that.getLocation()
  274. // })
  275. uni.showModal({
  276. title: '权限提示',
  277. content: '需要您授权地理位置权限以正常使用服务',
  278. confirmText: '去设置',
  279. complete(e) {
  280. if (e.comfirm) {
  281. wx.openSetting({
  282. success(settingRes) {
  283. if (settingRes.authSetting['scope.userLocation']) {
  284. // 用户重新授权后再次获取位置
  285. that.getLocation()
  286. } else {
  287. // uni.showToast({
  288. // title: '授权未开启',
  289. // icon: 'none'
  290. // })
  291. }
  292. }
  293. })
  294. }
  295. }
  296. })
  297. }
  298. }
  299. })
  300. },
  301. gogogo(item) {
  302. let url = item.link + '&tit=' + item.tit + '&isgift=0'
  303. if (url.indexOf('http') != -1) {
  304. // #ifdef H5
  305. window.location.href = url
  306. // #endif
  307. } else if (url == '' || url == '#' || url == '/' || url.length < 2) {
  308. uni.navigateTo({
  309. url: '/pages/index/dkf'
  310. })
  311. } else if (url == 'kf') {
  312. this.$refs.popupkf.open()
  313. } else if (url == 'gongzhonghao') {
  314. } else {
  315. uni.navigateTo({
  316. url,
  317. fail() {
  318. uni.switchTab({
  319. url,
  320. })
  321. }
  322. })
  323. }
  324. },
  325. getGoodList() {
  326. let obj = this
  327. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  328. return
  329. }
  330. obj.loadingType = 'loading'
  331. getProducts({
  332. page: 1,
  333. limit: 50,
  334. }).then(res => {
  335. obj.goodList = res.data.data
  336. if (obj.limit == res.data.length) {
  337. obj.loadingType = 'more'
  338. } else {
  339. obj.loadingType = 'noMore'
  340. }
  341. })
  342. },
  343. navto(url, type = 0) {
  344. if (type == 1) {
  345. if (!this.hasLogin) {
  346. // 保存地址
  347. saveUrl();
  348. // 登录拦截
  349. interceptor();
  350. } else {
  351. uni.navigateTo({
  352. url,
  353. fail() {
  354. uni.switchTab({
  355. url
  356. })
  357. }
  358. })
  359. }
  360. } else {
  361. uni.navigateTo({
  362. url,
  363. fail() {
  364. uni.switchTab({
  365. url
  366. })
  367. }
  368. })
  369. }
  370. },
  371. navTo(url) {
  372. if (url == '') {
  373. this.$msg('暂未开通,敬请期待');
  374. } else {
  375. this.navto(url)
  376. }
  377. },
  378. // 點擊搜索框
  379. clickSearch() {
  380. uni.navigateTo({
  381. url: '/pages/product/search'
  382. });
  383. },
  384. // 监听图片加载完成
  385. onImageError(key, index) {
  386. this[key][index].image = '/static/error/errorImage.jpg';
  387. },
  388. // 请求载入数据
  389. async loadData() {
  390. loadIndexs({})
  391. .then(({
  392. data
  393. }) => {
  394. if (data.to_url) {
  395. window.open(data.to_url)
  396. }
  397. let goods = data.info;
  398. this.carouselList = data.banner;
  399. this.menu = data.menu
  400. console.log(this.carouselList, '商品信息');
  401. this.swiperLength = this.carouselList.length;
  402. this.bastList = data.likeInfo; //会员礼包
  403. data.info.firstList.forEach(e => {
  404. e.isVip = e.store_type ? "3" : "0"
  405. })
  406. this.firstList = data.info.firstList //首页商品
  407. if (data.lovely.length > 0) {
  408. this.cateList = data.lovely
  409. }
  410. uni.stopPullDownRefresh();
  411. })
  412. .catch(e => {
  413. uni.stopPullDownRefresh();
  414. });
  415. },
  416. //轮播图切换修改背景色
  417. swiperChange(e) {
  418. const index = e.detail.current;
  419. this.swiperCurrent = index;
  420. this.titleNViewBackground = this.carouselList[index].background;
  421. },
  422. // 轮播图跳转
  423. bannerNavToUrl(item) {
  424. // #ifdef H5
  425. console.log(item.wap_url.indexOf('http'), 'banner');
  426. if (item.wap_url.indexOf('http') >= 0) {
  427. window.location.href = item.wap_url;
  428. }
  429. // uni.navigateTo({
  430. // url: '/pages/zero/order'
  431. // })
  432. // #endif
  433. //测试数据没有写id,用title代替
  434. uni.navigateTo({
  435. url: item.wap_url,
  436. fail() {
  437. uni.switchTab({
  438. url: item.wap_url
  439. })
  440. }
  441. });
  442. },
  443. comfirm(text) {
  444. console.log(text);
  445. const result = this.uniCopy(text);
  446. if (result === false) {
  447. uni.showToast({
  448. title: '不支持'
  449. });
  450. } else {
  451. uni.showToast({
  452. title: '复制成功',
  453. icon: 'none'
  454. });
  455. }
  456. this.$refs.popupkf.close();
  457. },
  458. uniCopy(content) {
  459. /**
  460. * 小程序端 和 app端的复制逻辑
  461. */
  462. //#ifndef H5
  463. uni.setClipboardData({
  464. data: content,
  465. success: function() {
  466. console.log('success');
  467. return true;
  468. }
  469. });
  470. //#endif
  471. /**
  472. * H5端的复制逻辑
  473. */
  474. // #ifdef H5
  475. if (!document.queryCommandSupported('copy')) {
  476. //为了兼容有些浏览器 queryCommandSupported 的判断
  477. // 不支持
  478. return false;
  479. }
  480. let textarea = document.createElement('textarea');
  481. textarea.value = content;
  482. textarea.readOnly = 'readOnly';
  483. document.body.appendChild(textarea);
  484. textarea.select(); // 选择对象
  485. textarea.setSelectionRange(0, content.length); //核心
  486. let result = document.execCommand('copy'); // 执行浏览器复制命令
  487. textarea.remove();
  488. return result;
  489. // #endif
  490. },
  491. // 打开客服
  492. openKf() {
  493. this.$refs.popupkf.open();
  494. },
  495. // 关闭客服
  496. cancel() {
  497. this.$refs.popupkf.close();
  498. },
  499. }
  500. };
  501. </script>
  502. <style lang="scss" scoped>
  503. page {
  504. min-height: 100%;
  505. height: auto;
  506. }
  507. // 顶部搜索
  508. .top-search {
  509. height: 80rpx;
  510. padding: 0 20rpx;
  511. position: relative;
  512. .top-logo {
  513. width: 50rpx;
  514. // height: 50rpx;
  515. margin-right: 10rpx;
  516. image {
  517. width: 48rpx;
  518. }
  519. }
  520. .search-box {
  521. justify-content: center;
  522. width: 698rpx;
  523. height: 60rpx;
  524. background: rgba(255, 255, 255, 0.5);
  525. color: #fff;
  526. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  527. border-radius: 30rpx;
  528. .search {
  529. width: 34rpx;
  530. height: 34rpx;
  531. }
  532. .search-font {
  533. margin-left: 14rpx;
  534. font-size: 28rpx;
  535. font-weight: 500;
  536. color: #fff;
  537. }
  538. }
  539. }
  540. // 顶部轮播图
  541. .top-swiper {
  542. background-color: #fff;
  543. width: 690rpx;
  544. height: 320rpx;
  545. margin: auto;
  546. .carousel-item {
  547. image {
  548. width: 100%;
  549. height: 100%;
  550. border-radius: 20rpx;
  551. }
  552. }
  553. // margin: 20rpx 0 0;
  554. }
  555. .swiper-btm {
  556. height: 60rpx;
  557. width: 750rpx;
  558. background-color: #fff;
  559. margin-bottom: 20rpx;
  560. font-size: 26rpx;
  561. font-weight: 500;
  562. color: #333333;
  563. .btm-item {
  564. flex-grow: 1;
  565. justify-content: center;
  566. image {
  567. width: 25rpx;
  568. height: 25rpx;
  569. margin-right: 14rpx;
  570. }
  571. }
  572. }
  573. .jg {
  574. height: 20rpx;
  575. background: #F8F8F8;
  576. }
  577. // 分类
  578. .cate-section {
  579. justify-content: flex-start;
  580. background-color: #fff;
  581. padding: 0 0 30rpx;
  582. flex-wrap: wrap;
  583. .cate-item {
  584. padding-top: 30rpx;
  585. flex-grow: 0;
  586. width: 20%;
  587. flex-direction: column;
  588. text-align: center;
  589. align-items: center;
  590. justify-content: center;
  591. .img-wrapper {
  592. width: 123rpx;
  593. height: 123rpx;
  594. border-radius: 20rpx;
  595. position: relative;
  596. image {
  597. width: 100%;
  598. height: 100%;
  599. position: absolute;
  600. left: 50%;
  601. top: 50%;
  602. transform: translate(-50%, -50%);
  603. }
  604. }
  605. .item-title {
  606. margin-top: 15rpx;
  607. font-size: 26rpx;
  608. font-weight: 500;
  609. }
  610. }
  611. }
  612. .hot-wrap {
  613. background-color: #fff;
  614. padding-top: 20rpx;
  615. .tit {
  616. display: block;
  617. height: 40rpx;
  618. margin: 20rpx auto 40rpx;
  619. }
  620. .hot-list {
  621. // margin-top: 38rpx;
  622. width: 100%;
  623. display: flex;
  624. flex-wrap: wrap;
  625. padding: 0 20rpx 30rpx;
  626. justify-content: space-between;
  627. .hotgoods-item {
  628. width: 345rpx;
  629. background-color: #ffffff;
  630. border-radius: 12rpx;
  631. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  632. margin-bottom: 15rpx;
  633. .image-wrapper {
  634. width: 345rpx;
  635. height: 345rpx;
  636. border-radius: 3px;
  637. overflow: hidden;
  638. position: relative;
  639. .image-bg {
  640. position: absolute;
  641. top: 0;
  642. left: 0;
  643. right: 0;
  644. bottom: 0;
  645. width: 100%;
  646. height: 100%;
  647. opacity: 1;
  648. border-radius: 12rpx 12rpx 0 0;
  649. z-index: 2;
  650. }
  651. .image {
  652. width: 100%;
  653. height: 100%;
  654. opacity: 1;
  655. border-radius: 12rpx 12rpx 0 0;
  656. }
  657. }
  658. .title {
  659. margin-top: 24rpx;
  660. padding: 0 20rpx;
  661. font-size: 32rpx;
  662. font-weight: 500;
  663. }
  664. .hot-price {
  665. display: flex;
  666. justify-content: flex-start;
  667. align-items: center;
  668. width: 100%;
  669. padding: 0 10rpx;
  670. // padding: 14rpx 0 30rpx;
  671. .hotPrice-box {
  672. padding: 2rpx 6rpx;
  673. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  674. border-radius: 5rpx;
  675. text-align: center;
  676. line-height: 28rpx;
  677. font-size: 20rpx;
  678. font-family: Source Han Sans CN;
  679. font-weight: 400;
  680. color: #ffffff;
  681. }
  682. .price {
  683. margin-left: 10rpx;
  684. font-size: 36rpx;
  685. color: #ff0000;
  686. font-weight: 500;
  687. display: flex;
  688. width: 100%;
  689. justify-content: flex-start;
  690. align-items: center;
  691. .jf {
  692. font-size: 20rpx;
  693. }
  694. .give-jf {
  695. display: inline-block;
  696. padding: 8rpx;
  697. background: linear-gradient(90deg, #FF834D, #FF2600);
  698. border-radius: 12rpx 0px 12rpx 0px;
  699. font-size: 22rpx;
  700. font-weight: 500;
  701. color: #FFFFFF;
  702. margin-left: 22rpx;
  703. }
  704. .ot-pirce {
  705. margin-left: 7rpx;
  706. font-size: 26rpx;
  707. font-weight: 500;
  708. text-decoration: line-through;
  709. color: #999999;
  710. align-self: flex-end;
  711. }
  712. }
  713. .yuanPrice {
  714. margin-left: 10rpx;
  715. font-size: 20rpx;
  716. font-family: PingFang SC;
  717. font-weight: 500;
  718. text-decoration: line-through;
  719. color: #999999;
  720. }
  721. .cart-icon {
  722. image {
  723. width: 44rpx;
  724. height: 44rpx;
  725. }
  726. }
  727. }
  728. }
  729. }
  730. }
  731. .popup-box {
  732. width: 522rpx;
  733. height: 605rpx;
  734. background-color: #ffffff;
  735. border-radius: 20rpx;
  736. position: relative;
  737. .img {
  738. position: relative;
  739. top: -56rpx;
  740. left: 0;
  741. width: 522rpx;
  742. height: 132rpx;
  743. display: flex;
  744. justify-content: center;
  745. image {
  746. border-radius: 20rpx 20rpx 0 0;
  747. width: 450rpx;
  748. height: 132rpx;
  749. }
  750. }
  751. .mian {
  752. margin-top: -44rpx;
  753. display: flex;
  754. flex-direction: column;
  755. align-items: center;
  756. // padding: 32rpx 32rpx;
  757. background-color: #ffffff;
  758. border-radius: 0 0 20rpx 20rpx;
  759. text-align: center;
  760. .delivery {
  761. font-size: 40rpx;
  762. color: #333333;
  763. display: flex;
  764. align-items: center;
  765. flex-direction: column;
  766. image {
  767. margin-top: 48rpx;
  768. width: 172rpx;
  769. height: 160rpx;
  770. }
  771. }
  772. .nocancel {
  773. font-size: 32rpx;
  774. color: #333333;
  775. margin-top: 14rpx;
  776. }
  777. .comfirm-box {
  778. margin-top: 52rpx;
  779. display: flex;
  780. // margin-bottom: 32rpx;
  781. // justify-content: space-around;
  782. .cancel {
  783. display: flex;
  784. align-items: center;
  785. justify-content: center;
  786. width: 197rpx;
  787. height: 74rpx;
  788. border: 1px solid #dcc786;
  789. border-radius: 38rpx;
  790. font-size: 32rpx;
  791. color: #605128;
  792. }
  793. .comfirm {
  794. margin-left: 32rpx;
  795. display: flex;
  796. align-items: center;
  797. justify-content: center;
  798. width: 197rpx;
  799. height: 74rpx;
  800. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  801. border-radius: 38px;
  802. font-size: 32rpx;
  803. color: #605128;
  804. }
  805. }
  806. }
  807. }
  808. .top-bg {
  809. height: 450rpx;
  810. //#f53934
  811. background-image: linear-gradient(to bottom, $base-color, #fff);
  812. position: absolute;
  813. top: 0;
  814. width: 100%;
  815. }
  816. .gsjs {
  817. width: 100%;
  818. }
  819. .status_bar {
  820. height: var(--status-bar-height);
  821. width: 100%;
  822. }
  823. .gzh {
  824. width: 522rpx;
  825. background-color: #fff;
  826. border-radius: 20rpx;
  827. padding: 35rpx 20rpx;
  828. image {
  829. display: block;
  830. margin: auto;
  831. width: 400rpx;
  832. height: 400rpx;
  833. }
  834. text-align: center;
  835. font-size: 32rpx;
  836. }
  837. .store-wrap {
  838. padding: 20rpx 0;
  839. background-color: #fff;
  840. .bn1 {
  841. display: block;
  842. width: 374rpx;
  843. height: 32rpx;
  844. margin: 20rpx auto;
  845. }
  846. .store {
  847. padding: 35rpx 33rpx;
  848. .store-info {
  849. align-items: flex-start;
  850. .store-logo {
  851. width: 145rpx;
  852. height: 145rpx;
  853. margin-right: 15rpx;
  854. background-color: #eee;
  855. border-radius: 10rpx;
  856. }
  857. .store-base {
  858. height: 145rpx;
  859. max-width: 354rpx;
  860. margin-right: auto;
  861. position: relative;
  862. .name {
  863. font-weight: bold;
  864. font-size: 28rpx;
  865. color: #000419;
  866. margin-bottom: 5rpx;
  867. }
  868. .address {
  869. font-size: 22rpx;
  870. color: #666666;
  871. }
  872. .time {
  873. display: inline-block;
  874. padding: 7rpx 11rpx 6rpx 8rpx;
  875. background: #ffede6;
  876. border-radius: 5rpx;
  877. color: #FF6B2E;
  878. font-size: 20rpx;
  879. position: absolute;
  880. bottom: 0;
  881. }
  882. }
  883. .store-dis {
  884. font-size: 22rpx;
  885. color: #273551;
  886. }
  887. }
  888. .goods-wrap {
  889. margin-top: 20rpx;
  890. .good {
  891. width: 145rpx;
  892. margin-right: 10rpx;
  893. .good-img {
  894. width: 145rpx;
  895. height: 145rpx;
  896. color: #000217;
  897. background-color: #eee;
  898. border-radius: 5rpx;
  899. }
  900. .good-name {
  901. font-size: 22rpx;
  902. color: #000217;
  903. }
  904. .goood-price {
  905. font-weight: bold;
  906. font-size: 26rpx;
  907. color: #FF591F;
  908. }
  909. }
  910. }
  911. }
  912. }
  913. </style>