shop.vue 20 KB

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