shop.vue 18 KB

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