index.vue 71 KB

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