shop.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. <template>
  2. <view class="shop-index iPhone-bottom flex-common-css box-border-box">
  3. <image class="bg-img" :src="shopsInfo.shop_logo" mode="aspectFill"></image>
  4. <view class="mb-box"></view>
  5. <view class="nav-box">
  6. <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
  7. <template>
  8. <view slot="custom" class="">
  9. <image class="nav-img" @click="toBack()" src="@/static/img/takeout/bg-back.png"
  10. mode="scaleToFill"></image>
  11. </view>
  12. </template>
  13. </Nav>
  14. </view>
  15. <view class="head-box bgc-f box-border-box plr-24" :style="{height:domHeigjt + 'rpx'}">
  16. <view id="shopInfoBox" class="shop-info-box bgc-f box-border-box p-24">
  17. <view class="info-box-top flex-justify-space mb-10">
  18. <view class="box-top-left">
  19. <view class="top-left-1 fs-40 fw-600 text-overflow-ellipsis-one">{{shopsInfo.shop_name}}
  20. </view>
  21. <view class="align-items-center mb-8">
  22. <image class="img-x mr-12" src="@/static/img/my/wdpj.png" mode=""></image>
  23. <view class="fs-26 fw-600 fc-FF7F00 mr-12">{{shopsInfo.shop_score}}分</view>
  24. <view class="fc-6 fs-24 mr-12">| 预计{{shopsInfo.delivery_time}}分钟 |</view>
  25. <view class="fc-6 fs-24 mr-12">{{shopsInfo.shop_sales}}人购买</view>
  26. </view>
  27. </view>
  28. <image class="box-top-right" :src="shopsInfo.shop_logo" mode="scaleToFill"></image>
  29. </view>
  30. <view class="fs-24 fw-400 fc-9 text-overflow-ellipsis-one">
  31. 公告:{{shopsInfo.notice}}
  32. </view>
  33. <view class="flex-wrap-wrap p-t-20" v-if="couponData.length>0">
  34. <view class="info-box-quan-list" v-for="(item,i) in couponData" :key="i" @click="openCoupon">
  35. <view class="" v-if="i<=2">
  36. <image src="@/static/img/takeout/quan-bg.png" mode=""></image>
  37. <view class="quan-list-1 fw-b fs-32 fc-f">
  38. <span class="fw-b fs-20 fc-f">¥</span>{{item.money}}
  39. </view>
  40. <view class="quan-list-2 fw-400 fs-24 fc-f">领</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="head-box-1 bgc-f box-border-box plr-24">
  47. <view class="align-items-center shop-type-list">
  48. <view class="shop-item fs-36" @click="seletShopType(item)"
  49. :class="shopType === item.id?'s-item':'n-item'" v-for="(item,i) in shopTypeList" :key="i">
  50. {{item.name}}
  51. <!-- <view v-if="item.id == 2" class="pj-num" :class="shopType === item.id?'s-item':'n-item'">999+</view> -->
  52. </view>
  53. <view class="shop-item-bs" :style="{left:shopTypeBsLeft+'rpx'}"></view>
  54. </view>
  55. </view>
  56. <view class="common-view-css bgc-f" style="overflow: hidden;">
  57. <Menu style="height: 100%;" v-if="shopType === 1" :shop_id="shop_id" @setCartData="setCartData"
  58. ref="goodsMenu"></Menu>
  59. <Evaluate style="height: 100%;" :shopId='shop_id' :shopScore='shopsInfo.shop_score'
  60. v-else-if="shopType === 2"></Evaluate>
  61. <ShopInfo style="height: 100%;" :shopId='shop_id' v-else-if="shopType === 3"></ShopInfo>
  62. </view>
  63. <view class="shop-buttom-money box-border-box" @click="openBuyCrad()">
  64. <view class="shop-buttom-money-1 flex-justify-space align-items-center">
  65. <image src="@/static/img/takeout/buy-icon.png" mode="scaleToFill"></image>
  66. <view class="shop-buttom-num fs-24 fc-f text-align-center">{{cartData.total_num}}</view>
  67. <view class="" v-if="cartData.is_place_order===1">
  68. <view class="">
  69. <span class="fw-600 fs-24 fc-f">¥</span>
  70. <span class="fw-600 fs-44 fc-f">{{cartData.total_price}}</span>
  71. </view>
  72. <view class="fs-24 fc-ADADAD" v-if="delivery_money<=0">免配送</view>
  73. <view class="fs-24 fc-ff3939" v-else>配送费¥{{delivery_money}}</view>
  74. </view>
  75. <view class="fs-32 fw-600 fc-f mr-30" v-else>{{cartData.err_msg}}</view>
  76. <view class="shop-buttom-money-2 text-align-center fc-f fs-32 fw-600" @click.stop="toConfirmOrder()">去结算</view>
  77. </view>
  78. </view>
  79. <uni-popup ref="popupBuy" type="bottom">
  80. <view class="buy-card flex-index-css">
  81. <view class="buy-card-top box-border-box plr-32 flex-justify-space align-items-center">
  82. <view class="">
  83. <span class="fs-32 fc-3 mr-12">已选商品</span>
  84. <span class="fs-32 fc-9">(打包费<span
  85. class="fs-32 fc-FB3D03">{{cartData.pack_price}}元</span>)</span>
  86. </view>
  87. <view class="fs-28 fw-400 fc-9 align-items-center">
  88. <view class="">
  89. <uni-icons type="trash" size="18" color="#999"></uni-icons>
  90. </view>
  91. <view class="fs-28 fw-400 fc-9" @click.stop="setShopIngDel">清空</view>
  92. </view>
  93. </view>
  94. <view class="scroll-view-css box-border-box p-32">
  95. <view class="buy-card-item display-flex" v-for="(goods,i) in cartData.goods_list" :key="i">
  96. <image :src="goods.goods_image" mode="scaleToFill"></image>
  97. <view class="flex-1">
  98. <view class="w-514 text-overflow-ellipsis-one fs-34 fw-600 mb-12">
  99. {{goods.goods_name}}
  100. </view>
  101. <view class="w-514 text-overflow-ellipsis-one fs-24 fw-400 fc-9 mb-18">{{goods.goods_attr}}
  102. </view>
  103. <view class="flex-justify-space">
  104. <view class="">
  105. <span class="fs-24 fc-FB3D03 fw-400">¥</span>
  106. <span class="fs-40 fc-FB3D03 fw-b">{{goods.price}}</span>
  107. </view>
  108. <view class="display-flex align-items-center">
  109. <view class="right-only-right-red fw-500 text-align-center fs-36 fc-f"
  110. @click.stop="setShopIngNumber(goods,2)">-</view>
  111. <view class="right-only-right-2 text-align-center fs-28 fw-400">
  112. {{goods.goods_number}}</view>
  113. <view class="right-only-right-add fw-500 text-align-center fs-36 fc-f"
  114. @click.stop="setShopIngNumber(goods,1)">+</view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <en-blank v-if="cartData.goods_list.length<=0" message="快去选购商品吧!~"></en-blank>
  120. </view>
  121. <view class="shop-buttom-money box-border-box" @click="createOrder()">
  122. <view class="shop-buttom-money-1 flex-justify-space align-items-center">
  123. <image src="@/static/img/takeout/buy-icon.png" mode="scaleToFill"></image>
  124. <view class="shop-buttom-num fs-24 fc-f text-align-center">{{cartData.total_num}}</view>
  125. <view class="" v-if="cartData.is_place_order===1">
  126. <view class="">
  127. <span class="fw-600 fs-24 fc-f">¥</span>
  128. <span class="fw-600 fs-44 fc-f">{{cartData.total_price}}</span>
  129. </view>
  130. <view class="fs-24 fc-ADADAD" v-if="delivery_money<=0">免配送</view>
  131. <view class="fs-24 fc-ff3939" v-else>配送费¥{{delivery_money}}</view>
  132. </view>
  133. <view class="fs-32 fw-600 fc-f mr-30" v-else>{{cartData.err_msg}}</view>
  134. <view class="shop-buttom-money-2 text-align-center fs-32 fc-f fw-600">
  135. 去结算</view>
  136. </view>
  137. </view>
  138. </view>
  139. </uni-popup>
  140. <uni-popup ref="popupCoupon" type="bottom">
  141. <view class="pop-coupon box-border-box p-24">
  142. <view class="text-align-center fs-36 fw-600 box-title mb-32">
  143. 本店优惠券
  144. <uni-icons @click="closeCoupon" class="box-close" type="closeempty" size="20"></uni-icons>
  145. </view>
  146. <view class="scroll-view-css">
  147. <view v-if="couponData<= 0" class="blank-text fs-32 fc-6 text-align-center">
  148. 暂无优惠券
  149. </view>
  150. <!-- <EnBlank :customSrc='true' v-if="couponData<= 0">
  151. <template v-slot:blankImg>
  152. <image class="black-img" src="@/static/img/common/no-order.png" mode=""></image>
  153. </template>
  154. </EnBlank> -->
  155. <view class="item-box display-flex mb-20" v-for="(item,index) in couponData" :key="index">
  156. <view class="item-right flex-direction flex-justify-center flex-1 bgc-f">
  157. <view class="fs-28 mb-12 ticket-name text-overflow-ellipsis fc-3 fw-600">
  158. {{item.name}}
  159. </view>
  160. <view class="fs-24 fc-6">
  161. 有效时间:{{item.time_type_str}}
  162. </view>
  163. </view>
  164. <view class="item-hr"></view>
  165. <view class="item-left flex-direction align-items-center flex-justify-center bgc-FCE7E2">
  166. <view class="align-items-center">
  167. <view class="fs-30 fw-600 fc-FB3D03">¥</view>
  168. <view class="fs-48 fw-600 fc-FB3D03">{{item.money}}</view>
  169. </view>
  170. <view class="fs-24 mb-18 fc-6">
  171. 满{{item.full_money}}可用
  172. </view>
  173. <view class="but-box fs-28 fc-f" @click="receiveCode(item)">
  174. 立即领取
  175. </view>
  176. <view class="ball"></view>
  177. <view class="ball-two"></view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </uni-popup>
  183. </view>
  184. </template>
  185. <script>
  186. import Menu from './shop-mod/menu.vue';
  187. import Evaluate from './shop-mod/evaluate.vue';
  188. import ShopInfo from './shop-mod/info.vue';
  189. import tools from "@/service/tools";
  190. import EnBlank from "@/components/en-utils/en-blank/en-blank";
  191. import {
  192. receiveCoupon
  193. } from "@/api/coupon.js"
  194. import {
  195. shopInfo,
  196. shopCoupon
  197. } from "@/api/shop.js"
  198. import {
  199. getDeliveryMoney
  200. } from "@/api/common";
  201. import {
  202. getShopIngList,
  203. setShopIngDel,
  204. setShopIngNumber
  205. } from "@/api/shopping";
  206. export default {
  207. components: {
  208. Menu,
  209. Evaluate,
  210. ShopInfo,
  211. EnBlank
  212. },
  213. data() {
  214. return {
  215. domHeigjt: 224,
  216. shopTypeList: [{
  217. name: "点菜",
  218. id: 1
  219. }, {
  220. name: "评价",
  221. id: 2
  222. }, {
  223. name: "店铺",
  224. id: 3
  225. }, ],
  226. shopType: 1, //组件类型
  227. shopTypeBsLeft: 12,
  228. shop_id: '',
  229. operate_id: '',
  230. shopsInfo: {},
  231. couponData: [], // 可领优惠卷
  232. goodsData: [], // 可领优惠卷
  233. categoryData: [], // 可领优惠卷
  234. delivery_money: 0, // 可领优惠卷
  235. cartData: {
  236. total_price: 0,
  237. total_num: 0,
  238. total_goods_money: 0,
  239. pack_price: 0,
  240. must_category: 0,
  241. is_place_order: 0,
  242. err_msg: 0,
  243. goods_list: [],
  244. },
  245. isAjax: false
  246. }
  247. },
  248. onLoad(e) {
  249. if (e) {
  250. this.shop_id = e.shop_id
  251. this.operate_id = uni.getStorageSync('operate_id')
  252. this.shopInfo()
  253. }
  254. },
  255. mounted() {
  256. // this.getDomH();
  257. this.shopCoupon()
  258. },
  259. methods: {
  260. setShopIngDel() {
  261. uni.showModal({
  262. title: '提示',
  263. content: '是否清除购物车商品?',
  264. success: (res) => {
  265. console.log(res)
  266. if (res.confirm) {
  267. setShopIngDel({
  268. 'shop_id': this.shop_id,
  269. 'type': 1,
  270. }).then((res) => {
  271. if (res.code === 1) {
  272. tools.success(res.msg)
  273. this.getShopIngList()
  274. } else {
  275. tools.error(res.msg)
  276. }
  277. })
  278. }
  279. }
  280. });
  281. },
  282. setShopIngNumber(item, type) {
  283. if (this.isAjax) {
  284. return
  285. }
  286. this.isAjax = true
  287. setShopIngNumber({
  288. 'type': 1,
  289. 'goods_id': item.goods_id,
  290. 'shop_id': this.shop_id,
  291. 'category_id': item.category_id,
  292. 'goods_spec_id': item.goods_spec_id,
  293. 'operation': type === 1 ? 1 : 2,
  294. }).then(res => {
  295. this.isAjax = false
  296. this.getShopIngList()
  297. }).catch(() => {
  298. this.isAjax = false
  299. })
  300. },
  301. getShopIngList() {
  302. getShopIngList({
  303. 'shop_id': this.shop_id,
  304. }).then(res => {
  305. if (res.code === 1) {
  306. this.cartData = res.data
  307. if (this.shopType === 1) {
  308. this.$refs.goodsMenu.setShopIngList(this.cartData)
  309. }
  310. }
  311. })
  312. },
  313. setCartData(cartData) {
  314. this.cartData = cartData
  315. this.getDeliveryMoney()
  316. },
  317. getDeliveryMoney() {
  318. getDeliveryMoney({
  319. 'school_id': this.operate_id,
  320. 'shop_id': this.shop_id,
  321. }).then(res => {
  322. if (res.code === 1) {
  323. this.delivery_money = res.data.delivery_money * 1
  324. }
  325. })
  326. },
  327. receiveCode(item) {
  328. receiveCoupon({
  329. grant_id: item.grant_id,
  330. coupon_id: item.coupon_id
  331. }).then((res) => {
  332. if (res.code == 1) {
  333. tools.success(res.msg)
  334. this.couponData = []
  335. this.shopCoupon()
  336. } else {
  337. tools.error(res.msg)
  338. }
  339. })
  340. },
  341. toBack() {
  342. tools.leftClick()
  343. },
  344. getDomH() {
  345. let info = uni.createSelectorQuery().select('#shopInfoBox');
  346. info.boundingClientRect((data) => {
  347. this.domHeigjt = data.height * 2 - 34
  348. }).exec()
  349. },
  350. scrolltolower() {
  351. console.log('触底');
  352. },
  353. seletShopType(item) {
  354. if (this.shopType != item.id) {
  355. this.shopType = item.id;
  356. if (this.shopType == 1) {
  357. this.shopTypeBsLeft = 12
  358. } else if (this.shopType == 2) {
  359. this.shopTypeBsLeft = 166
  360. } else {
  361. this.shopTypeBsLeft = 160 * 2
  362. }
  363. }
  364. },
  365. openBuyCrad() {
  366. this.$refs.popupBuy.open()
  367. },
  368. createOrder() {
  369. },
  370. openCoupon() {
  371. this.$refs.popupCoupon.open()
  372. },
  373. closeCoupon() {
  374. this.$refs.popupCoupon.close()
  375. },
  376. toConfirmOrder() {
  377. uni.navigateTo({
  378. url: '/pages-takeout/goods-order?shop_id=' + this.shop_id
  379. })
  380. },
  381. shopInfo() {
  382. const operate_id = uni.getStorageSync('operate_id')
  383. shopInfo({
  384. operate_id: operate_id,
  385. shop_id: this.shop_id
  386. }).then((res) => {
  387. if (res.code == 1) {
  388. this.shopsInfo = res.data
  389. } else {
  390. tools.error(res.msg)
  391. tools.leftClick()
  392. }
  393. })
  394. },
  395. shopCoupon() {
  396. shopCoupon({
  397. operate_id: this.operate_id,
  398. shop_id: this.shop_id
  399. }).then((res) => {
  400. if (res.code == 1) {
  401. if (res.data.length > 0) {
  402. this.domHeigjt = 224
  403. this.couponData = res.data
  404. } else {
  405. this.domHeigjt = 156
  406. // console.log(this.domHeigjt, '1111111111111111111');
  407. }
  408. }
  409. })
  410. }
  411. },
  412. }
  413. </script>
  414. <style scoped lang="scss">
  415. .blank-text {
  416. line-height: 32vh;
  417. }
  418. .pop-coupon {
  419. width: 100%;
  420. height: 42vh;
  421. background-color: #F5F4F9;
  422. border-radius: 24rpx 24rpx 0rpx 0rpx;
  423. padding-top: 32rpx !important;
  424. display: flex;
  425. flex-direction: column;
  426. .box-title {
  427. position: relative;
  428. .box-close {
  429. position: absolute;
  430. right: 22rpx;
  431. }
  432. }
  433. .item-right {
  434. padding: 24rpx;
  435. box-sizing: border-box;
  436. border-radius: 20rpx 0 0 20rpx;
  437. position: relative;
  438. }
  439. .item-hr {
  440. width: 0px;
  441. height: auto;
  442. border-right: 1rpx dashed #FB7850;
  443. }
  444. .item-hr-two {
  445. width: 0px;
  446. height: auto;
  447. border-right: 1rpx dashed #999;
  448. }
  449. .item-left {
  450. width: 220rpx;
  451. height: auto;
  452. padding: 20rpx 24rpx;
  453. box-sizing: border-box;
  454. position: relative;
  455. border-radius: 0 20rpx 20rpx 0;
  456. }
  457. .but-box {
  458. width: 152rpx;
  459. height: 52rpx;
  460. line-height: 52rpx;
  461. text-align: center;
  462. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  463. border-radius: 200rpx;
  464. }
  465. .ball {
  466. width: 24rpx;
  467. height: 24rpx;
  468. border-radius: 50%;
  469. position: absolute;
  470. top: -12rpx;
  471. left: -12rpx;
  472. background: #F5F5F5;
  473. z-index: 2;
  474. }
  475. .ball-two {
  476. width: 24rpx;
  477. height: 24rpx;
  478. border-radius: 50%;
  479. position: absolute;
  480. background: #F5F5F5;
  481. z-index: 10;
  482. bottom: -12rpx;
  483. left: -12rpx;
  484. }
  485. }
  486. .shop-index {
  487. position: relative;
  488. .right-only-right-red {
  489. width: 44rpx;
  490. height: 44rpx;
  491. line-height: 40rpx;
  492. border-radius: 12rpx;
  493. border: 1rpx solid #41ABF5;
  494. color: #41ABF5;
  495. }
  496. .right-only-right-add {
  497. width: 44rpx;
  498. height: 44rpx;
  499. line-height: 40rpx;
  500. background: linear-gradient(117deg, #57CAFF 0%, #41ABF5 100%);
  501. border-radius: 12rpx;
  502. }
  503. .right-only-right-2 {
  504. min-width: 50rpx;
  505. }
  506. .w-514 {
  507. width: 514rpx;
  508. }
  509. .bg-img {
  510. position: absolute;
  511. top: 0;
  512. left: 0;
  513. width: 100%;
  514. height: 280rpx;
  515. z-index: -1;
  516. }
  517. .mb-box {
  518. position: absolute;
  519. top: 0;
  520. left: 0;
  521. width: 100%;
  522. height: 280rpx;
  523. z-index: -1;
  524. background: rgba(51, 51, 51, 0.50);
  525. }
  526. .nav-box {
  527. margin-bottom: 110rpx;
  528. .nav-img {
  529. width: 56rpx;
  530. height: 56rpx;
  531. }
  532. }
  533. .shop-buttom-money {
  534. width: 100%;
  535. height: 140rpx;
  536. background: rgba(255, 255, 255, 0.8);
  537. padding: 20rpx 24rpx;
  538. .shop-buttom-money-1 {
  539. width: 100%;
  540. height: 100%;
  541. background: #333333;
  542. border-radius: 200rpx;
  543. box-sizing: border-box;
  544. padding-left: 136rpx;
  545. // padding-right: 32rpx;
  546. position: relative;
  547. image {
  548. position: absolute;
  549. bottom: 0;
  550. left: 8rpx;
  551. width: 128rpx;
  552. height: 128rpx;
  553. }
  554. .shop-buttom-num {
  555. width: 32rpx;
  556. height: 32rpx;
  557. line-height: 32rpx;
  558. background: #FB3D03;
  559. border-radius: 50%;
  560. position: absolute;
  561. top: 36rpx;
  562. left: 82rpx;
  563. }
  564. .shop-buttom-money-2 {
  565. width: 200rpx;
  566. height: 100rpx;
  567. line-height: 100rpx;
  568. background: #41ABF5;
  569. border-radius: 0rpx 200rpx 200rpx 0rpx;
  570. }
  571. }
  572. }
  573. .head-box {
  574. width: 100%;
  575. position: relative;
  576. .shop-info-box {
  577. position: absolute;
  578. top: -50rpx;
  579. left: 24rpx;
  580. width: 702rpx;
  581. // min-height: 156rpx;
  582. border-radius: 20rpx;
  583. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
  584. .info-box-top {
  585. .box-top-left {
  586. .top-left-1 {
  587. width: 480rpx;
  588. margin-bottom: 8rpx;
  589. }
  590. .img-x {
  591. width: 24rpx;
  592. height: 24rpx;
  593. }
  594. }
  595. .box-top-right {
  596. width: 100rpx;
  597. height: 100rpx;
  598. border-radius: 12rpx;
  599. }
  600. }
  601. .info-box-quan-list {
  602. width: 164rpx;
  603. height: 48rpx;
  604. margin: 0 8rpx 8rpx 0;
  605. position: relative;
  606. image {
  607. width: 164rpx;
  608. height: 48rpx;
  609. position: absolute;
  610. top: 0;
  611. left: 0;
  612. z-index: 1;
  613. }
  614. .quan-list-1 {
  615. position: absolute;
  616. top: 3rpx;
  617. left: 8rpx;
  618. z-index: 2;
  619. }
  620. .quan-list-2 {
  621. position: absolute;
  622. top: 8rpx;
  623. right: 22rpx;
  624. z-index: 2;
  625. }
  626. }
  627. }
  628. }
  629. .head-box-1 {
  630. width: 100%;
  631. height: 88rpx;
  632. border-bottom: 1rpx solid #eee;
  633. .shop-type-list {
  634. height: 88rpx;
  635. position: relative;
  636. .shop-item-bs {
  637. position: absolute;
  638. bottom: 0;
  639. width: 40rpx;
  640. height: 6rpx;
  641. border-radius: 20rpx;
  642. background-color: #41ABF5;
  643. transition: left 0.5s;
  644. }
  645. .shop-item {
  646. margin-right: 90rpx;
  647. position: relative;
  648. .pj-num {
  649. position: absolute;
  650. right: -80rpx;
  651. top: 0;
  652. text-align: left;
  653. width: 80rpx;
  654. }
  655. }
  656. .s-item {
  657. font-weight: 600;
  658. color: #333;
  659. }
  660. .n-item {
  661. font-weight: 400;
  662. color: #666;
  663. }
  664. }
  665. }
  666. .buy-card {
  667. height: 828rpx;
  668. background-color: #fff;
  669. border-radius: 24rpx 24rpx 0rpx 0rpx;
  670. .buy-card-top {
  671. width: 100%;
  672. height: 92rpx;
  673. background: #FCF5DB;
  674. border-radius: 24rpx 24rpx 0rpx 0rpx;
  675. }
  676. .buy-card-item {
  677. width: 100%;
  678. height: 176rpx;
  679. margin-bottom: 32rpx;
  680. image {
  681. width: 152rpx;
  682. height: 152rpx;
  683. border-radius: 12rpx;
  684. margin-right: 20rpx;
  685. }
  686. }
  687. }
  688. }
  689. </style>