index.vue 63 KB

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