index.vue 69 KB

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