shop.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <view class="shop-index iPhone-bottom flex-common-css box-border-box">
  3. <image class="bg-img" src="@/static/img/order-food/shop-top.png" mode="aspectFill"></image>
  4. <!-- <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent' class="z-3 mb-32">
  5. <template>
  6. <view slot="custom" class="align-items-flex-end">
  7. <view class="ss-box b-rad-50 mr-24 align-items-center flex-justify-center">
  8. <image class="shop-search" src="@/static/img/order-food/shop-search.png" mode=""></image>
  9. </view>
  10. <view class="dd-box mr-24">
  11. </view>
  12. </view>
  13. </template>
  14. </Nav> -->
  15. <newNav :leftShow="false" :textType='false' class="z-3 mb-32">
  16. <view slot="textContent" class="align-items-flex-end">
  17. <view class="ss-box b-rad-50 mr-24 align-items-center flex-justify-center">
  18. <image class="shop-search" src="@/static/img/order-food/shop-search.png" mode=""></image>
  19. </view>
  20. <view class="dd-box mr-24">
  21. </view>
  22. </view>
  23. </newNav>
  24. <view class="bgc-f box-border-box plr-24 mb-32">
  25. <view class="shop-info-box bgc-f box-border-box p-24 z-3 .b-rad-20">
  26. <view class="fs-40 fw-600 text-overflow-ellipsis mb-16">
  27. {{shopsInfo.shop_name || "山海鲜熬老灶麻辣火锅辣火锅辣火11 世家匠心传承店川"}}
  28. </view>
  29. <view class="fs-24 fw-400 fc-9 text-overflow-ellipsis-one">
  30. 公告:{{shopsInfo.notice||"第二份半价是同时下相同商品的第二份可享受半价受"}}
  31. </view>
  32. </view>
  33. </view>
  34. <!-- <view class="head-box bgc-f box-border-box plr-24">
  35. <view id="shopInfoBox" class="shop-info-box bgc-f box-border-box p-24">
  36. <view class="top-left-1 fs-40 fw-600 text-overflow-ellipsis">
  37. {{shopsInfo.shop_name || "山海鲜熬老灶麻辣火锅辣火锅辣火11 世家匠心传承店川"}}
  38. </view>
  39. <view class="fs-24 fw-400 fc-9 text-overflow-ellipsis-one">
  40. 公告:{{shopsInfo.notice||"第二份半价是同时下相同商品的第二份可享受半价受"}}
  41. </view>
  42. </view>
  43. </view> -->
  44. <!-- <view class="head-box-1 bgc-f box-border-box plr-24">
  45. <view class="align-items-center shop-type-list">
  46. <view class="shop-item fs-36" @click="seletShopType(item)" :class="shopType === item.id?'s-item':'n-item'"
  47. v-for="(item,i) in shopTypeList" :key="i">
  48. {{item.name}}
  49. </view>
  50. <view class="shop-item-bs" :style="{left:shopTypeBsLeft+'rpx'}"></view>
  51. </view>
  52. </view> -->
  53. <view class="common-view-css bgc-f" style="overflow: hidden;">
  54. <Menu style="height: 100%;" v-if="shopType === 1" :shop_id="shop_id" @setCartData="setCartData" ref="goodsMenu">
  55. </Menu>
  56. <Evaluate style="height: 100%;" :shopId='shop_id' :shopScore='shopsInfo.shop_score' v-else-if="shopType === 2">
  57. </Evaluate>
  58. <ShopInfo style="height: 100%;" :shopId='shop_id' v-else-if="shopType === 3"></ShopInfo>
  59. </view>
  60. <view v-if="shopType === 1" 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="">
  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-f" v-else>配送费¥{{delivery_money}}</view>
  71. </view>
  72. <view v-if="cartData.is_place_order===1" class="shop-buttom-money-2 text-align-center fc-f fs-32 fw-600"
  73. @click.stop="toConfirmOrder()">去结算
  74. </view>
  75. <view v-else class="err-msg fs-32 fw-600 fc-f mr-30" @click.stop="mustBut">{{cartData.err_msg}}</view>
  76. </view>
  77. </view>
  78. <uni-popup ref="popupBuy" type="bottom" background-color="#fff">
  79. <view class="buy-card flex-index-css">
  80. <view class="buy-card-top box-border-box plr-32 flex-justify-space align-items-center">
  81. <view class="">
  82. <span class="fs-32 fc-3 mr-12">已选商品</span>
  83. <span class="fs-32 fc-9">(打包费<span class="fs-32 fc-FB3D03">{{cartData.pack_price}}元</span>)</span>
  84. </view>
  85. <view class="fs-28 fw-400 fc-9 align-items-center" @click.stop="setShopIngDel">
  86. <view class="">
  87. <uni-icons type="trash" size="18" color="#999"></uni-icons>
  88. </view>
  89. <view class="fs-28 fw-400 fc-9">清空</view>
  90. </view>
  91. </view>
  92. <view class="scroll-view-css box-border-box p-32">
  93. <view class="buy-card-item display-flex" v-for="(goods,i) in cartData.goods_list" :key="i">
  94. <image class="goods_img" :src="goods.goods_image" mode="scaleToFill"></image>
  95. <view class="flex-1">
  96. <view class="w-514 text-overflow-ellipsis-one fs-34 fw-600 mb-12">
  97. {{goods.goods_name}}
  98. </view>
  99. <view class="w-514 text-overflow-ellipsis-one fs-24 fw-400 mb-18"
  100. :class="goods.status_str?'fc-FD5C02':'fc-9'">
  101. {{goods.status_str?goods.status_str: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. <image class="wh-44" @click.stop="setShoppingSave(goods,2)" src="@/static/img/takeout/j.png" mode="">
  110. </image>
  111. <view class="right-only-right-2 text-align-center fs-28 fw-400">
  112. {{goods.goods_number}}
  113. </view>
  114. <image class="wh-44" src="@/static/img/takeout/add.png" @click.stop="setShoppingSave(goods,1)"
  115. mode=""></image>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <en-blank v-if="cartData.goods_list.length<=0" message="快去选购商品吧!~"></en-blank>
  121. </view>
  122. <view class="shop-buttom-money box-border-box" @click="createOrder()">
  123. <view class="shop-buttom-money-1 flex-justify-space align-items-center">
  124. <image src="@/static/img/takeout/buy-icon.png" mode="scaleToFill"></image>
  125. <view class="shop-buttom-num fs-24 fc-f text-align-center">{{cartData.total_num}}</view>
  126. <view class="">
  127. <view class="">
  128. <span class="fw-600 fs-24 fc-f">¥</span>
  129. <span class="fw-600 fs-44 fc-f">{{cartData.total_price}}</span>
  130. </view>
  131. <view class="fs-24 fc-ADADAD" v-if="delivery_money<=0">免配送</view>
  132. <view class="fs-24 fc-f" v-else>配送费¥{{delivery_money}}</view>
  133. </view>
  134. <view v-if="cartData.is_place_order===1" class="shop-buttom-money-2 text-align-center fs-32 fc-f fw-600"
  135. @click.stop="toConfirmOrder()">
  136. 去结算</view>
  137. <view class="fs-32 fw-600 fc-f mr-30" v-else>{{cartData.err_msg}}</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. shoppingSave
  207. } from "@/api/shopping";
  208. export default {
  209. components: {
  210. Menu,
  211. Evaluate,
  212. ShopInfo,
  213. EnBlank
  214. },
  215. data() {
  216. return {
  217. domHeigjt: 0,
  218. shopTypeList: [{
  219. name: "点单",
  220. id: 1
  221. }, {
  222. name: "商家",
  223. id: 2
  224. }],
  225. shopType: 1, //组件类型
  226. shopTypeBsLeft: 12,
  227. shop_id: '',
  228. operate_id: '',
  229. shopsInfo: {},
  230. couponData: [], // 可领优惠卷
  231. goodsData: [], // 可领优惠卷
  232. categoryData: [], // 可领优惠卷
  233. delivery_money: 0, // 可领优惠卷
  234. cartData: {
  235. total_price: 0,
  236. total_num: 0,
  237. total_goods_money: 0,
  238. pack_price: 0,
  239. must_category: 0,
  240. is_place_order: 0,
  241. err_msg: 0,
  242. goods_list: [],
  243. },
  244. isAjax: false
  245. }
  246. },
  247. onShow() {
  248. // this.getShopIngList()
  249. },
  250. onLoad(e) {
  251. // if (e) {
  252. // console.log(e, '^^^^^^^');
  253. // this.shop_id = e.shop_id
  254. // this.operate_id = uni.getStorageSync('operate_id')
  255. // const item = {
  256. // type: Number(e.category_id)
  257. // }
  258. // const goodsId = {
  259. // goodsId: Number(e.goods_id)
  260. // }
  261. // console.log(item, goodsId, '00000000000');
  262. // uni.setStorageSync('category_id', item)
  263. // uni.setStorageSync('goods_id', goodsId)
  264. // this.shopInfo()
  265. // }
  266. },
  267. mounted() {
  268. // this.getDomH();
  269. // this.shopCoupon()
  270. },
  271. methods: {
  272. mustBut() {
  273. // 未点必选品
  274. const item = {
  275. type: this.cartData.must_category
  276. }
  277. this.$refs.goodsMenu.selectType(item)
  278. },
  279. setShopIngDel() {
  280. uni.showModal({
  281. title: '提示',
  282. content: '是否清除购物车商品?',
  283. success: (res) => {
  284. console.log(res)
  285. if (res.confirm) {
  286. setShopIngDel({
  287. 'shop_id': this.shop_id,
  288. 'type': 1,
  289. }).then((res) => {
  290. if (res.code === 1) {
  291. tools.success(res.msg)
  292. this.getShopIngList()
  293. this.$refs.popupBuy.close()
  294. } else {
  295. tools.error(res.msg)
  296. }
  297. })
  298. }
  299. }
  300. });
  301. },
  302. setShoppingSave(item, type) {
  303. if (type === 1) {
  304. // 加
  305. item.goods_number = item.goods_number + 1
  306. } else {
  307. // 减
  308. if (item.goods_number < 0) {
  309. return
  310. }
  311. item.goods_number = item.goods_number - 1
  312. }
  313. if (this.isAjax) {
  314. return
  315. }
  316. this.isAjax = true
  317. shoppingSave({
  318. 'type': 1,
  319. 'goods_id': item.goods_id,
  320. 'shop_id': this.shop_id,
  321. 'category_id': item.category_id,
  322. 'goods_spec_id': item.goods_spec_id,
  323. 'number': item.goods_number,
  324. }).then(res => {
  325. if (res.code == 1) {
  326. this.isAjax = false
  327. this.getShopIngList()
  328. }
  329. }).catch(() => {
  330. this.isAjax = false
  331. })
  332. },
  333. getShopIngList() {
  334. getShopIngList({
  335. 'shop_id': this.shop_id,
  336. }).then(res => {
  337. if (res.code === 1) {
  338. this.cartData = res.data
  339. if (this.shopType === 1) {
  340. setTimeout(() => {
  341. console.log('我的数据执行了')
  342. this.$refs.goodsMenu.setShopIngList(this.cartData)
  343. }, 1000)
  344. }
  345. }
  346. })
  347. },
  348. setCartData(cartData) {
  349. this.cartData = cartData
  350. this.getDeliveryMoney()
  351. },
  352. getDeliveryMoney() {
  353. getDeliveryMoney({
  354. 'school_id': this.operate_id,
  355. 'shop_id': this.shop_id,
  356. }).then(res => {
  357. if (res.code === 1) {
  358. this.delivery_money = res.data.delivery_money * 1
  359. }
  360. })
  361. },
  362. receiveCode(item) {
  363. receiveCoupon({
  364. grant_id: item.grant_id,
  365. coupon_id: item.coupon_id
  366. }).then((res) => {
  367. if (res.code == 1) {
  368. tools.success(res.msg)
  369. this.couponData = []
  370. this.shopCoupon()
  371. } else {
  372. tools.error(res.msg)
  373. }
  374. })
  375. },
  376. toBack() {
  377. tools.leftClick()
  378. },
  379. getDomH(num) {
  380. this.$nextTick(() => {
  381. let info = uni.createSelectorQuery().select('#shopInfoBox');
  382. info.boundingClientRect((data) => {
  383. if (num === 1) {
  384. this.domHeigjt = data.height + 72
  385. } else {
  386. this.domHeigjt = data.height + 72 + 48
  387. }
  388. }).exec()
  389. })
  390. // setTimeout(() => {
  391. // }, 500)
  392. },
  393. scrolltolower() {
  394. console.log('触底');
  395. },
  396. seletShopType(item) {
  397. if (this.shopType != item.id) {
  398. this.shopType = item.id;
  399. if (this.shopType == 1) {
  400. this.shopTypeBsLeft = 12
  401. } else if (this.shopType == 2) {
  402. this.shopTypeBsLeft = 166
  403. } else {
  404. this.shopTypeBsLeft = 160 * 2
  405. }
  406. }
  407. },
  408. openBuyCrad() {
  409. this.$refs.popupBuy.open()
  410. },
  411. createOrder() {
  412. this.$refs.popupBuy.close()
  413. },
  414. openCoupon() {
  415. this.$refs.popupCoupon.open()
  416. },
  417. closeCoupon() {
  418. this.$refs.popupCoupon.close()
  419. },
  420. toConfirmOrder() {
  421. uni.navigateTo({
  422. url: '/pages-takeout/goods-order?shop_id=' + this.shop_id
  423. })
  424. },
  425. shopInfo() {
  426. const operate_id = uni.getStorageSync('operate_id')
  427. shopInfo({
  428. operate_id: operate_id,
  429. shop_id: this.shop_id
  430. }).then((res) => {
  431. if (res.code == 1) {
  432. this.shopsInfo = res.data
  433. } else {
  434. tools.error(res.msg)
  435. setTimeout(() => {
  436. uni.navigateBack({
  437. delta: 1
  438. })
  439. }, 1500)
  440. }
  441. })
  442. },
  443. shopCoupon() {
  444. shopCoupon({
  445. operate_id: this.operate_id,
  446. shop_id: this.shop_id
  447. }).then((res) => {
  448. if (res.code == 1) {
  449. if (res.data.length > 0) {
  450. this.couponData = res.data
  451. this.getDomH(2)
  452. } else {
  453. this.getDomH(1)
  454. // this.domHeigjt = 156
  455. // console.log(this.domHeigjt, '1111111111111111111');
  456. }
  457. }
  458. })
  459. }
  460. },
  461. }
  462. </script>
  463. <style scoped lang="scss">
  464. .ss-box{
  465. width: 64rpx;
  466. height: 64rpx;
  467. background: rgba(0,0,0,0.14);
  468. }
  469. .shop-search{
  470. width: 40rpx;
  471. height: 40rpx;
  472. }
  473. .wh-44 {
  474. width: 44rpx;
  475. height: 44rpx;
  476. }
  477. .blank-text {
  478. line-height: 32vh;
  479. }
  480. .box-title {
  481. position: relative;
  482. }
  483. .box-close {
  484. position: absolute;
  485. right: 22rpx;
  486. }
  487. .pop-coupon {
  488. width: 100%;
  489. height: 42vh;
  490. background-color: #F5F4F9;
  491. border-radius: 24rpx 24rpx 0rpx 0rpx;
  492. padding-top: 32rpx !important;
  493. display: flex;
  494. flex-direction: column;
  495. }
  496. .item-right {
  497. padding: 24rpx;
  498. box-sizing: border-box;
  499. border-radius: 20rpx 0 0 20rpx;
  500. position: relative;
  501. }
  502. .item-hr {
  503. width: 0px;
  504. height: auto;
  505. border-right: 1rpx dashed #FB7850;
  506. }
  507. .item-hr-two {
  508. width: 0px;
  509. height: auto;
  510. border-right: 1rpx dashed #999;
  511. }
  512. .item-left {
  513. width: 220rpx;
  514. height: auto;
  515. padding: 20rpx 24rpx;
  516. box-sizing: border-box;
  517. position: relative;
  518. border-radius: 0 20rpx 20rpx 0;
  519. }
  520. .but-box {
  521. width: 152rpx;
  522. height: 52rpx;
  523. line-height: 52rpx;
  524. text-align: center;
  525. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  526. border-radius: 200rpx;
  527. }
  528. .ball {
  529. width: 24rpx;
  530. height: 24rpx;
  531. border-radius: 50%;
  532. position: absolute;
  533. top: -12rpx;
  534. left: -12rpx;
  535. background: #F5F5F5;
  536. z-index: 2;
  537. }
  538. .ball-two {
  539. width: 24rpx;
  540. height: 24rpx;
  541. border-radius: 50%;
  542. position: absolute;
  543. background: #F5F5F5;
  544. z-index: 10;
  545. bottom: -12rpx;
  546. left: -12rpx;
  547. }
  548. .shop-index {
  549. position: relative;
  550. }
  551. .right-only-right-red {
  552. width: 44rpx;
  553. height: 44rpx;
  554. line-height: 40rpx;
  555. border-radius: 12rpx;
  556. border: 1rpx solid #41ABF5;
  557. color: #41ABF5;
  558. }
  559. .right-only-right-add {
  560. width: 44rpx;
  561. height: 44rpx;
  562. line-height: 40rpx;
  563. background: linear-gradient(117deg, #57CAFF 0%, #41ABF5 100%);
  564. border-radius: 12rpx;
  565. }
  566. .right-only-right-2 {
  567. min-width: 50rpx;
  568. }
  569. .w-514 {
  570. width: 514rpx;
  571. }
  572. .bg-img {
  573. position: absolute;
  574. top: 0;
  575. left: 0;
  576. width: 100%;
  577. height: 300rpx;
  578. z-index: 0;
  579. }
  580. .mb-box {
  581. position: absolute;
  582. top: 0;
  583. left: 0;
  584. width: 100%;
  585. height: 300rpx;
  586. z-index: -1;
  587. }
  588. .nav-img {
  589. width: 56rpx;
  590. height: 56rpx;
  591. }
  592. .shop-buttom-money {
  593. width: 100%;
  594. height: 140rpx;
  595. background: rgba(255, 255, 255, 0.8);
  596. padding: 20rpx 24rpx;
  597. }
  598. .shop-buttom-num {
  599. width: 32rpx;
  600. height: 32rpx;
  601. line-height: 32rpx;
  602. background: #FB3D03;
  603. border-radius: 50%;
  604. position: absolute;
  605. top: 36rpx;
  606. left: 82rpx;
  607. }
  608. .shop-buttom-money-2 {
  609. width: 200rpx;
  610. height: 100rpx;
  611. line-height: 100rpx;
  612. background: #41ABF5;
  613. border-radius: 0rpx 200rpx 200rpx 0rpx;
  614. }
  615. .info-box-top {}
  616. .box-top-right {
  617. width: 100rpx;
  618. height: 100rpx;
  619. border-radius: 12rpx;
  620. }
  621. .box-top-left {}
  622. .top-left-1 {
  623. width: 480rpx;
  624. margin-bottom: 8rpx;
  625. }
  626. .img-x {
  627. width: 24rpx;
  628. height: 24rpx;
  629. }
  630. .buy-card {
  631. height: 828rpx;
  632. background-color: #fff;
  633. border-radius: 24rpx 24rpx 0rpx 0rpx;
  634. }
  635. .buy-card-top {
  636. width: 100%;
  637. height: 92rpx;
  638. background: #FCF5DB;
  639. border-radius: 24rpx 24rpx 0rpx 0rpx;
  640. }
  641. .buy-card-item {
  642. width: 100%;
  643. height: 176rpx;
  644. margin-bottom: 32rpx;
  645. }
  646. .goods_img {
  647. width: 152rpx;
  648. height: 152rpx;
  649. border-radius: 12rpx;
  650. margin-right: 20rpx;
  651. }
  652. .shop-buttom-money-1 {
  653. width: 100%;
  654. height: 100%;
  655. background: #333333;
  656. border-radius: 200rpx;
  657. box-sizing: border-box;
  658. padding-left: 136rpx;
  659. // padding-right: 32rpx;
  660. position: relative;
  661. image {
  662. position: absolute;
  663. bottom: 0;
  664. left: 8rpx;
  665. width: 128rpx;
  666. height: 128rpx;
  667. }
  668. }
  669. .head-box {
  670. width: 100%;
  671. position: relative;
  672. }
  673. .shop-info-box {
  674. box-shadow: 0rpx 8rpx 56rpx 0rpx rgba(154, 152, 152, 0.34);
  675. }
  676. .info-box-quan-list {
  677. width: 164rpx;
  678. height: 48rpx;
  679. margin: 0 8rpx 8rpx 0;
  680. position: relative;
  681. image {
  682. width: 164rpx;
  683. height: 48rpx;
  684. position: absolute;
  685. top: 0;
  686. left: 0;
  687. z-index: 1;
  688. }
  689. }
  690. .quan-list-1 {
  691. position: absolute;
  692. top: 3rpx;
  693. left: 8rpx;
  694. z-index: 2;
  695. }
  696. .quan-list-2 {
  697. position: absolute;
  698. top: 8rpx;
  699. right: 22rpx;
  700. z-index: 2;
  701. }
  702. .head-box-1 {
  703. width: 100%;
  704. height: 88rpx;
  705. border-bottom: 1rpx solid #eee;
  706. }
  707. .shop-type-list {
  708. height: 88rpx;
  709. position: relative;
  710. }
  711. .shop-item {
  712. margin-right: 90rpx;
  713. position: relative;
  714. }
  715. .pj-num {
  716. position: absolute;
  717. right: -80rpx;
  718. top: 0;
  719. text-align: left;
  720. width: 80rpx;
  721. }
  722. .shop-item-bs {
  723. position: absolute;
  724. bottom: 0;
  725. width: 40rpx;
  726. height: 6rpx;
  727. border-radius: 20rpx;
  728. background-color: #41ABF5;
  729. transition: left 0.5s;
  730. }
  731. .s-item {
  732. font-weight: 600;
  733. color: #333;
  734. }
  735. .n-item {
  736. font-weight: 400;
  737. color: #666;
  738. }
  739. </style>