shop.vue 18 KB

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