shop.vue 21 KB

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