shop.vue 18 KB

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