index.vue 65 KB

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