shop.vue 22 KB

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