goodsDetails.vue 35 KB

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