shop.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  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||""}}人购买</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. this.getShopIngList()
  305. }
  306. }).catch(() => {
  307. this.isAjax = false
  308. })
  309. },
  310. getShopIngList() {
  311. getShopIngList({
  312. 'shop_id': this.shop_id,
  313. }).then(res => {
  314. if (res.code === 1) {
  315. this.cartData = res.data
  316. if (this.shopType === 1) {
  317. setTimeout(() => {
  318. console.log('我的数据执行了')
  319. this.$refs.goodsMenu.setShopIngList(this.cartData)
  320. }, 1000)
  321. }
  322. }
  323. })
  324. },
  325. setCartData(cartData) {
  326. this.cartData = cartData
  327. this.getDeliveryMoney()
  328. },
  329. getDeliveryMoney() {
  330. getDeliveryMoney({
  331. 'school_id': this.operate_id,
  332. 'shop_id': this.shop_id,
  333. }).then(res => {
  334. if (res.code === 1) {
  335. this.delivery_money = res.data.delivery_money * 1
  336. }
  337. })
  338. },
  339. receiveCode(item) {
  340. receiveCoupon({
  341. grant_id: item.grant_id,
  342. coupon_id: item.coupon_id
  343. }).then((res) => {
  344. if (res.code == 1) {
  345. tools.success(res.msg)
  346. this.couponData = []
  347. this.shopCoupon()
  348. } else {
  349. tools.error(res.msg)
  350. }
  351. })
  352. },
  353. toBack() {
  354. tools.leftClick()
  355. },
  356. getDomH() {
  357. let info = uni.createSelectorQuery().select('#shopInfoBox');
  358. info.boundingClientRect((data) => {
  359. this.domHeigjt = data.height * 2 - 34
  360. }).exec()
  361. },
  362. scrolltolower() {
  363. console.log('触底');
  364. },
  365. seletShopType(item) {
  366. if (this.shopType != item.id) {
  367. this.shopType = item.id;
  368. if (this.shopType == 1) {
  369. this.shopTypeBsLeft = 12
  370. } else if (this.shopType == 2) {
  371. this.shopTypeBsLeft = 166
  372. } else {
  373. this.shopTypeBsLeft = 160 * 2
  374. }
  375. }
  376. },
  377. openBuyCrad() {
  378. this.$refs.popupBuy.open()
  379. },
  380. createOrder() {},
  381. openCoupon() {
  382. this.$refs.popupCoupon.open()
  383. },
  384. closeCoupon() {
  385. this.$refs.popupCoupon.close()
  386. },
  387. toConfirmOrder() {
  388. uni.navigateTo({
  389. url: '/pages-takeout/goods-order?shop_id=' + this.shop_id
  390. })
  391. },
  392. shopInfo() {
  393. const operate_id = uni.getStorageSync('operate_id')
  394. shopInfo({
  395. operate_id: operate_id,
  396. shop_id: this.shop_id
  397. }).then((res) => {
  398. if (res.code == 1) {
  399. this.shopsInfo = res.data
  400. } else {
  401. tools.error(res.msg)
  402. setTimeout(() => {
  403. uni.navigateBack({
  404. delta: 1
  405. })
  406. }, 1500)
  407. }
  408. })
  409. },
  410. shopCoupon() {
  411. shopCoupon({
  412. operate_id: this.operate_id,
  413. shop_id: this.shop_id
  414. }).then((res) => {
  415. if (res.code == 1) {
  416. if (res.data.length > 0) {
  417. this.domHeigjt = 224
  418. this.couponData = res.data
  419. } else {
  420. this.domHeigjt = 156
  421. // console.log(this.domHeigjt, '1111111111111111111');
  422. }
  423. }
  424. })
  425. }
  426. },
  427. }
  428. </script>
  429. <style scoped lang="scss">
  430. .wh-44 {
  431. width: 44rpx;
  432. height: 44rpx;
  433. }
  434. .blank-text {
  435. line-height: 32vh;
  436. }
  437. .pop-coupon {
  438. width: 100%;
  439. height: 42vh;
  440. background-color: #F5F4F9;
  441. border-radius: 24rpx 24rpx 0rpx 0rpx;
  442. padding-top: 32rpx !important;
  443. display: flex;
  444. flex-direction: column;
  445. .box-title {
  446. position: relative;
  447. .box-close {
  448. position: absolute;
  449. right: 22rpx;
  450. }
  451. }
  452. .item-right {
  453. padding: 24rpx;
  454. box-sizing: border-box;
  455. border-radius: 20rpx 0 0 20rpx;
  456. position: relative;
  457. }
  458. .item-hr {
  459. width: 0px;
  460. height: auto;
  461. border-right: 1rpx dashed #FB7850;
  462. }
  463. .item-hr-two {
  464. width: 0px;
  465. height: auto;
  466. border-right: 1rpx dashed #999;
  467. }
  468. .item-left {
  469. width: 220rpx;
  470. height: auto;
  471. padding: 20rpx 24rpx;
  472. box-sizing: border-box;
  473. position: relative;
  474. border-radius: 0 20rpx 20rpx 0;
  475. }
  476. .but-box {
  477. width: 152rpx;
  478. height: 52rpx;
  479. line-height: 52rpx;
  480. text-align: center;
  481. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  482. border-radius: 200rpx;
  483. }
  484. .ball {
  485. width: 24rpx;
  486. height: 24rpx;
  487. border-radius: 50%;
  488. position: absolute;
  489. top: -12rpx;
  490. left: -12rpx;
  491. background: #F5F5F5;
  492. z-index: 2;
  493. }
  494. .ball-two {
  495. width: 24rpx;
  496. height: 24rpx;
  497. border-radius: 50%;
  498. position: absolute;
  499. background: #F5F5F5;
  500. z-index: 10;
  501. bottom: -12rpx;
  502. left: -12rpx;
  503. }
  504. }
  505. .shop-index {
  506. position: relative;
  507. .right-only-right-red {
  508. width: 44rpx;
  509. height: 44rpx;
  510. line-height: 40rpx;
  511. border-radius: 12rpx;
  512. border: 1rpx solid #41ABF5;
  513. color: #41ABF5;
  514. }
  515. .right-only-right-add {
  516. width: 44rpx;
  517. height: 44rpx;
  518. line-height: 40rpx;
  519. background: linear-gradient(117deg, #57CAFF 0%, #41ABF5 100%);
  520. border-radius: 12rpx;
  521. }
  522. .right-only-right-2 {
  523. min-width: 50rpx;
  524. }
  525. .w-514 {
  526. width: 514rpx;
  527. }
  528. .bg-img {
  529. position: absolute;
  530. top: 0;
  531. left: 0;
  532. width: 100%;
  533. height: 280rpx;
  534. z-index: -1;
  535. }
  536. .mb-box {
  537. position: absolute;
  538. top: 0;
  539. left: 0;
  540. width: 100%;
  541. height: 280rpx;
  542. z-index: -1;
  543. background: rgba(51, 51, 51, 0.50);
  544. }
  545. .nav-box {
  546. margin-bottom: 110rpx;
  547. .nav-img {
  548. width: 56rpx;
  549. height: 56rpx;
  550. }
  551. }
  552. .shop-buttom-money {
  553. width: 100%;
  554. height: 140rpx;
  555. background: rgba(255, 255, 255, 0.8);
  556. padding: 20rpx 24rpx;
  557. .shop-buttom-money-1 {
  558. width: 100%;
  559. height: 100%;
  560. background: #333333;
  561. border-radius: 200rpx;
  562. box-sizing: border-box;
  563. padding-left: 136rpx;
  564. // padding-right: 32rpx;
  565. position: relative;
  566. image {
  567. position: absolute;
  568. bottom: 0;
  569. left: 8rpx;
  570. width: 128rpx;
  571. height: 128rpx;
  572. }
  573. .shop-buttom-num {
  574. width: 32rpx;
  575. height: 32rpx;
  576. line-height: 32rpx;
  577. background: #FB3D03;
  578. border-radius: 50%;
  579. position: absolute;
  580. top: 36rpx;
  581. left: 82rpx;
  582. }
  583. .shop-buttom-money-2 {
  584. width: 200rpx;
  585. height: 100rpx;
  586. line-height: 100rpx;
  587. background: #41ABF5;
  588. border-radius: 0rpx 200rpx 200rpx 0rpx;
  589. }
  590. }
  591. }
  592. .head-box {
  593. width: 100%;
  594. position: relative;
  595. .shop-info-box {
  596. position: absolute;
  597. top: -50rpx;
  598. left: 24rpx;
  599. width: 702rpx;
  600. // min-height: 156rpx;
  601. border-radius: 20rpx;
  602. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
  603. .info-box-top {
  604. .box-top-left {
  605. .top-left-1 {
  606. width: 480rpx;
  607. margin-bottom: 8rpx;
  608. }
  609. .img-x {
  610. width: 24rpx;
  611. height: 24rpx;
  612. }
  613. }
  614. .box-top-right {
  615. width: 100rpx;
  616. height: 100rpx;
  617. border-radius: 12rpx;
  618. }
  619. }
  620. .info-box-quan-list {
  621. width: 164rpx;
  622. height: 48rpx;
  623. margin: 0 8rpx 8rpx 0;
  624. position: relative;
  625. image {
  626. width: 164rpx;
  627. height: 48rpx;
  628. position: absolute;
  629. top: 0;
  630. left: 0;
  631. z-index: 1;
  632. }
  633. .quan-list-1 {
  634. position: absolute;
  635. top: 3rpx;
  636. left: 8rpx;
  637. z-index: 2;
  638. }
  639. .quan-list-2 {
  640. position: absolute;
  641. top: 8rpx;
  642. right: 22rpx;
  643. z-index: 2;
  644. }
  645. }
  646. }
  647. }
  648. .head-box-1 {
  649. width: 100%;
  650. height: 88rpx;
  651. border-bottom: 1rpx solid #eee;
  652. .shop-type-list {
  653. height: 88rpx;
  654. position: relative;
  655. .shop-item-bs {
  656. position: absolute;
  657. bottom: 0;
  658. width: 40rpx;
  659. height: 6rpx;
  660. border-radius: 20rpx;
  661. background-color: #41ABF5;
  662. transition: left 0.5s;
  663. }
  664. .shop-item {
  665. margin-right: 90rpx;
  666. position: relative;
  667. .pj-num {
  668. position: absolute;
  669. right: -80rpx;
  670. top: 0;
  671. text-align: left;
  672. width: 80rpx;
  673. }
  674. }
  675. .s-item {
  676. font-weight: 600;
  677. color: #333;
  678. }
  679. .n-item {
  680. font-weight: 400;
  681. color: #666;
  682. }
  683. }
  684. }
  685. .buy-card {
  686. height: 828rpx;
  687. background-color: #fff;
  688. border-radius: 24rpx 24rpx 0rpx 0rpx;
  689. .buy-card-top {
  690. width: 100%;
  691. height: 92rpx;
  692. background: #FCF5DB;
  693. border-radius: 24rpx 24rpx 0rpx 0rpx;
  694. }
  695. .buy-card-item {
  696. width: 100%;
  697. height: 176rpx;
  698. margin-bottom: 32rpx;
  699. .goods_img {
  700. width: 152rpx;
  701. height: 152rpx;
  702. border-radius: 12rpx;
  703. margin-right: 20rpx;
  704. }
  705. }
  706. }
  707. }
  708. </style>