index.vue 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810
  1. <template>
  2. <view :style="colorStyle">
  3. <!-- #ifndef APP-PLUS -->
  4. <view class='navbar' :style="{height:navH+'rpx',opacity:opacity}">
  5. <view class='navbarH' :style='"height:"+navH+"rpx;"'>
  6. <view class='navbarCon acea-row row-center-wrapper'>
  7. <view class="header acea-row row-center-wrapper">
  8. <view class="item" :class="navActive === index ? 'on' : ''" v-for="(item,index) in navList"
  9. :key='index' @tap="tap(item,index)">
  10. {{ item }}
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view id="home" class="home-nav acea-row row-center-wrapper" :class="[opacity>0.5?'on':'']"
  17. :style="{ top: homeTop +'rpx'}">
  18. <view class="iconfont icon-fanhui2" @tap="returns"></view>
  19. <!-- #ifdef MP -->
  20. <view class="line"></view>
  21. <view class="iconfont icon-gengduo5" @click="moreNav"></view>
  22. <!-- #endif -->
  23. </view>
  24. <!-- #endif -->
  25. <!-- #ifdef H5 -->
  26. <view id="home" class="home-nav right acea-row row-center-wrapper" :class="[opacity>0.5?'on':'']"
  27. :style="{ top: homeTop +'rpx'}">
  28. <!-- #ifdef H5 -->
  29. <view class="iconfont icon-gengduo2" @click="moreNav"></view>
  30. </view>
  31. <!-- #endif -->
  32. <!-- #endif -->
  33. <homeList :navH="navH" :returnShow="returnShow" :currentPage="currentPage" :sysHeight="sysHeight">
  34. </homeList>
  35. <!-- 详情 -->
  36. <view class='product-con'>
  37. <scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true"
  38. :style="'height:'+height+'px;'" @scroll="scroll">
  39. <view id="past0">
  40. <!-- #ifdef APP-PLUS || MP -->
  41. <view class="" :style="'width:100%;' + 'height:'+sysHeight"></view>
  42. <!-- #endif -->
  43. <productConSwiper :imgUrls="imgUrls"></productConSwiper>
  44. <view class='wrapper'>
  45. <view class='share acea-row row-between row-bottom'>
  46. <view class='money font-color'>
  47. {{$t(`¥`)}}<text class='num'>{{storeInfo.price || 0}}</text>
  48. <text
  49. v-if="attribute.productAttr.length && (attribute.productAttr.length?attribute.productAttr[0].attr_values.length:0) > 1">{{$t(`起`)}}</text>
  50. <text class='y-money'>{{$t(`¥`)}}{{storeInfo.product_price || 0}}</text>
  51. </view>
  52. <view class='iconfont icon-fenxiang' @click="listenerActionSheet"></view>
  53. </view>
  54. <view class='introduce'>{{storeInfo.title}}</view>
  55. <view class='label acea-row row-between-wrapper'>
  56. <view class='stock'>{{$t(`类型`)}}:{{storeInfo.people || 0}}{{$t(`人团`)}}</view>
  57. <view>{{$t(`累计销量`)}}:{{storeInfo.total?storeInfo.total:0}} {{$t(storeInfo.unit_name) || ''}}
  58. </view>
  59. <view>{{$t(`限购`)}}: {{ storeInfo.quota ? storeInfo.quota : 0 }}
  60. {{$t(storeInfo.unit_name) || ''}}
  61. </view>
  62. </view>
  63. </view>
  64. <view class='attribute acea-row row-between-wrapper' @tap='selecAttr'
  65. v-if='attribute.productAttr.length'>
  66. <!-- <view>{{attr}}:<text class='atterTxt'>{{attrValue}}</text></view>
  67. <view class='iconfont icon-jiantou'></view> -->
  68. <view class="flex">
  69. <view style="display: flex; align-items: center; width: 90%">
  70. <view class="attr-txt"> {{ attr }}: </view>
  71. <view class="atterTxt line1" style="width: 82%">{{
  72. attrValue
  73. }}</view>
  74. </view>
  75. <view class="iconfont icon-jiantou"></view>
  76. </view>
  77. <view class="acea-row row-between-wrapper" style="margin-top: 7px; padding-left: 70px"
  78. v-if="skuArr.length > 1">
  79. <view class="flexs">
  80. <image :src="item.image" v-for="(item, index) in skuArr.slice(0, 4)" :key="index"
  81. class="attrImg"></image>
  82. </view>
  83. <view class="switchTxt">{{$t(`共`)}}{{ skuArr.length }}{{$t(`种规格可选`)}}</view>
  84. </view>
  85. </view>
  86. <view class="bg-color">
  87. <view class='notice acea-row row-middle'>
  88. <view class='num font-num'>
  89. <text class='iconfont icon-laba'></text>
  90. {{$t(`已拼`)}}{{pink_ok_sum}}{{$t(`件`)}}<text class='line'>|</text>
  91. </view>
  92. <view class='swiper'>
  93. <swiper :indicator-dots="indicatorDots" :autoplay="autoplay" interval="2500"
  94. duration="500" vertical="true" circular="true">
  95. <block v-for="(item,index) in itemNew" :key='index'>
  96. <swiper-item>
  97. <view class='line1'>{{item}}</view>
  98. </swiper-item>
  99. </block>
  100. </swiper>
  101. </view>
  102. </view>
  103. </view>
  104. <view class='assemble'>
  105. <view class='item acea-row row-between-wrapper' v-for='(item,index) in pink' :key='index'
  106. v-if="index < AllIndex">
  107. <view class='pictxt acea-row row-between-wrapper'>
  108. <view class='pictrue'>
  109. <image :src='item.avatar'></image>
  110. </view>
  111. <view class='text line1'>{{item.nickname}}</view>
  112. </view>
  113. <view class='right acea-row row-middle'>
  114. <view>
  115. <view class='lack'>{{$t(`还差`)}}<text
  116. class='font-num'>{{item.count}}</text>{{$t(`人成团`)}}</view>
  117. <view class='time'>
  118. <count-down :is-day="false" :tip-text="' '" :day-text="' '" :hour-text="':'"
  119. :minute-text="':'" :second-text="' '" :datatime="item.stop_time">
  120. </count-down>
  121. </view>
  122. </view>
  123. <navigator hover-class='none'
  124. :url="'/pages/activity/goods_combination_status/index?id='+item.id"
  125. class='spellBnt'>
  126. {{$t(`去拼单`)}}
  127. <!-- <text class='iconfont icon-jiantou'></text> -->
  128. </navigator>
  129. </view>
  130. </view>
  131. <template v-if="pink.length">
  132. <view class='more' @tap='showAll' v-if="pink.length > AllIndex">{{$t(`查看更多`)}}<text
  133. class='iconfont icon-xiangxia'></text></view>
  134. <view class='more' @tap='hideAll'
  135. v-else-if="pink.length === AllIndex && pink.length !== AllIndexDefault">
  136. {{$t(`收起`)}}<text class='iconfont icon-xiangshang'></text>
  137. </view>
  138. </template>
  139. </view>
  140. <view class='playWay'>
  141. <view class='title acea-row row-between-wrapper'>
  142. <view>{{$t(`拼团玩法`)}}</view>
  143. </view>
  144. <view class='way acea-row row-middle'>
  145. <view class='item'>
  146. <text class='num'>①</text>
  147. <text>{{$t(`开团/参团`)}}</text>
  148. </view>
  149. <view class='iconfont icon-arrow'></view>
  150. <view class='item'>
  151. <text class='num'>②</text>
  152. <text>{{$t(`邀请好友`)}}</text>
  153. </view>
  154. <view class='iconfont icon-arrow'></view>
  155. <view class='item'>
  156. <text class='num'>③</text>
  157. <text>{{$t(`满员发货`)}}</text>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class='userEvaluation' id="past1" v-if="replyCount">
  163. <view class='title acea-row row-between-wrapper'>
  164. <view>{{$t(`用户评价`)}}({{replyCount}})</view>
  165. <navigator class='praise' hover-class='none'
  166. :url='"/pages/goods/goods_comment_list/index?product_id="+storeInfo.product_id'>
  167. <text class='font-num'>{{replyChance || 0}}%</text>
  168. {{$t(`好评率`)}}
  169. <text class='iconfont icon-jiantou'></text>
  170. </navigator>
  171. </view>
  172. <userEvaluation :reply="reply"></userEvaluation>
  173. </view>
  174. <view class='product-intro' id="past2">
  175. <view class='title'>{{$t(`产品介绍`)}}</view>
  176. <view class='conter'>
  177. <!-- <view class="" v-html="storeInfo.description"></view> -->
  178. <parser :html="storeInfo.description" ref="article" :tag-style="tagStyle"></parser>
  179. </view>
  180. </view>
  181. </scroll-view>
  182. <view class='footer acea-row row-between-wrapper' :class="{'eject':storeInfo.id}">
  183. <navigator hover-class="none" class="item" open-type="switchTab" url="/pages/index/index">
  184. <view class="iconfont icon-shouye6"></view>
  185. <view class="p_center">{{$t(`首页`)}}</view>
  186. </navigator>
  187. <view @tap='setCollect' class='item'>
  188. <view class='iconfont icon-shoucang1' v-if="storeInfo.userCollect"></view>
  189. <view class='iconfont icon-shoucang' v-else></view>
  190. <view class="p_center">{{$t(`收藏`)}}</view>
  191. </view>
  192. <view class="bnt acea-row">
  193. <view class="joinCart bnts" @tap="goProduct">{{$t(`单独购买`)}}</view>
  194. <view class="buy bnts" @tap="goCat"
  195. v-if='attribute.productSelect.product_stock>0&&attribute.productSelect.quota>0'>
  196. {{$t(`立即开团`)}}
  197. </view>
  198. <view class="buy bnts bg-color-hui" v-if="!dataShow">
  199. {{$t(`立即开团`)}}
  200. </view>
  201. <view class="buy bnts bg-color-hui"
  202. v-if='attribute.productSelect.quota <= 0 || attribute.productSelect.product_stock <= 0'>
  203. {{$t(`已售罄`)}}
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. <!-- 分享按钮 -->
  209. <view class="generate-posters acea-row row-middle" :class="posters ? 'on' : ''">
  210. <!-- #ifndef MP -->
  211. <button class="item" hover-class='none' v-if="weixinStatus === true" @click="H5ShareBox = true">
  212. <!-- <button class="item" hover-class='none' v-if="weixinStatus === true" @click="setShareInfoStatus"> -->
  213. <view class="iconfont icon-weixin3"></view>
  214. <view class="">{{$t(`发送给朋友`)}}</view>
  215. </button>
  216. <!-- #endif -->
  217. <!-- #ifdef MP -->
  218. <button class="item" open-type="share" hover-class='none' @click="goFriend">
  219. <view class="iconfont icon-weixin3"></view>
  220. <view class="">{{$t(`发送给朋友`)}}</view>
  221. </button>
  222. <!-- #endif -->
  223. <!-- #ifdef APP-PLUS -->
  224. <view class="item" @click="appShare('WXSceneSession')">
  225. <view class="iconfont icon-weixin3"></view>
  226. <view class="">{{$t(`微信好友`)}}</view>
  227. </view>
  228. <view class="item" @click="appShare('WXSenceTimeline')">
  229. <view class="iconfont icon-pengyouquan"></view>
  230. <view class="">{{$t(`微信朋友圈`)}}</view>
  231. </view>
  232. <!-- #endif -->
  233. <button class="item" hover-class='none' @tap="goPoster('scombination')">
  234. <view class="iconfont icon-haibao"></view>
  235. <view class="">{{$t(`生成海报`)}}</view>
  236. </button>
  237. </view>
  238. <view class="mask" v-if="posters" @click="listenerActionClose"></view>
  239. <!-- 海报展示 -->
  240. <view class='poster-pop' v-if="posterImageStatus">
  241. <image src='/static/images/poster-close.png' class='close' @click="posterImageClose"></image>
  242. <image :src='posterImage'></image>
  243. <!-- #ifndef H5 -->
  244. <view class='save-poster' @click="savePosterPath">{{$t(`保存到手机`)}}</view>
  245. <!-- #endif -->
  246. <!-- #ifdef H5 -->
  247. <view class="keep">{{$t(`长按图片可以保存到手机`)}}</view>
  248. <!-- #endif -->
  249. </view>
  250. <view class='mask1' v-if="posterImageStatus"></view>
  251. <canvas class="canvas" canvas-id='myCanvas' v-if="canvasStatus"></canvas>
  252. <view class="share-box" v-if="H5ShareBox">
  253. <image :src="imgHost + '/statics/images/share-info.png'" @click="H5ShareBox = false"></image>
  254. </view>
  255. <!-- #ifdef MP -->
  256. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  257. <!-- #endif -->
  258. <product-window :attr='attribute' :limitNum='1' @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
  259. @ChangeCartNum="ChangeCartNum" @iptCartNum="iptCartNum" @attrVal="attrVal" @getImg="showImg">
  260. </product-window>
  261. <cus-previewImg ref="cusPreviewImg" :list="skuArr" @changeSwitch="changeSwitch"
  262. @shareFriend="listenerActionSheet" />
  263. <kefuIcon :ids='storeInfo.product_id' :routineContact='routineContact'></kefuIcon>
  264. <!-- #ifdef H5 || APP-PLUS -->
  265. <zb-code ref="qrcode" :show="codeShow" :cid="cid" :val="codeVal" :size="size" :unit="unit"
  266. :background="background" :foreground="foreground" :pdground="pdground" :icon="codeIcon" :iconSize="iconsize"
  267. :onval="onval" :loadMake="loadMake" @result="qrR" />
  268. <!-- #endif -->
  269. </view>
  270. </template>
  271. <script>
  272. const app = getApp();
  273. import {
  274. mapGetters
  275. } from "vuex";
  276. // #ifdef MP
  277. import authorize from '@/components/Authorize';
  278. // #endif
  279. import productConSwiper from '@/components/productConSwiper/index.vue'
  280. import {
  281. toLogin
  282. } from '@/libs/login.js';
  283. import {
  284. getCombinationDetail,
  285. scombinationCode
  286. } from '@/api/activity.js';
  287. import {
  288. postCartAdd,
  289. collectAdd,
  290. collectDel
  291. } from '@/api/store.js';
  292. import {
  293. imageBase64
  294. } from "@/api/public";
  295. import productWindow from '@/components/productWindow/index.vue'
  296. import userEvaluation from '@/components/userEvaluation/index.vue'
  297. import countDown from '@/components/countDown/index.vue'
  298. import kefuIcon from '@/components/kefuIcon';
  299. import {
  300. getProductCode
  301. } from '@/api/store.js'
  302. import {
  303. getUserInfo
  304. } from '@/api/user.js';
  305. // #ifdef APP-PLUS
  306. import {
  307. TOKENNAME
  308. } from '@/config/app.js';
  309. // #endif
  310. import colors from '@/mixins/color.js';
  311. import parser from "@/components/jyf-parser/jyf-parser";
  312. import cusPreviewImg from "@/components/cusPreviewImg/index.vue";
  313. import menuIcon from "@/components/menuIcon.vue";
  314. import {
  315. sharePoster
  316. } from "@/mixins/sharePoster";
  317. import {
  318. HTTP_REQUEST_URL
  319. } from '@/config/app';
  320. import homeList from '@/components/homeList';
  321. let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  322. export default {
  323. components: {
  324. productConSwiper,
  325. kefuIcon,
  326. // #ifdef MP
  327. authorize,
  328. // #endif
  329. "product-window": productWindow,
  330. userEvaluation,
  331. countDown,
  332. cusPreviewImg,
  333. parser,
  334. menuIcon,
  335. homeList
  336. },
  337. computed: mapGetters({
  338. 'isLogin': 'isLogin',
  339. 'userData': 'userInfo'
  340. }),
  341. mixins: [colors, sharePoster],
  342. data() {
  343. return {
  344. imgHost: HTTP_REQUEST_URL,
  345. dataShow: 0,
  346. navH: '',
  347. id: 0,
  348. userInfo: {},
  349. itemNew: [],
  350. indicatorDots: false,
  351. circular: true,
  352. autoplay: true,
  353. interval: 3000,
  354. duration: 500,
  355. attribute: {
  356. cartAttr: false,
  357. productAttr: [],
  358. productSelect: {}
  359. },
  360. productValue: [],
  361. isOpen: false,
  362. attr: this.$t(`请选择`),
  363. attrValue: '',
  364. AllIndex: 2,
  365. maxAllIndex: 0,
  366. replyChance: '',
  367. limitNum: 1,
  368. timeer: null,
  369. iSplus: false,
  370. navList: [this.$t(`商品`), this.$t(`评价`), this.$t(`详情`)],
  371. opacity: 0,
  372. scrollY: 0,
  373. topArr: [],
  374. toView: '',
  375. height: 0,
  376. heightArr: [],
  377. lock: false,
  378. scrollTop: 0,
  379. storeInfo: {},
  380. pink_ok_sum: 0,
  381. pink: [],
  382. replyCount: 0,
  383. reply: [],
  384. imgUrls: [],
  385. sharePacket: '',
  386. tagStyle: {
  387. img: 'width:100%;display:block;',
  388. table: 'width:100%',
  389. video: 'width:100%'
  390. },
  391. posters: false,
  392. weixinStatus: false,
  393. posterImageStatus: false,
  394. canvasStatus: false, //海报绘图标签
  395. storeImage: '', //海报产品图
  396. PromotionCode: '', //二维码图片
  397. posterImage: '', //海报路径
  398. posterbackgd: '/static/images/posterbackgd.png',
  399. navActive: 0,
  400. actionSheetHidden: false,
  401. attrTxt: '',
  402. cart_num: '',
  403. isAuto: false, //没有授权的不会自动授权
  404. isShowAuth: false, //是否隐藏授权
  405. AllIndexDefault: 0,
  406. homeTop: 20,
  407. returnShow: true,
  408. H5ShareBox: false,
  409. routineContact: 0,
  410. skuArr: [],
  411. selectSku: {},
  412. showMenuIcon: false,
  413. currentPage: false,
  414. sysHeight: sysHeight,
  415. }
  416. },
  417. watch: {
  418. isLogin: {
  419. handler: function(newV, oldV) {
  420. if (newV) {
  421. // this.downloadFilePromotionCode();
  422. this.combinationDetail();
  423. }
  424. },
  425. deep: true
  426. },
  427. },
  428. onLoad(options) {
  429. let that = this
  430. var pages = getCurrentPages();
  431. that.returnShow = pages.length === 1 ? false : true;
  432. this.$nextTick(() => {
  433. // #ifdef MP
  434. const menuButton = uni.getMenuButtonBoundingClientRect();
  435. const query = uni.createSelectorQuery().in(this);
  436. query
  437. .select('#home')
  438. .boundingClientRect(data => {
  439. this.homeTop = menuButton.top * 2 + menuButton.height - data.height;
  440. })
  441. .exec();
  442. // #endif
  443. })
  444. // #ifdef MP
  445. this.navH = app.globalData.navHeight;
  446. // #endif
  447. // #ifdef H5
  448. that.navH = 96;
  449. // #endif
  450. // #ifdef APP-PLUS
  451. that.navH = 30;
  452. // #endif
  453. //设置商品列表高度
  454. uni.getSystemInfo({
  455. success: function(res) {
  456. that.height = res.windowHeight
  457. //res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
  458. },
  459. });
  460. //扫码携带参数处理
  461. // #ifdef MP
  462. if (options.scene) {
  463. let value = this.$util.getUrlParams(decodeURIComponent(options.scene));
  464. if (value.id) options.id = value.id;
  465. //记录推广人uid
  466. if (value.pid) app.globalData.spid = value.pid;
  467. }
  468. if (!options.id && !options.scene) return this.$util.Tips({
  469. title: this.$t(`缺少参数无法查看商品`)
  470. }, {
  471. tab: 3,
  472. url: 1
  473. });
  474. //记录推广人uid
  475. if (options.spid) app.globalData.spid = options.spid;
  476. // #endif
  477. if (options.hasOwnProperty('id')) {
  478. this.id = options.id
  479. // app.globalData.openPages = '/pages/activity/goods_combination_details/index?id=' + this.id + '&spid=' + this.userInfo.uid;
  480. if (this.isLogin) {
  481. this.combinationDetail();
  482. } else {
  483. // #ifdef H5 || APP-PLUS
  484. try {
  485. uni.setStorageSync('comGoodsId', options.id);
  486. } catch (e) {}
  487. // #endif
  488. this.$Cache.set('login_back_url',
  489. `/pages/activity/goods_combination_details/index?id=${options.id}`);
  490. toLogin();
  491. }
  492. } else {
  493. try {
  494. let val = uni.getStorageSync('comGoodsId');
  495. if (val != '') {
  496. this.id = val
  497. this.combinationDetail();
  498. }
  499. } catch (e) {
  500. uni.showToast({
  501. title: this.$t(`参数错误`),
  502. icon: 'none',
  503. duration: 1000,
  504. mask: true,
  505. })
  506. }
  507. };
  508. },
  509. onNavigationBarButtonTap(e) {
  510. this.currentPage = !this.currentPage
  511. },
  512. methods: {
  513. moreNav() {
  514. this.currentPage = !this.currentPage
  515. },
  516. qrR(res) {
  517. // #ifdef H5
  518. if (!this.$wechat.isWeixin() || this.shareQrcode != '1') {
  519. this.PromotionCode = res;
  520. this.followCode = ''
  521. }
  522. // #endif
  523. // #ifdef APP-PLUS
  524. this.PromotionCode = res;
  525. // #endif
  526. },
  527. // app分享
  528. // #ifdef APP-PLUS
  529. appShare(scene) {
  530. let that = this
  531. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  532. let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由,也就是最后一个打开的页面路由
  533. uni.share({
  534. provider: "weixin",
  535. scene: scene,
  536. type: 0,
  537. href: `${HTTP_REQUEST_URL}${curRoute}`,
  538. title: that.storeInfo.title,
  539. summary: that.storeInfo.info,
  540. imageUrl: that.storeInfo.small_image,
  541. success: function(res) {
  542. uni.showToast({
  543. title: this.$t(`分享成功`),
  544. icon: 'success'
  545. })
  546. that.posters = false;
  547. },
  548. fail: function(err) {
  549. uni.showToast({
  550. title: this.$t(`分享失败`),
  551. icon: 'none',
  552. duration: 2000
  553. })
  554. that.posters = false;
  555. }
  556. });
  557. },
  558. // #endif
  559. showAll: function() {
  560. this.AllIndexDefault = this.AllIndex;
  561. this.AllIndex = this.pink.length;
  562. },
  563. hideAll: function() {
  564. this.AllIndex = this.AllIndexDefault;
  565. },
  566. // 授权关闭
  567. authColse: function(e) {
  568. this.isShowAuth = e;
  569. },
  570. /**
  571. * 购物车手动填写
  572. *
  573. */
  574. iptCartNum: function(e) {
  575. this.$set(this.attribute.productSelect, 'cart_num', e);
  576. this.$set(this, "cart_num", e);
  577. },
  578. // 返回
  579. returns() {
  580. // #ifdef H5
  581. return history.back();
  582. // #endif
  583. // #ifndef H5
  584. return uni.navigateBack({
  585. delta: 1,
  586. })
  587. // #endif
  588. },
  589. // 获取详情
  590. combinationDetail() {
  591. var that = this;
  592. var data = that.id;
  593. getCombinationDetail(data).then((res)=> {
  594. that.dataShow = 1;
  595. uni.setNavigationBarTitle({
  596. title: res.data.storeInfo.title.substring(0, 16)
  597. })
  598. that.imgUrls = res.data.storeInfo.images;
  599. that.storeInfo = res.data.storeInfo;
  600. that.storeInfo.description = that.storeInfo.description.replace(/<img/gi,
  601. '<img style="max-width:100%;height:auto;float:left;display:block" ');
  602. that.attribute.productSelect.num = res.data.storeInfo.num;
  603. that.pink = res.data.pink;
  604. that.pindAll = res.data.pindAll;
  605. that.reply = res.data.reply ? [res.data.reply] : [];
  606. that.replyCount = res.data.replyCount;
  607. that.itemNew = res.data.pink_ok_list;
  608. that.pink_ok_sum = res.data.pink_ok_sum;
  609. that.replyChance = res.data.replyChance;
  610. that.attribute.productAttr = res.data.productAttr;
  611. that.productValue = res.data.productValue;
  612. if (!this.storeInfo.wechat_code) {
  613. // #ifdef H5
  614. this.codeVal = window.location.origin +
  615. '/pages/activity/goods_combination_details/index?id=' + this.id +
  616. '&spid=' + this.$store.state.app.uid
  617. // #endif
  618. // #ifdef APP-PLUS
  619. this.codeVal = HTTP_REQUEST_URL + '/pages/activity/goods_combination_details/index?id=' +
  620. this.id +
  621. '&spid=' + this.$store.state.app.uid
  622. // #endif
  623. } else {
  624. that.$set(that, "PromotionCode", this.storeInfo.wechat_code);
  625. }
  626. that.routineContact = Number(res.data.routine_contact_type);
  627. for (let key in res.data.productValue) {
  628. let obj = res.data.productValue[key];
  629. that.skuArr.push(obj);
  630. }
  631. that.$set(that, "selectSku", that.skuArr[0]);
  632. var navList = [that.$t(`商品`), that.$t(`详情`)];
  633. if (res.data.replyCount) {
  634. navList.splice(1, 0, that.$t(`评价`));
  635. }
  636. that.$set(that, 'navList', navList);
  637. that.storeImage = that.storeInfo.image
  638. // #ifdef H5
  639. that.setShare();
  640. that.getImageBase64();
  641. // #endif
  642. // #ifdef APP-PLUS
  643. that.downloadFilestoreImage();
  644. // that.downloadFileAppCode();
  645. // #endif
  646. // #ifdef MP
  647. that.downloadFilestoreImage();
  648. // that.downloadFilePromotionCode();
  649. // #endif
  650. // that.setProductSelect();
  651. that.DefaultSelect();
  652. setTimeout(function() {
  653. that.infoScroll();
  654. }, 500);
  655. }).catch(function(err) {
  656. console.log(err)
  657. that.$util.Tips({
  658. title: err
  659. }, {
  660. tab: 3
  661. })
  662. })
  663. },
  664. // app获取二维码
  665. downloadFileAppCode() {
  666. let that = this;
  667. uni.downloadFile({
  668. url: that.setDomain(that.PromotionCode),
  669. success: function(res) {
  670. that.PromotionCode = res.tempFilePath;
  671. },
  672. fail: function() {
  673. return that.$util.Tips({
  674. title: ''
  675. });
  676. that.PromotionCode = '';
  677. },
  678. });
  679. },
  680. //#ifdef H5
  681. setShare: function() {
  682. this.$wechat.isWeixin() &&
  683. this.$wechat.wechatEvevt([
  684. "updateAppMessageShareData",
  685. "updateTimelineShareData",
  686. "onMenuShareAppMessage",
  687. "onMenuShareTimeline"
  688. ], {
  689. desc: this.storeInfo.info,
  690. title: this.storeInfo.title,
  691. link: location.href,
  692. imgUrl: this.storeInfo.image
  693. }).then(res => {}).catch(err => {});
  694. },
  695. //#endif
  696. // setTime: function() { //到期时间戳
  697. // var that = this;
  698. // var endTimeList = that.pink;
  699. // that.pink.map(item => {
  700. // item.time = {
  701. // day: '00',
  702. // hou: '00',
  703. // min: '00',
  704. // sec: '00'
  705. // };
  706. // });
  707. // var countDownArr = [];
  708. // var timeer = setInterval(function() {
  709. // var newTime = new Date().getTime() / 1000;
  710. // for (var i in endTimeList) {
  711. // var endTime = endTimeList[i].stop_time;
  712. // var obj = [];
  713. // if (endTime - newTime > 0) {
  714. // var time = endTime - newTime;
  715. // var day = parseInt(time / (60 * 60 * 24));
  716. // var hou = parseInt(time % (60 * 60 * 24) / 3600);
  717. // var min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
  718. // var sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
  719. // hou = parseInt(hou) + parseInt(day * 24);
  720. // obj = {
  721. // day: that.timeFormat(day),
  722. // hou: that.timeFormat(hou),
  723. // min: that.timeFormat(min),
  724. // sec: that.timeFormat(sec)
  725. // }
  726. // } else {
  727. // obj = {
  728. // day: '00',
  729. // hou: '00',
  730. // min: '00',
  731. // sec: '00'
  732. // }
  733. // }
  734. // endTimeList[i].time = obj;
  735. // }
  736. // that.pink = endTimeList
  737. // }, 1000);
  738. // that.timeer = timeer
  739. // },
  740. // timeFormat(param) { //小于10的格式化函数
  741. // return param < 10 ? '0' + param : param;
  742. // },
  743. /**
  744. * 默认选中属性
  745. *
  746. */
  747. DefaultSelect: function() {
  748. let self = this
  749. let productAttr = self.attribute.productAttr;
  750. let value = [];
  751. for (var key in this.productValue) {
  752. if (this.productValue[key].quota > 0) {
  753. value = this.attribute.productAttr.length ? key.split(",") : [];
  754. break;
  755. }
  756. }
  757. for (let i = 0; i < productAttr.length; i++) {
  758. this.$set(productAttr[i], "index", value[i]);
  759. }
  760. //sort();排序函数:数字-英文-汉字;
  761. let productSelect = self.productValue[value.join(",")];
  762. if (productSelect && productAttr.length) {
  763. self.$set(
  764. self.attribute.productSelect,
  765. "store_name",
  766. self.storeInfo.title
  767. );
  768. self.$set(self.attribute.productSelect, "image", productSelect.image);
  769. self.$set(self.attribute.productSelect, "price", productSelect.price);
  770. self.$set(self.attribute.productSelect, "stock", productSelect.stock);
  771. self.$set(self.attribute.productSelect, "unique", productSelect.unique);
  772. self.$set(self.attribute.productSelect, "quota", productSelect.quota);
  773. self.$set(self.attribute.productSelect, "quota_show", productSelect.quota_show);
  774. self.$set(self.attribute.productSelect, "product_stock", productSelect.product_stock);
  775. self.$set(self.attribute.productSelect, "cart_num", 1);
  776. self.$set(self, "attrValue", value.join(","));
  777. self.attrValue = value.join(",")
  778. } else if (!productSelect && productAttr.length) {
  779. self.$set(
  780. self.attribute.productSelect,
  781. "store_name",
  782. self.storeInfo.title
  783. );
  784. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  785. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  786. self.$set(self.attribute.productSelect, "quota", 0);
  787. self.$set(self.attribute.productSelect, "quota_show", 0);
  788. self.$set(self.attribute.productSelect, "product_stock", 0);
  789. self.$set(self.attribute.productSelect, "stock", 0);
  790. self.$set(self.attribute.productSelect, "unique", "");
  791. self.$set(self.attribute.productSelect, "cart_num", 0);
  792. self.$set(self, "attrValue", "");
  793. self.$set(self, "attrTxt", this.$t(`请选择`));
  794. } else if (!productSelect && !productAttr.length) {
  795. self.$set(
  796. self.attribute.productSelect,
  797. "store_name",
  798. self.storeInfo.title
  799. );
  800. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  801. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  802. self.$set(self.attribute.productSelect, "stock", self.storeInfo.stock);
  803. self.$set(self.attribute.productSelect, "quota", 0);
  804. self.$set(self.attribute.productSelect, "product_stock", 0);
  805. self.$set(
  806. self.attribute.productSelect,
  807. "unique",
  808. self.storeInfo.unique || ""
  809. );
  810. self.$set(self.attribute.productSelect, "cart_num", 1);
  811. self.$set(self, "attrValue", "");
  812. self.$set(self, "attrTxt", this.$t(`请选择`));
  813. }
  814. },
  815. infoScroll: function() {
  816. var that = this,
  817. topArr = [],
  818. heightArr = [];
  819. for (var i = 0; i < that.navList.length; i++) { //productList
  820. //获取元素所在位置
  821. var query = uni.createSelectorQuery().in(this);
  822. var idView = "#past" + i;
  823. if (!this.replyCount && i == 1) {
  824. idView = "#past" + 2;
  825. }
  826. query.select(idView).boundingClientRect();
  827. query.exec(function(res) {
  828. var top = res[0].top;
  829. var height = res[0].height;
  830. topArr.push(top);
  831. heightArr.push(height);
  832. that.topArr = topArr
  833. that.heightArr = heightArr
  834. });
  835. };
  836. },
  837. // 授权后回调
  838. onLoadFun: function(e) {
  839. this.userInfo = e
  840. app.globalData.openPages = '/pages/activity/goods_combination_details/index?id=' + this.id + '&spid=' +
  841. e.uid;
  842. // this.downloadFilePromotionCode();
  843. this.combinationDetail();
  844. },
  845. selecAttr: function() {
  846. this.attribute.cartAttr = true
  847. },
  848. onMyEvent: function() {
  849. this.$set(this.attribute, 'cartAttr', false);
  850. this.$set(this, 'isOpen', false);
  851. },
  852. /**
  853. * 购物车数量加和数量减
  854. *
  855. */
  856. ChangeCartNum: function(changeValue) {
  857. //changeValue:是否 加|减
  858. //获取当前变动属性
  859. let productSelect = this.productValue[this.attrValue];
  860. if (this.cart_num) {
  861. productSelect.cart_num = this.cart_num;
  862. this.attribute.productSelect.cart_num = this.cart_num;
  863. }
  864. //如果没有属性,赋值给商品默认库存
  865. if (productSelect === undefined && !this.attribute.productAttr.length)
  866. productSelect = this.attribute.productSelect;
  867. //无属性值即库存为0;不存在加减;
  868. if (productSelect === undefined) return;
  869. let stock = productSelect.stock || 0;
  870. let quotaShow = productSelect.quota_show || 0;
  871. let quota = productSelect.quota || 0;
  872. let productStock = productSelect.product_stock || 0;
  873. let num = this.attribute.productSelect;
  874. let nums = this.storeInfo.num || 0;
  875. //设置默认数据
  876. if (productSelect.cart_num == undefined) productSelect.cart_num = 1;
  877. if (changeValue) {
  878. num.cart_num++;
  879. let arrMin = [];
  880. arrMin.push(nums);
  881. arrMin.push(quota);
  882. arrMin.push(productStock);
  883. let minN = Math.min.apply(null, arrMin);
  884. if (num.cart_num >= minN) {
  885. this.$set(this.attribute.productSelect, "cart_num", minN ? minN : 1);
  886. this.$set(this, "cart_num", minN ? minN : 1);
  887. }
  888. // if(quotaShow >= productStock){
  889. // if (num.cart_num > productStock) {
  890. // this.$set(this.attribute.productSelect, "cart_num", productStock);
  891. // this.$set(this, "cart_num", productStock);
  892. // }
  893. // }else{
  894. // if (num.cart_num > quotaShow) {
  895. // this.$set(this.attribute.productSelect, "cart_num", quotaShow);
  896. // this.$set(this, "cart_num", quotaShow);
  897. // }
  898. // }
  899. this.$set(this, "cart_num", num.cart_num);
  900. this.$set(this.attribute.productSelect, "cart_num", num.cart_num);
  901. } else {
  902. num.cart_num--;
  903. if (num.cart_num < 1) {
  904. this.$set(this.attribute.productSelect, "cart_num", 1);
  905. this.$set(this, "cart_num", 1);
  906. }
  907. this.$set(this, "cart_num", num.cart_num);
  908. this.$set(this.attribute.productSelect, "cart_num", num.cart_num);
  909. }
  910. },
  911. attrVal(val) {
  912. this.attribute.productAttr[val.indexw].index = this.attribute.productAttr[val.indexw].attr_values[val
  913. .indexn];
  914. },
  915. /**
  916. * 属性变动赋值
  917. *
  918. */
  919. ChangeAttr: function(res) {
  920. this.$set(this, 'cart_num', 1);
  921. let productSelect = this.productValue[res];
  922. this.$set(this, "selectSku", productSelect);
  923. if (productSelect) {
  924. this.$set(this.attribute.productSelect, "image", productSelect.image);
  925. this.$set(this.attribute.productSelect, "price", productSelect.price);
  926. this.$set(this.attribute.productSelect, "stock", productSelect.stock);
  927. this.$set(this.attribute.productSelect, "unique", productSelect.unique);
  928. this.$set(this.attribute.productSelect, "cart_num", 1);
  929. this.$set(this.attribute.productSelect, "quota", productSelect.quota);
  930. this.$set(this.attribute.productSelect, "quota_show", productSelect.quota_show);
  931. this.$set(this, "attrValue", res);
  932. this.attrTxt = this.$t(`已选择`)
  933. } else {
  934. this.$set(this.attribute.productSelect, "image", this.storeInfo.image);
  935. this.$set(this.attribute.productSelect, "price", this.storeInfo.price);
  936. this.$set(this.attribute.productSelect, "stock", 0);
  937. this.$set(this.attribute.productSelect, "unique", "");
  938. this.$set(this.attribute.productSelect, "cart_num", 0);
  939. this.$set(this.attribute.productSelect, "quota", 0);
  940. this.$set(this.attribute.productSelect, "quota_show", 0);
  941. this.$set(this, "attrValue", "");
  942. this.attrTxt = this.$t(`已选择`)
  943. }
  944. },
  945. // 单独购买
  946. goProduct() {
  947. uni.navigateTo({
  948. url: '/pages/goods_details/index?id=' + this.storeInfo.product_id
  949. })
  950. },
  951. // 立即购买
  952. goCat() {
  953. var that = this;
  954. this.currentPage = false
  955. var productSelect = this.productValue[this.attrValue];
  956. //打开属性
  957. if (this.isOpen)
  958. this.attribute.cartAttr = true
  959. else
  960. this.attribute.cartAttr = !this.attribute.cartAttr
  961. //只有关闭属性弹窗时进行加入购物车
  962. if (this.attribute.cartAttr === true && this.isOpen == false) return this.isOpen = true
  963. //如果有属性,没有选择,提示用户选择
  964. if (this.attribute.productAttr.length && productSelect === undefined && this.isOpen == true) return that
  965. .$util.Tips({
  966. title: this.$t(`请选择`)
  967. });
  968. var data = {
  969. productId: that.storeInfo.product_id,
  970. secKillId: 0,
  971. bargainId: 0,
  972. combinationId: that.id,
  973. cartNum: that.cart_num,
  974. uniqueId: productSelect !== undefined ? productSelect.unique : '',
  975. is_new: 1,
  976. };
  977. postCartAdd(data).then(function(res) {
  978. that.isOpen = false
  979. uni.navigateTo({
  980. url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cartId
  981. });
  982. }).catch(function(res) {
  983. uni.showToast({
  984. title: res,
  985. icon: 'none'
  986. })
  987. })
  988. },
  989. /**
  990. * 收藏商品
  991. */
  992. setCollect: function() {
  993. var that = this;
  994. if (this.storeInfo.userCollect) {
  995. collectDel([this.storeInfo.product_id]).then(res => {
  996. that.storeInfo.userCollect = !that.storeInfo.userCollect
  997. })
  998. } else {
  999. collectAdd(this.storeInfo.product_id).then(res => {
  1000. that.storeInfo.userCollect = !that.storeInfo.userCollect
  1001. })
  1002. }
  1003. },
  1004. open(data) {
  1005. this.showMenuIcon = data;
  1006. },
  1007. /**
  1008. * 分享打开
  1009. *
  1010. */
  1011. listenerActionSheet: function() {
  1012. this.currentPage = false
  1013. if (this.isLogin == false) {
  1014. toLogin();
  1015. } else {
  1016. // #ifdef H5
  1017. if (this.$wechat.isWeixin() === true) {
  1018. this.weixinStatus = true;
  1019. }
  1020. // #endif
  1021. this.posters = true;
  1022. }
  1023. },
  1024. // 分享关闭
  1025. listenerActionClose: function() {
  1026. this.posters = false;
  1027. },
  1028. //隐藏海报
  1029. posterImageClose: function() {
  1030. this.posterImageStatus = false
  1031. },
  1032. //替换安全域名
  1033. setDomain: function(url) {
  1034. url = url ? url.toString() : '';
  1035. //本地调试打开,生产请注销
  1036. if (url.indexOf("https://") > -1) return url;
  1037. else return url.replace('http://', 'https://');
  1038. },
  1039. /**
  1040. * 获取产品分销二维码
  1041. * @param function successFn 下载完成回调
  1042. *
  1043. */
  1044. downloadFilePromotionCode: function(successFn) {
  1045. let that = this;
  1046. scombinationCode(that.id).then(res => {
  1047. uni.downloadFile({
  1048. url: that.setDomain(res.data.code),
  1049. success: function(res) {
  1050. that.$set(that, 'isDown', false);
  1051. if (typeof successFn == 'function')
  1052. successFn && successFn(res.tempFilePath);
  1053. else
  1054. that.$set(that, 'PromotionCode', res.tempFilePath);
  1055. },
  1056. fail: function() {
  1057. that.$set(that, 'isDown', false);
  1058. that.$set(that, 'PromotionCode', '');
  1059. },
  1060. });
  1061. }).catch(err => {
  1062. that.$set(that, 'isDown', false);
  1063. that.$set(that, 'PromotionCode', '');
  1064. });
  1065. },
  1066. // 小程序关闭分享弹窗;
  1067. goFriend: function() {
  1068. this.posters = false;
  1069. },
  1070. /*
  1071. * 保存到手机相册
  1072. */
  1073. // #ifdef MP
  1074. savePosterPath: function() {
  1075. let that = this;
  1076. uni.getSetting({
  1077. success(res) {
  1078. if (!res.authSetting['scope.writePhotosAlbum']) {
  1079. uni.authorize({
  1080. scope: 'scope.writePhotosAlbum',
  1081. success() {
  1082. uni.saveImageToPhotosAlbum({
  1083. filePath: that.posterImage,
  1084. success: function(res) {
  1085. that.posterImageClose();
  1086. that.$util.Tips({
  1087. title: this.$t(`保存成功`),
  1088. icon: 'success'
  1089. });
  1090. },
  1091. fail: function(res) {
  1092. that.$util.Tips({
  1093. title: this.$t(`保存失败`)
  1094. });
  1095. }
  1096. })
  1097. }
  1098. })
  1099. } else {
  1100. uni.saveImageToPhotosAlbum({
  1101. filePath: that.posterImage,
  1102. success: function(res) {
  1103. that.posterImageClose();
  1104. that.$util.Tips({
  1105. title: this.$t(`保存成功`),
  1106. icon: 'success'
  1107. });
  1108. },
  1109. fail: function(res) {
  1110. that.$util.Tips({
  1111. title: this.$t(`保存失败`)
  1112. });
  1113. },
  1114. })
  1115. }
  1116. }
  1117. })
  1118. },
  1119. // #endif
  1120. //#ifdef APP-PLUS
  1121. savePosterPath() {
  1122. let that = this
  1123. uni.saveImageToPhotosAlbum({
  1124. filePath: that.posterImage,
  1125. success: function(res) {
  1126. that.posterImageClose();
  1127. that.$util.Tips({
  1128. title: this.$t(`保存成功`),
  1129. icon: 'success'
  1130. });
  1131. },
  1132. fail: function(res) {
  1133. that.$util.Tips({
  1134. title: this.$t(`保存失败`)
  1135. });
  1136. }
  1137. });
  1138. },
  1139. // #endif
  1140. setShareInfoStatus: function() {
  1141. let data = this.storeInfo;
  1142. let href = location.href;
  1143. if (this.$wechat.isWeixin()) {
  1144. getUserInfo().then(res => {
  1145. href =
  1146. href.indexOf("?") === -1 ?
  1147. href + "?spread=" + res.data.uid :
  1148. href + "&spread=" + res.data.uid;
  1149. let configAppMessage = {
  1150. desc: data.store_info,
  1151. title: data.store_name,
  1152. link: href,
  1153. imgUrl: data.image
  1154. };
  1155. this.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],
  1156. configAppMessage)
  1157. });
  1158. }
  1159. },
  1160. scroll: function(e) {
  1161. var that = this,
  1162. scrollY = e.detail.scrollTop;
  1163. var opacity = scrollY / 200;
  1164. opacity = opacity > 1 ? 1 : opacity;
  1165. that.opacity = opacity
  1166. that.scrollY = scrollY
  1167. that.$set(that, "showMenuIcon", false);
  1168. that.$set(that, 'currentPage', false);
  1169. if (that.lock) {
  1170. that.lock = false
  1171. return;
  1172. }
  1173. for (var i = 0; i < that.topArr.length; i++) {
  1174. if (scrollY < that.topArr[i] - (app.globalData.navHeight / 2) + that.heightArr[i]) {
  1175. that.navActive = i
  1176. break
  1177. }
  1178. }
  1179. },
  1180. tap: function(item, index) {
  1181. var id = item.id;
  1182. var index = index;
  1183. var that = this;
  1184. if (!this.replyCount && id == "past1") {
  1185. id = "past2"
  1186. }
  1187. this.toView = id;
  1188. this.navActive = index;
  1189. this.lock = true;
  1190. this.scrollTop = index > 0 ? that.topArr[index] - (app.globalData.navHeight / 2) : that.topArr[index]
  1191. },
  1192. //点击sku图片打开轮播图
  1193. showImg(index) {
  1194. this.$refs.cusPreviewImg.open(this.selectSku.suk);
  1195. },
  1196. //滑动轮播图选择商品
  1197. changeSwitch(e) {
  1198. let productSelect = this.skuArr[e];
  1199. this.$set(this, "selectSku", productSelect);
  1200. var skuList = productSelect.suk.split(",");
  1201. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1202. if (skuList.length == 2) {
  1203. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1204. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1205. } else if (skuList.length == 3) {
  1206. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1207. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1208. this.$set(this.attribute.productAttr[2], "index", skuList[2]);
  1209. } else if (skuList.length == 4) {
  1210. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1211. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1212. this.$set(this.attribute.productAttr[2], "index", skuList[2]);
  1213. this.$set(this.attribute.productAttr[3], "index", skuList[3]);
  1214. }
  1215. if (productSelect) {
  1216. this.$set(this.attribute.productSelect, "image", productSelect.image);
  1217. this.$set(this.attribute.productSelect, "price", productSelect.price);
  1218. this.$set(this.attribute.productSelect, "stock", productSelect.stock);
  1219. this.$set(this.attribute.productSelect, "unique", productSelect.unique);
  1220. this.$set(this.attribute.productSelect, "vipPrice", productSelect.vipPrice);
  1221. this.$set(this, "attrTxt", this.$t(`已选择`));
  1222. this.$set(this, "attrValue", productSelect.suk);
  1223. }
  1224. },
  1225. },
  1226. //#ifdef MP
  1227. onShareAppMessage() {
  1228. return {
  1229. title: this.storeInfo.title,
  1230. path: app.globalData.openPages,
  1231. imageUrl: this.storeInfo.image
  1232. };
  1233. }
  1234. //#endif
  1235. }
  1236. </script>
  1237. <style lang="scss">
  1238. .generate-posters {
  1239. width: 100%;
  1240. height: 170rpx;
  1241. background-color: #fff;
  1242. position: fixed;
  1243. left: 0;
  1244. bottom: 0;
  1245. z-index: 300;
  1246. transform: translate3d(0, 100%, 0);
  1247. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1248. border-top: 1rpx solid #eee;
  1249. }
  1250. .generate-posters.on {
  1251. transform: translate3d(0, 0, 0);
  1252. }
  1253. .generate-posters .item {
  1254. flex: 1;
  1255. text-align: center;
  1256. font-size: 30rpx;
  1257. }
  1258. .generate-posters .item .iconfont {
  1259. font-size: 80rpx;
  1260. color: #5eae72;
  1261. }
  1262. .generate-posters .item .iconfont.icon-haibao {
  1263. color: #5391f1;
  1264. }
  1265. .navbar .header {
  1266. height: 96rpx;
  1267. font-size: 30rpx;
  1268. color: #050505;
  1269. background-color: #fff;
  1270. /* #ifdef MP */
  1271. // padding-right: 45rpx;
  1272. /* #endif */
  1273. }
  1274. .icon-xiangzuo {
  1275. /* #ifdef H5 */
  1276. top: 30rpx !important;
  1277. /* #endif */
  1278. }
  1279. .navbar .header .item {
  1280. position: relative;
  1281. margin: 0 25rpx;
  1282. }
  1283. .navbar .header .item.on:before {
  1284. position: absolute;
  1285. width: 60rpx;
  1286. height: 5rpx;
  1287. background-repeat: no-repeat;
  1288. content: "";
  1289. background-color: var(--view-theme);
  1290. bottom: -10rpx;
  1291. left: 50%;
  1292. margin-left: -28rpx;
  1293. }
  1294. .navbar {
  1295. position: fixed;
  1296. background-color: #fff;
  1297. top: 0;
  1298. left: 0;
  1299. z-index: 99;
  1300. width: 100%;
  1301. }
  1302. .navbar .navbarH {
  1303. position: relative;
  1304. }
  1305. .navbar .navbarH .navbarCon {
  1306. position: absolute;
  1307. bottom: 0;
  1308. height: 100rpx;
  1309. width: 100%;
  1310. }
  1311. .icon-xiangzuo {
  1312. /* color: #000;
  1313. position: fixed;
  1314. font-size: 40rpx;
  1315. width: 100rpx;
  1316. height: 56rpx;
  1317. line-height: 54rpx;
  1318. z-index: 1000;
  1319. left: 33rpx; */
  1320. }
  1321. .product-con .wrapper {
  1322. padding-bottom: 26rpx;
  1323. }
  1324. .product-con .wrapper .share .money .y-money {
  1325. color: #82848f;
  1326. margin-left: 13rpx;
  1327. text-decoration: line-through;
  1328. font-weight: normal;
  1329. }
  1330. .product-con .notice {
  1331. width: 100%;
  1332. height: 62rpx;
  1333. margin-top: 20rpx;
  1334. padding: 0 30rpx;
  1335. box-sizing: border-box;
  1336. background-color: rgba(255, 255, 255, 0.88);
  1337. }
  1338. .product-con .notice .num {
  1339. font-size: 24rpx;
  1340. }
  1341. .product-con .notice .num .iconfont {
  1342. font-size: 30rpx;
  1343. vertical-align: -3rpx;
  1344. margin-right: 20rpx;
  1345. }
  1346. .product-con .notice .num .line {
  1347. color: #282828;
  1348. margin-left: 15rpx;
  1349. }
  1350. .product-con .notice .swiper {
  1351. height: 100%;
  1352. width: 360rpx;
  1353. line-height: 62rpx;
  1354. overflow: hidden;
  1355. margin-left: 14rpx;
  1356. }
  1357. .product-con .notice .swiper swiper {
  1358. height: 100%;
  1359. width: 100%;
  1360. overflow: hidden;
  1361. font-size: 24rpx;
  1362. color: #282828;
  1363. }
  1364. .product-con .assemble {
  1365. background-color: #fff;
  1366. }
  1367. .product-con .assemble .item {
  1368. padding-right: 30rpx;
  1369. margin-left: 30rpx;
  1370. border-bottom: 1rpx solid #f0f0f0;
  1371. height: 132rpx;
  1372. }
  1373. .product-con .assemble .item .pictxt {
  1374. width: 295rpx;
  1375. }
  1376. .product-con .assemble .item .pictxt .text {
  1377. width: 194rpx;
  1378. }
  1379. .product-con .assemble .item .pictxt .pictrue {
  1380. width: 80rpx;
  1381. height: 80rpx;
  1382. }
  1383. .product-con .assemble .item .pictxt .pictrue image {
  1384. width: 100%;
  1385. height: 100%;
  1386. border-radius: 50%;
  1387. }
  1388. .product-con .assemble .item .right .lack {
  1389. font-size: 24rpx;
  1390. color: #333333;
  1391. }
  1392. .product-con .assemble .item .right .time {
  1393. position: relative;
  1394. left: -10rpx;
  1395. font-size: 22rpx;
  1396. color: #82848f;
  1397. margin-top: 5rpx;
  1398. }
  1399. .product-con .assemble .item .right .spellBnt {
  1400. font-size: 24rpx;
  1401. color: #fff;
  1402. width: 140rpx;
  1403. height: 50rpx;
  1404. border-radius: 50rpx;
  1405. // background-image: linear-gradient(to right, #ff2358 0%, #ff0000 100%);
  1406. text-align: center;
  1407. line-height: 50rpx;
  1408. background-color: var(--view-theme);
  1409. margin-left: 30rpx;
  1410. }
  1411. .product-con .assemble .item .right .spellBnt .iconfont {
  1412. font-size: 25rpx;
  1413. margin-left: 5rpx;
  1414. }
  1415. .product-con .assemble .more {
  1416. font-size: 24rpx;
  1417. color: #282828;
  1418. text-align: center;
  1419. height: 90rpx;
  1420. line-height: 90rpx;
  1421. }
  1422. .product-con .assemble .more .iconfont {
  1423. margin-left: 13rpx;
  1424. font-size: 25rpx;
  1425. }
  1426. .product-con .playWay {
  1427. background-color: #fff;
  1428. padding: 0 30rpx;
  1429. margin-top: 20rpx;
  1430. font-size: 28rpx;
  1431. color: #282828;
  1432. }
  1433. .product-con .playWay .title {
  1434. height: 86rpx;
  1435. border-bottom: 1rpx solid #eee;
  1436. }
  1437. .product-con .playWay .title .iconfont {
  1438. margin-left: 13rpx;
  1439. font-size: 28rpx;
  1440. color: #717171;
  1441. }
  1442. .product-con .playWay .way {
  1443. min-height: 110rpx;
  1444. font-size: 26rpx;
  1445. color: #282828;
  1446. }
  1447. .product-con .playWay .way .iconfont {
  1448. color: #cdcdcd;
  1449. font-size: 40rpx;
  1450. margin: 0 35rpx;
  1451. }
  1452. .product-con .playWay .way .item .num {
  1453. font-size: 34rpx;
  1454. margin-right: 6rpx;
  1455. width: 17px;
  1456. height: 28px;
  1457. display: inline-block;
  1458. vertical-align: middle;
  1459. }
  1460. .product-con .playWay .way .item .tip {
  1461. font-size: 22rpx;
  1462. color: #a5a5a5;
  1463. margin-top: 7rpx;
  1464. }
  1465. .product-con .footer {
  1466. padding: 0 20rpx 0 30rpx;
  1467. position: fixed;
  1468. bottom: 0;
  1469. width: 100%;
  1470. box-sizing: border-box;
  1471. z-index: 277;
  1472. border-top: 1rpx solid #f0f0f0;
  1473. height: 100rpx;
  1474. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1475. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1476. background-color: rgba(255, 255, 255, 0.85);
  1477. backdrop-filter: blur(10px);
  1478. transform: translate3d(0, 100%, 0);
  1479. transition: all .3s cubic-bezier(.25, .5, .5, .9);
  1480. }
  1481. .product-con .footer .item {
  1482. font-size: 18rpx;
  1483. color: #666;
  1484. }
  1485. .product-con .footer .item .iconfont {
  1486. text-align: center;
  1487. font-size: 40rpx;
  1488. }
  1489. .product-con .footer .item .iconfont.icon-shoucang1 {
  1490. color: var(--view-theme);
  1491. }
  1492. .product-con .footer .item .iconfont.icon-gouwuche1 {
  1493. font-size: 40rpx;
  1494. position: relative;
  1495. }
  1496. .product-con .conter {
  1497. display: block;
  1498. padding-bottom: 100rpx;
  1499. }
  1500. .product-con .conter img {
  1501. display: block;
  1502. }
  1503. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  1504. color: #fff;
  1505. position: absolute;
  1506. font-size: 18rpx;
  1507. padding: 2rpx 8rpx 3rpx;
  1508. border-radius: 200rpx;
  1509. top: -10rpx;
  1510. right: -10rpx;
  1511. }
  1512. .product-con .footer .bnt {
  1513. width: 540rpx;
  1514. height: 76rpx;
  1515. }
  1516. .product-con .footer .bnt .bnts {
  1517. width: 270rpx;
  1518. text-align: center;
  1519. line-height: 76rpx;
  1520. color: #fff;
  1521. font-size: 28rpx;
  1522. }
  1523. .product-con .footer .bnt .joinCart {
  1524. border-radius: 50rpx 0 0 50rpx;
  1525. background-color: var(--view-bntColor);
  1526. }
  1527. .product-con .footer .bnt .buy {
  1528. border-radius: 0 50rpx 50rpx 0;
  1529. background-color: var(--view-theme);
  1530. }
  1531. .setCollectBox {
  1532. font-size: 18rpx;
  1533. color: #666;
  1534. }
  1535. .canvas {
  1536. width: 750px;
  1537. height: 1190px;
  1538. }
  1539. .poster-pop {
  1540. width: 450rpx;
  1541. height: 714rpx;
  1542. position: fixed;
  1543. left: 50%;
  1544. transform: translateX(-50%);
  1545. z-index: 300;
  1546. top: 50%;
  1547. margin-top: -377rpx;
  1548. }
  1549. .poster-pop image {
  1550. width: 100%;
  1551. height: 100%;
  1552. display: block;
  1553. }
  1554. .poster-pop .close {
  1555. width: 46rpx;
  1556. height: 75rpx;
  1557. position: fixed;
  1558. right: 0;
  1559. top: -73rpx;
  1560. display: block;
  1561. }
  1562. .poster-pop .save-poster {
  1563. background-color: #df2d0a;
  1564. font-size: :22rpx;
  1565. color: #fff;
  1566. text-align: center;
  1567. height: 76rpx;
  1568. line-height: 76rpx;
  1569. width: 100%;
  1570. }
  1571. .poster-pop .keep {
  1572. color: #fff;
  1573. text-align: center;
  1574. font-size: 25rpx;
  1575. margin-top: 10rpx;
  1576. }
  1577. /deep/.mask {
  1578. z-index: 99 !important;
  1579. }
  1580. .mask1 {
  1581. position: fixed;
  1582. top: 0;
  1583. left: 0;
  1584. right: 0;
  1585. bottom: 0;
  1586. background-color: #000;
  1587. opacity: .5;
  1588. z-index: 288;
  1589. }
  1590. .pro-wrapper .iconn {
  1591. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAYKElEQVR4nO2deXhTVfrHP0nTlpautHSjZSkt+x42UTYVF5C4gsKIOqOjIxJHZdTfyG+eEZ1xxgVHjeLo6KiIKKsYcAUEBQooASxQKC1QulPolm50S+aPJPXmZm2a3BTo53n6QM49956T+8259yzv+x7ZmC8WcbGjU2migBFAGpAK9AGSgBjzX3dAAYSbT6kBWoA6oNz8VwycAU4BuUCmUquuku5beIZOpXF6XCFRPbyGTqUJAsYCVwCTgTFASjsvYxE6Gkh2UlYBcADYCewB9iu16qb21tmfXBQC61SaeGA2cANwHb8K5GtSzH83mz/X6lSarcCXwCalVn1Wonp4TKcVWKfSRAJzgLuAaUCAXytkIgy4xfzXqlNpfgA+A9Yotepqv9bMAbLO9g7WqTTjgYcxidvdnXNaDK3k1Z4lt6aEorrzFDdUUFpfQXljDfrmehpaGmkxtlLf0ghAqCIYhSyAEEUw4YEhxAZHkBDag6SQHvTqHktaeCJ9w+JRyN3+TdUBa4F3lFr13vZ/a89x9Q7uFALrVBo5plaxGJjkKn9lUy37zmVzqPwkmZWnOVlTQouh1at1UsgD6B+eyIjofozqkcqEuEFEB4W5c2oGsAzYqNSqDV6tl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bRVUIz5LxQIAizbktQDjeZ/y81/xUCe+S8HyFRq1TY7Lnc2XD2i/wckBEniScYuwQAAAABJRU5ErkJggg==');
  1592. width: 100rpx;
  1593. height: 100rpx;
  1594. background-repeat: no-repeat;
  1595. background-size: 100% 100%;
  1596. margin: 0 auto;
  1597. }
  1598. .pro-wrapper .iconn.iconn1 {
  1599. 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/v1ThyroEVjUGf9gK3DBKZdp1Ip9ZRxd4O/EQJqBvS8RyeEzjol3sAzwBzI+X5qFRjxU6NzUe0Bi+piSIKMKaPyJzhIj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1603. top: 20rpx !important;
  1604. /* #endif */
  1605. }
  1606. .home-nav {
  1607. color: #333;
  1608. position: fixed;
  1609. /* #ifdef MP */
  1610. width: 126rpx;
  1611. left: 15rpx;
  1612. /* #endif */
  1613. /* #ifndef MP */
  1614. width: 56rpx;
  1615. left: 33rpx;
  1616. /* #endif */
  1617. height: 56rpx;
  1618. font-size: 33rpx;
  1619. z-index: 99;
  1620. background: rgba(255, 255, 255, 0.3);
  1621. border: 1px solid rgba(0, 0, 0, 0.1);
  1622. border-radius: 40rpx;
  1623. &.right {
  1624. right: 33rpx;
  1625. left: unset
  1626. }
  1627. &.on {
  1628. background: unset;
  1629. color: #333;
  1630. }
  1631. &.homeIndex {
  1632. /* #ifdef MP */
  1633. width: 98rpx;
  1634. /* #endif */
  1635. /* #ifndef MP */
  1636. border-color: rgba(255, 255, 255, 0);
  1637. /* #endif */
  1638. }
  1639. }
  1640. .home-nav .iconfont {
  1641. width: 58rpx;
  1642. text-align: center;
  1643. }
  1644. .home-nav .line {
  1645. width: 1rpx;
  1646. height: 34rpx;
  1647. background: #B3B3B3;
  1648. }
  1649. .home-nav .icon-xiangzuo {
  1650. width: auto;
  1651. font-size: 28rpx;
  1652. }
  1653. .share-box {
  1654. z-index: 1000;
  1655. position: fixed;
  1656. left: 0;
  1657. top: 0;
  1658. width: 100%;
  1659. height: 100%;
  1660. }
  1661. .share-box image {
  1662. width: 100%;
  1663. height: 100%;
  1664. }
  1665. .attrImg {
  1666. width: 66rpx;
  1667. height: 66rpx;
  1668. border-radius: 6rpx;
  1669. display: block;
  1670. margin-right: 14rpx;
  1671. }
  1672. .switchTxt {
  1673. height: 60rpx;
  1674. flex: 1;
  1675. line-height: 60rpx;
  1676. box-sizing: border-box;
  1677. background: #eeeeee;
  1678. padding: 0 10rpx;
  1679. border-radius: 8rpx;
  1680. text-align: center;
  1681. }
  1682. .attribute {
  1683. padding: 10rpx 30rpx;
  1684. .line1 {
  1685. width: 600rpx;
  1686. }
  1687. }
  1688. .flex {
  1689. display: flex;
  1690. justify-content: space-between;
  1691. width: 100%;
  1692. }
  1693. .flexs {
  1694. display: flex;
  1695. }
  1696. .attr-txt {
  1697. display: flex;
  1698. flex-wrap: nowrap;
  1699. width: 130rpx;
  1700. }
  1701. </style>