shop.vue 19 KB

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