index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="status_bar"></view>
  5. <view class="bg">
  6. <image src="../../static/img/index-bg.png" mode="widthFix"></image>
  7. </view>
  8. <view class="index-title">
  9. <image class="index-title-bg" src="../../static/img/index-title.png" mode="widthFix"></image>
  10. </view>
  11. <!-- 分类start -->
  12. <view class="care">
  13. <view class="title">
  14. <image class="title-icon" src="../../static/img/index-icon.png" mode="widthFix"></image>
  15. <view class="title-font">傣方美颜 · 解锁福利</view>
  16. <view class="title-font title-tip">走进滇润堂</view>
  17. </view>
  18. <view class="care-main flex">
  19. <view class="care-item shang" @click="navto('/pages/category/category')">
  20. <image src="../../static/img/index1.png" mode="widthFix"></image>
  21. </view>
  22. <view class="care-item" @click="navto('/pages/index/artDetail?id=1')">
  23. <image src="../../static/img/index2.png" mode="widthFix"></image>
  24. </view>
  25. <view class="care-item" @click="navto('/pages/user/shareQrCode',1)">
  26. <image src="../../static/img/index3.png" mode="widthFix"></image>
  27. </view>
  28. <view class="care-item shang" @click="openKf()">
  29. <image src="../../static/img/index4.png" mode="widthFix"></image>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 分类end -->
  34. <!-- 明星商品start -->
  35. <view class="gift-box">
  36. <view class="title">
  37. <image class="title-icon" src="../../static/img/index-icon.png" mode="widthFix"></image>
  38. <view class="title-font">古方养颜 · 傣族美学</view>
  39. <view class="title-font title-tip">明星礼包套餐</view>
  40. </view>
  41. <view class="gift">
  42. <view class="gift-item" v-for="(item,index) in goodList"
  43. @click="navto('/pages/product/product?id=' + item.id)">
  44. <view class="gift-bg">
  45. <image src="../../static/img/gift-bg.png" mode=""></image>
  46. </view>
  47. <view class="gift-image">
  48. <image class="gift-image-bg" :src="item.image" mode=""></image>
  49. <view class="gift-image-title">
  50. <view class="gift-title-bg">
  51. <image src="../../static/img/gift-title.png" mode=""></image>
  52. </view>
  53. <!-- <view class="gift-title-font">
  54. 爆款
  55. 直降
  56. </view> -->
  57. </view>
  58. </view>
  59. <view class="gift-info">
  60. <view class="gift-title">明星产品 清润养肤</view>
  61. <view class="gift-title name clamp">{{ item.store_name }}</view>
  62. <view class="gift-btn-box">
  63. <view class="gift-price">
  64. 钜惠价: <text class="gift-num">¥{{ item.price*1 }}</text>
  65. </view>
  66. <view class="gift-btn">
  67. 立即抢购 >
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 明星商品end -->
  75. <!-- 普通商品start -->
  76. <view class="shop-box">
  77. <view class="title">
  78. <image class="title-icon" src="../../static/img/index-icon.png" mode="widthFix"></image>
  79. <view class="title-font">古方养颜 · 傣族美学</view>
  80. <view class="title-font title-tip">爆款商品为您推荐</view>
  81. </view>
  82. <view class="shop-main flex">
  83. <view class="shop-item" v-for="(item,index) in firstList"
  84. @click="navto('/pages/product/product?id=' + item.id)">
  85. <view class="shop-bg">
  86. <image src="../../static/img/shop-bg.png" mode=""></image>
  87. </view>
  88. <view class="shop-image">
  89. <image class="shop-image-bg" :src="item.image" mode=""></image>
  90. <!-- <view class="shop-image-title">
  91. <view class="shop-title-bg">
  92. <image src="../../static/img/shop-title.png" mode=""></image>
  93. </view>
  94. </view> -->
  95. </view>
  96. <view class="shop-info">
  97. <view class="shop-title">花容清透 养肤美颜</view>
  98. <view class="shop-title shop-name clamp">{{ item.store_name }}</view>
  99. <view class="shop-btn-box">
  100. <view class="shop-price">
  101. <!-- 钜惠价: --> <text class="shop-num">¥{{ item.price*1 }}</text>
  102. </view>
  103. <view class="shop-btn">
  104. 立即抢购 >
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!-- 普通商品end -->
  112. <uni-popup ref="popupkf" type="center">
  113. <view class="popup-box">
  114. <view class="img">
  115. <image src="../../static/img/img009.png" mode=""></image>
  116. </view>
  117. <view class="mian">
  118. <view class="delivery">
  119. <view class="title">已经为您定制专属客服</view>
  120. <image src="../../static/img/img010.png" mode=""></image>
  121. </view>
  122. <view class="nocancel">客服1VX:{{ text1 }}</view>
  123. <view class="nocancel">客服2VX:{{ text2 }}</view>
  124. <view class="comfirm-box">
  125. <view class="cancel" @click="comfirm(text1)">复制客服1</view>
  126. <view class="comfirm" @click="comfirm(text2)">复制客服2</view>
  127. </view>
  128. </view>
  129. </view>
  130. </uni-popup>
  131. </view>
  132. </template>
  133. <script>
  134. import {
  135. loadIndexs,
  136. groom
  137. } from '@/api/index.js';
  138. import {
  139. getUserInfo,
  140. spread
  141. } from '@/api/user.js';
  142. import {
  143. getBargainList,
  144. getProducts,
  145. goodsDetail,
  146. poster
  147. } from '@/api/product.js';
  148. import {
  149. saveUrl,
  150. interceptor
  151. } from '@/utils/loginUtils';
  152. import {
  153. mapState,
  154. mapMutations
  155. } from 'vuex';
  156. // #ifdef H5
  157. import {
  158. weixindata,
  159. shareLoad
  160. } from '@/utils/wxAuthorized';
  161. // #endif
  162. export default {
  163. data() {
  164. return {
  165. text1: 'yangqianqian131419', //客服1微信
  166. text2: 'AHFM134', //客服2微信
  167. page: 1,
  168. limit: 10,
  169. loadingType: 'more',
  170. swiperHeight: 0,
  171. checkid: 0,
  172. titleNViewBackground: '',
  173. swiperCurrent: 0,
  174. swiperLength: 0,
  175. carouselList: [], //轮播列表
  176. firstList: [],
  177. goodList: [], //商品列表
  178. shopList: []
  179. };
  180. },
  181. computed: {
  182. ...mapState(['loginInterceptor', 'baseURL', 'weichatObj']),
  183. ...mapState('user', ['hasLogin', 'userInfo'])
  184. },
  185. onShareAppMessage(options) {
  186. // 设置菜单中的转发按钮触发转发事件时的转发内容
  187. let pages = getCurrentPages(); //获取加载的页面
  188. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  189. let url = currentPage.route; //当前页面url
  190. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  191. let shareObj = {}
  192. if (this.userInfo.uid) {
  193. shareObj = {
  194. title: this.userInfo.nickname + '邀请您加入滇润堂', // 默认是小程序的名称(可以写slogan等)
  195. path: url + '?scene=' + this.userInfo.uid, // 默认是当前页面,必须是以‘/’开头的完整路径
  196. desc: this.userInfo.nickname + '邀请您加入滇润堂',
  197. imgUrl: '../../static/img/logo.png',
  198. success: function(res) {
  199. // 转发成功之后的回调
  200. if (res.errMsg == 'shareAppMessage:ok') {}
  201. },
  202. fail: function() {
  203. // 转发失败之后的回调
  204. if (res.errMsg == 'shareAppMessage:fail cancel') {
  205. // 用户取消转发
  206. } else if (res.errMsg == 'shareAppMessage:fail') {
  207. // 转发失败,其中 detail message 为详细失败信息
  208. }
  209. }
  210. };
  211. } else {
  212. shareObj = {
  213. title: '滇润堂', // 默认是小程序的名称(可以写slogan等)
  214. desc: '滇润堂',
  215. path: url, // 默认是当前页面,必须是以‘/’开头的完整路径
  216. imgUrl: '../../static/img/logo.png',
  217. success: function(res) {
  218. // 转发成功之后的回调
  219. if (res.errMsg == 'shareAppMessage:ok') {}
  220. },
  221. fail: function() {
  222. // 转发失败之后的回调
  223. if (res.errMsg == 'shareAppMessage:fail cancel') {
  224. // 用户取消转发
  225. } else if (res.errMsg == 'shareAppMessage:fail') {
  226. // 转发失败,其中 detail message 为详细失败信息
  227. }
  228. }
  229. };
  230. }
  231. console.log(shareObj);
  232. return shareObj;
  233. },
  234. onLoad: function(option) {
  235. // #ifndef MP
  236. if (option.spread) {
  237. // 存储其他邀请人
  238. uni.setStorageSync('spread', option.spread);
  239. }
  240. // #endif
  241. // #ifdef MP
  242. if (option.scene) {
  243. // 存储小程序邀请人
  244. uni.setStorage({
  245. key: 'spread_code',
  246. data: option.scene
  247. });
  248. uni.setStorage({
  249. key: 'spread',
  250. data: option.scene
  251. });
  252. }
  253. // #endif
  254. // #ifdef H5
  255. this.IndexShare();
  256. //#endif
  257. },
  258. onShow: function() {
  259. this.getGoodList();
  260. this.loadData();
  261. },
  262. methods: {
  263. ...mapMutations('user', ['setUserInfo']),
  264. // #ifdef H5
  265. IndexShare() {
  266. let obj = this;
  267. let pages = getCurrentPages();
  268. // 获取当前页面
  269. let page = pages[pages.length - 1];
  270. let path = '#/' + page.route + '?';
  271. // 保存传值
  272. for (let i in page.options) {
  273. path += i + '=' + page.options[i] + '&';
  274. }
  275. console.log(obj.Path);
  276. // 保存邀请人
  277. path += 'spread=' + this.userInfo.uid;
  278. let data = {
  279. link: this.baseURL + '/index/' + path,
  280. title: this.userInfo.nickname + '邀请您进入滇润堂',
  281. desc: '欢迎加入滇润堂',
  282. imgUrl: 'https://drt.liuniukj.com/logo.png'
  283. };
  284. console.log(data, '分享数据');
  285. shareLoad(data);
  286. },
  287. // #endif
  288. getGoodList() {
  289. let obj = this;
  290. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  291. return;
  292. }
  293. obj.loadingType = 'loading';
  294. getProducts({
  295. page: 1,
  296. limit: 1000,
  297. set_vip: 1
  298. }).then(res => {
  299. obj.goodList = res.data;
  300. if (obj.limit == res.data.length) {
  301. obj.page++;
  302. obj.loadingType = 'more';
  303. } else {
  304. obj.loadingType = 'noMore';
  305. }
  306. });
  307. },
  308. navto(url, type = 0) {
  309. if (type == 1) {
  310. if (!this.hasLogin) {
  311. // 保存地址
  312. saveUrl();
  313. // 登录拦截
  314. interceptor();
  315. } else {
  316. uni.navigateTo({
  317. url,
  318. fail() {
  319. uni.switchTab({
  320. url
  321. })
  322. }
  323. })
  324. }
  325. } else {
  326. uni.navigateTo({
  327. url,
  328. fail() {
  329. uni.switchTab({
  330. url
  331. })
  332. }
  333. })
  334. }
  335. },
  336. navTo(url) {
  337. if (url == '') {
  338. this.$api.msg('暂未开通,敬请期待');
  339. } else {
  340. this.navto(url)
  341. }
  342. },
  343. // 點擊搜索框
  344. clickSearch() {
  345. uni.navigateTo({
  346. url: '/pages/product/search'
  347. });
  348. },
  349. // 监听图片加载完成
  350. onImageError(key, index) {
  351. this[key][index].image = '/static/error/errorImage.jpg';
  352. },
  353. // 请求载入数据
  354. async loadData() {
  355. loadIndexs({})
  356. .then(({
  357. data
  358. }) => {
  359. let goods = data.info;
  360. console.log(goods, '商品信息');
  361. this.carouselList = data.banner;
  362. this.swiperLength = this.carouselList.length;
  363. data.info.firstList.forEach(e => {
  364. e.isVip = e.store_type ? '3' : '0';
  365. });
  366. this.firstList = data.info.firstList; //首页商品
  367. uni.stopPullDownRefresh();
  368. })
  369. .catch(e => {
  370. uni.stopPullDownRefresh();
  371. });
  372. },
  373. //轮播图切换修改背景色
  374. swiperChange(e) {
  375. const index = e.detail.current;
  376. this.swiperCurrent = index;
  377. this.titleNViewBackground = this.carouselList[index].background;
  378. },
  379. // 轮播图跳转
  380. bannerNavToUrl(item) {
  381. // #ifdef H5
  382. console.log(item.wap_url.indexOf('http'), 'banner');
  383. if (item.wap_url.indexOf('http') >= 0) {
  384. window.location.href = item.wap_url;
  385. }
  386. // #endif
  387. //测试数据没有写id,用title代替
  388. uni.navigateTo({
  389. url: item.wap_url
  390. });
  391. },
  392. comfirm(text) {
  393. console.log(text);
  394. const result = this.uniCopy(text);
  395. if (result === false) {
  396. uni.showToast({
  397. title: '不支持'
  398. });
  399. } else {
  400. uni.showToast({
  401. title: '复制成功',
  402. icon: 'none'
  403. });
  404. }
  405. this.$refs.popupkf.close();
  406. },
  407. uniCopy(content) {
  408. /**
  409. * 小程序端 和 app端的复制逻辑
  410. */
  411. //#ifndef H5
  412. uni.setClipboardData({
  413. data: content,
  414. success: function() {
  415. console.log('success');
  416. return true;
  417. }
  418. });
  419. //#endif
  420. /**
  421. * H5端的复制逻辑
  422. */
  423. // #ifdef H5
  424. if (!document.queryCommandSupported('copy')) {
  425. //为了兼容有些浏览器 queryCommandSupported 的判断
  426. // 不支持
  427. return false;
  428. }
  429. let textarea = document.createElement('textarea');
  430. textarea.value = content;
  431. textarea.readOnly = 'readOnly';
  432. document.body.appendChild(textarea);
  433. textarea.select(); // 选择对象
  434. textarea.setSelectionRange(0, content.length); //核心
  435. let result = document.execCommand('copy'); // 执行浏览器复制命令
  436. textarea.remove();
  437. return result;
  438. // #endif
  439. },
  440. // 打开客服
  441. openKf() {
  442. this.$refs.popupkf.open();
  443. },
  444. // 关闭客服
  445. cancel() {
  446. this.$refs.popupkf.close();
  447. },
  448. }
  449. };
  450. </script>
  451. <style lang="scss">
  452. page {
  453. min-height: 100%;
  454. height: auto;
  455. background: #c3e3e0;
  456. }
  457. .bg {
  458. position: absolute;
  459. top: 0;
  460. left: 0;
  461. right: 0;
  462. width: 750rpx;
  463. image {
  464. width: 100%;
  465. }
  466. }
  467. .index-title {
  468. position: relative;
  469. z-index: 2;
  470. width: 582rpx;
  471. height: 585rpx;
  472. padding-top: 100rpx;
  473. margin: 0 auto;
  474. .index-title-bg {
  475. width: 100%;
  476. }
  477. }
  478. .title {
  479. display: flex;
  480. flex-direction: column;
  481. justify-content: center;
  482. align-items: center;
  483. .title-icon {
  484. width: 30rpx;
  485. }
  486. .title-font {
  487. margin-top: 20rpx;
  488. position: relative;
  489. z-index: 2;
  490. font-size: 42rpx;
  491. font-family: Source Han Serif SC;
  492. font-weight: bold;
  493. color: #2E6D5C;
  494. // text-shadow: 0rpx 0rpx 0rpx #FFFFFF;
  495. background: linear-gradient(-84deg, #235144 0%, #3a8a74 100%);
  496. -webkit-background-clip: text;
  497. -webkit-text-fill-color: transparent;
  498. }
  499. .title-tip {
  500. font-size: 26rpx;
  501. }
  502. }
  503. .care {
  504. margin-top: 54rpx;
  505. .care-main {
  506. justify-content: space-around;
  507. margin-top: 25rpx;
  508. padding: 0 20rpx;
  509. .care-item {
  510. position: relative;
  511. z-index: 2;
  512. width: 180rpx;
  513. image {
  514. width: 100%;
  515. }
  516. }
  517. .shang {
  518. top: -50rpx;
  519. }
  520. }
  521. }
  522. .gift-box {
  523. margin-top: 40rpx;
  524. .gift {
  525. margin-top: 36rpx;
  526. .gift-item {
  527. position: relative;
  528. width: 690rpx;
  529. margin: 0 auto 60rpx;
  530. display: flex;
  531. align-items: flex-start;
  532. padding: 50rpx 38rpx 56rpx;
  533. .gift-bg {
  534. position: absolute;
  535. top: 0;
  536. left: 0;
  537. right: 0;
  538. width: 100%;
  539. height: 100%;
  540. image {
  541. width: 100%;
  542. height: 100%;
  543. }
  544. }
  545. .gift-image {
  546. position: relative;
  547. z-index: 2;
  548. width: 233rpx;
  549. height: 233rpx;
  550. background: #FFFFFF;
  551. border-radius: 13rpx;
  552. .gift-image-bg {
  553. width: 233rpx;
  554. height: 233rpx;
  555. border-radius: 13rpx;
  556. }
  557. .gift-image-title {
  558. position: absolute;
  559. top: -30rpx;
  560. right: -20rpx;
  561. width: 90rpx;
  562. height: 90rpx;
  563. .gift-title-bg {
  564. position: absolute;
  565. top: 0;
  566. right: 0;
  567. left: 0;
  568. width: 90rpx;
  569. height: 90rpx;
  570. image {
  571. width: 100%;
  572. height: 100%;
  573. }
  574. }
  575. .gift-title-font {
  576. text-align: center;
  577. position: relative;
  578. z-index: 2;
  579. font-size: 20rpx;
  580. font-family: Source Han Serif SC;
  581. font-weight: bold;
  582. color: #FFF3E4;
  583. }
  584. }
  585. }
  586. .gift-info {
  587. width: 60%;
  588. margin-left: 32rpx;
  589. position: relative;
  590. .gift-title {
  591. font-size: 38rpx;
  592. font-family: Source Han Serif SC;
  593. font-weight: bold;
  594. color: #2E6D5C;
  595. background: linear-gradient(-84deg, #235144 0%, #3a8a74 100%);
  596. -webkit-background-clip: text;
  597. -webkit-text-fill-color: transparent;
  598. }
  599. .name {
  600. margin-top: 20rpx;
  601. font-size: 24rpx;
  602. }
  603. .gift-btn-box {
  604. width: auto;
  605. margin-top: 90rpx;
  606. display: flex;
  607. justify-content: space-between;
  608. align-items: center;
  609. background: #FFFFFF;
  610. border: 1px solid #F26150;
  611. border-radius: 34rpx;
  612. height: 50rpx;
  613. .gift-price {
  614. padding-left: 10rpx;
  615. font-size: 18rpx;
  616. font-family: FZYanSongS-DB-GB;
  617. font-weight: 400;
  618. color: #E36847;
  619. .gift-num {
  620. font-size: 30rpx;
  621. }
  622. }
  623. .gift-btn {
  624. padding: 0 20rpx;
  625. height: 50rpx;
  626. margin-left: 20rpx;
  627. background: #E36847;
  628. border-radius: 34rpx;
  629. display: flex;
  630. justify-content: center;
  631. align-items: center;
  632. font-size: 17rpx;
  633. font-family: PingFang SC;
  634. font-weight: bold;
  635. color: #FFFFFF;
  636. }
  637. }
  638. }
  639. }
  640. }
  641. }
  642. .shop-box {
  643. margin-top: 40rpx;
  644. .shop-main {
  645. margin: 36rpx 0 0 36rpx;
  646. flex-wrap: wrap;
  647. justify-content: flex-start;
  648. .shop-item {
  649. position: relative;
  650. width: 356rpx;
  651. margin: 0 0 60rpx;
  652. display: flex;
  653. flex-direction: column;
  654. align-items: center;
  655. justify-content: center;
  656. padding: 44rpx 50rpx 10rpx 40rpx;
  657. .shop-bg {
  658. position: absolute;
  659. top: 0;
  660. left: 0;
  661. right: 0;
  662. width: 100%;
  663. height: 100%;
  664. image {
  665. width: 100%;
  666. height: 100%;
  667. }
  668. }
  669. .shop-image {
  670. position: relative;
  671. z-index: 2;
  672. width: 230rpx;
  673. height: 230rpx;
  674. background: #FFFFFF;
  675. border-radius: 13rpx;
  676. .shop-image-bg {
  677. width: 233rpx;
  678. height: 233rpx;
  679. border-radius: 13rpx;
  680. }
  681. .shop-image-title {
  682. position: absolute;
  683. top: -30rpx;
  684. right: -20rpx;
  685. width: 72rpx;
  686. height: 72rpx;
  687. .shop-title-bg {
  688. position: absolute;
  689. top: 0;
  690. right: 0;
  691. left: 0;
  692. width: 72rpx;
  693. height: 72rpx;
  694. image {
  695. width: 100%;
  696. height: 100%;
  697. }
  698. }
  699. .shop-title-font {
  700. text-align: center;
  701. position: relative;
  702. z-index: 2;
  703. font-size: 20rpx;
  704. font-family: Source Han Serif SC;
  705. font-weight: bold;
  706. color: #FFF3E4;
  707. }
  708. }
  709. }
  710. .shop-info {
  711. position: relative;
  712. z-index: 2;
  713. width: 100%;
  714. }
  715. .shop-title {
  716. margin-top: 20rpx;
  717. font-size: 32rpx;
  718. font-family: Source Han Serif SC;
  719. font-weight: bold;
  720. color: #2E6D5C;
  721. background: linear-gradient(-84deg, #235144 0%, #3a8a74 100%);
  722. -webkit-background-clip: text;
  723. -webkit-text-fill-color: transparent;
  724. }
  725. .shop-name {
  726. text-align: center;
  727. margin-top: 20rpx;
  728. font-size: 20rpx;
  729. }
  730. .shop-btn-box {
  731. margin-top: 12rpx;
  732. display: flex;
  733. justify-content: space-between;
  734. align-items: center;
  735. background: #FFFFFF;
  736. border: 1px solid #F26150;
  737. border-radius: 34rpx;
  738. height: 50rpx;
  739. .shop-price {
  740. padding-left: 10rpx;
  741. font-size: 12rpx;
  742. font-family: FZYanSongS-DB-GB;
  743. font-weight: 400;
  744. color: red;
  745. .shop-num {
  746. font-size: 30rpx;
  747. }
  748. }
  749. .shop-btn {
  750. padding: 0 20rpx;
  751. height: 50rpx;
  752. margin-left: 20rpx;
  753. background: #E36847;
  754. border-radius: 34rpx;
  755. display: flex;
  756. justify-content: center;
  757. align-items: center;
  758. font-size: 14rpx;
  759. font-family: PingFang SC;
  760. font-weight: bold;
  761. color: #FFFFFF;
  762. }
  763. }
  764. }
  765. }
  766. }
  767. .popup-box {
  768. width: 522rpx;
  769. height: 625rpx;
  770. background-color: #ffffff;
  771. border-radius: 20rpx;
  772. position: relative;
  773. .img {
  774. position: relative;
  775. top: -56rpx;
  776. left: 0;
  777. width: 522rpx;
  778. height: 132rpx;
  779. display: flex;
  780. justify-content: center;
  781. image {
  782. border-radius: 20rpx 20rpx 0 0;
  783. width: 450rpx;
  784. height: 132rpx;
  785. }
  786. }
  787. .mian {
  788. margin-top: -44rpx;
  789. display: flex;
  790. flex-direction: column;
  791. align-items: center;
  792. // padding: 32rpx 32rpx;
  793. background-color: #ffffff;
  794. border-radius: 0 0 20rpx 20rpx;
  795. text-align: center;
  796. .delivery {
  797. font-size: 40rpx;
  798. color: #333333;
  799. display: flex;
  800. align-items: center;
  801. flex-direction: column;
  802. image {
  803. margin-top: 48rpx;
  804. width: 172rpx;
  805. height: 160rpx;
  806. }
  807. }
  808. .nocancel {
  809. font-size: 32rpx;
  810. color: #333333;
  811. margin-top: 14rpx;
  812. }
  813. .comfirm-box {
  814. margin-top: 52rpx;
  815. display: flex;
  816. // margin-bottom: 32rpx;
  817. // justify-content: space-around;
  818. .cancel {
  819. display: flex;
  820. align-items: center;
  821. justify-content: center;
  822. width: 197rpx;
  823. height: 74rpx;
  824. border: 1px solid #dcc786;
  825. border-radius: 38rpx;
  826. font-size: 32rpx;
  827. color: #605128;
  828. }
  829. .comfirm {
  830. margin-left: 32rpx;
  831. display: flex;
  832. align-items: center;
  833. justify-content: center;
  834. width: 197rpx;
  835. height: 74rpx;
  836. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  837. border-radius: 38px;
  838. font-size: 32rpx;
  839. color: #605128;
  840. }
  841. }
  842. }
  843. }
  844. </style>