shop.vue 20 KB

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