shop.vue 18 KB

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