shop.vue 18 KB

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