shop.vue 20 KB

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