index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  1. <template>
  2. <view class="goods-details-container">
  3. <BeeBack>
  4. <view style="display: flex;align-items: center;justify-content: space-between;">
  5. <BeeIcon name="arrowleft" :size="34" color="#222229" style="width: fit-content;">
  6. </BeeIcon>
  7. <text style="flex: 1;margin-left: -40upx;text-align: center;line-height: 2.5;">商品详情</text>
  8. </view>
  9. </BeeBack>
  10. <view style="padding-bottom: 160upx;">
  11. <!-- 拼团滚动 -->
  12. <view class="news-box">
  13. <view class="news-bg">
  14. <swiper vertical circular interval="8000" duration="2000" autoplay>
  15. <swiper-item v-for="(item, index) in broadCastList" :key="index">
  16. <view class="news-item flex-items">
  17. <image class="item-avatar" :src="common.seamingImgUrl(item.headImage)"></image>
  18. <view class="news-item-user">{{ item.name }}</view>
  19. <view>{{ item.timeStr }}</view>
  20. <view v-if="item.type === 1">给了好评</view>
  21. <view v-if="item.type === 2">正在拼单</view>
  22. <view v-if="item.type === 3">拼单成功</view>
  23. <view v-if="item.type === 4">下单</view>
  24. </view>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. </view>
  29. <!-- 轮播图+分享+价格名称+活动倒计时+优惠券 -->
  30. <GoodActivityDetail
  31. ref="goodActivityDetail" :sku-select="selectedCurrentMsg.selectedSku"
  32. :goods-detail="goodsDetail" @activityEnd="handleGetProductDetail"
  33. />
  34. <view
  35. v-if="goodsDetail.productBrief"
  36. style="display: flex;align-items: center;margin-top: 10upx;padding: 10upx 20upx 10upx;font-size: 24upx;background-color: #ffffff;"
  37. >
  38. <view style="color: #999999;">卖点</view>
  39. <view style="flex: 1;margin-left: 20upx;">{{ goodsDetail.productBrief }}</view>
  40. </view>
  41. <!-- 发货 -->
  42. <view v-if="goodsDetail.ifLogistics" class="express-box flex-items flex-row fs24">
  43. <label class="fs24 font-color-999 mar-right-20 ">发货</label>
  44. <tui-icon
  45. v-if="goodsDetail.receive && goodsDetail.receive.receiveAdress" name="gps" :size="14"
  46. color="#c1c1c1"
  47. ></tui-icon>
  48. <label v-if="goodsDetail.receive && goodsDetail.receive.receiveAdress" class="mar-left-10 mapName mar-right-30">
  49. {{ goodsDetail.receive.receiveAdress }}
  50. </label>
  51. <label>快递:¥ {{ goodsDetail.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">
  56. <view class="flex-row-plus">
  57. <label class="fs26 mar-left-30 font-color-999">选择</label>
  58. <view style="flex: 1;">
  59. <view v-for="(item, index) in selectedCurrentMsg.currentSku" :key="index" style="margin: 0 10upx 6upx;">
  60. {{ item.skuText || '-' }}
  61. </view>
  62. </view>
  63. </view>
  64. <tui-icon :size="24" color="#baa174" name="arrowright"></tui-icon>
  65. </view>
  66. </view>
  67. <!-- 结合销售 -->
  68. <CombinedSales :pid="productId" :goods-detail="goodsDetail"></CombinedSales>
  69. <!-- 拼单列表 -->
  70. <view
  71. v-if="(selectedCurrentMsg.selectedSku.activityType === 1) && (selectedCurrentMsg.selectedSku.ifEnable === 0) && selectedCurrentMsg.selectedSku.collageOrders.length"
  72. class="goodsDiscount"
  73. >
  74. <view class="questionTit mar-left-30 flex-items flex-row flex-sp-between">
  75. <label class="">这些人正在拼单</label>
  76. <view class="allMoreBox">
  77. <view class="allMore" @click="showGroupBuyList = true">
  78. 查看全部
  79. </view>
  80. <tui-icon :size="24" color="#baa174" name="arrowright" margin="0 0 0 10upx"></tui-icon>
  81. </view>
  82. </view>
  83. <view
  84. v-for="(Gitem, index) in selectedCurrentMsg.selectedSku.collageOrders.slice(0, 3)" :key="index"
  85. class="groupBuy"
  86. >
  87. <view v-if="Gitem.time > 0" class="groupBuyList">
  88. <view class="groupBuyItem">
  89. <view class="leftAvatar">
  90. <image :src="common.seamingImgUrl(Gitem.headImage)" alt=""></image>
  91. <span>{{ Gitem.name }}</span>
  92. </view>
  93. <view class="rightInfo">
  94. <view class="groupBuyTime" style="width: 70%;">
  95. <view class="needPeople flex-row-plus">还差<b>{{ Gitem.person }}人</b>拼成</view>
  96. <view class="endDate">剩余{{ handleGetDownTime(Gitem.time) }}</view>
  97. </view>
  98. <view class="groupBuyBtn" @click="handleGoGroupBooking(Gitem.collageId)">
  99. 和Ta拼
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 评价 -->
  107. <GoodEvaluateAndQuestion ref="goodEvaluateAndQuestion" :goods-detail="goodsDetail" />
  108. <!-- 店铺 -->
  109. <view v-if="!(goodsDetail.shopName === '团蜂自营')" class="inStore-box flex-items flex-row flex-sp-between">
  110. <view class="flex-display flex-row">
  111. <view>
  112. <image
  113. class="inStore-logo default-img" :src="common.seamingImgUrl(goodsDetail.shopLogo)"
  114. @click="go(`/another-tf/another-user/shop/shop-detail?shopId=${shopId}`)"
  115. ></image>
  116. </view>
  117. <view class="flex-display flex-column mar-left-20">
  118. <label @click="go(`/another-tf/another-user/shop/shop-detail?shopId=${shopId}`)">{{ goodsDetail.shopName }}</label>
  119. <view class="flex-display flex-row fs24 font-color-999 mar-top-5">
  120. <label>商品总类:{{ goodsDetail.classifyNumber }}</label>
  121. <label class="mar-left-30">已售:{{ goodsDetail.number }}件</label>
  122. </view>
  123. </view>
  124. </view>
  125. <view class="inStore-but" @click="go(`/another-tf/another-user/shop/shop-detail?shopId=${shopId}`)">
  126. <text>去逛逛</text>
  127. <tui-icon :size="30" color="#ffebc4" name="arrowright"></tui-icon>
  128. </view>
  129. </view>
  130. <!-- 详细信息 -->
  131. <view style="background-color: #FFFFFF;margin-top: 20rpx;padding: 20rpx 30rpx;">
  132. <view style="display: flex;flex-direction: row;align-items: center;margin-bottom: 10upx;">
  133. <view style="width: 265rpx;border-bottom: 1rpx solid #EDEDED;"></view>
  134. <label style="padding: 0 22rpx;white-space: nowrap;">宝贝详情</label>
  135. <view style="width: 265rpx;border-bottom: 1rpx solid #EDEDED;"></view>
  136. </view>
  137. <view>
  138. <rich-text :nodes="goodsDetail.text.replace(/\<img/gi, replaceImgText)"></rich-text>
  139. </view>
  140. </view>
  141. </view>
  142. <!-- 底部购买 -->
  143. <view class="buygoods-box">
  144. <view class="buygoodsBut-box flex-row-plus" :style="{ 'height': (isIphone === true ? 160 : 130) + 'rpx' }">
  145. <view class="btns_container">
  146. <view
  147. v-if="!(goodsDetail.shopName === '团蜂自营')" class="btns flex-column-plus flex-items"
  148. @click="go(`/another-tf/another-user/shop/shop-detail?shopId=${shopId}`)"
  149. >
  150. <tui-icon :size="24" color="#333333" name="shop"></tui-icon>
  151. <label class="fs22">店铺</label>
  152. </view>
  153. <!-- #ifdef MP-WEIXIN || APP-PLUS || H5 -->
  154. <view class="btns flex-column-plus mar-left-10 flex-items" @click="handleOpenCustomerService">
  155. <tui-icon :size="24" color="#333333" name="message"></tui-icon>
  156. <label class="fs22">客服</label>
  157. </view>
  158. <!-- #endif -->
  159. <view
  160. class="btns flex-column-plus mar-left-10 flex-items Cart"
  161. @click="go('/another-tf/another-serve/shopCar/shopCar')"
  162. >
  163. <view v-if="allCartNum > 0" class="cartAllNum">
  164. {{ allCartNum }}
  165. </view>
  166. <tui-icon :size="24" color="#333333" name="cart"></tui-icon>
  167. <label class="fs22">购物车</label>
  168. </view>
  169. </view>
  170. <view class="btns_container">
  171. <view v-if="goodsDetail.shelveState === 0" class="flex-row-plus offShelf">
  172. 商品已下架
  173. </view>
  174. <view v-else-if="selectedCurrentMsg.selectedSku.activityType === 1" class="flex-row-plus flex-items">
  175. <view class="joinShopCartBut" @click="handleShowGoodsSkuSelect(4)">
  176. 单独购买
  177. </view>
  178. <view class="buyNowBut" @click="handleShowGoodsSkuSelect(3)">
  179. 我要开团
  180. </view>
  181. </view>
  182. <view v-else class="flex-row-plus flex-items">
  183. <view class="joinShopCartBut" @click="handleShowGoodsSkuSelect(1)">
  184. 加入购物车
  185. </view>
  186. <view class="buyNowBut" @click="handleShowGoodsSkuSelect(2)">
  187. 立即购买
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. </view>
  193. <!-- 回到顶部 -->
  194. <view class="returnTopService-box">
  195. <view
  196. class="returnTop-box flex-items-plus flex-column"
  197. :style="{ 'display': returnTopFlag === true ? 'flex' : 'none' }" @click="handleReturnTop"
  198. >
  199. <tui-icon :size="29" color="#c5aa7b" name="top"></tui-icon>
  200. </view>
  201. </view>
  202. <!-- SKU选择器 -->
  203. <GoodSkuSelect
  204. ref="refGoodSkuSelect" :goods-detail="goodsDetail" :selected-sku="selectedCurrentMsg.selectedSku"
  205. :collage-id="collageId" @current-select-sku="handleSelectCurrent" @changeCartNum="(num) => allCartNum = num"
  206. />
  207. <!-- 拼单弹框 -->
  208. <tui-popup :show="showGroupBuyList" :mode-class="[ 'fade' ]" class="popupDiscount" @click="showGroupBuyList = false">
  209. <view class="popupDiscountTit">这些人正在拼单</view>
  210. <view class="groupBuy">
  211. <view class="groupBuyList">
  212. <scroll-view style="height: 480upx;" scroll-y>
  213. <view
  214. v-for="(aitem, index) in selectedCurrentMsg.selectedSku.collageOrders" :key="index"
  215. class="groupBuyItem1"
  216. >
  217. <view v-if="aitem.time > 0" class="leftAvatar">
  218. <image :src="common.seamingImgUrl(aitem.headImage)" alt=""></image>
  219. <view class="groupBuyTime">
  220. <view class="needPeople">
  221. <span>{{ aitem.name }}</span>还差<b>{{ aitem.person }}人</b>
  222. </view>
  223. <view class="endDate">剩余{{ handleGetDownTime(aitem.time) }}</view>
  224. </view>
  225. </view>
  226. <view v-if="aitem.time > 0" class="rightInfo">
  227. <view class="groupBuyBtn" @click.stop="handleGoGroupBooking(aitem.collageId)">
  228. 和Ta拼
  229. </view>
  230. </view>
  231. </view>
  232. </scroll-view>
  233. </view>
  234. </view>
  235. </tui-popup>
  236. <tui-bottom-popup :show="isShowCustomerServicePopup" @close="isShowCustomerServicePopup = false">
  237. <ATFCustomerService :shop-id="shopId" :data="customerServiceList"></ATFCustomerService>
  238. </tui-bottom-popup>
  239. </view>
  240. </template>
  241. <script>
  242. import CombinedSales from './components/combinedSales'
  243. import GoodEvaluateAndQuestion from './components/GoodEvaluateAndQuestion'
  244. import GoodActivityDetail from './components/GoodActivityDetail'
  245. import GoodSkuSelect from './components/GoodSkuSelect'
  246. import { timeFormatting } from '../../../utils'
  247. import { getProductDetailsByIdApi, getBroadCastList, addUserTrackReportDoPointerApi, getCartListApi } from '../../../api/anotherTFInterface'
  248. export default {
  249. name: 'GoodsDetails',
  250. components: {
  251. CombinedSales,
  252. GoodEvaluateAndQuestion,
  253. GoodActivityDetail,
  254. GoodSkuSelect
  255. },
  256. data() {
  257. return {
  258. replaceImgText: '<img style="max-width:100%;height:auto" ',
  259. // 埋点对象
  260. pointOption: {
  261. inTime: null,
  262. data: {
  263. eventType: 1,
  264. productIds: ''
  265. }
  266. },
  267. isIphone: getApp().globalData.isIphone,
  268. shopId: '',
  269. productId: '', // 商品ID,有可能屎缓存数据
  270. skuId: '', // 产品ID
  271. returnTopFlag: false, // 回到顶部
  272. collageId: 0, // 去拼团时的拼单ID
  273. broadCastList: [], // 拼团滚动数据
  274. showGroupBuyList: false, // 是否展示拼单弹窗
  275. shopGroupWorkTicker: null, // 拼团倒计时定时器
  276. // 商品详情
  277. goodsDetail: {
  278. text: '', // 宝贝详情,商品详情长图(富文本)
  279. markTools: [], // 平台优惠券
  280. shopMarkTools: [], // 店铺优惠券
  281. comments: [] // 商品评价列表
  282. },
  283. selectedCurrentMsg: {
  284. selectedSku: { // 当前选中SKU
  285. collageOrders: [] // 当前商品拼单数据
  286. },
  287. currentSku: [], // 选中的SKU(子组件给当前页面做数据渲染)
  288. number: 1
  289. },
  290. allCartNum: 0, // 购物车数量
  291. // 客服
  292. isShowCustomerServicePopup: false,
  293. customerServiceList: []
  294. }
  295. },
  296. onLoad(options) {
  297. this.pointOption.inTime = new Date().getTime()
  298. this.shopId = Number(options.shopId)
  299. this.productId = Number(options.productId)
  300. this.skuId = Number(options.skuId)
  301. this.handleGetProductDetail()
  302. getCartListApi({}).then((res) => {
  303. this.allCartNum = res.data.reduce((total, value) => total + value.skus.reduce((t, v) => t + (v.shelveState ? v.number : 0), 0), 0)
  304. })
  305. if (this.allCartNum > 99) this.allCartNum = '...'
  306. },
  307. onUnload() {
  308. // 判断是否要埋点
  309. if ((new Date().getTime() - this.pointOption.inTime) >= 5000) {
  310. this.pointOption.data.productIds = this.productId
  311. addUserTrackReportDoPointerApi(this.pointOption.data)
  312. }
  313. // 销毁平团倒计时计时器
  314. if (this.shopGroupWorkTicker) {
  315. clearInterval(this.shopGroupWorkTicker)
  316. this.shopGroupWorkTicker = null
  317. }
  318. },
  319. onPageScroll(e) {
  320. this.returnTopFlag = e.scrollTop > 600
  321. },
  322. methods: {
  323. // 选取sku
  324. handleSelectCurrent(selectedCurrentMsg) {
  325. console.log(selectedCurrentMsg)
  326. this.selectedCurrentMsg.selectedSku = selectedCurrentMsg.selectedSku
  327. this.selectedCurrentMsg.currentSku = selectedCurrentMsg.currentSku
  328. this.selectedCurrentMsg.number = selectedCurrentMsg.number
  329. },
  330. // 和他人拼单
  331. handleGoGroupBooking(collageId) {
  332. this.showGroupBuyList = false
  333. this.collageId = collageId
  334. this.$refs.refGoodSkuSelect.isShowDetails = true
  335. },
  336. /**
  337. * 设置拼团倒计时
  338. */
  339. handleSetDownTime() { // 这个计时器是每秒减去数组中指定字段的时间
  340. let productHaveCollageOrder = false
  341. // 判断sku组合中是否存在拼单
  342. for (const skuCollectItemKey in this.goodsDetail.map) {
  343. const collageOrders = this.goodsDetail.map[skuCollectItemKey].collageOrders
  344. if (collageOrders && collageOrders.length > 0) {
  345. productHaveCollageOrder = true
  346. break
  347. }
  348. }
  349. if (!productHaveCollageOrder) return
  350. this.shopGroupWorkTicker = setInterval(() => {
  351. for (const skuCollectItemKey in this.goodsDetail.map) {
  352. const collageOrders = this.goodsDetail.map[skuCollectItemKey].collageOrders
  353. if (collageOrders && collageOrders.length > 0) {
  354. collageOrders.forEach((collageItem) => {
  355. collageItem.time > 0 ? collageItem.time -= 1000 : ''
  356. })
  357. }
  358. }
  359. }, 1000)
  360. },
  361. /**
  362. * 根据时间戳获取格式化时间(处理计时器)
  363. * @param remainMillSecs 毫秒,还有多久结束
  364. * @return {string}
  365. */
  366. handleGetDownTime(remainMillSecs) {
  367. if (remainMillSecs <= 0) {
  368. clearInterval(this.shopGroupWorkTicker)
  369. this.shopGroupWorkTicker = null
  370. this.handleGetProductDetail()
  371. }
  372. const timeFormat = timeFormatting(remainMillSecs / 1000)
  373. return `${timeFormat.hour}:${timeFormat.min}:${timeFormat.sec}`
  374. },
  375. // 返回头部
  376. handleReturnTop() {
  377. uni.pageScrollTo({
  378. scrollTop: 0,
  379. duration: 300
  380. })
  381. },
  382. // 打开SKU弹窗
  383. handleShowGoodsSkuSelect(btnType) {
  384. // 为type情况时,绝不可能为和他人拼单
  385. this.collageId = 0
  386. this.$refs.refGoodSkuSelect.btnType = btnType
  387. this.$refs.refGoodSkuSelect.isShowDetails = true
  388. },
  389. // 获取商品详情
  390. async handleGetProductDetail() {
  391. uni.showLoading({
  392. title: '加载中...',
  393. mask: true
  394. })
  395. try {
  396. const res = await getProductDetailsByIdApi({
  397. shopId: this.shopId,
  398. productId: this.productId,
  399. skuId: this.skuId,
  400. terminal: 1
  401. })
  402. // const sameSkuProduct = Object.values(res.data.map).find((item) => item.skuId === res.data.skuId) || {}
  403. // this.goodsDetail = { ...res.data, voucherId: sameSkuProduct.voucherId || '', voucherPrice: sameSkuProduct.voucherPrice || '' }
  404. this.goodsDetail = res.data
  405. // 处理单规格商品,如果是单款式商品,需要特殊处理goodsDetail.names
  406. const skuCollectionListKeys = Object.keys(this.goodsDetail.map)
  407. if ((skuCollectionListKeys.length === 1) && (skuCollectionListKeys[0] === '单款项')) {
  408. this.goodsDetail.names[0].values.push({
  409. skuValue: this.goodsDetail.names[0].skuName,
  410. valueCode: '单款项'
  411. })
  412. }
  413. // 如果sku的图像为空,设置为商品的图像
  414. skuCollectionListKeys.forEach((allSkuValueCodeMap) => {
  415. if (!this.goodsDetail.map[allSkuValueCodeMap].image) this.goodsDetail.map[allSkuValueCodeMap].image = this.goodsDetail.images[0]
  416. })
  417. // 渲染商详之后,如果参数传了skuId,则选中该skuId,否则选中第一个规格
  418. this.$nextTick(async () => {
  419. if (this.skuId) {
  420. this.$refs.refGoodSkuSelect.handleSelectBySkuId(this.skuId)
  421. } else {
  422. // 默认选中第0个
  423. this.goodsDetail.names.forEach((skuRowItem) => {
  424. this.$refs.refGoodSkuSelect.handleClickSkuItem(skuRowItem.nameCode, skuRowItem.values[0].valueCode)
  425. })
  426. }
  427. // 如果是拼团,设置拼团id
  428. if (this.goodsDetail.activityType === 1) {
  429. // 获取拼团滚动数据,传入拼团数据ID
  430. const broadCastData = await getBroadCastList({ productId: this.productId, shopGroupWorkId: this.goodsDetail.shopGroupWorkId })
  431. this.broadCastList = broadCastData.data
  432. this.handleSetDownTime()
  433. }
  434. await this.$refs.goodEvaluateAndQuestion.handleGetProblemList()
  435. })
  436. } finally {
  437. uni.hideLoading()
  438. }
  439. },
  440. // 打开客服
  441. async handleOpenCustomerService() {
  442. const res = await this.$store.dispatch('app/getCustomerServiceAction', {
  443. shopId: this.shopId
  444. })
  445. this.customerServiceList = res.data
  446. if (!this.customerServiceList.length) this.$showToast('暂无客服')
  447. }
  448. }
  449. }
  450. </script>
  451. <style lang="less" scoped>
  452. .goods-details-container {
  453. min-height: 100vh;
  454. box-sizing: border-box;
  455. background-color: #f8f8f8;
  456. padding-bottom: 180upx;
  457. /deep/ .tui-popup-class.tui-bottom-popup {
  458. height: 85vh !important;
  459. }
  460. .express-box {
  461. height: 100rpx;
  462. padding-left: 30rpx;
  463. margin-top: 10upx;
  464. background-color: #FFFFFF;
  465. image {
  466. width: 21rpx;
  467. height: 27rpx;
  468. }
  469. .mapName {
  470. position: relative;
  471. &:before {
  472. content: '';
  473. width: 2rpx;
  474. height: 30rpx;
  475. background: #CCCCCC;
  476. display: block;
  477. position: absolute;
  478. right: -16rpx;
  479. top: 5rpx;
  480. }
  481. }
  482. }
  483. .chooseSize-box {
  484. border-top: 12rpx solid #F8F8F8;
  485. background-color: #FFFFFF;
  486. margin: 10rpx 0;
  487. .chooseSize-content {
  488. width: 100%;
  489. }
  490. }
  491. .questionTit {
  492. height: 90rpx;
  493. border-bottom: 1rpx solid #EEEEEE;
  494. margin-right: 35rpx;
  495. color: #333333;
  496. font-size: 30rpx;
  497. .allMoreBox {
  498. display: flex;
  499. align-items: center;
  500. color: #999999;
  501. font-size: 24rpx;
  502. }
  503. }
  504. .inStore-box {
  505. background-color: #FFFFFF;
  506. margin-top: 20rpx;
  507. padding: 20rpx 30rpx;
  508. .inStore-logo {
  509. width: 70rpx;
  510. height: 70rpx;
  511. }
  512. .inStore-but {
  513. display: flex;
  514. align-items: center;
  515. justify-content: space-between;
  516. width: 140rpx;
  517. height: 60rpx;
  518. line-height: 60rpx;
  519. text-align: left;
  520. font-size: 24rpx;
  521. color: #FFEBC4;
  522. background: #333333;
  523. padding-left: 20rpx;
  524. position: relative;
  525. }
  526. }
  527. .buygoods-box {
  528. position: fixed;
  529. bottom: 0rpx;
  530. box-sizing: border-box;
  531. z-index: 1;
  532. .buygoodsBut-box {
  533. background-color: #FFFFFF;
  534. width: 750rpx;
  535. padding: 20rpx 32rpx;
  536. box-shadow: 0rpx 0rpx 10rpx 1rpx #EDEDED;
  537. box-sizing: border-box;
  538. display: flex;
  539. justify-content: space-between;
  540. .btns_container {
  541. display: flex;
  542. align-items: center;
  543. }
  544. .btns {
  545. width: 80rpx;
  546. }
  547. .Cart {
  548. position: relative;
  549. .cartAllNum {
  550. position: absolute;
  551. width: 30rpx;
  552. height: 30rpx;
  553. line-height: 30rpx;
  554. text-align: center;
  555. font-size: 17rpx;
  556. color: #FFFFFF;
  557. background: #C5AA7B;
  558. border-radius: 50%;
  559. opacity: 1;
  560. z-index: 1;
  561. }
  562. // #ifdef APP
  563. .cartAllNum {
  564. right: -6rpx;
  565. top: -6rpx;
  566. }
  567. // #endif
  568. /* #ifdef H5 */
  569. .cartAllNum {
  570. right: -10rpx;
  571. top: -6rpx;
  572. }
  573. /* #endif */
  574. /* #ifdef MP-WEIXIN */
  575. .cartAllNum {
  576. right: -3rpx;
  577. top: 0;
  578. }
  579. /* #endif */
  580. }
  581. .joinShopCartBut {
  582. width: 190rpx;
  583. height: 80rpx;
  584. background-color: #FFFFFF;
  585. color: #333333;
  586. font-size: 28rpx;
  587. line-height: 80rpx;
  588. border: 2rpx solid #333333;
  589. text-align: center;
  590. margin-left: 40rpx;
  591. box-sizing: border-box;
  592. }
  593. .buyNowBut {
  594. width: 190rpx;
  595. height: 80rpx;
  596. background: #333333;
  597. color: #FFEBC4;
  598. font-size: 28rpx;
  599. line-height: 80rpx;
  600. text-align: center;
  601. margin-left: 16rpx;
  602. }
  603. .offShelf {
  604. background: #b7b7b7;
  605. border-radius: 50rpx;
  606. width: 360rpx;
  607. margin-left: 50rpx;
  608. line-height: 80rpx;
  609. height: 80rpx;
  610. justify-content: center;
  611. color: #333333;
  612. }
  613. }
  614. }
  615. .returnTopService-box {
  616. position: fixed;
  617. bottom: 160rpx;
  618. right: 30rpx;
  619. .returnTop-box {
  620. width: 88rpx;
  621. height: 88rpx;
  622. border-radius: 50%;
  623. background: #FFFFFF;
  624. opacity: 0.8;
  625. }
  626. }
  627. .news-box {
  628. position: fixed;
  629. left: 20rpx;
  630. top: 200rpx;
  631. z-index: 1;
  632. .news-bg {
  633. width: 450rpx;
  634. height: 70rpx;
  635. overflow: hidden;
  636. .news-item {
  637. background: rgba(0, 0, 0, 0.75);
  638. border-radius: 16rpx;
  639. height: 70rpx;
  640. color: #FFFFFF;
  641. font-size: 24rpx;
  642. padding: 0 20rpx;
  643. width: 450rpx;
  644. .item-avatar {
  645. width: 50rpx;
  646. height: 50rpx;
  647. border-radius: 50%;
  648. margin-right: 20rpx;
  649. }
  650. }
  651. }
  652. }
  653. .goodsDiscount {
  654. .groupBuy {
  655. .groupBuyList {
  656. .groupBuyItem {
  657. padding: 0 30rpx;
  658. height: 116rpx;
  659. display: flex;
  660. align-items: center;
  661. justify-content: space-between;
  662. border-bottom: 1rpx solid #EEEEEE;
  663. .leftAvatar {
  664. display: flex;
  665. align-items: center;
  666. width: 50%;
  667. image {
  668. width: 72rpx;
  669. height: 72rpx;
  670. margin-right: 10rpx;
  671. border-radius: 50%;
  672. }
  673. }
  674. .rightInfo {
  675. display: flex;
  676. align-items: center;
  677. width: 50%;
  678. .groupBuyTime {
  679. .needPeople {
  680. font-size: 28rpx;
  681. color: #333333;
  682. margin-bottom: 10rpx;
  683. font-weight: 400;
  684. b {
  685. color: #C5AA7B;
  686. font-weight: 400;
  687. }
  688. }
  689. .endDate {
  690. color: #666666;
  691. }
  692. }
  693. .groupBuyBtn {
  694. width: 140rpx;
  695. height: 60rpx;
  696. line-height: 60rpx;
  697. background: #333333;
  698. text-align: center;
  699. color: #FFEBC4;
  700. font-size: 24rpx;
  701. }
  702. }
  703. }
  704. }
  705. }
  706. }
  707. .popupDiscount {
  708. padding-bottom: 70rpx;
  709. .popupDiscountTit {
  710. font-size: 36rpx;
  711. color: #333333;
  712. height: 105rpx;
  713. line-height: 105rpx;
  714. text-align: center;
  715. border-bottom: 1rpx solid #EEEEEE;
  716. }
  717. .groupBuy {
  718. padding-bottom: 80rpx;
  719. .groupBuyList {
  720. .groupBuyItem1 {
  721. padding: 0 30rpx;
  722. height: 116rpx;
  723. display: flex;
  724. align-items: center;
  725. justify-content: space-between;
  726. border-bottom: 1rpx solid #EEEEEE;
  727. .leftAvatar {
  728. display: flex;
  729. align-items: center;
  730. image {
  731. width: 72rpx;
  732. height: 72rpx;
  733. margin-right: 10rpx;
  734. border-radius: 50%;
  735. }
  736. .groupBuyTime {
  737. margin-right: 80rpx;
  738. margin-bottom: 10rpx;
  739. width: 320rpx;
  740. .needPeople {
  741. font-size: 26rpx;
  742. color: #333333;
  743. span {
  744. color: #333333;
  745. padding-right: 10rpx;
  746. }
  747. b {
  748. color: #C5AA7B;
  749. font-weight: 400;
  750. }
  751. }
  752. .endDate {
  753. color: #333333;
  754. opacity: 0.7;
  755. font-size: 24rpx;
  756. }
  757. }
  758. }
  759. .rightInfo {
  760. display: flex;
  761. align-items: center;
  762. .groupBuyBtn {
  763. width: 140rpx;
  764. height: 70rpx;
  765. line-height: 70rpx;
  766. background: #333333;
  767. text-align: center;
  768. color: #FFEBC4;
  769. font-weight: 400;
  770. }
  771. }
  772. }
  773. }
  774. }
  775. }
  776. }
  777. </style>