goodsDetails.vue 38 KB

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