index.vue 65 KB

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