index.vue 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815
  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='1' :type="'combination'" @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.pinkAll = res.data.pinkAll;
  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. that.$util.Tips({
  663. title: err
  664. }, {
  665. tab: 3
  666. })
  667. })
  668. },
  669. // app获取二维码
  670. downloadFileAppCode() {
  671. let that = this;
  672. uni.downloadFile({
  673. url: that.setDomain(that.PromotionCode),
  674. success: function(res) {
  675. that.PromotionCode = res.tempFilePath;
  676. },
  677. fail: function() {
  678. return that.$util.Tips({
  679. title: ''
  680. });
  681. that.PromotionCode = '';
  682. },
  683. });
  684. },
  685. //#ifdef H5
  686. setShare: function() {
  687. this.$wechat.isWeixin() &&
  688. this.$wechat.wechatEvevt([
  689. "updateAppMessageShareData",
  690. "updateTimelineShareData",
  691. "onMenuShareAppMessage",
  692. "onMenuShareTimeline"
  693. ], {
  694. desc: this.storeInfo.info,
  695. title: this.storeInfo.title,
  696. link: location.href,
  697. imgUrl: this.storeInfo.image
  698. }).then(res => {}).catch(err => {});
  699. },
  700. //#endif
  701. // setTime: function() { //到期时间戳
  702. // var that = this;
  703. // var endTimeList = that.pink;
  704. // that.pink.map(item => {
  705. // item.time = {
  706. // day: '00',
  707. // hou: '00',
  708. // min: '00',
  709. // sec: '00'
  710. // };
  711. // });
  712. // var countDownArr = [];
  713. // var timeer = setInterval(function() {
  714. // var newTime = new Date().getTime() / 1000;
  715. // for (var i in endTimeList) {
  716. // var endTime = endTimeList[i].stop_time;
  717. // var obj = [];
  718. // if (endTime - newTime > 0) {
  719. // var time = endTime - newTime;
  720. // var day = parseInt(time / (60 * 60 * 24));
  721. // var hou = parseInt(time % (60 * 60 * 24) / 3600);
  722. // var min = parseInt(time % (60 * 60 * 24) % 3600 / 60);
  723. // var sec = parseInt(time % (60 * 60 * 24) % 3600 % 60);
  724. // hou = parseInt(hou) + parseInt(day * 24);
  725. // obj = {
  726. // day: that.timeFormat(day),
  727. // hou: that.timeFormat(hou),
  728. // min: that.timeFormat(min),
  729. // sec: that.timeFormat(sec)
  730. // }
  731. // } else {
  732. // obj = {
  733. // day: '00',
  734. // hou: '00',
  735. // min: '00',
  736. // sec: '00'
  737. // }
  738. // }
  739. // endTimeList[i].time = obj;
  740. // }
  741. // that.pink = endTimeList
  742. // }, 1000);
  743. // that.timeer = timeer
  744. // },
  745. // timeFormat(param) { //小于10的格式化函数
  746. // return param < 10 ? '0' + param : param;
  747. // },
  748. /**
  749. * 默认选中属性
  750. *
  751. */
  752. DefaultSelect: function() {
  753. let self = this
  754. let productAttr = self.attribute.productAttr;
  755. let value = [];
  756. for (var key in this.productValue) {
  757. if (this.productValue[key].quota > 0) {
  758. value = this.attribute.productAttr.length ? key.split(",") : [];
  759. break;
  760. }
  761. }
  762. for (let i = 0; i < productAttr.length; i++) {
  763. this.$set(productAttr[i], "index", value[i]);
  764. }
  765. //sort();排序函数:数字-英文-汉字;
  766. let productSelect = self.productValue[value.join(",")];
  767. if (productSelect && productAttr.length) {
  768. self.$set(
  769. self.attribute.productSelect,
  770. "store_name",
  771. self.storeInfo.title
  772. );
  773. self.$set(self.attribute.productSelect, "image", productSelect.image);
  774. self.$set(self.attribute.productSelect, "price", productSelect.price);
  775. self.$set(self.attribute.productSelect, "stock", productSelect.stock);
  776. self.$set(self.attribute.productSelect, "unique", productSelect.unique);
  777. self.$set(self.attribute.productSelect, "quota", productSelect.quota);
  778. self.$set(self.attribute.productSelect, "quota_show", productSelect.quota_show);
  779. self.$set(self.attribute.productSelect, "product_stock", productSelect.product_stock);
  780. self.$set(self.attribute.productSelect, "cart_num", 1);
  781. self.$set(self, "attrValue", value.join(","));
  782. self.attrValue = value.join(",")
  783. } else if (!productSelect && productAttr.length) {
  784. self.$set(
  785. self.attribute.productSelect,
  786. "store_name",
  787. self.storeInfo.title
  788. );
  789. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  790. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  791. self.$set(self.attribute.productSelect, "quota", 0);
  792. self.$set(self.attribute.productSelect, "quota_show", 0);
  793. self.$set(self.attribute.productSelect, "product_stock", 0);
  794. self.$set(self.attribute.productSelect, "stock", 0);
  795. self.$set(self.attribute.productSelect, "unique", "");
  796. self.$set(self.attribute.productSelect, "cart_num", 0);
  797. self.$set(self, "attrValue", "");
  798. self.$set(self, "attrTxt", this.$t(`请选择`));
  799. } else if (!productSelect && !productAttr.length) {
  800. self.$set(
  801. self.attribute.productSelect,
  802. "store_name",
  803. self.storeInfo.title
  804. );
  805. self.$set(self.attribute.productSelect, "image", self.storeInfo.image);
  806. self.$set(self.attribute.productSelect, "price", self.storeInfo.price);
  807. self.$set(self.attribute.productSelect, "stock", self.storeInfo.stock);
  808. self.$set(self.attribute.productSelect, "quota", 0);
  809. self.$set(self.attribute.productSelect, "product_stock", 0);
  810. self.$set(
  811. self.attribute.productSelect,
  812. "unique",
  813. self.storeInfo.unique || ""
  814. );
  815. self.$set(self.attribute.productSelect, "cart_num", 1);
  816. self.$set(self, "attrValue", "");
  817. self.$set(self, "attrTxt", this.$t(`请选择`));
  818. }
  819. },
  820. infoScroll: function() {
  821. var that = this,
  822. topArr = [],
  823. heightArr = [];
  824. for (var i = 0; i < that.navList.length; i++) { //productList
  825. //获取元素所在位置
  826. var query = uni.createSelectorQuery().in(this);
  827. var idView = "#past" + i;
  828. if (!this.replyCount && i == 1) {
  829. idView = "#past" + 2;
  830. }
  831. query.select(idView).boundingClientRect();
  832. query.exec(function(res) {
  833. var top = res[0].top;
  834. var height = res[0].height;
  835. topArr.push(top);
  836. heightArr.push(height);
  837. that.topArr = topArr
  838. that.heightArr = heightArr
  839. });
  840. };
  841. },
  842. // 授权后回调
  843. onLoadFun: function(e) {
  844. this.userInfo = e
  845. app.globalData.openPages = '/pages/activity/goods_combination_details/index?id=' + this.id + '&spid=' +
  846. e.uid;
  847. // this.downloadFilePromotionCode();
  848. this.combinationDetail();
  849. },
  850. selecAttr: function() {
  851. this.attribute.cartAttr = true
  852. },
  853. onMyEvent: function() {
  854. this.$set(this.attribute, 'cartAttr', false);
  855. this.$set(this, 'isOpen', false);
  856. },
  857. /**
  858. * 购物车数量加和数量减
  859. *
  860. */
  861. ChangeCartNum: function(changeValue) {
  862. //changeValue:是否 加|减
  863. //获取当前变动属性
  864. let productSelect = this.productValue[this.attrValue];
  865. if (this.cart_num) {
  866. productSelect.cart_num = this.cart_num;
  867. this.attribute.productSelect.cart_num = this.cart_num;
  868. }
  869. //如果没有属性,赋值给商品默认库存
  870. if (productSelect === undefined && !this.attribute.productAttr.length)
  871. productSelect = this.attribute.productSelect;
  872. //无属性值即库存为0;不存在加减;
  873. if (productSelect === undefined) return;
  874. let stock = productSelect.stock || 0;
  875. let quotaShow = productSelect.quota_show || 0;
  876. let quota = productSelect.quota || 0;
  877. let productStock = productSelect.product_stock || 0;
  878. let num = this.attribute.productSelect;
  879. let nums = this.storeInfo.num || 0;
  880. //设置默认数据
  881. if (productSelect.cart_num == undefined) productSelect.cart_num = 1;
  882. if (changeValue) {
  883. num.cart_num++;
  884. let arrMin = [];
  885. arrMin.push(nums);
  886. arrMin.push(quota);
  887. arrMin.push(productStock);
  888. let minN = Math.min.apply(null, arrMin);
  889. if (num.cart_num >= minN) {
  890. this.$set(this.attribute.productSelect, "cart_num", minN ? minN : 1);
  891. this.$set(this, "cart_num", minN ? minN : 1);
  892. }
  893. // if(quotaShow >= productStock){
  894. // if (num.cart_num > productStock) {
  895. // this.$set(this.attribute.productSelect, "cart_num", productStock);
  896. // this.$set(this, "cart_num", productStock);
  897. // }
  898. // }else{
  899. // if (num.cart_num > quotaShow) {
  900. // this.$set(this.attribute.productSelect, "cart_num", quotaShow);
  901. // this.$set(this, "cart_num", quotaShow);
  902. // }
  903. // }
  904. this.$set(this, "cart_num", num.cart_num);
  905. this.$set(this.attribute.productSelect, "cart_num", num.cart_num);
  906. } else {
  907. num.cart_num--;
  908. if (num.cart_num < 1) {
  909. this.$set(this.attribute.productSelect, "cart_num", 1);
  910. this.$set(this, "cart_num", 1);
  911. }
  912. this.$set(this, "cart_num", num.cart_num);
  913. this.$set(this.attribute.productSelect, "cart_num", num.cart_num);
  914. }
  915. },
  916. attrVal(val) {
  917. this.attribute.productAttr[val.indexw].index = this.attribute.productAttr[val.indexw].attr_values[val
  918. .indexn];
  919. },
  920. /**
  921. * 属性变动赋值
  922. *
  923. */
  924. ChangeAttr: function(res) {
  925. this.$set(this, 'cart_num', 1);
  926. let productSelect = this.productValue[res];
  927. this.$set(this, "selectSku", productSelect);
  928. if (productSelect) {
  929. this.$set(this.attribute.productSelect, "image", productSelect.image);
  930. this.$set(this.attribute.productSelect, "price", productSelect.price);
  931. this.$set(this.attribute.productSelect, "stock", productSelect.stock);
  932. this.$set(this.attribute.productSelect, "unique", productSelect.unique);
  933. this.$set(this.attribute.productSelect, "cart_num", 1);
  934. this.$set(this.attribute.productSelect, "quota", productSelect.quota);
  935. this.$set(this.attribute.productSelect, "quota_show", productSelect.quota_show);
  936. this.$set(this, "attrValue", res);
  937. this.attrTxt = this.$t(`已选择`)
  938. } else {
  939. this.$set(this.attribute.productSelect, "image", this.storeInfo.image);
  940. this.$set(this.attribute.productSelect, "price", this.storeInfo.price);
  941. this.$set(this.attribute.productSelect, "stock", 0);
  942. this.$set(this.attribute.productSelect, "unique", "");
  943. this.$set(this.attribute.productSelect, "cart_num", 0);
  944. this.$set(this.attribute.productSelect, "quota", 0);
  945. this.$set(this.attribute.productSelect, "quota_show", 0);
  946. this.$set(this, "attrValue", "");
  947. this.attrTxt = this.$t(`已选择`)
  948. }
  949. },
  950. // 单独购买
  951. goProduct() {
  952. uni.navigateTo({
  953. url: '/pages/goods_details/index?id=' + this.storeInfo.product_id
  954. })
  955. },
  956. // 立即购买
  957. goCat() {
  958. var that = this;
  959. this.currentPage = false
  960. var productSelect = this.productValue[this.attrValue];
  961. //打开属性
  962. if (this.isOpen)
  963. this.attribute.cartAttr = true
  964. else
  965. this.attribute.cartAttr = !this.attribute.cartAttr
  966. //只有关闭属性弹窗时进行加入购物车
  967. if (this.attribute.cartAttr === true && this.isOpen == false) return this.isOpen = true
  968. //如果有属性,没有选择,提示用户选择
  969. if (this.attribute.productAttr.length && productSelect === undefined && this.isOpen == true) return that
  970. .$util.Tips({
  971. title: this.$t(`请选择`)
  972. });
  973. var data = {
  974. productId: that.storeInfo.product_id,
  975. secKillId: 0,
  976. bargainId: 0,
  977. combinationId: that.id,
  978. cartNum: that.cart_num,
  979. uniqueId: productSelect !== undefined ? productSelect.unique : '',
  980. is_new: 1,
  981. };
  982. postCartAdd(data).then(function(res) {
  983. that.isOpen = false
  984. uni.navigateTo({
  985. url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cartId
  986. });
  987. }).catch(function(res) {
  988. uni.showToast({
  989. title: res,
  990. icon: 'none'
  991. })
  992. })
  993. },
  994. /**
  995. * 收藏商品
  996. */
  997. setCollect: function() {
  998. var that = this;
  999. if (this.storeInfo.userCollect) {
  1000. collectDel([this.storeInfo.product_id]).then(res => {
  1001. that.storeInfo.userCollect = !that.storeInfo.userCollect
  1002. })
  1003. } else {
  1004. collectAdd(this.storeInfo.product_id).then(res => {
  1005. that.storeInfo.userCollect = !that.storeInfo.userCollect
  1006. })
  1007. }
  1008. },
  1009. open(data) {
  1010. this.showMenuIcon = data;
  1011. },
  1012. /**
  1013. * 分享打开
  1014. *
  1015. */
  1016. listenerActionSheet: function() {
  1017. this.currentPage = false
  1018. if (this.isLogin == false) {
  1019. toLogin();
  1020. } else {
  1021. // #ifdef H5
  1022. if (this.$wechat.isWeixin() === true) {
  1023. this.weixinStatus = true;
  1024. }
  1025. // #endif
  1026. this.posters = true;
  1027. }
  1028. },
  1029. // 分享关闭
  1030. listenerActionClose: function() {
  1031. this.posters = false;
  1032. },
  1033. //隐藏海报
  1034. posterImageClose: function() {
  1035. this.posterImageStatus = false
  1036. },
  1037. //替换安全域名
  1038. setDomain: function(url) {
  1039. url = url ? url.toString() : '';
  1040. //本地调试打开,生产请注销
  1041. if (url.indexOf("https://") > -1) return url;
  1042. else return url.replace('http://', 'https://');
  1043. },
  1044. /**
  1045. * 获取产品分销二维码
  1046. * @param function successFn 下载完成回调
  1047. *
  1048. */
  1049. downloadFilePromotionCode: function(successFn) {
  1050. let that = this;
  1051. scombinationCode(that.id).then(res => {
  1052. uni.downloadFile({
  1053. url: that.setDomain(res.data.code),
  1054. success: function(res) {
  1055. that.$set(that, 'isDown', false);
  1056. if (typeof successFn == 'function')
  1057. successFn && successFn(res.tempFilePath);
  1058. else
  1059. that.$set(that, 'PromotionCode', res.tempFilePath);
  1060. },
  1061. fail: function() {
  1062. that.$set(that, 'isDown', false);
  1063. that.$set(that, 'PromotionCode', '');
  1064. },
  1065. });
  1066. }).catch(err => {
  1067. that.$set(that, 'isDown', false);
  1068. that.$set(that, 'PromotionCode', '');
  1069. });
  1070. },
  1071. // 小程序关闭分享弹窗;
  1072. goFriend: function() {
  1073. this.posters = false;
  1074. },
  1075. /*
  1076. * 保存到手机相册
  1077. */
  1078. // #ifdef MP
  1079. savePosterPath: function() {
  1080. let that = this;
  1081. uni.getSetting({
  1082. success(res) {
  1083. if (!res.authSetting['scope.writePhotosAlbum']) {
  1084. uni.authorize({
  1085. scope: 'scope.writePhotosAlbum',
  1086. success() {
  1087. uni.saveImageToPhotosAlbum({
  1088. filePath: that.posterImage,
  1089. success: function(res) {
  1090. that.posterImageClose();
  1091. that.$util.Tips({
  1092. title: this.$t(`保存成功`),
  1093. icon: 'success'
  1094. });
  1095. },
  1096. fail: function(res) {
  1097. that.$util.Tips({
  1098. title: this.$t(`保存失败`)
  1099. });
  1100. }
  1101. })
  1102. }
  1103. })
  1104. } else {
  1105. uni.saveImageToPhotosAlbum({
  1106. filePath: that.posterImage,
  1107. success: function(res) {
  1108. that.posterImageClose();
  1109. that.$util.Tips({
  1110. title: this.$t(`保存成功`),
  1111. icon: 'success'
  1112. });
  1113. },
  1114. fail: function(res) {
  1115. that.$util.Tips({
  1116. title: this.$t(`保存失败`)
  1117. });
  1118. },
  1119. })
  1120. }
  1121. }
  1122. })
  1123. },
  1124. // #endif
  1125. //#ifdef APP-PLUS
  1126. savePosterPath() {
  1127. let that = this
  1128. uni.saveImageToPhotosAlbum({
  1129. filePath: that.posterImage,
  1130. success: function(res) {
  1131. that.posterImageClose();
  1132. that.$util.Tips({
  1133. title: this.$t(`保存成功`),
  1134. icon: 'success'
  1135. });
  1136. },
  1137. fail: function(res) {
  1138. that.$util.Tips({
  1139. title: this.$t(`保存失败`)
  1140. });
  1141. }
  1142. });
  1143. },
  1144. // #endif
  1145. setShareInfoStatus: function() {
  1146. let data = this.storeInfo;
  1147. let href = location.href;
  1148. if (this.$wechat.isWeixin()) {
  1149. getUserInfo().then(res => {
  1150. href =
  1151. href.indexOf("?") === -1 ?
  1152. href + "?spread=" + res.data.uid :
  1153. href + "&spread=" + res.data.uid;
  1154. let configAppMessage = {
  1155. desc: data.store_info,
  1156. title: data.store_name,
  1157. link: href,
  1158. imgUrl: data.image
  1159. };
  1160. this.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],
  1161. configAppMessage)
  1162. });
  1163. }
  1164. },
  1165. scroll: function(e) {
  1166. var that = this,
  1167. scrollY = e.detail.scrollTop;
  1168. var opacity = scrollY / 200;
  1169. opacity = opacity > 1 ? 1 : opacity;
  1170. that.opacity = opacity
  1171. that.scrollY = scrollY
  1172. that.$set(that, "showMenuIcon", false);
  1173. that.$set(that, 'currentPage', false);
  1174. if (that.lock) {
  1175. that.lock = false
  1176. return;
  1177. }
  1178. for (var i = 0; i < that.topArr.length; i++) {
  1179. if (scrollY < that.topArr[i] - (app.globalData.navHeight / 2) + that.heightArr[i]) {
  1180. that.navActive = i
  1181. break
  1182. }
  1183. }
  1184. },
  1185. tap: function(item, index) {
  1186. var id = item.id;
  1187. var index = index;
  1188. var that = this;
  1189. if (!this.replyCount && id == "past1") {
  1190. id = "past2"
  1191. }
  1192. this.toView = id;
  1193. this.navActive = index;
  1194. this.lock = true;
  1195. this.scrollTop = index > 0 ? that.topArr[index] - (app.globalData.navHeight / 2) : that.topArr[index]
  1196. },
  1197. //点击sku图片打开轮播图
  1198. showImg(index) {
  1199. this.$refs.cusPreviewImg.open(this.selectSku.suk);
  1200. },
  1201. //滑动轮播图选择商品
  1202. changeSwitch(e) {
  1203. let productSelect = this.skuArr[e];
  1204. this.$set(this, "selectSku", productSelect);
  1205. var skuList = productSelect.suk.split(",");
  1206. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1207. if (skuList.length == 2) {
  1208. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1209. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1210. } else if (skuList.length == 3) {
  1211. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1212. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1213. this.$set(this.attribute.productAttr[2], "index", skuList[2]);
  1214. } else if (skuList.length == 4) {
  1215. this.$set(this.attribute.productAttr[0], "index", skuList[0]);
  1216. this.$set(this.attribute.productAttr[1], "index", skuList[1]);
  1217. this.$set(this.attribute.productAttr[2], "index", skuList[2]);
  1218. this.$set(this.attribute.productAttr[3], "index", skuList[3]);
  1219. }
  1220. if (productSelect) {
  1221. this.$set(this.attribute.productSelect, "image", productSelect.image);
  1222. this.$set(this.attribute.productSelect, "price", productSelect.price);
  1223. this.$set(this.attribute.productSelect, "stock", productSelect.stock);
  1224. this.$set(this.attribute.productSelect, "unique", productSelect.unique);
  1225. this.$set(this.attribute.productSelect, "vipPrice", productSelect.vipPrice);
  1226. this.$set(this, "attrTxt", this.$t(`已选择`));
  1227. this.$set(this, "attrValue", productSelect.suk);
  1228. }
  1229. },
  1230. },
  1231. //#ifdef MP
  1232. onShareAppMessage() {
  1233. return {
  1234. title: this.storeInfo.title,
  1235. path: app.globalData.openPages,
  1236. imageUrl: this.storeInfo.image
  1237. };
  1238. }
  1239. //#endif
  1240. }
  1241. </script>
  1242. <style lang="scss">
  1243. .generate-posters {
  1244. width: 100%;
  1245. height: 170rpx;
  1246. background-color: #fff;
  1247. position: fixed;
  1248. left: 0;
  1249. bottom: 0;
  1250. z-index: 300;
  1251. transform: translate3d(0, 100%, 0);
  1252. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1253. border-top: 1rpx solid #eee;
  1254. }
  1255. .generate-posters.on {
  1256. transform: translate3d(0, 0, 0);
  1257. }
  1258. .generate-posters .item {
  1259. flex: 1;
  1260. text-align: center;
  1261. font-size: 30rpx;
  1262. }
  1263. .generate-posters .item .iconfont {
  1264. font-size: 80rpx;
  1265. color: #5eae72;
  1266. }
  1267. .generate-posters .item .iconfont.icon-haibao {
  1268. color: #5391f1;
  1269. }
  1270. .navbar .header {
  1271. height: 96rpx;
  1272. font-size: 30rpx;
  1273. color: #050505;
  1274. background-color: #fff;
  1275. /* #ifdef MP */
  1276. // padding-right: 45rpx;
  1277. /* #endif */
  1278. }
  1279. .icon-xiangzuo {
  1280. /* #ifdef H5 */
  1281. top: 30rpx !important;
  1282. /* #endif */
  1283. }
  1284. .navbar .header .item {
  1285. position: relative;
  1286. margin: 0 25rpx;
  1287. }
  1288. .navbar .header .item.on:before {
  1289. position: absolute;
  1290. width: 60rpx;
  1291. height: 5rpx;
  1292. background-repeat: no-repeat;
  1293. content: "";
  1294. background-color: var(--view-theme);
  1295. bottom: -10rpx;
  1296. left: 50%;
  1297. margin-left: -28rpx;
  1298. }
  1299. .navbar {
  1300. position: fixed;
  1301. background-color: #fff;
  1302. top: 0;
  1303. left: 0;
  1304. z-index: 99;
  1305. width: 100%;
  1306. }
  1307. .navbar .navbarH {
  1308. position: relative;
  1309. }
  1310. .navbar .navbarH .navbarCon {
  1311. position: absolute;
  1312. bottom: 0;
  1313. height: 100rpx;
  1314. width: 100%;
  1315. }
  1316. .icon-xiangzuo {
  1317. /* color: #000;
  1318. position: fixed;
  1319. font-size: 40rpx;
  1320. width: 100rpx;
  1321. height: 56rpx;
  1322. line-height: 54rpx;
  1323. z-index: 1000;
  1324. left: 33rpx; */
  1325. }
  1326. .product-con .wrapper {
  1327. padding-bottom: 26rpx;
  1328. }
  1329. .product-con .wrapper .share .money .y-money {
  1330. color: #82848f;
  1331. margin-left: 13rpx;
  1332. text-decoration: line-through;
  1333. font-weight: normal;
  1334. }
  1335. .product-con .notice {
  1336. width: 100%;
  1337. height: 62rpx;
  1338. margin-top: 20rpx;
  1339. padding: 0 30rpx;
  1340. box-sizing: border-box;
  1341. background-color: rgba(255, 255, 255, 0.88);
  1342. }
  1343. .product-con .notice .num {
  1344. font-size: 24rpx;
  1345. }
  1346. .product-con .notice .num .iconfont {
  1347. font-size: 30rpx;
  1348. vertical-align: -3rpx;
  1349. margin-right: 20rpx;
  1350. }
  1351. .product-con .notice .num .line {
  1352. color: #282828;
  1353. margin-left: 15rpx;
  1354. }
  1355. .product-con .notice .swiper {
  1356. height: 100%;
  1357. width: 360rpx;
  1358. line-height: 62rpx;
  1359. overflow: hidden;
  1360. margin-left: 14rpx;
  1361. }
  1362. .product-con .notice .swiper swiper {
  1363. height: 100%;
  1364. width: 100%;
  1365. overflow: hidden;
  1366. font-size: 24rpx;
  1367. color: #282828;
  1368. }
  1369. .product-con .assemble {
  1370. background-color: #fff;
  1371. }
  1372. .product-con .assemble .item {
  1373. padding-right: 30rpx;
  1374. margin-left: 30rpx;
  1375. border-bottom: 1rpx solid #f0f0f0;
  1376. height: 132rpx;
  1377. }
  1378. .product-con .assemble .item .pictxt {
  1379. width: 295rpx;
  1380. }
  1381. .product-con .assemble .item .pictxt .text {
  1382. width: 194rpx;
  1383. }
  1384. .product-con .assemble .item .pictxt .pictrue {
  1385. width: 80rpx;
  1386. height: 80rpx;
  1387. }
  1388. .product-con .assemble .item .pictxt .pictrue image {
  1389. width: 100%;
  1390. height: 100%;
  1391. border-radius: 50%;
  1392. }
  1393. .product-con .assemble .item .right .lack {
  1394. font-size: 24rpx;
  1395. color: #333333;
  1396. }
  1397. .product-con .assemble .item .right .time {
  1398. position: relative;
  1399. left: -10rpx;
  1400. font-size: 22rpx;
  1401. color: #82848f;
  1402. margin-top: 5rpx;
  1403. }
  1404. .product-con .assemble .item .right .spellBnt {
  1405. font-size: 24rpx;
  1406. color: #fff;
  1407. width: 140rpx;
  1408. height: 50rpx;
  1409. border-radius: 50rpx;
  1410. // background-image: linear-gradient(to right, #ff2358 0%, #ff0000 100%);
  1411. text-align: center;
  1412. line-height: 50rpx;
  1413. background-color: var(--view-theme);
  1414. margin-left: 30rpx;
  1415. }
  1416. .product-con .assemble .item .right .spellBnt .iconfont {
  1417. font-size: 25rpx;
  1418. margin-left: 5rpx;
  1419. }
  1420. .product-con .assemble .more {
  1421. font-size: 24rpx;
  1422. color: #282828;
  1423. text-align: center;
  1424. height: 90rpx;
  1425. line-height: 90rpx;
  1426. }
  1427. .product-con .assemble .more .iconfont {
  1428. margin-left: 13rpx;
  1429. font-size: 25rpx;
  1430. }
  1431. .product-con .playWay {
  1432. background-color: #fff;
  1433. padding: 0 30rpx;
  1434. margin-top: 20rpx;
  1435. font-size: 28rpx;
  1436. color: #282828;
  1437. }
  1438. .product-con .playWay .title {
  1439. height: 86rpx;
  1440. border-bottom: 1rpx solid #eee;
  1441. }
  1442. .product-con .playWay .title .iconfont {
  1443. margin-left: 13rpx;
  1444. font-size: 28rpx;
  1445. color: #717171;
  1446. }
  1447. .product-con .playWay .way {
  1448. min-height: 110rpx;
  1449. font-size: 26rpx;
  1450. color: #282828;
  1451. }
  1452. .product-con .playWay .way .iconfont {
  1453. color: #cdcdcd;
  1454. font-size: 40rpx;
  1455. margin: 0 35rpx;
  1456. }
  1457. .product-con .playWay .way .item .num {
  1458. font-size: 34rpx;
  1459. margin-right: 6rpx;
  1460. width: 17px;
  1461. height: 28px;
  1462. display: inline-block;
  1463. vertical-align: middle;
  1464. }
  1465. .product-con .playWay .way .item .tip {
  1466. font-size: 22rpx;
  1467. color: #a5a5a5;
  1468. margin-top: 7rpx;
  1469. }
  1470. .product-con .footer {
  1471. padding: 0 20rpx 0 30rpx;
  1472. position: fixed;
  1473. bottom: 0;
  1474. width: 100%;
  1475. box-sizing: border-box;
  1476. z-index: 277;
  1477. border-top: 1rpx solid #f0f0f0;
  1478. height: 100rpx;
  1479. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1480. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1481. background-color: rgba(255, 255, 255, 0.85);
  1482. backdrop-filter: blur(10px);
  1483. transform: translate3d(0, 100%, 0);
  1484. transition: all .3s cubic-bezier(.25, .5, .5, .9);
  1485. }
  1486. .product-con .footer .item {
  1487. font-size: 18rpx;
  1488. color: #666;
  1489. }
  1490. .product-con .footer .item .iconfont {
  1491. text-align: center;
  1492. font-size: 40rpx;
  1493. }
  1494. .product-con .footer .item .iconfont.icon-shoucang1 {
  1495. color: var(--view-theme);
  1496. }
  1497. .product-con .footer .item .iconfont.icon-gouwuche1 {
  1498. font-size: 40rpx;
  1499. position: relative;
  1500. }
  1501. .product-con .conter {
  1502. display: block;
  1503. padding-bottom: 100rpx;
  1504. }
  1505. .product-con .conter img {
  1506. display: block;
  1507. }
  1508. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  1509. color: #fff;
  1510. position: absolute;
  1511. font-size: 18rpx;
  1512. padding: 2rpx 8rpx 3rpx;
  1513. border-radius: 200rpx;
  1514. top: -10rpx;
  1515. right: -10rpx;
  1516. }
  1517. .product-con .footer .bnt {
  1518. width: 540rpx;
  1519. height: 76rpx;
  1520. }
  1521. .product-con .footer .bnt .bnts {
  1522. width: 270rpx;
  1523. text-align: center;
  1524. line-height: 76rpx;
  1525. color: #fff;
  1526. font-size: 28rpx;
  1527. }
  1528. .product-con .footer .bnt .joinCart {
  1529. border-radius: 50rpx 0 0 50rpx;
  1530. background-color: var(--view-bntColor);
  1531. }
  1532. .product-con .footer .bnt .buy {
  1533. border-radius: 0 50rpx 50rpx 0;
  1534. background-color: var(--view-theme);
  1535. }
  1536. .setCollectBox {
  1537. font-size: 18rpx;
  1538. color: #666;
  1539. }
  1540. .canvas {
  1541. width: 750px;
  1542. height: 1190px;
  1543. }
  1544. .poster-pop {
  1545. width: 450rpx;
  1546. height: 714rpx;
  1547. position: fixed;
  1548. left: 50%;
  1549. transform: translateX(-50%);
  1550. z-index: 300;
  1551. top: 50%;
  1552. margin-top: -377rpx;
  1553. }
  1554. .poster-pop image {
  1555. width: 100%;
  1556. height: 100%;
  1557. display: block;
  1558. }
  1559. .poster-pop .close {
  1560. width: 46rpx;
  1561. height: 75rpx;
  1562. position: fixed;
  1563. right: 0;
  1564. top: -73rpx;
  1565. display: block;
  1566. }
  1567. .poster-pop .save-poster {
  1568. background-color: #df2d0a;
  1569. font-size: :22rpx;
  1570. color: #fff;
  1571. text-align: center;
  1572. height: 76rpx;
  1573. line-height: 76rpx;
  1574. width: 100%;
  1575. }
  1576. .poster-pop .keep {
  1577. color: #fff;
  1578. text-align: center;
  1579. font-size: 25rpx;
  1580. margin-top: 10rpx;
  1581. }
  1582. /deep/.mask {
  1583. z-index: 99 !important;
  1584. }
  1585. .mask1 {
  1586. position: fixed;
  1587. top: 0;
  1588. left: 0;
  1589. right: 0;
  1590. bottom: 0;
  1591. background-color: #000;
  1592. opacity: .5;
  1593. z-index: 288;
  1594. }
  1595. .pro-wrapper .iconn {
  1596. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAYKElEQVR4nO2deXhTVfrHP0nTlpautHSjZSkt+x42UTYVF5C4gsKIOqOjIxJHZdTfyG+eEZ1xxgVHjeLo6KiIKKsYcAUEBQooASxQKC1QulPolm50S+aPJPXmZm2a3BTo53n6QM49956T+8259yzv+x7ZmC8WcbGjU2migBFAGpAK9AGSgBjzX3dAAYSbT6kBWoA6oNz8VwycAU4BuUCmUquuku5beIZOpXF6XCFRPbyGTqUJAsYCVwCTgTFASjsvYxE6Gkh2UlYBcADYCewB9iu16qb21tmfXBQC61SaeGA2cANwHb8K5GtSzH83mz/X6lSarcCXwCalVn1Wonp4TKcVWKfSRAJzgLuAaUCAXytkIgy4xfzXqlNpfgA+A9Yotepqv9bMAbLO9g7WqTTjgYcxidvdnXNaDK3k1Z4lt6aEorrzFDdUUFpfQXljDfr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rWRcdAJb0Kk0kZhEnodp+tPtuy0RrZi8Cj4F1ii1ammCQotwJbDrXSv8hPmG/Qf4j06liQdmAzcA12FnmCURtcBWTHGoNim1aum2S/eQTiuwEPONfA94T6fSBAFjgSswTYeOQRAp18sUYOoF78TkQb9fqVU3OT+lc9FpH9HtQafSRAMjgHRMW9b3xbRVUIz5LxQIAizbktQDjeZ/y81/xUCe+S8HyFRq1TY7Lnc2XD2i/wckBEniScYuwQAAAABJRU5ErkJggg==');
  1597. width: 100rpx;
  1598. height: 100rpx;
  1599. background-repeat: no-repeat;
  1600. background-size: 100% 100%;
  1601. margin: 0 auto;
  1602. }
  1603. .pro-wrapper .iconn.iconn1 {
  1604. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAR4ElEQVR4nO2deZgU5Z3HP1XVU9zDMYDcIDcaBjJQCsMhDy54crjhTMDEXKtE27gGn8TkiZpo8qgRQyeyq0924wKrgMawEDRuUBFkQBsQgVW5j8EBgeGYGRBqpqv2j6oeaqqqr+nu6eqZ/jxPP1BvvTVVXd9+r9/7e3+vMHLxFbKdoF9uBxQC/YG+QG+gG1BgfloBPqCNeUklUANcBMrNTxlwFDgEHAB2KQH1fMN9i/oR9MtRz/sa6DlSRtAvy8BIYDQwDigCeib4Z8JCtwd6RLlXKbAD2ARsAbYpAVVN9JkzSVYIHPTL1wBTgFuByVwVKN30ND/TzOOqoF9eD6wD1ioB9csGeo56I3i1ig765bbATGAOMAGQMvpATkLA+8AKYJUSUC9k4iFiVdGeEzjol28A7sMQt1U819RocOSczsFynS8u6Jyo0DlZCeWXdCquwFeqTo0Gl6qN/C3zwCdCC1mgjQwdWwl0aQNd8wW6txXoVyDQp72AT4z7sS8CrwEvKgF1a6LfORmyQuCgXxaB6cDDQHGs/Oe+go9KNXaWaew6oXOo3BAwlfhE6FsgUNhVYFhXkRt7ibRvEdelJcBzwGoloKb4qZx4WuCgXxaAu4DHgaHR8u4/o/PuA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sAyOB0Rjm0CKgZ5puV4rRC96EsYJ+mxJQPbX5X6MT2I2gX24PFAIDMLas7wN0AwrMT0tABlqZl1wCrpj/lpufMuCI+dkP7FIC6rmG+Qb1J5bA/w8QrL/zy2ZeXQAAAABJRU5ErkJggg==');
  1605. }
  1606. .home-nav {
  1607. /* #ifdef H5 */
  1608. top: 20rpx !important;
  1609. /* #endif */
  1610. }
  1611. .home-nav {
  1612. color: #333;
  1613. position: fixed;
  1614. /* #ifdef MP */
  1615. width: 126rpx;
  1616. left: 15rpx;
  1617. /* #endif */
  1618. /* #ifndef MP */
  1619. width: 56rpx;
  1620. left: 33rpx;
  1621. /* #endif */
  1622. height: 56rpx;
  1623. font-size: 33rpx;
  1624. z-index: 99;
  1625. background: rgba(255, 255, 255, 0.3);
  1626. border: 1px solid rgba(0, 0, 0, 0.1);
  1627. border-radius: 40rpx;
  1628. &.right {
  1629. right: 33rpx;
  1630. left: unset
  1631. }
  1632. &.on {
  1633. background: unset;
  1634. color: #333;
  1635. }
  1636. &.homeIndex {
  1637. /* #ifdef MP */
  1638. width: 98rpx;
  1639. /* #endif */
  1640. /* #ifndef MP */
  1641. border-color: rgba(255, 255, 255, 0);
  1642. /* #endif */
  1643. }
  1644. }
  1645. .home-nav .iconfont {
  1646. width: 58rpx;
  1647. text-align: center;
  1648. }
  1649. .home-nav .line {
  1650. width: 1rpx;
  1651. height: 34rpx;
  1652. background: #B3B3B3;
  1653. }
  1654. .home-nav .icon-xiangzuo {
  1655. width: auto;
  1656. font-size: 28rpx;
  1657. }
  1658. .share-box {
  1659. z-index: 1000;
  1660. position: fixed;
  1661. left: 0;
  1662. top: 0;
  1663. width: 100%;
  1664. height: 100%;
  1665. }
  1666. .share-box image {
  1667. width: 100%;
  1668. height: 100%;
  1669. }
  1670. .attrImg {
  1671. width: 66rpx;
  1672. height: 66rpx;
  1673. border-radius: 6rpx;
  1674. display: block;
  1675. margin-right: 14rpx;
  1676. }
  1677. .switchTxt {
  1678. height: 60rpx;
  1679. flex: 1;
  1680. line-height: 60rpx;
  1681. box-sizing: border-box;
  1682. background: #eeeeee;
  1683. padding: 0 10rpx;
  1684. border-radius: 8rpx;
  1685. text-align: center;
  1686. }
  1687. .attribute {
  1688. padding: 10rpx 30rpx;
  1689. .line1 {
  1690. width: 600rpx;
  1691. }
  1692. }
  1693. .flex {
  1694. display: flex;
  1695. justify-content: space-between;
  1696. width: 100%;
  1697. }
  1698. .flexs {
  1699. display: flex;
  1700. }
  1701. .attr-txt {
  1702. display: flex;
  1703. flex-wrap: nowrap;
  1704. width: 130rpx;
  1705. }
  1706. </style>