index.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583
  1. <template>
  2. <view>
  3. <!-- 顶部的 nav tab -->
  4. <view class='navbar' :style="{height:navH+'rpx',opacity:opacity}">
  5. <view class='navbarH' :style='"height:"+navH+"rpx;"'>
  6. <view class='navbarCon acea-row row-center-wrapper'>
  7. <view class="header acea-row row-center-wrapper">
  8. <view class="item" :class="navActive === index ? 'on' : ''" v-for="(item,index) in navList"
  9. :key='index' @tap="tap(item,index)">
  10. {{ item }}
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <!-- 返回键 -->
  17. <view id="home" class="home-nav acea-row row-center-wrapper iconfont icon-xiangzuo" :class="opacity>0.5?'on':''" :style="{ top: homeTop + 'rpx' }" v-if="returnShow" @tap="returns">
  18. </view>
  19. <!-- 详情 -->
  20. <view class='product-con'>
  21. <scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true"
  22. :style="'height:'+height+'px;'" @scroll="scroll">
  23. <view id="past0">
  24. <productConSwiper :imgUrls='spu.sliderPicUrls' />
  25. <!-- 价格、库存、销量 -->
  26. <view class="pad30">
  27. <view class='wrapper mb30'>
  28. <view class='share acea-row row-between row-bottom'>
  29. <view class='money font-color'>¥
  30. <text class='num'>{{ fen2yuan(spu.price) }}</text>
  31. <text class='y-money'>¥{{ fen2yuan(spu.marketPrice) }}</text>
  32. </view>
  33. <view class='iconfont icon-fenxiang' @click="listenerActionSheet"></view>
  34. </view>
  35. <view class='introduce line2'>{{ spu.name }}</view>
  36. <view class='label acea-row row-between-wrapper'>
  37. <view class='stock'>类型:{{ activity.userSize || 0}}人团</view>
  38. <view class='stock'>累计销售:{{ spu.salesCount}} {{ spu.unitName }}</view>
  39. <view />
  40. </view>
  41. </view>
  42. <!-- SKU 选择 -->
  43. <view class='attribute acea-row row-between-wrapper mb30 borRadius14' @tap='openAttr'>
  44. <view class="line1">{{ attrValue.length > 0 ? "已选择" : "请选择" }}:
  45. <text class='atterTxt'>{{attrValue}}</text>
  46. </view>
  47. <view class='iconfont icon-jiantou'></view>
  48. </view>
  49. <!-- 拼成列表 -->
  50. <view class='notice acea-row row-middle mb30 borRadius14' v-if="activity.successCount > 0">
  51. <view class='num font-color'>
  52. <text class='iconfont icon-laba'></text>
  53. 已拼{{ activity.successCount }} {{ spu.unitName }}
  54. <text class='line'>|</text>
  55. </view>
  56. <view class='swiper'>
  57. <swiper :indicator-dots="false" :autoplay="autoplay" interval="2500"
  58. duration="500" vertical="true" circular="true">
  59. <block v-for="(item, index) in successRecords" :key='index'>
  60. <swiper-item>
  61. <view class='line1'>{{ item.nickname }}拼团成功</view>
  62. </swiper-item>
  63. </block>
  64. </swiper>
  65. </view>
  66. </view>
  67. <!-- 待拼列表 -->
  68. <view v-if='attr.productSelect.stock > 0' class='assemble mb30 borRadius14'>
  69. <view class='item acea-row row-between-wrapper' v-for='(item,index) in runningRecords'
  70. :key='index' v-if="index < AllIndex">
  71. <view class='pictxt acea-row row-between-wrapper'>
  72. <view class='pictrue'>
  73. <image :src='item.avatar'></image>
  74. </view>
  75. <view class='text line1'>{{ item.nickname }}</view>
  76. </view>
  77. <view class='right acea-row row-middle'>
  78. <view>
  79. <view class='lack'>
  80. 还差<text class='font-color'>{{ item.userSize - item.userCount }}</text>人成团
  81. </view>
  82. <view class='time acea-row'>
  83. <count-down :is-day="false" :tip-text="'剩余 '" :day-text="' '" :hour-text="':'" :minute-text="':'"
  84. :second-text="' '" :datatime="item.expireTime / 1000" :bgColor="bgColor" />
  85. </view>
  86. </view>
  87. <navigator hover-class='none' :url="'/pages/activity/goods_combination_status/index?id='+item.id"
  88. class='spellBnt'>
  89. 去拼单 <text class='iconfont icon-jiantou'></text>
  90. </navigator>
  91. </view>
  92. </view>
  93. <template v-if="runningRecords.length">
  94. <view class='more' @tap='showAll' v-if="runningRecords.length > AllIndex">
  95. 查看更多 <text class='iconfont icon-xiangxia' />
  96. </view>
  97. <view class='more' @tap='hideAll'
  98. v-else-if="runningRecords.length === AllIndex && runningRecords.length !== AllIndexDefault">
  99. 收起 <text class='iconfont icon-xiangshang' />
  100. </view>
  101. </template>
  102. </view>
  103. <view class='playWay mb30 borRadius14'>
  104. <view class='title acea-row row-between row-middle'>
  105. <view>拼团玩法</view>
  106. </view>
  107. <view class='way acea-row row-middle'>
  108. <view class='item acea-row row-middle'>
  109. <text class='num'>①</text>
  110. 开团/参团
  111. </view>
  112. <view class='iconfont icon-arrow'></view>
  113. <view class='item'>
  114. <text class='num'>②</text>
  115. 邀请好友
  116. </view>
  117. <view class='iconfont icon-arrow'></view>
  118. <view class='item'>
  119. <view>
  120. <text class='num'>③</text>
  121. 满员发货
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 评论 -->
  127. <view class='userEvaluation borRadius14' id="past1">
  128. <view class='title acea-row row-between-wrapper' :style="replyCount===0?'border-bottom-left-radius:14rpx;border-bottom-right-radius:14rpx;':''">
  129. <view>用户评价<i>({{replyCount}})</i></view>
  130. <navigator class='praise' hover-class='none'
  131. :url='"/pages/users/goods_comment_list/index?productId="+spu.productId'>
  132. <i>好评</i><text class='font-color'>{{ replyChance || 0}}%</text>
  133. <text class='iconfont icon-jiantou'></text>
  134. </navigator>
  135. </view>
  136. <userEvaluation :reply="reply" v-if="reply.length>0"></userEvaluation>
  137. </view>
  138. </view>
  139. </view>
  140. <view class='product-intro' id="past2">
  141. <view class='title'>
  142. <image src="../../../static/images/xzuo.png"></image>
  143. <span class="sp">产品详情</span>
  144. <image src="../../../static/images/xyou.png"></image>
  145. </view>
  146. <view class='conter'>
  147. <jyf-parser :html="spu.description" ref="article" :tag-style="tagStyle"></jyf-parser>
  148. </view>
  149. </view>
  150. <view style='height:120rpx;'></view>
  151. </scroll-view>
  152. <view class='footer acea-row row-between-wrapper'>
  153. <!-- 客服 TODO 芋艿:待完成 -->
  154. <!-- #ifdef MP -->
  155. <button open-type="contact" hover-class='none' class='item'>
  156. <view class='iconfont icon-kefu'></view>
  157. <view>客服</view>
  158. </button>
  159. <!-- #endif -->
  160. <!-- #ifndef MP -->
  161. <navigator hover-class="none" class="item" @click="kefuClick">
  162. <view class="iconfont icon-kefu"></view>
  163. <view>客服</view>
  164. </navigator>
  165. <!-- #endif -->
  166. <view @tap='setCollect' class='item'>
  167. <view class='iconfont icon-shoucang1' v-if="userCollect"></view>
  168. <view class='iconfont icon-shoucang' v-else></view>
  169. <view>收藏</view>
  170. </view>
  171. <!-- 购买操作 -->
  172. <view class="bnt acea-row" v-if="status === 0">
  173. <view class="buy bnts bg-color-hui">已关闭</view>
  174. </view>
  175. <view class="bnt acea-row" v-else-if="status === 1">
  176. <view class="joinCart bnts" @tap="openAlone">单独购买</view>
  177. <view class="buy bnts bg-color-hui">未开始</view>
  178. </view>
  179. <view class="bnt acea-row" v-else-if="status === 2 && attr.productSelect.stock > 0">
  180. <view class="joinCart bnts" @tap="openAlone">单独购买</view>
  181. <view class="buy bnts" @tap="goBuy">立即购买</view>
  182. </view>
  183. <view class="bnt acea-row" v-else-if="status === 2 && (attr.productSelect.stock <= 0)">
  184. <view class="joinCart bnts" @tap="openAlone">单独购买</view>
  185. <view class="buy bnts bg-color-hui">已售罄</view>
  186. </view>
  187. <view class="bnt acea-row" v-else-if="status === 3">
  188. <view class="joinCart bnts" @tap="openAlone">单独购买</view>
  189. <view class="buy bnts bg-color-hui">已结束</view>
  190. </view>
  191. <view class="bnt acea-row" v-else> <!-- 兜底 -->
  192. <view class="joinCart bnts" @tap="openAlone">单独购买</view>
  193. <view class="buy bnts bg-color-hui">未开始</view>
  194. </view>
  195. </view>
  196. </view>
  197. <!-- SKU 弹窗 -->
  198. <product-window
  199. :attr='attr'
  200. @ChangeAttr="ChangeAttr"
  201. @ChangeCartNum="ChangeCartNum"
  202. @iptCartNum="iptCartNum"
  203. @close="closeAttr"
  204. />
  205. <!-- 左侧的分销提示 -->
  206. <shareRedPackets
  207. :sharePacket="sharePacket"
  208. @listenerActionSheet="listenerActionSheet"
  209. @closeChange="closeChange"
  210. />
  211. <!-- 分享按钮 -->
  212. <view class="generate-posters acea-row row-middle" :class="posters ? 'on' : ''">
  213. <!-- #ifndef MP -->
  214. <button class="item" hover-class='none' v-if="weixinStatus === true" @click="H5ShareBox = true">
  215. <view class="iconfont icon-weixin3"></view>
  216. <view class="">发送给朋友</view>
  217. </button>
  218. <!-- #endif -->
  219. <!-- #ifdef MP -->
  220. <button class="item" open-type="share" hover-class='none' @click="closePosters">
  221. <view class="iconfont icon-weixin3"></view>
  222. <view class="">发送给朋友</view>
  223. </button>
  224. <!-- #endif -->
  225. <button class="item" hover-class='none' @tap="goPoster">
  226. <view class="iconfont icon-haibao"></view>
  227. <view class="">生成海报</view>
  228. </button>
  229. </view>
  230. <view class="mask" v-if="posters" @click="closePosters"></view>
  231. <view class="mask" v-if="canvasStatus" @click="listenerActionClose"></view>
  232. <!-- 海报展示 -->
  233. <view class='poster-pop' v-if="canvasStatus">
  234. <image src='/static/images/poster-close.png' class='close' @click="posterImageClose"></image>
  235. <image :src='posterImage'></image>
  236. <!-- #ifndef H5 -->
  237. <view class='save-poster' @click="savePosterPath">保存到手机</view>
  238. <!-- #endif -->
  239. <!-- #ifdef H5 -->
  240. <view class="keep">长按图片可以保存到手机</view>
  241. <!-- #endif -->
  242. </view>
  243. <view class="canvas" v-else>
  244. <canvas style="width:750px;height:1190px;" canvas-id="firstCanvas"></canvas>
  245. <canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}" />
  246. </view>
  247. <!-- 发送给朋友图片 -->
  248. <view class="share-box" v-if="H5ShareBox">
  249. <image src="/static/images/share-info.png" @click="H5ShareBox = false"></image>
  250. </view>
  251. <home></home>
  252. </view>
  253. </template>
  254. <script>
  255. const app = getApp();
  256. import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
  257. import { mapGetters } from "vuex";
  258. // #ifdef MP
  259. import { base64src } from '@/utils/base64src.js'
  260. import { getQrcode } from '@/api/api.js';
  261. // #endif
  262. import productConSwiper from '@/components/productConSwiper'
  263. import { toLogin } from '@/libs/login.js';
  264. import { imageBase64 } from "@/api/public";
  265. import parser from "@/components/jyf-parser/jyf-parser";
  266. import home from '@/components/home/index.vue'
  267. import productWindow from '@/components/productWindow/index.vue'
  268. import userEvaluation from '@/components/userEvaluation/index.vue'
  269. import countDown from '@/components/countDown/index.vue'
  270. import shareRedPackets from '@/components/shareRedPackets';
  271. import * as ProductSpuApi from '@/api/product/spu.js';
  272. import * as ProductFavoriteApi from '@/api/product/favorite.js';
  273. import * as ProductCommentApi from '@/api/product/comment.js';
  274. import * as CombinationApi from '@/api/promotion/combination.js';
  275. import * as BrokerageAPI from '@/api/trade/brokerage.js'
  276. import * as Util from '@/utils/util.js';
  277. import * as ProductUtil from '@/utils/product.js';
  278. export default {
  279. components: {
  280. shareRedPackets,
  281. productConSwiper,
  282. "jyf-parser": parser,
  283. home,
  284. "product-window": productWindow,
  285. userEvaluation,
  286. countDown
  287. },
  288. computed: mapGetters({
  289. 'isLogin': 'isLogin',
  290. 'uid': 'uid',
  291. 'chatUrl': 'chatUrl'
  292. }),
  293. data() {
  294. return {
  295. // ========== 拼团活动相关变量 ==========
  296. id: 0, // 拼团活动的编号
  297. activity: {}, // 拼团活动的信息
  298. status: 1, // 0 - 已禁用;1 - 未开始;2 - 进行中;3 - 已结束
  299. bgColor:{
  300. 'bgColor': '',
  301. 'Color': '#999999',
  302. 'isDay': true
  303. },
  304. successRecords: [], // 成功的拼团记录
  305. runningRecords: [], // 进行中的拼团记录
  306. AllIndex: 2, // runningRecords 展示的数量,用于收起
  307. AllIndexDefault: 0, // AllIndex 的默认值,用于收起
  308. circular: true, // 进行中的拼团记录的轮播相关的 4 个变量
  309. autoplay: true,
  310. interval: 3000,
  311. duration: 500,
  312. // ========== 商品相关变量 ==========
  313. spu: {}, // 商品 SPU 详情
  314. skuMap: [], // 商品 SKU Map
  315. attrValue: '', // 已选属性名的拼接,例如说 红色,大 这样的格式
  316. attr: { // productWindow 组件,使用该属性
  317. cartAttr: false,
  318. // ↓↓↓ 属性数组,结构为:id = 属性编号;name = 属性编号的名字;values[].id = 属性值的编号,values[].name = 属性值的名字;index = 选中的属性值的名字
  319. productAttr: [],
  320. productSelect: {} // 选中的 SKU
  321. },
  322. tagStyle: {
  323. img: 'width:100%;display:block;',
  324. table: 'width:100%',
  325. video: 'width:100%'
  326. },
  327. // ========== 评价相关的变量 ==========
  328. replyCount: 0, // 总评论数量
  329. replyChance: 0, // 好评率
  330. reply: [], // 评论列表
  331. // ========== 收藏相关的变量 ==========
  332. userCollect: false,
  333. // ========== 分销相关的变量 ==========
  334. qrcodeSize: 600, // 二维码的大小
  335. promotionCode: '', // 二维码图片
  336. imgTop: '', // 商品图片的 base64 码
  337. errT: '获取海报失败', // 获得小程序码失败的提示文本
  338. posters: false, // 分享弹窗的开关
  339. weixinStatus: false, // 微信分享是否打开
  340. canvasStatus: false, // 是否显示海报
  341. H5ShareBox: false, // 公众号分享的弹出
  342. posterbackgd: '/static/images/posterbackgd.png', // 海报的背景,用于海报的生成
  343. storeImage: '', // 下载商品图片后的文件地址
  344. actionSheetHidden: true, // 微信小程序的右上角分享的弹出
  345. posterImage: '', // 海报路径
  346. sharePacket: { // 分销弹出信息
  347. enabled: false, // 默认不显示
  348. },
  349. // ========== 顶部 nav + scroll 相关的变量 ==========
  350. returnShow: true, // 判断顶部 [返回] 是否出现
  351. homeTop: 20, // 头部的 top 位置
  352. height: 0, // 窗口 height 高度
  353. scrollY: 0, // 滚动的 Y 轴
  354. scrollTop: 0, // 滚动条的 top 位置
  355. lock: false, // 是否锁定 scroll 下
  356. topArr: [], // 每个 nav 的 top 位置
  357. heightArr: [], // 每个 nav 的 height 高度
  358. navH: "", // 头部 nav 高度
  359. opacity: 0, // 头部 nav 的透明度
  360. navList: ['商品', '评价', '详情'],
  361. navActive: 0, // 选中的 navList 下标
  362. storeInfo: {},
  363. }
  364. },
  365. watch: {
  366. isLogin: {
  367. handler: function(newV, oldV) {
  368. if (newV) {
  369. this.combinationDetail();
  370. }
  371. },
  372. deep: true
  373. },
  374. },
  375. onLoad(options) {
  376. this.$store.commit("PRODUCT_TYPE", 'normal');
  377. // 设置商品列表高度
  378. uni.getSystemInfo({
  379. success: res => {
  380. this.height = res.windowHeight
  381. //res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
  382. },
  383. });
  384. // #ifdef MP
  385. this.navH = app.globalData.navHeight;
  386. // #endif
  387. // #ifndef MP
  388. this.navH = 96;
  389. // #endif
  390. // 校验参数是否正确
  391. if (!options.scene && !options.id){
  392. this.$util.Tips({
  393. title: '缺少参数无法查看商品'
  394. }, {
  395. url: '/pages/index/index'
  396. });
  397. return;
  398. }
  399. // 解析 id 商品编号
  400. if (options.scene) { // 仅仅小程序扫码进入
  401. // TODO 芋艿:code 是啥
  402. let qrCodeValue = this.$util.getUrlParams(decodeURIComponent(options.scene));
  403. let mapeMpQrCodeValue = this.$util.formatMpQrCodeData(qrCodeValue);
  404. app.globalData.spread = mapeMpQrCodeValue.spread;
  405. this.id = mapeMpQrCodeValue.id;
  406. // 绑定分销用户
  407. setTimeout(()=>{
  408. BrokerageAPI.bindBrokerageUser(mapeMpQrCodeValue.spread).then(res => {}).catch(res => {})
  409. }, 2000)
  410. } else {
  411. this.id = options.id;
  412. }
  413. // 获取拼团信息
  414. this.combinationDetail();
  415. },
  416. //#ifdef MP
  417. onShareAppMessage() {
  418. return {
  419. title: this.spu.name || '',
  420. imageUrl: this.spu.picUrl,
  421. path: app.globalData.openPages
  422. };
  423. },
  424. //#endif
  425. onReady() {
  426. this.$nextTick(() => {
  427. // 设置微信的头部 top 位置
  428. // #ifdef MP||APP-PLUS || APP
  429. const menuButton = uni.getMenuButtonBoundingClientRect();
  430. const query = uni.createSelectorQuery().in(this);
  431. query.select('#home')
  432. .boundingClientRect(data => {
  433. this.homeTop = menuButton.top * 2 + menuButton.height - data.height;
  434. })
  435. .exec();
  436. // #endif
  437. });
  438. },
  439. methods: {
  440. // ========== 拼团活动相关 ==========
  441. combinationDetail() {
  442. CombinationApi.getCombinationActivity(this.id).then(res => {
  443. this.activity = res.data;
  444. uni.setNavigationBarTitle({
  445. title: this.activity.name.substring(0, 16)
  446. })
  447. // 计算总的 quota 数量
  448. this.activity.quota = this.activity.products.reduce((accumulator, product) => {
  449. return accumulator + product.quota;
  450. }, 0);
  451. // 计算活动状态
  452. const now = new Date().getTime();
  453. if (this.activity.status === 0) {
  454. if (this.activity.status === 1) {
  455. this.status = 0;
  456. } else {
  457. if (this.activity.startTime > now) {
  458. this.status = 1;
  459. } else if (now <= this.activity.endTime) {
  460. this.status = 2;
  461. } else {
  462. this.status = 3;
  463. }
  464. }
  465. }
  466. // 参团记录
  467. CombinationApi.getHeadCombinationRecordList(this.id, 1).then(res => {
  468. this.runningRecords = res.data;
  469. })
  470. CombinationApi.getHeadCombinationRecordList(this.id, 2).then(res => {
  471. this.successRecords = res.data;
  472. })
  473. // 获得商品详情
  474. this.getGoodsDetails();
  475. // 获得商品收藏
  476. this.isFavoriteExists();
  477. this.getBrokeragePrice();
  478. // 获得商品评价列表
  479. this.getProductReplyList();
  480. this.getProductReplyCount();
  481. }).catch(function(err) {
  482. that.$util.Tips({
  483. title: err
  484. }, {
  485. tab: 3
  486. })
  487. })
  488. },
  489. /**
  490. * 显示所有参团记录
  491. */
  492. showAll: function() {
  493. this.AllIndexDefault = this.AllIndex;
  494. this.AllIndex = this.runningRecords.length;
  495. },
  496. /**
  497. * 隐藏所有参团记录
  498. */
  499. hideAll: function() {
  500. this.AllIndex = this.AllIndexDefault;
  501. },
  502. // ========== 商品详情相关 ==========
  503. /**
  504. * 获取产品详情
  505. */
  506. getGoodsDetails: function() {
  507. ProductSpuApi.getSpuDetail(this.activity.spuId).then(res => {
  508. let spu = res.data;
  509. let skus = res.data.skus;
  510. this.$set(this, 'spu', spu);
  511. this.$set(this.attr, 'properties', ProductUtil.convertProductPropertyList(skus));
  512. this.$set(this, 'skuMap', ProductUtil.convertProductSkuMap(skus));
  513. // 将拼团活动的信息,合并到 SKU 里面,实现拼团价格的显示
  514. this.activity.products.forEach(product => {
  515. this.spu.price = Math.min(this.spu.price, product.combinationPrice); // 设置 SPU 的最低价格
  516. });
  517. skus.forEach(sku => {
  518. const product = this.activity.products.find(product => product.skuId === sku.id);
  519. if (product) {
  520. sku.price = product.combinationPrice;
  521. } else { // 找不到可能是没配置,则不能发起拼团
  522. sku.stock = 0;
  523. }
  524. // 设置限购数量
  525. if (this.activity.totalLimitCount > 0 && this.activity.singleLimitCount > 0) {
  526. sku.limitCount = Math.min(this.activity.totalLimitCount, this.activity.singleLimitCount);
  527. } else if (this.activity.totalLimitCount > 0) {
  528. sku.limitCount = this.activity.totalLimitCount;
  529. } else if (this.activity.singleLimitCount > 0) {
  530. sku.limitCount = this.activity.singleLimitCount;
  531. }
  532. });
  533. // 处理滚动条
  534. setTimeout(() => {
  535. this.infoScroll();
  536. }, 1000);
  537. // 设置或下载分销需要的图片
  538. // #ifdef H5
  539. this.storeImage = spu.picUrl;
  540. this.make();
  541. this.ShareInfo();
  542. // #endif
  543. // #ifdef MP
  544. this.getQrcode();
  545. this.imgTop = spu.picUrl;
  546. // #endif
  547. // #ifndef H5
  548. this.downloadFilestoreImage();
  549. // #endif
  550. // 选中默认 sku
  551. this.selectDefaultSku();
  552. }).catch(err => {
  553. return this.$util.Tips({
  554. title: err.toString()
  555. }, {
  556. tab: 3,
  557. url: 1
  558. });
  559. })
  560. },
  561. getBrokeragePrice: function() {
  562. BrokerageAPI.getProductBrokeragePrice(this.activity.spuId).then(res => {
  563. this.sharePacket = res.data
  564. });
  565. },
  566. /**
  567. * 默认选中属性
  568. */
  569. selectDefaultSku: function() {
  570. const properties = this.attr.properties;
  571. // 获得选中的属性值的名字,例如说 "黑色,大",则 skuKey = ["黑色", "大"]
  572. let skuKey = undefined;
  573. for (let key in this.skuMap) {
  574. if (this.skuMap[key].stock > 0) {
  575. skuKey = key.split(",");
  576. break;
  577. }
  578. }
  579. if (!skuKey) { // 如果找不到,则选中第一个
  580. skuKey = Object.keys(this.skuMap)[0].split(",");
  581. }
  582. // 使用 index 属性表示当前选中的,值为属性值的名字
  583. for (let i = 0; i < properties.length; i++) {
  584. this.$set(properties[i], "index", skuKey[i]);
  585. }
  586. let sku = this.skuMap[skuKey.join(",")];
  587. if (!sku) {
  588. return
  589. }
  590. this.$set(this.attr.productSelect, "spuName", this.spu.name);
  591. this.$set(this.attr.productSelect, "id", sku.id);
  592. this.$set(this.attr.productSelect, "picUrl", sku.picUrl);
  593. this.$set(this.attr.productSelect, "price", sku.price);
  594. this.$set(this.attr.productSelect, "stock", sku.stock);
  595. this.$set(this.attr.productSelect, "cart_num", 1);
  596. this.$set(this.attr.productSelect, "limitCount", sku.limitCount); // 拼团活动特有字段
  597. this.$set(this, "attrValue", skuKey.join(","));
  598. },
  599. /**
  600. * 打开 SKU 属性的选择
  601. */
  602. openAttr: function() {
  603. this.$set(this.attr, 'cartAttr', true);
  604. },
  605. /**
  606. * 关闭 productWindow 弹窗
  607. */
  608. closeAttr: function() {
  609. this.$set(this.attr, 'cartAttr', false);
  610. },
  611. /**
  612. * 属性变动赋值
  613. *
  614. * @param newSkuKey 新的 skuKey
  615. * @param propertyIndex properties 的下标
  616. * @param valueIndex values 的下标
  617. */
  618. ChangeAttr: function(newSkuKey, propertyIndex, valueIndex) {
  619. // SKU
  620. let sku = this.skuMap[newSkuKey];
  621. if (!sku) {
  622. return;
  623. }
  624. this.$set(this.attr.productSelect, "id", sku.id);
  625. this.$set(this.attr.productSelect, "picUrl", sku.picUrl);
  626. this.$set(this.attr.productSelect, "price", sku.price);
  627. this.$set(this.attr.productSelect, "stock", sku.stock);
  628. this.$set(this.attr.productSelect, "limitCount", sku.limitCount);
  629. this.$set(this.attr.productSelect, "cart_num", 1);
  630. // SKU 关联属性
  631. this.$set(this.attr.properties[propertyIndex], 'index',
  632. this.attr.properties[propertyIndex].values[valueIndex].name);
  633. this.$set(this, "attrValue", newSkuKey);
  634. },
  635. /**
  636. * 购物车数量加和数量减
  637. *
  638. * @param changeValue true 增加;false 减少
  639. */
  640. ChangeCartNum: function(changeValue) {
  641. // 获取当前 sku
  642. let sku = this.attr.productSelect;
  643. if (!sku) {
  644. return;
  645. }
  646. // 设置数量
  647. let stock = sku.stock || 0;
  648. let limitCount = sku.limitCount;
  649. if (changeValue) {
  650. sku.cart_num++;
  651. if (limitCount > 0 && sku.cart_num > limitCount) {
  652. this.$set(this.attr.productSelect, "cart_num", limitCount);
  653. this.$util.Tips({
  654. title: `该商品每次限购 ${sku.limitCount} ${this.spu.unitName}`
  655. });
  656. } else if (sku.cart_num > stock) {
  657. this.$set(this.attr.productSelect, "cart_num", stock);
  658. }
  659. } else {
  660. sku.cart_num--;
  661. if (sku.cart_num < 1) {
  662. this.$set(this.attr.productSelect, "cart_num", 1);
  663. }
  664. }
  665. },
  666. /**
  667. * 购物车手动填写
  668. *
  669. */
  670. iptCartNum: function(number) {
  671. this.$set(this.attr.productSelect, 'cart_num', number ? number : 1);
  672. // 判断是否超限购
  673. let sku = this.attr.productSelect;
  674. let limitCount = sku.limitCount;
  675. if (limitCount > 0 && number > limitCount) {
  676. this.$set(this.attr.productSelect, "cart_num", limitCount);
  677. this.$util.Tips({
  678. title: `该商品每次限购 ${sku.limitCount} ${this.spu.unitName}`
  679. });
  680. }
  681. },
  682. /**
  683. * 跳转到客服
  684. */
  685. kefuClick(){
  686. location.href = this.chatUrl;
  687. },
  688. // ========== 评价相关的方法 ==========
  689. /**
  690. * 获得商品评价列表
  691. */
  692. getProductReplyList: function() {
  693. ProductCommentApi.getCommentList(this.activity.spuId, 3).then(res => {
  694. this.reply = res.data;
  695. })
  696. },
  697. /**
  698. * 获得商品评价统计
  699. */
  700. getProductReplyCount: function() {
  701. ProductCommentApi.getCommentStatistics(this.activity.spuId).then(res => {
  702. const count = res.data.goodCount + res.data.mediocreCount + res.data.negativeCount;
  703. this.$set(this, 'replyChance', 100.0 * res.data.goodCount / count);
  704. this.$set(this, 'replyCount', count);
  705. });
  706. },
  707. // ========== 收藏相关方法 ==========
  708. /**
  709. * 获得是否收藏
  710. */
  711. isFavoriteExists: function() {
  712. if (!this.isLogin) {
  713. return;
  714. }
  715. ProductFavoriteApi.isFavoriteExists(this.activity.spuId).then(res => {
  716. this.userCollect = res.data;
  717. });
  718. },
  719. /**
  720. * 收藏 / 取消商品
  721. */
  722. setCollect: function() {
  723. if (!this.isLogin) {
  724. toLogin();
  725. return;
  726. }
  727. // 情况一:取消收藏
  728. if (this.userCollect) {
  729. ProductFavoriteApi.deleteFavorite(this.activity.spuId).then(res => {
  730. this.$set(this, 'userCollect', false);
  731. })
  732. // 情况二:添加收藏
  733. } else {
  734. ProductFavoriteApi.createFavorite(this.activity.spuId).then(res => {
  735. this.$set(this, 'userCollect', true);
  736. })
  737. }
  738. },
  739. /**
  740. * 单独购买
  741. */
  742. openAlone() {
  743. uni.navigateTo({
  744. url: `/pages/goods_details/index?id=${this.activity.spuId}`
  745. })
  746. },
  747. /**
  748. * 下订单
  749. */
  750. goBuy: function() {
  751. // 未登录,需要跳转
  752. if (!this.isLogin) {
  753. toLogin();
  754. return;
  755. }
  756. // 【重要】如果 attr 组件未打开,此时需要先打开。等到选择完后,再立即购买
  757. if (!this.attr.cartAttr) {
  758. this.openAttr();
  759. return;
  760. }
  761. // 发起下单
  762. let sku = this.attr.productSelect;
  763. uni.navigateTo({
  764. url: '/pages/users/order_confirm/index?skuId=' + sku.id + '&count=' + sku.cart_num
  765. + '&combinationActivityId=' + this.id
  766. });
  767. },
  768. // ========== 分销相关的方法 ==========
  769. /**
  770. * 生成二维码,设置到 promotionCode 变量
  771. */
  772. make() {
  773. let href = location.href.split('?')[0] + "?id="+ this.id + "&spread=" + this.uid;
  774. uQRCode.make({
  775. canvasId: 'qrcode',
  776. text: href,
  777. size: this.qrcodeSize,
  778. margin: 10,
  779. success: res => {
  780. this.promotionCode = res;
  781. },
  782. complete: () => {},
  783. fail:res => {
  784. this.$util.Tips({
  785. title: '海报二维码生成失败!'
  786. });
  787. }
  788. })
  789. },
  790. /**
  791. * 设置微信公众号的分享标题、内容等信息
  792. */
  793. ShareInfo: function() {
  794. // 只处理微信环境
  795. if (!this.$wechat.isWeixin()) {
  796. return
  797. }
  798. const spu = this.spu;
  799. let href = location.href;
  800. href = href.indexOf("?") === -1 ?
  801. href + "?spread=" + this.uid :
  802. href + "&spread=" + this.uid;
  803. const configAppMessage = {
  804. title: spu.name,
  805. imgUrl: spu.picUrl,
  806. desc: spu.description,
  807. link: href
  808. };
  809. this.$wechat.wechatEvevt([
  810. "updateAppMessageShareData",
  811. "updateTimelineShareData",
  812. "onMenuShareAppMessage",
  813. "onMenuShareTimeline"
  814. ], configAppMessage);
  815. },
  816. /**
  817. * 获得商品的封面 base64
  818. */
  819. getImageBase64:function(images) {
  820. imageBase64({
  821. url: images
  822. }).then(res=>{
  823. this.imgTop = res.data.code
  824. })
  825. },
  826. /**
  827. * 获得小程序的二维码
  828. */
  829. getQrcode() {
  830. let data = {
  831. pid: this.uid,
  832. id: this.id,
  833. path: 'pages/activity/goods_combination_details/index'
  834. }
  835. getQrcode(data).then(res=>{
  836. base64src(res.data.code, res => {
  837. this.promotionCode = res;
  838. });
  839. }).catch(err => {
  840. this.errT = err;
  841. });
  842. },
  843. /**
  844. * 生成海报
  845. */
  846. goPoster: function() {
  847. // 提示正在生成中
  848. uni.showLoading({
  849. title: '海报生成中',
  850. mask: true
  851. });
  852. this.posters = false;
  853. // 如果没有二维码图片,则说明加载失败,进行错误提示
  854. if(!this.promotionCode){
  855. uni.hideLoading();
  856. this.$util.Tips({
  857. title: this.errT
  858. });
  859. return
  860. }
  861. // 校验海报是否已经生成;如果失败,则进行错误提示
  862. setTimeout(() => {
  863. if (!this.imgTop) {
  864. uni.hideLoading();
  865. this.$util.Tips({
  866. title: '无法生成商品海报!'
  867. });
  868. }
  869. }, 1000);
  870. // 展示海报
  871. const that = this;
  872. let arrImagesUrlTop = '';
  873. uni.downloadFile({
  874. url: this.imgTop, //仅为示例,并非真实的资源
  875. success: (res) => {
  876. arrImagesUrlTop = res.tempFilePath;
  877. let arrImages = [that.posterbackgd, arrImagesUrlTop, that.promotionCode];
  878. const name = that.spu.name;
  879. const price = that.fen2yuan(that.spu.price);
  880. const marketPrice = that.fen2yuan(that.spu.marketPrice);
  881. setTimeout(() => {
  882. that.$util.PosterCanvas(arrImages, name, price, marketPrice,
  883. function(tempFilePath) {
  884. that.posterImage = tempFilePath;
  885. that.canvasStatus = true;
  886. uni.hideLoading();
  887. });
  888. }, 500);
  889. }
  890. });
  891. },
  892. /**
  893. * 关闭分享弹窗
  894. */
  895. closePosters: function() {
  896. this.posters = false;
  897. },
  898. /**
  899. * 隐藏海报
  900. */
  901. posterImageClose: function() {
  902. this.canvasStatus = false
  903. },
  904. /**
  905. * 获取海报产品图(解决跨域问题,只适用于小程序)
  906. */
  907. downloadFilestoreImage: function() {
  908. let that = this;
  909. uni.downloadFile({
  910. url: that.setDomain(that.spu.picUrl),
  911. success: function(res) {
  912. that.storeImage = res.tempFilePath;
  913. },
  914. fail: function() {
  915. return that.$util.Tips({
  916. title: ''
  917. });
  918. },
  919. });
  920. },
  921. /**
  922. * 替换安全域名
  923. */
  924. setDomain: function(url) {
  925. url = url ? url.toString() : '';
  926. // 本地调试打开,生产请注销
  927. if (url.indexOf("https://") > -1) {
  928. return url;
  929. }
  930. return url.replace('http://', 'https://');
  931. },
  932. /**
  933. * 分享打开
  934. */
  935. listenerActionSheet: function() {
  936. if (!this.isLogin) {
  937. toLogin();
  938. return
  939. }
  940. // #ifdef H5
  941. if (this.$wechat.isWeixin() === true) {
  942. this.weixinStatus = true;
  943. }
  944. // #endif
  945. this.posters = true;
  946. },
  947. /**
  948. * 分享关闭
  949. */
  950. listenerActionClose: function() {
  951. this.canvasStatus = false;
  952. },
  953. /**
  954. * 微信小程序的保存图片到本机
  955. */
  956. // #ifdef MP
  957. savePosterPath: function() {
  958. let that = this;
  959. uni.getSetting({
  960. success(res) {
  961. if (!res.authSetting['scope.writePhotosAlbum']) {
  962. uni.authorize({
  963. scope: 'scope.writePhotosAlbum',
  964. success() {
  965. uni.saveImageToPhotosAlbum({
  966. filePath: that.posterImage,
  967. success: function(res) {
  968. that.posterImageClose();
  969. that.$util.Tips({
  970. title: '保存成功',
  971. icon: 'success'
  972. });
  973. },
  974. fail: function(res) {
  975. that.$util.Tips({
  976. title: '保存失败'
  977. });
  978. }
  979. })
  980. }
  981. })
  982. } else {
  983. uni.saveImageToPhotosAlbum({
  984. filePath: that.posterImage,
  985. success: function(res) {
  986. that.posterImageClose();
  987. that.$util.Tips({
  988. title: '保存成功',
  989. icon: 'success'
  990. });
  991. },
  992. fail: function(res) {
  993. that.$util.Tips({
  994. title: '保存失败'
  995. });
  996. },
  997. })
  998. }
  999. }
  1000. })
  1001. },
  1002. // #endif
  1003. /**
  1004. * 关闭分销的弹窗
  1005. */
  1006. closeChange: function() {
  1007. this.$set(this.sharePacket, 'enabled', false);
  1008. },
  1009. // ========== 顶部 nav 相关的方法 ==========
  1010. /**
  1011. * 后退
  1012. */
  1013. returns: function() {
  1014. uni.navigateBack()
  1015. },
  1016. /**
  1017. * 点击指定 nav bar
  1018. *
  1019. * @param index 新的 navList 位置
  1020. */
  1021. tap: function(index) {
  1022. this.$set(this, 'navActive', index);
  1023. this.$set(this, 'lock', true);
  1024. this.$set(this, 'scrollTop', index > 0 ? this.topArr[index] - (app.globalData.navHeight / 2)
  1025. : this.topArr[index]);
  1026. },
  1027. /**
  1028. * 滚动
  1029. *
  1030. * @param e 滚动事件
  1031. */
  1032. scroll: function(e) {
  1033. const scrollY = e.detail.scrollTop;
  1034. let opacity = scrollY / 200;
  1035. opacity = opacity > 1 ? 1 : opacity;
  1036. this.$set(this, 'opacity', opacity);
  1037. this.$set(this, 'scrollY', scrollY);
  1038. if (this.lock) {
  1039. this.$set(this, 'lock', false)
  1040. return;
  1041. }
  1042. // 设置选中的 nav
  1043. for (let i = 0; i < this.topArr.length; i++) {
  1044. if (scrollY < this.topArr[i] - (app.globalData.navHeight / 2) + this.heightArr[i]) {
  1045. this.$set(this, 'navActive', i)
  1046. break
  1047. }
  1048. }
  1049. },
  1050. /**
  1051. * 处理器滚动条
  1052. */
  1053. infoScroll: function() {
  1054. const topArr = [];
  1055. const heightArr = [];
  1056. for (let i = 0; i < this.navList.length; i++) {
  1057. // 获取元素所在位置
  1058. const query = wx.createSelectorQuery().in(this);
  1059. const idView = "#past" + i;
  1060. query.select(idView).boundingClientRect();
  1061. query.exec(res => {
  1062. const top = res[0].top;
  1063. const height = res[0].height;
  1064. topArr.push(top);
  1065. heightArr.push(height);
  1066. this.$set(this, 'topArr', topArr);
  1067. this.$set(this, 'heightArr', heightArr);
  1068. });
  1069. }
  1070. },
  1071. fen2yuan(price) {
  1072. return Util.fen2yuan(price)
  1073. }
  1074. }
  1075. }
  1076. </script>
  1077. <style scoped lang="scss">
  1078. .userEvaluation{
  1079. i{
  1080. display: inline-block;
  1081. }
  1082. }
  1083. .attribute{
  1084. .line1{
  1085. width: 600rpx;
  1086. }
  1087. }
  1088. .share-box {
  1089. z-index: 1000;
  1090. position: fixed;
  1091. left: 0;
  1092. top: 0;
  1093. width: 100%;
  1094. height: 100%;
  1095. image {
  1096. width: 100%;
  1097. height: 100%;
  1098. }
  1099. }
  1100. .generate-posters {
  1101. width: 100%;
  1102. height: 170rpx;
  1103. background-color: #fff;
  1104. position: fixed;
  1105. left: 0;
  1106. bottom: 0;
  1107. z-index: 1000;
  1108. transform: translate3d(0, 100%, 0);
  1109. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1110. border-top: 1rpx solid #eee;
  1111. }
  1112. .generate-posters.on {
  1113. transform: translate3d(0, 0, 0);
  1114. }
  1115. .generate-posters .item {
  1116. flex: 50%;
  1117. text-align: center;
  1118. font-size: 30rpx;
  1119. }
  1120. .generate-posters .item .iconfont {
  1121. font-size: 80rpx;
  1122. color: #5eae72;
  1123. }
  1124. .generate-posters .item .iconfont.icon-haibao {
  1125. color: #5391f1;
  1126. }
  1127. .navbar .header {
  1128. height: 96rpx;
  1129. font-size: 30rpx;
  1130. color: #050505;
  1131. background-color: #fff;
  1132. /* #ifdef MP */
  1133. padding-right: 95rpx;
  1134. /* #endif */
  1135. }
  1136. .icon-xiangzuo {
  1137. /* #ifdef H5 */
  1138. top: 30rpx !important;
  1139. /* #endif */
  1140. }
  1141. .navbar .header .item {
  1142. position: relative;
  1143. margin: 0 25rpx;
  1144. }
  1145. .navbar .header .item.on:before {
  1146. position: absolute;
  1147. width: 60rpx;
  1148. height: 5rpx;
  1149. background-repeat: no-repeat;
  1150. content: "";
  1151. background-image: linear-gradient(to right, #ff3366 0%, #ff6533 100%);
  1152. bottom: -10rpx;
  1153. left: 50%;
  1154. margin-left: -28rpx;
  1155. }
  1156. .navbar {
  1157. position: fixed;
  1158. background-color: #fff;
  1159. top: 0;
  1160. left: 0;
  1161. z-index: 999;
  1162. width: 100%;
  1163. }
  1164. .navbar .navbarH {
  1165. position: relative;
  1166. }
  1167. .navbar .navbarH .navbarCon {
  1168. position: absolute;
  1169. bottom: 0;
  1170. height: 100rpx;
  1171. width: 100%;
  1172. }
  1173. .icon-xiangzuo {
  1174. color: #000;
  1175. position: fixed;
  1176. font-size: 40rpx;
  1177. width: 100rpx;
  1178. height: 56rpx;
  1179. line-height: 54rpx;
  1180. z-index: 1000;
  1181. left: 33rpx;
  1182. }
  1183. .product-con .wrapper {
  1184. margin-top: 30rpx;
  1185. border-radius: 14rpx;
  1186. }
  1187. .product-con .wrapper .share .money .y-money {
  1188. color: #82848f;
  1189. margin-left: 13rpx;
  1190. text-decoration: line-through;
  1191. font-weight: normal;
  1192. }
  1193. .product-con .notice {
  1194. width: 100%;
  1195. height: 62rpx;
  1196. background-color: #ffedeb;
  1197. padding: 0 24rpx;
  1198. box-sizing: border-box;
  1199. }
  1200. .product-con .notice .num {
  1201. font-size: 24rpx;
  1202. }
  1203. .product-con .notice .num .iconfont {
  1204. font-size: 30rpx;
  1205. vertical-align: -3rpx;
  1206. margin-right: 20rpx;
  1207. }
  1208. .product-con .notice .num .line {
  1209. color: #333333;
  1210. margin-left: 15rpx;
  1211. }
  1212. .product-con .notice .swiper {
  1213. height: 100%;
  1214. width: 360rpx;
  1215. line-height: 62rpx;
  1216. overflow: hidden;
  1217. margin-left: 14rpx;
  1218. }
  1219. .product-con .notice .swiper swiper {
  1220. height: 100%;
  1221. width: 100%;
  1222. overflow: hidden;
  1223. font-size: 24rpx;
  1224. color: #333333;
  1225. }
  1226. .product-con .assemble {
  1227. background-color: #fff;
  1228. }
  1229. .product-con .assemble .item {
  1230. padding-right: 24rpx;
  1231. margin-left: 24rpx;
  1232. border-bottom: 1rpx solid #f0f0f0;
  1233. height: 130rpx;
  1234. }
  1235. .product-con .assemble .item .pictxt .text {
  1236. width: 172rpx;
  1237. margin-left: 16rpx;
  1238. }
  1239. .product-con .assemble .item .pictxt .pictrue {
  1240. width: 80rpx;
  1241. height: 80rpx;
  1242. background: #f0f0f0;
  1243. border-radius: 50%;
  1244. }
  1245. .product-con .assemble .item .pictxt .pictrue image {
  1246. width: 100%;
  1247. height: 100%;
  1248. border-radius: 50%;
  1249. }
  1250. .product-con .assemble .item .right .lack {
  1251. font-size: 24rpx;
  1252. color: #333333;
  1253. }
  1254. .product-con .assemble .item .right .time {
  1255. position: relative;
  1256. left: -10rpx;
  1257. font-size: 22rpx;
  1258. color: #82848f;
  1259. margin-top: 5rpx;
  1260. }
  1261. .product-con .assemble .item .right .spellBnt {
  1262. font-size: 24rpx;
  1263. color: #fff;
  1264. width: 140rpx;
  1265. height: 50rpx;
  1266. border-radius: 50rpx;
  1267. background: linear-gradient(90deg, #FF5555 0%, #FF0000 100%);
  1268. text-align: center;
  1269. line-height: 50rpx;
  1270. margin-left: 16rpx;
  1271. }
  1272. .product-con .assemble .item .right .spellBnt .iconfont {
  1273. font-size: 25rpx;
  1274. margin-left: 5rpx;
  1275. }
  1276. .product-con .assemble .more {
  1277. font-size: 24rpx;
  1278. color: #333333;
  1279. text-align: center;
  1280. height: 90rpx;
  1281. line-height: 90rpx;
  1282. }
  1283. .product-con .assemble .more .iconfont {
  1284. margin-left: 13rpx;
  1285. font-size: 25rpx;
  1286. }
  1287. .product-con .playWay {
  1288. background-color: #fff;
  1289. padding: 0 24rpx;
  1290. margin-top: 20rpx;
  1291. font-size: 28rpx;
  1292. color: #333333;
  1293. }
  1294. .product-con .playWay .title {
  1295. height: 86rpx;
  1296. border-bottom: 1rpx solid #eee;
  1297. font-size: 28rpx;
  1298. }
  1299. .product-con .playWay .title .iconfont {
  1300. margin-left: 13rpx;
  1301. font-size: 26rpx;
  1302. color: #717171;
  1303. }
  1304. .product-con .playWay .way {
  1305. height: 110rpx;
  1306. line-height: 110rpx;
  1307. font-size: 26rpx;
  1308. color: #333333;
  1309. }
  1310. .product-con .playWay .way .iconfont {
  1311. color: #cdcdcd;
  1312. font-size: 26rpx;
  1313. margin: 0 35rpx;
  1314. }
  1315. .product-con .playWay .way .item .num {
  1316. font-size: 35rpx;
  1317. vertical-align: 4rpx;
  1318. margin-right: 6rpx;
  1319. display: inline-block;
  1320. }
  1321. .product-con .playWay .way .item .tip {
  1322. font-size: 22rpx;
  1323. color: #a5a5a5;
  1324. margin-top: 7rpx;
  1325. }
  1326. .product-con .footer {
  1327. padding: 0 20rpx 0 30rpx;
  1328. position: fixed;
  1329. bottom: 0;
  1330. width: 100%;
  1331. box-sizing: border-box;
  1332. height: 100rpx;
  1333. background-color: #fff;
  1334. z-index: 999;
  1335. border-top: 1rpx solid #f0f0f0;
  1336. text-align: center;
  1337. }
  1338. .product-con .footer .item {
  1339. font-size: 18rpx;
  1340. color: #666;
  1341. }
  1342. .product-con .footer .item .iconfont {
  1343. text-align: center;
  1344. font-size: 40rpx;
  1345. }
  1346. .product-con .footer .item .iconfont.icon-shoucang1 {
  1347. color: #f00;
  1348. }
  1349. .product-con .footer .item .iconfont.icon-gouwuche1 {
  1350. font-size: 40rpx;
  1351. position: relative;
  1352. }
  1353. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  1354. color: #fff;
  1355. position: absolute;
  1356. font-size: 18rpx;
  1357. padding: 2rpx 8rpx 3rpx;
  1358. border-radius: 200rpx;
  1359. top: -10rpx;
  1360. right: -10rpx;
  1361. }
  1362. .product-con .footer .bnt {
  1363. width: 540rpx;
  1364. height: 76rpx;
  1365. }
  1366. .product-con .footer .bnt .bnts {
  1367. width: 270rpx;
  1368. text-align: center;
  1369. line-height: 76rpx;
  1370. color: #fff;
  1371. font-size: 28rpx;
  1372. }
  1373. .product-con .footer .bnt .joinCart {
  1374. border-radius: 50rpx 0 0 50rpx;
  1375. background-image: linear-gradient(to right, #fea10f 0%, #fa8013 100%);
  1376. }
  1377. .product-con .footer .bnt .buy {
  1378. border-radius: 0 50rpx 50rpx 0;
  1379. background-image: linear-gradient(to right, #fa6514 0%, #e93323 100%);
  1380. }
  1381. .setCollectBox {
  1382. font-size: 18rpx;
  1383. color: #666;
  1384. }
  1385. .canvas {
  1386. position: fixed;
  1387. z-index: -5;
  1388. opacity: 0;
  1389. }
  1390. .poster-pop {
  1391. width: 450rpx;
  1392. height: 714rpx;
  1393. position: fixed;
  1394. left: 50%;
  1395. transform: translateX(-50%);
  1396. z-index: 99;
  1397. top: 50%;
  1398. margin-top: -357rpx;
  1399. }
  1400. .poster-pop image {
  1401. width: 100%;
  1402. height: 100%;
  1403. display: block;
  1404. }
  1405. .poster-pop .close {
  1406. width: 46rpx;
  1407. height: 75rpx;
  1408. position: fixed;
  1409. right: 0;
  1410. top: -73rpx;
  1411. display: block;
  1412. }
  1413. .poster-pop .save-poster {
  1414. background-color: #df2d0a;
  1415. font-size: :22rpx;
  1416. color: #fff;
  1417. text-align: center;
  1418. height: 76rpx;
  1419. line-height: 76rpx;
  1420. width: 100%;
  1421. }
  1422. .poster-pop .keep {
  1423. color: #fff;
  1424. text-align: center;
  1425. font-size: 25rpx;
  1426. margin-top: 10rpx;
  1427. }
  1428. .mask {
  1429. position: fixed;
  1430. top: 0;
  1431. left: 0;
  1432. right: 0;
  1433. bottom: 0;
  1434. background-color: rgba(0, 0, 0, 0.6);
  1435. z-index: 9;
  1436. }
  1437. .pro-wrapper .iconn {
  1438. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAYKElEQVR4nO2deXhTVfrHP0nTlpautHSjZSkt+x42UTYVF5C4gsKIOqOjIxJHZdTfyG+eEZ1xxgVHjeLo6KiIKKsYcAUEBQooASxQKC1QulPolm50S+aPJPXmZm2a3BTo53n6QM49956T+8259yzv+x7ZmC8WcbGjU2migBFAGpAK9AGSgBjzX3dAAYSbT6kBWoA6o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qIkm3oAfTGHZAZC+uih/KNYmj3Jm4OQI8C2ww25j7hE4tsAXz+/kWTGagLheVyxv1/HzuBAcrTnG48jQna0q8HltTIQ+gf3giw6P7MapHKuN7DnC477CIDExPpo3ees8646IQWIhOpZkIPIRpbtutSewWQyuna0s5WVNKUd15iuvLKWmopLxRT01zAw0tjTQbWto21QgJCCJQriBEEUx4YAgxwREkhESRFBpLcvdY+ocn0C8sQRz70Rn1wBrgHbP7rWRcdAJb0Kk0kZhEnodp+tPtuy0RrZi8Cj4F1ii1ammCQotwJbDrXSv8hPmG/Qf4j06liQdmAzcA12FnmCURtcBWTHGoNim1aum2S/eQTiuwEPONfA94T6fSBAFjgSswTYeOQRAp18sUYOoF78TkQb9fqVU3OT+lc9FpH9HtQafSRAMjgHRMW9b3xbRVUIz5LxQIAizbktQDjeZ/y81/xUCe+S8HyFRq1TY7Lnc2XD2i/wckBEniScYuwQAAAABJRU5ErkJggg==');
  1439. width: 100rpx;
  1440. height: 100rpx;
  1441. background-repeat: no-repeat;
  1442. background-size: 100% 100%;
  1443. margin: 0 auto;
  1444. }
  1445. .pro-wrapper .iconn.iconn1 {
  1446. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAR4ElEQVR4nO2deZgU5Z3HP1XVU9zDMYDcIDcaBjJQCsMhDy54crjhTMDEXKtE27gGn8TkiZpo8qgRQyeyq0924wKrgMawEDRuUBFkQBsQgVW5j8EBgeGYGRBqpqv2j6oeaqqqr+nu6eqZ/jxPP1BvvTVVXd9+r9/7e3+vMHLxFbKdoF9uBxQC/YG+QG+gG1BgfloBPqCNeUklUANcBMrNTxlwFDgEHAB2KQH1fMN9i/oR9MtRz/sa6DlSRtAvy8BIYDQwDigCeib4Z8JCtwd6RLlXKbAD2ARsAbYpAVVN9JkzSVYIHPTL1wBTgFuByVwVKN30ND/TzOOqoF9eD6wD1ioB9csGeo56I3i1ig765bbATGAOMAGQMvpATkLA+8AKYJUS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4R+hYIFHYRGNZNROnpCFUUiRKMmml1qtrZaGSFwFaCfnkU8C8Ytu2W8VxTo8HhszqHzup8cUGnrELnZCWUX9SpVOErVadag6/MfYVa5EGeCC1kgTYyFLQSuKa1EUq5R1uBvh0Eru2QUFDWS8Aq4EVz+W2DkXUChwn65bYYIs/FMH96bf4xhLGq4FVglRJQL8TInxayVmArQb98DTAFuBWYjMswq4GoAtZjxKFaqwTUL2PkTzuNQmArQb8sAyOB0Rjm0CKgZ5puV4rRC96EsYJ+mxJQPbX5X6MT2I2gX24PFAIDMLas7wN0AwrMT0tABlqZl1wCrpj/lpufMuCI+dkP7FIC6rmG+Qb1J5bA/w8QrL/zy2ZeXQAAAABJRU5ErkJggg==');
  1447. }
  1448. .home-nav {
  1449. /* #ifdef H5 */
  1450. top: 20rpx !important;
  1451. /* #endif */
  1452. }
  1453. .home-nav {
  1454. color: #fff;
  1455. position: fixed;
  1456. font-size: 33rpx;
  1457. width: 56rpx;
  1458. height: 56rpx;
  1459. z-index: 999;
  1460. left: 33rpx;
  1461. background: rgba(190, 190, 190, 0.5);
  1462. border-radius: 50%;
  1463. &.on {
  1464. background: unset;
  1465. color: #333;
  1466. }
  1467. }
  1468. .home-nav .line {
  1469. width: 1rpx;
  1470. height: 24rpx;
  1471. background: rgba(255, 255, 255, 0.25);
  1472. }
  1473. .home-nav .icon-xiangzuo {
  1474. width: auto;
  1475. font-size: 28rpx;
  1476. }
  1477. .share-box {
  1478. z-index: 1000;
  1479. position: fixed;
  1480. left: 0;
  1481. top: 0;
  1482. width: 100%;
  1483. height: 100%;
  1484. }
  1485. .share-box image {
  1486. width: 100%;
  1487. height: 100%;
  1488. }
  1489. </style>