多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1835 lines
45 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <view
  3. class="container u-skeleton"
  4. @scroll="handlePageScroll"
  5. >
  6. <global-loading/>
  7. <view style="background-color: #FAFAFA">
  8. <!-- 拼团滚动-->
  9. <view class="news-box">
  10. <view class="news-bg">
  11. <swiper
  12. class="goodsImgswiper-box"
  13. :vertical="true"
  14. :circular="true"
  15. interval="8000"
  16. duration="2000"
  17. :autoplay="true"
  18. >
  19. <swiper-item
  20. v-for="(item, index) of broadCastList"
  21. :key="index"
  22. >
  23. <view class="news-item flex-items">
  24. <image
  25. class="item-avatar"
  26. :src="item.headImage"
  27. ></image>
  28. <view class="news-item-user">{{ item.name }}</view>
  29. <view class="news-item-info">{{ item.timeStr }}</view>
  30. <view
  31. class="news-item-info"
  32. v-if="item.type === 1"
  33. >给了好评
  34. </view>
  35. <view
  36. class="news-item-info"
  37. v-if="item.type === 2"
  38. >正在拼单
  39. </view>
  40. <view
  41. class="news-item-info"
  42. v-if="item.type === 3"
  43. >拼单成功
  44. </view>
  45. <view
  46. class="news-item-info"
  47. v-if="item.type === 4"
  48. >下单
  49. </view>
  50. </view>
  51. </swiper-item>
  52. </swiper>
  53. </view>
  54. </view>
  55. <!-- 轮播图+分享+价格名称+活动倒计时+优惠券 -->
  56. <GoodActivityDetail
  57. ref="goodActivityDetail"
  58. :sku-select="selectedSku"
  59. :product-info="productData"
  60. :time-active-type="timeActiveType"
  61. :mark-tools="markTools"
  62. :shop-mark-tools="shopMarkTools"
  63. @activityEnd="handleActivityEnd"
  64. @couponClick="handleShowCoupon"
  65. />
  66. <view class="prod-descr-title">产品描述</view>
  67. <view class="prod-descr-content">POÄNG 波昂扶手椅设计经典舒适耐用推出40多年来一直深受大众喜爱延续了摇椅经典的弯曲造型舒适的弹性达到全新高度</view>
  68. <view class="border-line"/>
  69. <!-- 选择SKU -->
  70. <view
  71. class="fs24 chooseSize-box flex-start"
  72. @click=" handleShowGoodsSkuSelect(6)">
  73. <view class="chooseSize-content flex-items flex-row flex-sp-between u-skeleton-fillet">
  74. <view class="flex-row-plus ">
  75. <label class="fs28 font-color-252744 fs-bold mar-left-30 font-color-999">{{$t('product.specification')}}</label>
  76. <view class="fs28 font-color-595B6B mar-left-30 flex-items">
  77. <view
  78. class="mar-right-10"
  79. v-for="(item, index) of currentSuk"
  80. :key="index"
  81. >{{ item.skuText || '-' }}
  82. </view>
  83. </view>
  84. </view>
  85. <image
  86. class="arrow-icon"
  87. src="http://36.138.125.206:8081/ceres-local-file/image/icon_common_grey_forward.png"
  88. ></image>
  89. </view>
  90. </view>
  91. <view class="sku-image-box">
  92. <!--规格图片遍历处理最大只显示4个-->
  93. <block v-for="(skuImgItem,skuImgIndex) in productData.names[0].values" :key="skuImgIndex">
  94. <image class="sku-image" :class="{'sku-image-select' : skuImgItem.valueCode === selectedSku.valueCodes}" @click="handleClickSku(productData.names[0].nameCode, skuImgItem.valueCode)"
  95. :src="skuImgItem.image ? skuImgItem.image: defaultImageUrl" @error="onImageError"/>
  96. </block>
  97. <image class="sku-image-more" @click=" handleShowGoodsSkuSelect(6)" src="http://36.138.125.206:8081/ceres-local-file/image/prod_detail_sku_more.png"/>
  98. </view>
  99. <view class="border-line"/>
  100. <!-- 发货 -->
  101. <view class="express-box flex-items flex-row fs24 u-skeleton-fillet">
  102. <label class="fs28 font-color-252744 fs-bold mar-right-20 ">{{$t('order.send')}}</label>
  103. <!-- <image
  104. src="http://36.138.125.206:8081/ceres-local-file/static/images/mapIcon.png"
  105. v-if="productData.receive && productData.receive.receiveAdress"
  106. ></image>-->
  107. <label
  108. class="fs28 font-color-595B6B mar-left-10 mapName mar-right-30"
  109. v-if="productData.receive && productData.receive.receiveAdress"
  110. >{{
  111. productData.receive.receiveAdress
  112. }}</label>
  113. <label class="fs28 font-color-595B6B">{{$t('common.express')}}¥ {{ productData.logisticsPrice || 0 }}</label>
  114. </view>
  115. <view class="border-line-wide"/>
  116. <!--结合销售-->
  117. <combined-sales
  118. :pid="productId"
  119. :productData="productData"
  120. ></combined-sales>
  121. <!--拼团-->
  122. <view
  123. v-if="selectedSku.activityType === 1"
  124. class="borRig-line-20"
  125. ></view>
  126. <!-- 拼单列表 -->
  127. <view
  128. v-if="selectedSku.activityType === 1&&topThreeCollageOrders.length > 0"
  129. class="goodsDiscount"
  130. >
  131. <view class="questionTit mar-left-30 flex-items flex-row flex-sp-between">
  132. <label class="">这些人正在拼单</label>
  133. <view class="allMoreBox">
  134. <view
  135. class="allMore"
  136. @click="handleOpenGroupBookingList"
  137. >查看全部
  138. </view>
  139. <image
  140. class="evaluateAllArrow-icon mar-left-10"
  141. src="http://36.138.125.206:8081/ceres-local-file/static/img/user/arrow.png"
  142. ></image>
  143. </view>
  144. </view>
  145. <view
  146. class="groupBuy"
  147. v-for="(Gitem, index) in topThreeCollageOrders"
  148. :key="index"
  149. >
  150. <view
  151. class="groupBuyList"
  152. v-if="Gitem.time > 0"
  153. >
  154. <view class="groupBuyItem">
  155. <view class="leftAvatar">
  156. <img
  157. :src="Gitem.headImage"
  158. alt=""
  159. >
  160. <span>{{ Gitem.name }}</span>
  161. </view>
  162. <view class="rightInfo">
  163. <view
  164. class="groupBuyTime"
  165. style="width: 70%;"
  166. >
  167. <view class="needPeople flex-row-plus">还差<b>{{ Gitem.person }}</b>拼成</view>
  168. <view class="endDate">剩余{{ handleGetDownTime(Gitem.time) }}</view>
  169. </view>
  170. <view
  171. class="groupBuyBtn"
  172. @click="handleGoGroupBooking(Gitem.collageId)"
  173. >和Ta拼
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. <!-- 评价 -->
  181. <GoodEvaluateAndQuestion
  182. ref="goodEvaluateAndQuestion"
  183. class=" u-skeleton-fillet"
  184. :product-info="productData"
  185. :comment-list="commentList"
  186. />
  187. <!-- 店铺 -->
  188. <view class="inStore-box flex-items flex-row flex-sp-between u-skeleton-fillet">
  189. <view class="flex-display flex-row">
  190. <view>
  191. <image
  192. @click="handleJumpToStore"
  193. class="inStore-logo default-img"
  194. onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null"
  195. :src="productData.shopLogo"
  196. ></image>
  197. </view>
  198. <view class="flex-display flex-column mar-left-20">
  199. <label @click="handleJumpToStore" class="fs32 fs-bold font-color-252744">{{ productData.shopName }}</label>
  200. <view class="flex-display flex-row fs24 font-color-252744 mar-top-5">
  201. <label>{{$t('common.classifynum')}}{{ productData.classifyNumber }}</label>
  202. <label class="mar-left-30">{{$t('common.soldnum',{number:productData.number})}}</label>
  203. </view>
  204. </view>
  205. </view>
  206. <view
  207. class="inStore-but"
  208. @click="handleJumpToStore"
  209. >去逛逛
  210. </view>
  211. </view>
  212. <!-- 详细信息 -->
  213. <view class="goodsDetails-box u-skeleton-fillet">
  214. <view class="goodsDetails-title">
  215. <view class="goodsDetails-Line"></view>
  216. <label class="goodsDetails-text">{{$t('common.goodsdetail')}}</label>
  217. <view class="goodsDetails-Line"></view>
  218. </view>
  219. <view class="goodsDetailsimg-box">
  220. <view class="">
  221. <rich-text :nodes="sellDescList"></rich-text>
  222. </view>
  223. </view>
  224. </view>
  225. </view>
  226. <!-- 底部购买 -->
  227. <view class="buygoods-box">
  228. <!-- <view
  229. class="buygoodsBut-box flex-row-plus"
  230. :style="{'height':(isIphone === true? 160:130)+'rpx'}"
  231. >-->
  232. <view
  233. class="buygoodsBut-box flex-row-plus"
  234. >
  235. <view class="btns_container">
  236. <view
  237. class="btns flex-column-plus"
  238. @click="handleJumpToStore"
  239. >
  240. <image
  241. class="store-icon"
  242. src="http://36.138.125.206:8081/ceres-local-file/image/prod_detail_shop.png"
  243. ></image>
  244. <!-- <label class="fs20 font-color-252744">{{$t('common.beautishop')}}</label>-->
  245. </view>
  246. <!-- #ifdef MP-WEIXIN || APP-PLUS || H5 -->
  247. <!-- <view
  248. class="btns flex-column-plus mar-left-10"
  249. @click="flyToService"
  250. >
  251. <image
  252. class="store-icon"
  253. src="http://36.138.125.206:8081/ceres-local-file/static/images/service-product-detail.png"
  254. ></image>
  255. <label class="fs22">{{$t('common.service')}}</label>
  256. </view>-->
  257. <!-- #endif -->
  258. <view
  259. class="btns flex-column-plus mar-left-10 flex-items Cart"
  260. @click="handleJumpToShopCart"
  261. >
  262. <view
  263. class="cartAllNum"
  264. v-if="allCartNum>0"
  265. >{{ allCartNum }}
  266. </view>
  267. <image
  268. class="store-icon"
  269. src="http://36.138.125.206:8081/ceres-local-file/image/prod_detail_cart.png"
  270. ></image>
  271. <!-- <label class="fs20 font-color-252744">{{$t('page.shoppingcart')}}</label>-->
  272. </view>
  273. </view>
  274. <view class="btns_container">
  275. <view
  276. class="flex-row-plus offShelf"
  277. v-if="productData.shelveState === 0"
  278. >
  279. {{$t('common.spyxj')}}
  280. </view>
  281. <view
  282. class="flex-row-plus flex-items"
  283. v-else-if="selectedSku.activityType === 1"
  284. >
  285. <view
  286. class="joinShopCartBut"
  287. @click=" handleShowGoodsSkuSelect(4)"
  288. >{{$t('common.ddgm')}}
  289. </view>
  290. <view
  291. class="buyNowBut"
  292. @click=" handleShowGoodsSkuSelect(3)"
  293. >{{$t('common.wykt')}}
  294. </view>
  295. </view>
  296. <view
  297. class="flex-row-plus flex-items"
  298. v-else
  299. >
  300. <view
  301. class="joinShopCartBut"
  302. @click=" handleShowGoodsSkuSelect(1)"
  303. >{{$t('common.addtocart')}}
  304. </view>
  305. <view
  306. class="buyNowBut"
  307. @click=" handleShowGoodsSkuSelect(2)"
  308. >{{$t('common.buynow')}}
  309. </view>
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. <!-- 回到顶部 -->
  315. <view class="returnTopService-box">
  316. <view
  317. class="returnTop-box flex-items-plus flex-column"
  318. @click="handleReturnTop"
  319. :style="{'display':(returnTopFlag===true? 'flex':'none')}"
  320. >
  321. <image
  322. class="returnTopImg"
  323. src="http://36.138.125.206:8081/ceres-local-file/image/scroll_top.png"
  324. ></image>
  325. </view>
  326. </view>
  327. <!-- SKU选择器 -->
  328. <GoodSkuSelect
  329. ref="skuSelect"
  330. :product-data="productData"
  331. :selected-sku="selectedSku"
  332. :collage-id="collageId"
  333. @postSelectSku="selectSkuPostProcessor"
  334. @getCurrentSku="handleSelectSku"
  335. @changeCartNum="(num)=>allCartNum = num"
  336. />
  337. <!-- 优惠券选择器 -->
  338. <coupon-popup
  339. ref="couponPopup"
  340. :markTools="markTools"
  341. :shopMarkTools="shopMarkTools"
  342. :setTop="topLeft"
  343. :currentActive="currentActive"
  344. ></coupon-popup>
  345. <!-- 拼单弹框 -->
  346. <u-popup
  347. class="popupDiscount"
  348. v-model="showGroupBuyList"
  349. mode="center"
  350. border-radius="14"
  351. close-icon-pos="top-right"
  352. close-icon-size="20"
  353. >
  354. <view class="popupDiscountTit">这些人正在拼单</view>
  355. <view class="groupBuy">
  356. <view class="groupBuyList">
  357. <scroll-view
  358. style="height: 480upx;"
  359. scroll-y
  360. >
  361. <view
  362. class="groupBuyItem1"
  363. v-for="(aitem,index) in selectedSku.collageOrders"
  364. :key="index"
  365. >
  366. <view
  367. class="leftAvatar"
  368. v-if="aitem.time > 0"
  369. >
  370. <img
  371. :src="aitem.headImage"
  372. alt=""
  373. >
  374. <view class="groupBuyTime">
  375. <view class="needPeople"><span>{{ aitem.name }}</span>还差<b>{{ aitem.person }}</b>
  376. </view>
  377. <view class="endDate">剩余{{ handleGetDownTime(aitem.time) }}</view>
  378. </view>
  379. </view>
  380. <view
  381. class="rightInfo"
  382. v-if="aitem.time > 0"
  383. >
  384. <view
  385. class="groupBuyBtn"
  386. @click="handleGoGroupBooking(aitem.collageId)"
  387. >和Ta拼
  388. </view>
  389. </view>
  390. </view>
  391. </scroll-view>
  392. </view>
  393. </view>
  394. </u-popup>
  395. <!-- 骨架屏 -->
  396. <Skeleton
  397. el-color="#efefef"
  398. bg-color="#fff"
  399. :loading="isFirstComeIn&&loading"
  400. :animation="true"
  401. ></Skeleton>
  402. </view>
  403. </template>
  404. <script>
  405. import Skeleton from "../../components/Skeleton";
  406. import UButton from "../../uview-ui/components/u-button/u-button";
  407. import CombinedSales from "@/components/activities/combinedSales";
  408. import CouponPopup from "../../components/goodsDetalils/coupon-popup";
  409. import { Services } from "../../utils/services";
  410. import GoodEvaluateAndQuestion from "./components/GoodEvaluateAndQuestion";
  411. import GoodActivityDetail from "./components/GoodActivityDetail";
  412. import GoodSkuSelect from "./components/GoodSkuSelect";
  413. import { TimeFormatting } from "../../utils/timeUtil";
  414. import USkeleton from "../../uview-ui/components/u-skeleton/u-skeleton";
  415. const NET = require('../../utils/request')
  416. const API = require('../../config/api')
  417. export default {
  418. components: {
  419. USkeleton,
  420. Skeleton,
  421. CouponPopup,
  422. CombinedSales,
  423. UButton,
  424. GoodEvaluateAndQuestion, GoodActivityDetail, GoodSkuSelect
  425. },
  426. data() {
  427. return {
  428. isFirstComeIn: true,
  429. loading: true,
  430. isIphone: "",
  431. returnTopFlag: false, // 回到顶部
  432. productId: '', // 商品ID,有可能屎缓存数据
  433. shopGroupWorkId: null,// 拼团数据ID
  434. topThreeCollageOrders: {}, //当前商品拼单数据
  435. collageId: 0, // 去拼团时的拼单ID
  436. broadCastList: [], // 拼团滚动数据
  437. showGroupBuyList: false, // 是否展示拼单弹窗
  438. shopGroupWorkTicker: null, // 拼团倒计时定时器
  439. paramSkuId: null, // 秒杀商品ID
  440. // 商品详情
  441. productData: {},
  442. // 当前选中SKU
  443. selectedSku: {},
  444. currentSuk: [], // 选中的SKU(子组件给当前页面做数据渲染)
  445. buyNum: 1,// 当前选取的SKU购买数量
  446. storeId: '',// 店铺ID
  447. commentList: [], // 商品评价列表
  448. sellDescList: '', // 商品详情长图(富文本)
  449. timeActiveType: true,// 是否开启活动(非则预热)
  450. btnType: 1, // 拉起SKU窗口的按钮类型 1加入购物车 2立即购买 3开团 4单独购买 6选择SKU
  451. allCartNum: 0, // 购物车数量
  452. markTools: [], //平台优惠券
  453. shopMarkTools: [], //店铺优惠券
  454. currentActive: 0, // 优惠券选项卡类型
  455. topLeft: 0, // 距离顶部(返回顶部使用)
  456. // 埋点对象
  457. pointOption: {
  458. inTime: null,
  459. data: {
  460. eventType: 1,
  461. productIds: '',
  462. }
  463. },
  464. defaultImageUrl: 'http://36.138.125.206:8081/ceres-local-file/image/sku_default.png'
  465. }
  466. },
  467. created() {
  468. if (this.ticker) { //这一段是防止进入页面出去后再进来计时器重复启动
  469. clearInterval(this.ticker);
  470. }
  471. if (this.allCartNum > 99) {
  472. this.allCartNum = '...'
  473. }
  474. },
  475. beforeDestroy() {
  476. },
  477. onShow() {
  478. },
  479. onLoad(options) {
  480. // 页面滚动条归0,不然骨架屏有问题
  481. uni.pageScrollTo({
  482. scrollTop:0,
  483. duration:0
  484. })
  485. this.productData = {
  486. logisticsPrice: 0,
  487. images: ['123', '123', '123'],
  488. productName: '....',
  489. ifCollect: 1,
  490. }
  491. this.selectedSku = {
  492. activityType: 0,
  493. originalPrice: 0
  494. }
  495. if(options.detail){
  496. options = this.$getJumpParam(options)
  497. }
  498. this.isFirstComeIn = true
  499. this.loading = true
  500. let salesId = null
  501. this.pointOption.inTime = new Date().getTime()
  502. this.isIphone = getApp().globalData.isIphone;
  503. let item = getApp().globalData.productShareItem
  504. if (item) {
  505. const item = getApp().globalData.productShareItem
  506. this.shopId = parseInt(item.shopId)
  507. this.productId = item.productId
  508. this.paramSkuId = item.skuId
  509. salesId = parseInt(item.salesId)
  510. getApp().globalData.productShareItem = undefined
  511. } else {
  512. this.shopId = parseInt(options.shopId)
  513. this.productId = options.productId
  514. this.paramSkuId = options.skuId
  515. salesId = parseInt(options.salesId)
  516. }
  517. // 判断是否是拼团
  518. if (options.shopGroupWorkId) {
  519. this.shopGroupWorkId = options.shopGroupWorkId
  520. }
  521. this.handleGetProductDetail()
  522. // 绑定分销关系
  523. salesId && this.shopId ? this.bindSalesCustomer(salesId, this.shopId) : ''
  524. this.allCartNum = uni.getStorageSync('allCartNum')
  525. },
  526. onUnload() {
  527. // 判断是否要埋点
  528. const nowTime = new Date().getTime()
  529. if (nowTime - this.pointOption.inTime >= 5000) {
  530. // 埋点
  531. this.pointOption.data.productIds = this.productId
  532. this.$store.dispatch('doPointer', this.pointOption.data)
  533. }
  534. // 销毁平团倒计时计时器
  535. if (this.shopGroupWorkTicker) {
  536. clearInterval(this.shopGroupWorkTicker)
  537. this.shopGroupWorkTicker = null
  538. }
  539. },
  540. mounted() {
  541. },
  542. onPageScroll(e) {
  543. this.returnTopFlag = e.scrollTop > 600;
  544. this.topLeft = e.scrollTop
  545. },
  546. methods: {
  547. /**
  548. * 页面滚动事件
  549. * @param e
  550. */
  551. handlePageScroll(e) {
  552. this.topLeft = e.scrollTop
  553. },
  554. /**
  555. * 选取sku
  556. * @param skuObj:{currentSuk:object,selectedSku:object,buyNum:number}
  557. */
  558. handleSelectSku(skuObj) {
  559. this.currentSuk = skuObj.currentSku
  560. this.selectedSku = skuObj.skuItem
  561. this.buyNum = skuObj.buyNum
  562. },
  563. /**
  564. * 选择sku后置方法
  565. * 判断有无活动等操作
  566. */
  567. selectSkuPostProcessor() {
  568. const ifEnable = this.selectedSku['ifEnable']
  569. if (this.selectedSku.activityType === 1 && ifEnable === 0) {
  570. this.topThreeCollageOrders = this.selectedSku.collageOrders.slice(0, 3)
  571. }
  572. if ([1, 2, 3, 4, 5].includes(this.selectedSku.activityType) && ifEnable === 0) {
  573. this.$refs.goodActivityDetail.handleGetCountDownNumber(this.selectedSku.endTime)
  574. }
  575. this.timeActiveType = ifEnable === 0;
  576. },
  577. /**
  578. * 获取拼团滚动数据
  579. */
  580. async handleGetGroupBookingRollList() {
  581. let param = {
  582. productId: this.productId,
  583. shopGroupWorkId: this.shopGroupWorkId ?? undefined,
  584. }
  585. const res = await NET.request(API.GetBroadCastList, param, 'GET')
  586. this.broadCastList = res.data
  587. },
  588. /**
  589. * 和他人拼单
  590. * @param collageId 已存在的拼团订单ID
  591. */
  592. handleGoGroupBooking(collageId) {
  593. this.showGroupBuyList = false
  594. this.collageId = collageId
  595. this.$refs.skuSelect.goodsDetailShowFlag = true
  596. },
  597. /**
  598. * 设置拼团倒计时
  599. */
  600. handleSetDownTime() { //这个计时器是每秒减去数组中指定字段的时间
  601. let productHaveCollageOrder = false
  602. // 判断sku组合中是否存在拼单
  603. const skuCollects = this.productData.map
  604. for (const skuCollectItemKey in skuCollects) {
  605. const collageOrders = skuCollects[skuCollectItemKey]['collageOrders']
  606. if (collageOrders && collageOrders.length > 0) {
  607. productHaveCollageOrder = true
  608. break
  609. }
  610. }
  611. if (!productHaveCollageOrder) return
  612. this.shopGroupWorkTicker = setInterval(() => {
  613. for (const skuCollectItemKey in skuCollects) {
  614. const collageOrders = skuCollects[skuCollectItemKey]['collageOrders']
  615. if (collageOrders && collageOrders.length > 0) {
  616. collageOrders.forEach(collageItem => {
  617. collageItem.time > 0 ? collageItem.time -= 1000 : ''
  618. })
  619. }
  620. }
  621. }, 1000);
  622. },
  623. /**
  624. * 根据时间戳获取格式化时间处理计时器
  625. * @param remainMillSecs 毫秒还有多久结束
  626. * @return {string}
  627. */
  628. handleGetDownTime(remainMillSecs) {
  629. if (remainMillSecs <= 0) {
  630. clearInterval(this.shopGroupWorkTicker)
  631. this.shopGroupWorkTicker = null
  632. this.handleGetProductDetail()
  633. }
  634. const timeFormatting = TimeFormatting(remainMillSecs / 1000);
  635. return `${ timeFormatting.hour }:${ timeFormatting.min }:${ timeFormatting.sec }`;
  636. },
  637. /**
  638. * 跳转到购物车
  639. */
  640. handleJumpToShopCart() {
  641. this.$jumpToTabbar('../../pages/tabbar/cart/index')
  642. },
  643. /**
  644. * 跳转到店铺
  645. */
  646. handleJumpToStore() {
  647. this.$jump(`../store/index?storeId=${ this.shopId }`)
  648. },
  649. /**
  650. * 返回头部
  651. */
  652. handleReturnTop() {
  653. uni.pageScrollTo({
  654. scrollTop: 0,
  655. duration: 300
  656. });
  657. },
  658. /**
  659. * 打开SKU弹窗
  660. * @param type 1加入购物车 2立即购买 3开团 4单独购买 6选择SKU
  661. */
  662. handleShowGoodsSkuSelect(type) {
  663. // 为type情况时,绝不可能为和他人拼单
  664. this.collageId = 0
  665. this.$refs.skuSelect.btnType = type
  666. this.$refs.skuSelect.goodsDetailShowFlag = true
  667. },
  668. /**
  669. * 打开优惠券弹窗
  670. */
  671. handleShowCoupon() {
  672. this.$refs.couponPopup.showActivity = true
  673. },
  674. /**
  675. * 活动商品时间到后置方法
  676. * 供GoodActivityDetail组件调用
  677. */
  678. handleActivityEnd() {
  679. this.selectedSku.activityType = 0
  680. location.reload()
  681. },
  682. /**
  683. * 获取商品详情
  684. */
  685. async handleGetProductDetail() {
  686. this.loading = true
  687. // uni.showLoading({
  688. // title: '加载中...',
  689. // mask: true
  690. // })
  691. try {
  692. let postData = {
  693. shopId: this.shopId,
  694. productId: this.productId,
  695. skuId: this.paramSkuId,
  696. terminal: 1
  697. }
  698. const res = await NET.request(API.QueryProductDetail, postData, "GET")
  699. this.isFirstComeIn = false
  700. this.loading = false
  701. this.productData = res.data
  702. this.markTools = res.data.markTools //平台优惠券
  703. this.shopMarkTools = res.data.shopMarkTools //店铺优惠券
  704. this.currentActive = this.markTools.length === 0 && this.shopMarkTools.length > 0 ? 1 : 0
  705. //处理单规格商品,如果是单款式商品,需要特殊处理productData.names
  706. const skuCollectionList = this.productData.map
  707. const skuCollectionListKeys = Object.keys(skuCollectionList)
  708. if (skuCollectionListKeys.length === 1 && skuCollectionListKeys[0] === '单款项') {
  709. this.productData.names[0].values.push({
  710. skuValue: this.productData.names[0].skuName,
  711. valueCode: '单款项'
  712. })
  713. }
  714. //如果sku的图像为空,设置为商品的图像
  715. for (const key in skuCollectionList) {
  716. if (!skuCollectionList[key].image) {
  717. skuCollectionList[key].image = this.productData.images[0]
  718. }
  719. }
  720. // 评价
  721. this.commentList = res.data.comments
  722. // 宝贝详情
  723. this.sellDescList = res.data.text.replace(/\<img class=\"wscnph\"/gi,
  724. '<img')
  725. .replace(/\<img style=\"display: block; margin-left: auto; margin-right: auto;\"/gi,
  726. '<img')
  727. .replace(/\<img/gi,
  728. '<img style="display:block;float: none;margin: 0;padding: 0;width:100%;max-width:100%;height:auto" ')
  729. //渲染商详之后,如果参数传了skuId,则选中该skuId,否则选中第一个规格
  730. this.$nextTick(async () => {
  731. if (this.paramSkuId) {
  732. this.$refs.skuSelect.handleSelectBySkuId(this.paramSkuId)
  733. } else {
  734. // 默认选中第0个
  735. for (const skuRowItem of this.productData.names) {
  736. this.$refs.skuSelect.handleClickSkuItem(skuRowItem.nameCode, skuRowItem.values[0].valueCode)
  737. }
  738. }
  739. //如果是拼团,设置拼团id
  740. if (this.productData.activityType === 1) {
  741. this.shopGroupWorkId = this.productData.shopGroupWorkId
  742. await this.handleGetGroupBookingRollList()
  743. this.handleSetDownTime();
  744. }
  745. await this.$refs.goodEvaluateAndQuestion.handleGetProblemList()
  746. })
  747. } finally {
  748. uni.hideLoading()
  749. // this.loading = false
  750. }
  751. },
  752. /**
  753. * 绑定分销关系
  754. * @param salesId 分销员ID
  755. * @param storeId 店铺ID
  756. */
  757. bindSalesCustomer(salesId, storeId) {
  758. //如果已登录,静默绑定客户关系,否则跳转到登录页面
  759. if (!uni.getStorageSync('storage_key')) {
  760. uni.setStorageSync('salesId', salesId)
  761. uni.setStorageSync("shopId", storeId)
  762. uni.navigateTo({
  763. url: '../../pages_category_page2/userModule/login'
  764. })
  765. return
  766. }
  767. NET.request(API.BindSalesCustomer, {
  768. shopId: storeId,
  769. distributorId: salesId
  770. }, 'POST').then(res => {
  771. })
  772. }
  773. ,
  774. /**
  775. * 打开拼团列表
  776. */
  777. handleOpenGroupBookingList() {
  778. if (this.topThreeCollageOrders.length > 0) {
  779. this.showGroupBuyList = true
  780. } else {
  781. uni.showToast({
  782. title: "还没有人拼单,快去拼单吧!",
  783. icon: "none"
  784. })
  785. }
  786. }
  787. ,
  788. /**
  789. * 打开客服
  790. * @return {Promise<void>}
  791. */
  792. async flyToService() {
  793. (await Services(this.shopId)).flyToService()
  794. },
  795. handleClickSku(nameCode, valueCode) {
  796. this.$refs.skuSelect.handleClickSkuItem(nameCode,valueCode)
  797. },
  798. onImageError(e) {
  799. e.target.src = 'http://36.138.125.206:8081/ceres-local-file/image/sku_default.png';
  800. }
  801. }
  802. }
  803. </script>
  804. <style>
  805. .page {
  806. background-color: #F7F7F7;
  807. }
  808. </style>
  809. <style
  810. scoped
  811. lang="scss"
  812. >
  813. .page {
  814. background-color: #F7F7F7;
  815. }
  816. .news-box {
  817. position: fixed;
  818. left: 20rpx;
  819. top: 200rpx;
  820. z-index: 9999;
  821. .news-bg {
  822. width: 450rpx;
  823. height: 70rpx;
  824. overflow: hidden;
  825. .news-item {
  826. background: rgba(0, 0, 0, 0.75);
  827. border-radius: 16rpx;
  828. height: 70rpx;
  829. color: #FFFFFF;
  830. font-size: 24rpx;
  831. padding: 0 20rpx;
  832. width: 450rpx;
  833. .item-avatar {
  834. width: 50rpx;
  835. height: 50rpx;
  836. border-radius: 50%;
  837. margin-right: 20rpx;
  838. }
  839. }
  840. }
  841. }
  842. .tabsbox {
  843. width: 100%;
  844. margin-top: 20rpx;
  845. background-color: #FFFFFF;
  846. }
  847. .checkimg {
  848. width: 40rpx;
  849. height: 40rpx;
  850. margin-right: 30rpx;
  851. }
  852. .container {
  853. padding-bottom: 180upx;
  854. .arrow-icon {
  855. width: 16rpx;
  856. height: 28rpx;
  857. }
  858. .goodgDes-box {
  859. background-color: #FFFFFF;
  860. width: 100%;
  861. padding-bottom: 25rpx;
  862. .priceBuyNum-box {
  863. width: 677rpx;
  864. margin-top: 30rpx;
  865. }
  866. .nameContainer {
  867. display: flex;
  868. .goodsName-box {
  869. width: 677rpx;
  870. height: 85rpx;
  871. .img618-cion {
  872. width: 70rpx;
  873. height: 36rpx;
  874. }
  875. }
  876. .collectBox {
  877. width: 80rpx;
  878. margin: 0 30rpx 0 15rpx;
  879. display: flex;
  880. flex-direction: column;
  881. justify-content: center;
  882. align-items: center;
  883. }
  884. .store-icon {
  885. width: 48rpx;
  886. height: 48rpx;
  887. }
  888. }
  889. .discounts-box {
  890. margin-top: 20rpx;
  891. .discounts-text {
  892. margin-left: 10rpx;
  893. color: #FF7800;
  894. background-color: #FFE4CC;
  895. padding: 6rpx 12rpx;
  896. border-radius: 4rpx;
  897. }
  898. }
  899. .activity-box {
  900. display: flex;
  901. flex-direction: row;
  902. justify-content: center;
  903. align-items: flex-end;
  904. border-top: 1upx solid #EDEDED;
  905. .activity-content {
  906. width: 614rpx;
  907. padding-top: 20rpx;
  908. .activity-text {
  909. color: #FF7700;
  910. border: 1rpx solid #FF7700;
  911. padding: 6rpx 23rpx;
  912. }
  913. .coupon-arrow {
  914. width: 16rpx;
  915. height: 24rpx;
  916. margin-left: 15rpx;
  917. }
  918. }
  919. }
  920. }
  921. .express-box {
  922. height: 100rpx;
  923. padding-left: 30rpx;
  924. border-top: 12rpx solid #F8F8F8;
  925. border-bottom: 12rpx solid #F8F8F8;
  926. image {
  927. width: 21rpx;
  928. height: 27rpx;
  929. }
  930. .expressSite-icon {
  931. width: 30rpx;
  932. height: 30rpx;
  933. }
  934. .mapName {
  935. position: relative;
  936. &:before {
  937. content: '';
  938. width: 2rpx;
  939. height: 30rpx;
  940. background: #CCCCCC;
  941. display: block;
  942. position: absolute;
  943. right: -16rpx;
  944. top: 5rpx;
  945. }
  946. }
  947. }
  948. .chooseSize-box {
  949. height: 90rpx;
  950. margin: 10rpx 0;
  951. margin-right: 30rpx;
  952. .chooseSize-content {
  953. width: 100%;
  954. }
  955. }
  956. .questionTit {
  957. height: 90rpx;
  958. border-bottom: 1rpx solid #EEEEEE;
  959. margin-right: 35rpx;
  960. color: #333333;
  961. font-size: 30rpx;
  962. .allMoreBox {
  963. display: flex;
  964. align-items: center;
  965. color: #999999;
  966. font-size: 24rpx;
  967. .evaluateAllArrow-icon {
  968. width: 18rpx;
  969. height: 24rpx;
  970. }
  971. }
  972. }
  973. .shopEvaList {
  974. display: flex;
  975. padding: 30rpx;
  976. flex-wrap: wrap;
  977. border-bottom: 20rpx solid #EEEEEE;
  978. .shopEvaItem {
  979. padding: 0 14rpx;
  980. height: 60rpx;
  981. background: #ffe4cc;
  982. border-radius: 6rpx;
  983. line-height: 60rpx;
  984. text-align: center;
  985. font-size: 28rpx;
  986. color: #666666;
  987. margin: 0 20rpx 20rpx 0;
  988. }
  989. }
  990. .storeEvaluate-box {
  991. background-color: #FFFFFF;
  992. margin-top: 20rpx;
  993. .storeEvaluate {
  994. width: 690rpx;
  995. padding: 20rpx 0;
  996. border-bottom: 1rpx solid #EDEDED;
  997. }
  998. .storeEvaluateTag-box {
  999. margin-top: 10rpx;
  1000. margin-left: 10rpx;
  1001. padding-bottom: 30rpx;
  1002. display: flex;
  1003. flex-wrap: wrap;
  1004. .storeEvaluateTag-text {
  1005. background-color: #FFE4CC;
  1006. border-radius: 6rpx;
  1007. padding: 16rpx 14rpx;
  1008. color: #656565;
  1009. margin-left: 20rpx;
  1010. margin-top: 20rpx;
  1011. }
  1012. }
  1013. }
  1014. .inStore-box {
  1015. background-color: #FFFFFF;
  1016. padding: 30rpx 30rpx;
  1017. .inStore-logo {
  1018. width: 74rpx;
  1019. height: 74rpx;
  1020. border-radius: 20rpx;
  1021. }
  1022. .inStore-but {
  1023. width: 155rpx;
  1024. height: 68rpx;
  1025. line-height: 68rpx;
  1026. text-align: center;
  1027. font-size: 24rpx;
  1028. color: #FAFAFA;
  1029. background: #333333;
  1030. border-radius: 35rpx;
  1031. /* &:before {
  1032. content: '';
  1033. width: 60rpx;
  1034. height: 60rpx;
  1035. background: url("http://36.138.125.206:8081/ceres-local-file/static/images/arrow.png") no-repeat center center;
  1036. background-size: contain;
  1037. display: block;
  1038. position: absolute;
  1039. right: 0;
  1040. }*/
  1041. }
  1042. }
  1043. .goodsDetails-box {
  1044. background-color: #FFFFFF;
  1045. //margin-top: 20rpx;
  1046. padding: 20rpx 30rpx;
  1047. .goodsDetails-title {
  1048. display: flex;
  1049. flex-direction: row;
  1050. align-items: center;
  1051. margin-bottom: 30rpx;
  1052. color: #252744;
  1053. font-weight: bold;
  1054. font-size: 32rpx;
  1055. .goodsDetails-Line {
  1056. width: 252rpx;
  1057. border-bottom: 1rpx solid #D3D4DE;
  1058. }
  1059. .goodsDetails-text {
  1060. padding: 0 22rpx;
  1061. }
  1062. }
  1063. .goodsDetailsimg-box {
  1064. }
  1065. }
  1066. .priceExplain-box {
  1067. background-color: #FFFFFF;
  1068. margin-top: 20rpx;
  1069. padding: 20rpx 30rpx;
  1070. .priceExplain-title {
  1071. display: flex;
  1072. flex-direction: row;
  1073. align-items: center;
  1074. .priceExplain-Line {
  1075. width: 265rpx;
  1076. border-bottom: 1rpx solid #EDEDED;
  1077. }
  1078. .priceExplain-text {
  1079. padding: 0 22rpx;
  1080. }
  1081. }
  1082. .priceExplain-dot {
  1083. width: 9rpx;
  1084. height: 9rpx;
  1085. border: 1rpx solid #FF7700;
  1086. border-radius: 50%;
  1087. background-color: #FF7700;
  1088. }
  1089. }
  1090. .buygoods-box {
  1091. position: fixed;
  1092. bottom: 0rpx;
  1093. box-sizing: border-box;
  1094. z-index: 999;
  1095. .groupByInfo {
  1096. background: #fffbe9;
  1097. padding: 0 30rpx;
  1098. height: 80rpx;
  1099. .groupByInfoBox {
  1100. height: 80rpx;
  1101. }
  1102. .groupByLeft {
  1103. .groupByAvatar {
  1104. margin-right: 15rpx;
  1105. }
  1106. img {
  1107. width: 50rpx;
  1108. height: 50rpx;
  1109. }
  1110. .name {
  1111. font-size: 24rpx;
  1112. }
  1113. .groupByNum {
  1114. margin-right: 10rpx;
  1115. }
  1116. .groupByTime {
  1117. color: #333333;
  1118. }
  1119. }
  1120. .groupByBtn {
  1121. height: 60rpx;
  1122. background: #333333;
  1123. color: #FFEBC4;
  1124. font-size: 14rpx;
  1125. line-height: 60rpx;
  1126. text-align: center;
  1127. padding: 0 20rpx;
  1128. }
  1129. }
  1130. .buygoodsBut-box {
  1131. width: 750rpx;
  1132. height: 180rpx;
  1133. padding: 20rpx 32rpx;
  1134. background-color: #FFFFFF;
  1135. border-top-right-radius: 60rpx;
  1136. border-top-left-radius: 60rpx;
  1137. //box-shadow: 0rpx 0rpx 10rpx 1rpx #EDEDED;
  1138. box-sizing: border-box;
  1139. display: flex;
  1140. justify-content: space-between;
  1141. .btns_container {
  1142. display: flex;
  1143. align-items: center;
  1144. }
  1145. .btns {
  1146. width: 80rpx;
  1147. }
  1148. .Cart {
  1149. position: relative;
  1150. .cartAllNum {
  1151. position: absolute;
  1152. width: 30rpx;
  1153. height: 30rpx;
  1154. line-height: 30rpx;
  1155. text-align: center;
  1156. font-size: 17rpx;
  1157. color: #FFFFFF;
  1158. background: #F54639;
  1159. border-radius: 50%;
  1160. opacity: 1;
  1161. z-index: 999;
  1162. }
  1163. // #ifdef APP-PLUS
  1164. .cartAllNum {
  1165. right: -6rpx;
  1166. top: -6rpx;
  1167. }
  1168. // #endif
  1169. /* #ifdef H5 */
  1170. .cartAllNum {
  1171. right: -10rpx;
  1172. top: -6rpx;
  1173. }
  1174. /* #endif */
  1175. /* #ifdef MP-WEIXIN */
  1176. .cartAllNum {
  1177. right: -3rpx;
  1178. top: 0;
  1179. }
  1180. /* #endif */
  1181. }
  1182. .store-icon {
  1183. width: 48rpx;
  1184. height: 48rpx;
  1185. }
  1186. .joinShopCartBut {
  1187. width: 235rpx;
  1188. height: 88rpx;
  1189. background-color: #FFFFFF;
  1190. color: #333333;
  1191. font-size: 32rpx;
  1192. line-height: 85rpx;
  1193. border: 1px solid #252744;
  1194. border-radius: 49rpx;
  1195. text-align: center;
  1196. margin-left: 40rpx;
  1197. box-sizing: border-box;
  1198. }
  1199. .buyNowBut {
  1200. width: 235rpx;
  1201. height: 88rpx;
  1202. //background: #333333;
  1203. background: linear-gradient(-10deg, #252744, #484A66);
  1204. border-radius: 49rpx;
  1205. color: #FFFFFF;
  1206. font-size: 32rpx;
  1207. line-height: 85rpx;
  1208. text-align: center;
  1209. margin-left: 16rpx;
  1210. }
  1211. .offShelf {
  1212. background: #b7b7b7;
  1213. border-radius: 50rpx;
  1214. width: 360rpx;
  1215. margin-left: 50rpx;
  1216. line-height: 80rpx;
  1217. height: 80rpx;
  1218. justify-content: center;
  1219. color: #333333;
  1220. }
  1221. }
  1222. }
  1223. .returnTopService-box {
  1224. position: fixed;
  1225. bottom: 200rpx;
  1226. right: 30rpx;
  1227. .fs16 {
  1228. font-size: 16rpx;
  1229. }
  1230. .returnTop-box {
  1231. width: 98rpx;
  1232. height: 98rpx;
  1233. //border-radius: 50%;
  1234. //background: #FFFFFF;
  1235. //opacity: 0.8;
  1236. .returnTopImg {
  1237. width: 98rpx;
  1238. height: 98rpx;
  1239. }
  1240. }
  1241. .serviceImg-box {
  1242. width: 90rpx;
  1243. height: 90rpx;
  1244. border-radius: 50%;
  1245. background-color: #FFFFFF;
  1246. box-shadow: 0rpx 0rpx 5rpx 3rpx #999999;
  1247. .serviceImg {
  1248. width: 36rpx;
  1249. height: 36rpx;
  1250. display: block;
  1251. background: url("http://36.138.125.206:8081/ceres-local-file/static/images/serviceImg.png") no-repeat center center;
  1252. background-size: contain;
  1253. }
  1254. }
  1255. }
  1256. .parameterShow-box {
  1257. .parameter-title {
  1258. width: 100%;
  1259. text-align: center;
  1260. padding-bottom: 36rpx;
  1261. }
  1262. .parameter-modle {
  1263. width: 690rpx;
  1264. padding-bottom: 36rpx;
  1265. font-size: 26rpx;
  1266. }
  1267. .parameterTruebut-box {
  1268. background-color: #FFFFFF;
  1269. padding: 20rpx 0;
  1270. .parameterTruebut {
  1271. width: 690rpx;
  1272. height: 80rpx;
  1273. background-image: linear-gradient(135deg, #FFA100 10%, #FF7911 100%);
  1274. color: #FFFFFF;
  1275. border-radius: 40rpx;
  1276. line-height: 80rpx;
  1277. text-align: center;
  1278. font-size: 26rpx;
  1279. }
  1280. }
  1281. }
  1282. .couponShow-box {
  1283. .couponShow {
  1284. z-index: 333;
  1285. height: 1000rpx;
  1286. .couponTitle-box {
  1287. width: 100%;
  1288. }
  1289. .coupon-title-active {
  1290. color: #FF7700;
  1291. border-bottom: 2rpx solid #FF7700;
  1292. padding-bottom: 30rpx;
  1293. }
  1294. .usableCoupon-content {
  1295. padding: 30rpx 0;
  1296. .usableCoupon-box {
  1297. width: 690rpx;
  1298. height: 140rpx;
  1299. border-radius: 10rpx;
  1300. background-color: #FFE9D8;
  1301. .immediateUse-but {
  1302. color: #FF7800;
  1303. border-radius: 30rpx;
  1304. padding: 0 40rpx;
  1305. border-left: 3rpx solid #EBD7C7;
  1306. height: 140rpx;
  1307. border-radius: 60rpx;
  1308. line-height: 140rpx;
  1309. font-weight: bold;
  1310. }
  1311. }
  1312. }
  1313. }
  1314. }
  1315. .succeedShow-box {
  1316. position: absolute;
  1317. top: 220rpx;
  1318. left: 185rpx;
  1319. .succeedShow {
  1320. background-color: #7F7F7F;
  1321. width: 380rpx;
  1322. height: 280rpx;
  1323. border-radius: 10rpx;
  1324. opacity: 0.8;
  1325. .couponSucceedImg {
  1326. width: 200rpx;
  1327. height: 130rpx;
  1328. }
  1329. }
  1330. }
  1331. }
  1332. .activity-box {
  1333. display: flex;
  1334. flex-direction: column;
  1335. width: 100%;
  1336. height: 100%;
  1337. .title-box {
  1338. width: 100%;
  1339. height: 100upx;
  1340. display: flex;
  1341. flex-direction: row;
  1342. align-items: center;
  1343. justify-content: center;
  1344. position: relative;
  1345. border-bottom: solid 1px #EEEEEE;
  1346. }
  1347. }
  1348. .activity-coupon-box {
  1349. display: flex;
  1350. flex-direction: column;
  1351. width: 100%;
  1352. overflow: auto;
  1353. flex: 1;
  1354. }
  1355. .content-box {
  1356. width: 100%;
  1357. box-sizing: border-box;
  1358. display: flex;
  1359. flex-direction: column;
  1360. padding: 30rpx;
  1361. }
  1362. .tag-box {
  1363. width: 100%;
  1364. box-sizing: border-box;
  1365. height: 80rpx;
  1366. line-height: 80rpx;
  1367. font-size: 28rpx;
  1368. font-weight: 500;
  1369. color: #FF7911;
  1370. }
  1371. .label-lingqu {
  1372. width: 100%;
  1373. font-weight: 500;
  1374. color: rgba(51, 51, 51, 1);
  1375. }
  1376. .coupon-item {
  1377. width: 690rpx;
  1378. height: 120rpx;
  1379. border-radius: 10rpx;
  1380. display: flex;
  1381. flex-direction: row;
  1382. justify-content: space-between;
  1383. align-items: center;
  1384. margin-top: 20rpx;
  1385. flex-shrink: 0;
  1386. background-color: #FFE9D8;
  1387. }
  1388. .money-box {
  1389. width: 160rpx;
  1390. box-sizing: border-box;
  1391. padding-left: 30rpx;
  1392. font-weight: 500;
  1393. color: #FF7911;
  1394. }
  1395. .info-box {
  1396. display: flex;
  1397. flex-direction: column;
  1398. align-items: flex-start;
  1399. color: rgba(255, 121, 17, 1);
  1400. }
  1401. .receive-btn {
  1402. width: 200rpx;
  1403. height: 120rpx;
  1404. background: rgba(255, 233, 216, 1);
  1405. box-shadow: 0px 0px 5rpx 0px rgba(102, 102, 102, 0.35);
  1406. line-height: 120rpx;
  1407. text-align: center;
  1408. font-size: 28rpx;
  1409. font-weight: bold;
  1410. color: rgba(255, 121, 17, 1);
  1411. border-bottom-right-radius: 10rpx;
  1412. border-top-right-radius: 10rpx;
  1413. border-top-left-radius: 120rpx;
  1414. border-bottom-left-radius: 120rpx;
  1415. }
  1416. .received {
  1417. background: #f1f1f1;
  1418. color: #999;
  1419. }
  1420. .canvas-box {
  1421. display: block;
  1422. position: absolute;
  1423. top: 100rpx;
  1424. }
  1425. .sceneMarketingBox {
  1426. width: 100%;
  1427. background: url("https://zk-cereshop.oss-cn-shenzhen.aliyuncs.com/zkthink/2022-02-15/5f85fe4782e34c10b15b04f76c571d12_sceneMarketingDetailsIcon.png"
  1428. ) no-repeat center;
  1429. padding: 20rpx 30rpx;
  1430. background-size: cover;
  1431. display: flex;
  1432. justify-content: space-between;
  1433. align-items: center;
  1434. .sceneNameBox {
  1435. width: 220rpx;
  1436. text-align: center;
  1437. color: #C83732;
  1438. font-size: 20rpx;
  1439. }
  1440. }
  1441. .goodsDiscount {
  1442. .groupBuy {
  1443. .groupBuyList {
  1444. .groupBuyItem {
  1445. padding: 0 30rpx;
  1446. height: 116rpx;
  1447. display: flex;
  1448. align-items: center;
  1449. justify-content: space-between;
  1450. border-bottom: 1rpx solid #EEEEEE;
  1451. .leftAvatar {
  1452. display: flex;
  1453. align-items: center;
  1454. width: 50%;
  1455. img {
  1456. width: 72rpx;
  1457. height: 72rpx;
  1458. margin-right: 10rpx;
  1459. border-radius: 50%;
  1460. }
  1461. }
  1462. .rightInfo {
  1463. display: flex;
  1464. align-items: center;
  1465. width: 50%;
  1466. .groupBuyTime {
  1467. .needPeople {
  1468. font-size: 28rpx;
  1469. color: #333333;
  1470. margin-bottom: 10rpx;
  1471. font-weight: 400;
  1472. b {
  1473. color: #C5AA7B;
  1474. font-weight: 400;
  1475. }
  1476. }
  1477. .endDate {
  1478. color: #666666;
  1479. }
  1480. }
  1481. .groupBuyBtn {
  1482. width: 140rpx;
  1483. height: 60rpx;
  1484. line-height: 60rpx;
  1485. background: #333333;
  1486. text-align: center;
  1487. color: #FFEBC4;
  1488. font-size: 24rpx;
  1489. }
  1490. }
  1491. }
  1492. }
  1493. }
  1494. }
  1495. .popupDiscount {
  1496. padding-bottom: 70rpx;
  1497. .popupDiscountTit {
  1498. font-size: 36rpx;
  1499. color: #333333;
  1500. height: 105rpx;
  1501. line-height: 105rpx;
  1502. text-align: center;
  1503. border-bottom: 1rpx solid #EEEEEE;
  1504. }
  1505. .groupBuy {
  1506. padding-bottom: 80rpx;
  1507. .groupBuyList {
  1508. .groupBuyItem1 {
  1509. padding: 0 30rpx;
  1510. height: 116rpx;
  1511. display: flex;
  1512. align-items: center;
  1513. justify-content: space-between;
  1514. border-bottom: 1rpx solid #EEEEEE;
  1515. .leftAvatar {
  1516. display: flex;
  1517. align-items: center;
  1518. img {
  1519. width: 72rpx;
  1520. height: 72rpx;
  1521. margin-right: 10rpx;
  1522. border-radius: 50%;
  1523. }
  1524. .groupBuyTime {
  1525. margin-right: 80rpx;
  1526. margin-bottom: 10rpx;
  1527. width: 320rpx;
  1528. .needPeople {
  1529. font-size: 26rpx;
  1530. color: #333333;
  1531. span {
  1532. color: #333333;
  1533. padding-right: 10rpx;
  1534. }
  1535. b {
  1536. color: #C5AA7B;
  1537. font-weight: 400;
  1538. }
  1539. }
  1540. .endDate {
  1541. color: #333333;
  1542. opacity: 0.7;
  1543. font-size: 24rpx;
  1544. }
  1545. }
  1546. }
  1547. .rightInfo {
  1548. display: flex;
  1549. align-items: center;
  1550. .groupBuyBtn {
  1551. width: 140rpx;
  1552. height: 70rpx;
  1553. line-height: 70rpx;
  1554. background: #333333;
  1555. text-align: center;
  1556. color: #FFEBC4;
  1557. font-weight: 400;
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. }
  1564. .combination {
  1565. padding: 0 20rpx;
  1566. .combinationList {
  1567. width: 100%;
  1568. height: 680rpx;
  1569. background: #333333;
  1570. box-shadow: 0 20rpx 30rpx rgba(0, 0, 0, 0.3);
  1571. border-radius: 20rpx;
  1572. .combinationTitle {
  1573. padding: 32rpx 20rpx 0 30rpx;
  1574. image {
  1575. width: 211rpx;
  1576. height: 33rpx;
  1577. }
  1578. .combinationPrice {
  1579. padding: 0 20px;
  1580. height: 50rpx;
  1581. background: linear-gradient(90deg, #C83732 0%, #E25C44 100%);
  1582. box-shadow: 0 6rpx 12rpx rgba(233, 0, 0, 0.3);
  1583. border-radius: 26rpx;
  1584. line-height: 50rpx;
  1585. text-align: center;
  1586. color: #FFFFFF;
  1587. opacity: 0.8;
  1588. }
  1589. }
  1590. .buyBtn {
  1591. width: 96%;
  1592. height: 84rpx;
  1593. line-height: 84rpx;
  1594. border: 2rpx solid rgba(0, 0, 0, 0);
  1595. background: linear-gradient(88deg, #C5AA7B 0%, #FFEBC4 100%);
  1596. text-align: center;
  1597. color: #333333;
  1598. margin: 0 auto;
  1599. }
  1600. }
  1601. }
  1602. .prod-descr-title{
  1603. font-size: 28rpx;
  1604. font-weight: bold;
  1605. color: #252744;;
  1606. margin-left: 30rpx;
  1607. margin-top: 50rpx;
  1608. }
  1609. .prod-descr-content{
  1610. font-size: 28rpx;
  1611. font-weight: 400;
  1612. color: #595B6B;
  1613. margin-left: 30rpx;
  1614. margin-right: 30rpx;
  1615. margin-top: 20rpx;
  1616. }
  1617. .border-line{
  1618. box-sizing: border-box;
  1619. margin-right: 30rpx;
  1620. margin-left: 30rpx;
  1621. margin-top: 40rpx;
  1622. border: 1rpx solid #D3D4DE;
  1623. }
  1624. .sku-image-box{
  1625. display: flex;
  1626. flex-direction: row;
  1627. justify-content: flex-end;
  1628. margin-left: 30rpx;
  1629. }
  1630. .sku-image{
  1631. width: 86rpx;
  1632. height: 86rpx;
  1633. border: 2px solid #D3D4DE;
  1634. border-radius: 20rpx;
  1635. margin-right: 30rpx;
  1636. }
  1637. .sku-image-select{
  1638. width: 86rpx;
  1639. height: 86rpx;
  1640. border: 2px solid #252744;
  1641. border-radius: 20rpx;
  1642. margin-right: 30rpx;
  1643. }
  1644. .sku-image-more{
  1645. width: 92rpx;
  1646. height: 92rpx;
  1647. margin-right: 30rpx;
  1648. }
  1649. .border-line-wide{
  1650. width: 100%;
  1651. border: 10rpx solid #D3D4DE;
  1652. }
  1653. </style>