shop.vue 20 KB

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