shop.vue 18 KB

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