index.vue 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352
  1. <template>
  2. <view :style="viewColor">
  3. <view class="product-con">
  4. <view class="head-wrapper" id="home" :style="{ top: homeTop + 'rpx' }">
  5. <view class="head-menu">
  6. <view class='iconfont icon-fanhui2' @click="returns"></view>
  7. <view class="iconfont icon-gengduo5" @click="showNav"></view>
  8. </view>
  9. </view>
  10. <!-- 导航小图标 -->
  11. <view class="dialog_nav" v-show="currentPage" :style="{ top: navH + 'rpx' }">
  12. <view class="dialog_nav_item" :class="item.after" v-for="(item,index) in selectNavList" :key="index"
  13. @click="linkPage(item.url)">
  14. <text class="iconfont" :class="item.icon"></text>
  15. <text class="pl-20">{{item.name}}</text>
  16. </view>
  17. </view>
  18. <view>
  19. <scroll-view :scroll-top="scrollTop" scroll-y='true' scroll-with-animation="true" :style='"height:"+height+"px;"'
  20. @scroll="scroll">
  21. <view id="past0">
  22. <!-- #ifdef MP || APP-PLUS -->
  23. <view class="" :style="'width:100%;' + 'height:'+sysHeight + 'px'"></view>
  24. <!-- #endif -->
  25. <productConSwiper class="skeleton-rect" :imgUrls="storeInfo.slider_image" :videoCoverImg="videoCoverImg" :videoline="storeInfo.video_link"></productConSwiper>
  26. <view v-if="storeInfo.atmosphere_pic" :style="{ backgroundImage: `url(${storeInfo.atmosphere_pic})` }" class="nav acea-row row-between-wrapper">
  27. <view class='money skeleton-rect'>
  28. ¥<text class='num'>{{presellInfo.price}}</text>
  29. </view>
  30. </view>
  31. <view class='wrapper'>
  32. <view :class="{ atmosphere: storeInfo.atmosphere_pic }" class='share acea-row row-between row-bottom' style="padding: 0;margin: 0;">
  33. <view v-if="storeInfo.atmosphere_pic" class='introduce skeleton-rect'>
  34. <text v-if="(storeInfo.merchant && storeInfo.merchant.type_name)" class="font-bg-red">{{storeInfo.merchant.type_name}}</text>
  35. <text v-else-if="(storeInfo.merchant && storeInfo.merchant.is_trader)" class="font-bg-red">自营</text>
  36. {{presellInfo.store_name}}
  37. </view>
  38. <view v-else class='money p-color skeleton-rect'>
  39. <text class='num'>{{presellInfo.price}}</text>
  40. <text class="price_text">预售价</text>
  41. </view>
  42. <view @click="listenerActionSheet" class="fenxiang_btn btn_one">
  43. <text class="iconfont icon-fenxiang4"></text><br/>分享
  44. </view>
  45. </view>
  46. <view class='label acea-row skeleton-rect'>
  47. <view>市场价:¥{{storeInfo.price || ''}}</view>
  48. <view style="margin-left: 30rpx;">已预定:{{presellInfo.seles}}{{ storeInfo.unit_name }}</view>
  49. </view>
  50. <view v-if="!storeInfo.atmosphere_pic" class='introduce skeleton-rect'>
  51. <text v-if="(storeInfo.merchant && storeInfo.merchant.type_name)" class="font-bg-red">{{storeInfo.merchant.type_name}}</text>
  52. <text v-else-if="(storeInfo.merchant && storeInfo.merchant.is_trader)" class="font-bg-red">自营</text>
  53. {{presellInfo.store_name}}</view>
  54. <view class="presell_count">
  55. <view>
  56. <view>预售活动时间:</view>
  57. <view v-if="presellInfo.start_time && presellInfo.end_time" class="presell_time">
  58. <view class='iconfont icon-shijian1'></view>
  59. {{ new Date(presellInfo.start_time.replace(/-/g,"/")).getMonth()+1 }}月{{ new Date(presellInfo.start_time.replace(/-/g,"/")).getDate() }}日{{ new Date(presellInfo.start_time.replace(/-/g,"/")).getHours() }}时{{ new Date(presellInfo.start_time.replace(/-/g,"/")).getMinutes()}}分
  60. <span class='area_line'>~</span>
  61. <view class='iconfont icon-shijian1'></view>
  62. {{ new Date(presellInfo.end_time.replace(/-/g,"/")).getMonth()+1 }}月{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getDate() }}日{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getHours() }}时{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getMinutes()}}分
  63. </view>
  64. </view>
  65. <view v-if="presellInfo.presell_type === 2">
  66. <view>支付尾款时间:</view>
  67. <view v-if="presellInfo.final_start_time && presellInfo.final_end_time" class="presell_time">
  68. <view class='iconfont icon-shijian1'></view>
  69. {{ new Date(presellInfo.final_start_time.replace(/-/g,"/")).getMonth()+1 }}月{{ new Date(presellInfo.final_start_time.replace(/-/g,"/")).getDate() }}日{{ new Date(presellInfo.final_start_time.replace(/-/g,"/")).getHours() }}时{{ new Date(presellInfo.final_start_time.replace(/-/g,"/")).getMinutes()}}分
  70. <span class='area_line'>~</span>
  71. <view class='iconfont icon-shijian1'></view>
  72. {{ new Date(presellInfo.final_end_time.replace(/-/g,"/")).getMonth()+1 }}月{{ new Date(presellInfo.final_end_time.replace(/-/g,"/")).getDate() }}日{{ new Date(presellInfo.final_end_time.replace(/-/g,"/")).getHours() }}时{{ new Date(presellInfo.final_end_time.replace(/-/g,"/")).getMinutes()}}分
  73. </view>
  74. </view>
  75. <view v-if="presellInfo.delivery_type == 1">
  76. <view>预计发货时间:</view>
  77. <view v-if="presellInfo.presell_type==1">支付成功后{{ presellInfo.delivery_day }}天内发货</view>
  78. <view v-if="presellInfo.presell_type==2">付尾款成功后{{ presellInfo.delivery_day }}天内发货</view>
  79. </view>
  80. <view v-if="presellInfo.delivery_type == 2">
  81. <view>预计发货时间:</view>
  82. 预售结束后{{ presellInfo.delivery_day }}天内发货
  83. </view>
  84. </view>
  85. <view class='coupon acea-row row-between-wrapper skeleton-rect' @click='couponTap' style="margin-top: 20rpx;">
  86. <view class='hide line1 acea-row'>
  87. 优惠券:
  88. <view class='activity' v-for="(item,index) in coupon.list" :key="index">满{{item.use_min_price}}减{{item.coupon_price}}</view>
  89. </view>
  90. <view class='iconfont icon-jiantou'></view>
  91. </view>
  92. </view>
  93. <view class='attribute acea-row row-between-wrapper' @click="selecAttr">
  94. <view class="acea-row row-between-wrapper skeleton-rect">{{attrTxt}}:
  95. <text class='atterTxt'>{{attrValue}}</text>
  96. </view>
  97. <view class='iconfont icon-jiantou skeleton-rect'></view>
  98. </view>
  99. <!--运费-->
  100. <view v-if="shipping || shippingValue" class='attribute acea-row row-between-wrapper' @click="showShip">
  101. <view class="acea-row row-between-wrapper">运费:
  102. <text class='atterTxt'>{{shippingValue}}</text>
  103. </view>
  104. <view class='iconfont icon-jiantou'></view>
  105. </view>
  106. <!--保障-->
  107. <view v-if="guarantee.length" class='attribute acea-row row-between-wrapper' @click="showGuaranee">
  108. <view class="acea-row row-between-wrapper">保障:
  109. <view class="guaranteeAttr">
  110. <text class='atterTxt1' :class="item.guarantee_name ? 'hasAttr' : ''" v-for="(item,index) in guarantee">
  111. {{item.guarantee_name ? item.guarantee_name : ''}}
  112. </text>
  113. </view>
  114. </view>
  115. <view class='iconfont icon-jiantou'></view>
  116. </view>
  117. <!--参数-->
  118. <view v-if="specsInfo.params.length>0" class="attribute acea-row row-between-wrapper" @click="seeSpecs">
  119. <view class="acea-row row-middle">
  120. 参数:
  121. <view class="list line1">
  122. <text class="item params" v-for="(item,index) in specsInfo.params" :key="index"
  123. v-if="index<2">{{item.name}}</text>
  124. <text>...</text>
  125. </view>
  126. </view>
  127. <view class="iconfont icon-jiantou"></view>
  128. </view>
  129. <!--定金预售流程-->
  130. <view v-if="presellInfo.presell_type === 2" class='acea-row row-between-wrapper wrapper presell_process'>
  131. <view>流程:
  132. <view class='process_count'>
  133. <view class="process_line"></view>
  134. <span class="text_line text_line1"><text>定金</text></span>
  135. <span class="text_line text_line2"><text>尾款</text></span>
  136. <span class="text_line text_line3"><text>发货</text></span>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <view class='userEvaluation' id="past1" v-if="replyCount && replyCount>0">
  142. <view class='title acea-row row-between-wrapper'>
  143. <view>用户评价({{replyCount}})</view>
  144. <navigator class='praise' hover-class='none' :url='"/pages/users/goods_comment_list/index?product_id="+storeInfo.product_id'>
  145. <text class='t-color'>{{replyChance}}</text>好评率
  146. <text class='iconfont icon-jiantou'></text>
  147. </navigator>
  148. </view>
  149. <block v-if="replyCount">
  150. <userEvaluation :reply="reply"></userEvaluation>
  151. </block>
  152. </view>
  153. <!-- 种草秀 -->
  154. <view class='userPlant' v-if="storeInfo.community && storeInfo.community.length>0">
  155. <view class='title acea-row row-between-wrapper'>
  156. <view>种草秀 </view>
  157. <navigator class='praise' hover-class='none' :url="'/pages/plantGrass/plant_show/index?spu_id='+storeInfo.spu_id">
  158. 查看全部
  159. <text class='iconfont icon-jiantou'></text>
  160. </navigator>
  161. </view>
  162. <view class="imgList acea-row">
  163. <navigator class="pictrue" v-for="(item, index) in storeInfo.community" :key="index" v-if="index<=2"
  164. hover-class='none' :url="'/pages/plantGrass/plant_detail/index?id='+item.community_id">
  165. <image :src="item.image[0]" class="image"></image>
  166. </navigator>
  167. </view>
  168. </view>
  169. <!-- 商铺信息 -->
  170. <view v-if="hide_mer_status == 0 && storeInfo.merchant" class="store-wrapper">
  171. <view class="store-hd">
  172. <view class="store-info">
  173. <navigator :url="'/pages/store/home/index?id='+storeInfo.mer_id" hover-class="none" class="logo">
  174. <image :src="storeInfo.merchant.mer_avatar" mode=""></image>
  175. </navigator>
  176. <navigator :url="'/pages/store/home/index?id='+storeInfo.mer_id" hover-class="none" class="info">
  177. <view class="name">{{storeInfo.merchant.mer_name}}
  178. <text v-if="(storeInfo.merchant && storeInfo.merchant.type_name)" class="font-bg-red ml8">{{storeInfo.merchant.type_name}}</text>
  179. <text v-else-if="(storeInfo.merchant && storeInfo.merchant.is_trader)" class="font-bg-red ml8">自营</text>
  180. </view>
  181. <view class="txt">
  182. {{storeInfo.merchant.care_count < 10000 ? storeInfo.merchant.care_count : (storeInfo.merchant.care_count/10000).toFixed(2)+'万'}}人关注
  183. </view>
  184. </navigator>
  185. <navigator :url="'/pages/store/home/index?id='+storeInfo.mer_id" class="link" hover-class="none">进店</navigator>
  186. </view>
  187. <view class="score-wrapper">
  188. <view class="item">
  189. 商品描述<text>{{storeInfo.merchant.product_score}}</text>
  190. </view>
  191. <view class="item">
  192. 卖家服务<text>{{storeInfo.merchant.service_score}}</text>
  193. </view>
  194. <view class="item">
  195. 物流服务<text>{{storeInfo.merchant.postage_score}}</text>
  196. </view>
  197. </view>
  198. </view>
  199. <view v-if="recommend && recommend.length > 0" class="con-box">
  200. <view class="acea-row row-between">
  201. <view class="title">店铺推荐</view>
  202. <navigator v-if="hide_mer_status!=1" class="moer-btn" :url="'/pages/store/home/index?id='+storeInfo.mer_id" hover-class="none">
  203. 查看更多<text class='iconfont icon-jiantou'></text></navigator>
  204. </view>
  205. <view class="swiper page_swiper">
  206. <swiper
  207. indicator-dots="true"
  208. :autoplay="false"
  209. :circular="circular"
  210. :interval="interval"
  211. :duration="duration"
  212. :current="swiperCur"
  213. style="750rpx;"
  214. >
  215. <block v-for="(item,index) in recommend" :key="index">
  216. <swiper-item class="swiper-item">
  217. <view class="img-box">
  218. <view class="img-item" v-for="(itm,idx) in item" :key="idx" @click="goProDetail(itm)">
  219. <easy-loadimage mode="widthFix" :image-src="itm.image"></easy-loadimage>
  220. <view class="txt">
  221. f<view class="title line1">{{itm.store_name}}</view>
  222. <view class="price">
  223. <text>¥</text>{{itm.price}}
  224. </view>
  225. </view>
  226. </view>
  227. </view>
  228. </swiper-item>
  229. </block>
  230. </swiper>
  231. </view>
  232. </view>
  233. </view>
  234. <view class='product-intro' id="past3">
  235. <view class='title'>产品介绍</view>
  236. <view class='conter' v-if="description">
  237. <jyf-parser :domain="domain" :html="description.content" ref="article" :tag-style="tagStyle"></jyf-parser>
  238. </view>
  239. <!-- 价格说明 -->
  240. <view v-if="priceRule.content" class="price-info">
  241. <view class="price-title">价格说明</view>
  242. <!-- #ifndef APP-PLUS -->
  243. <jyf-parser :domain='domain' :html="priceRule.content.replace(/<br\/>/ig, '')" ref="article" :tag-style="tagStyle"></jyf-parser>
  244. <!-- #endif -->
  245. <!-- #ifdef APP-PLUS -->
  246. <view class="description" v-html="priceRule.content.replace(/<br\/>/ig, '')"></view>
  247. <!-- #endif -->
  248. </view>
  249. </view>
  250. <view v-if="presellInfo && presellInfo.presell_type === 2 && presellInfo.final_end_time" class="presell-content-height"></view>
  251. <view v-else class="content-height"></view>
  252. </scroll-view>
  253. </view>
  254. <view class='footer_count'>
  255. <view v-if="presellInfo && presellInfo.presell_type === 2 && presellInfo.final_end_time" class="presell_desc">
  256. <text v-if="presellInfo.end_time" class='iconfont icon-zhuyi-copy'></text>
  257. 定金支付时间{{new Date(presellInfo.end_time.replace(/-/g,"/")).getMonth()+1 }}月{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getDate() }}日{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getHours() }}时{{ new Date(presellInfo.end_time.replace(/-/g,"/")).getMinutes()}}分结束
  258. <text>{{ presellInfo.delivery_type === 1 ? ' 付尾款后' : ' 活动结束后' }}{{ presellInfo.delivery_day }}天内发货</text>
  259. </view>
  260. <view class="acea-row row-between-wrapper footer" :class="{'noborder' : presellInfo.presell_type === 2, 'footpl':hide_mer_status==1}">
  261. <navigator v-if="hide_mer_status !=1" :url="'/pages/store/home/index?id='+storeInfo.mer_id" class='item skeleton-rect'>
  262. <view class='iconfont icon-dianpu2'></view>
  263. <view>店铺</view>
  264. </navigator>
  265. <block v-if="storeInfo.merchant">
  266. <view v-if="storeInfo.merchant.services_type== 0" class="item skeleton-rect" @click="goCustomer">
  267. <view class="iconfont icon-kefu"></view>
  268. <view>客服</view>
  269. </view>
  270. <view v-else class="item skeleton-rect" @click="call">
  271. <view class="iconfont icon-kefu"></view>
  272. <view>客服</view>
  273. </view>
  274. </block>
  275. <view @click="setCollect" class='item skeleton-rect'>
  276. <view class='iconfont icon-shoucang1' v-if="storeInfo.isRelation"></view>
  277. <view class='iconfont icon-shoucang' v-else></view>
  278. <view>收藏</view>
  279. </view>
  280. <view class='bnt acea-row skeleton-rect'>
  281. <form @submit="goBuy" report-submit='true' v-if="attr.productSelect && presellInfo.presell_status == 1">
  282. <button v-if="attr.productSelect.stock == 0" class='buy bnts' form-type="submit" disabled>商品已售罄</button>
  283. <button v-else class='buy bnts' form-type="submit">{{ presellInfo.presell_type === 1 ? "立即支付" : "立即支付定金:"+minNum+'元起' }}</button>
  284. </form>
  285. <form @submit="goBuy" report-submit='true' v-if="attr.productSelect && presellInfo.presell_status == 2">
  286. <button class='buy bnts' form-type="submit" disabled>已结束</button>
  287. </form>
  288. <form @submit="goBuy" report-submit='true' v-if="attr.productSelect && presellInfo.presell_status == 0">
  289. <button class='buy bnts' form-type="submit" disabled>未开始</button>
  290. </form>
  291. </view>
  292. </view>
  293. </view>
  294. <block v-if="sharePacket.max&&sharePacket.max>0">
  295. <shareRedPackets :sharePacket="sharePacket" @listenerActionSheet="listenerActionSheet" @closeChange="closeChange"
  296. :showAnimate="showAnimate" @boxStatus="boxStatus"></shareRedPackets>
  297. </block>
  298. <!-- 组件 -->
  299. <productWindow :attr="attr" :isShow='1' :iSplus='1' :isPresell='1' :presell_type="presellInfo.presell_type" :image="storeInfo.image"
  300. @myevent="onMyEvent" @ChangeAttr="ChangeAttr" @ChangeCartNum="ChangeCartNum" @attrVal="attrVal" @iptCartNum="iptCartNum"
  301. id='product-window'></productWindow>
  302. <block v-if="coupon.coupon">
  303. <couponListWindow :showTitle="0" :isShop="1" :coupon='coupon' @ChangCouponsClose="ChangCouponsClose" @ChangCoupons="ChangCoupons"
  304. @ChangCouponsUseState="ChangCouponsUseState"></couponListWindow>
  305. </block>
  306. <!-- 分享按钮 -->
  307. <view class="generate-posters acea-row row-middle" :class="posters ? 'on' : ''">
  308. <!-- #ifndef MP -->
  309. <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' v-if="weixinStatus === true" @click="H5ShareBox = true">
  310. <view class="iconfont icon-weixin3"></view>
  311. <view class="">发送给朋友</view>
  312. </button>
  313. <!-- #endif -->
  314. <!-- #ifdef MP -->
  315. <button class="item" :class="weixinStatus ? 'item3' : ''" open-type="share" hover-class='none' @click="goFriend">
  316. <view class="iconfont icon-weixin3"></view>
  317. <view class="">发送给朋友</view>
  318. </button>
  319. <!-- #endif -->
  320. <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' @click="downloadFilePromotionCode">
  321. <view class="iconfont icon-haibao"></view>
  322. <view class="">生成海报</view>
  323. </button>
  324. <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' @click="copyPwd">
  325. <view class="iconfont icon-fuzhikouling1"></view>
  326. <view>生成口令</view>
  327. </button>
  328. </view>
  329. <view class="mask" v-if="posters" @click="listenerActionClose"></view>
  330. <view class="mask_transparent" v-if="currentPage" @touchmove="hideNav" @click="hideNav()"></view>
  331. <!--口令复制结果-->
  332. <copyPassword :isCopy='isCopy' :copyUrl='copyUrl' @close="closeCopy"></copyPassword>
  333. <!-- 海报展示 -->
  334. <view class='poster-pop' v-if="posterImageStatus">
  335. <image src='../../../static/images/poster-close.png' class='close' @click="posterImageClose"></image>
  336. <image :src='posterImage'></image>
  337. <!-- #ifndef H5 -->
  338. <view class='save-poster' @click="savePosterPath">保存到手机</view>
  339. <!-- #endif -->
  340. <!-- #ifdef H5 -->
  341. <view class="keep">长按图片可以保存到手机</view>
  342. <!-- #endif -->
  343. </view>
  344. <view class='mask' v-if="posterImageStatus"></view>
  345. <canvas class="canvas" canvas-id='myCanvas' v-if="canvasStatus"></canvas>
  346. <!-- 发送给朋友图片 -->
  347. <view class="share-box" v-if="H5ShareBox">
  348. <image :src="`${domain}/static/images/share-info.png`" @click="H5ShareBox = false"></image>
  349. </view>
  350. <guaranteeTemplate ref="guartemplate" :guarantee='guarantee' :shipping='shipping'></guaranteeTemplate>
  351. <!-- 商品参数 -->
  352. <specs :specsInfo="specsInfo" @myevent="mySpecs"></specs>
  353. <!-- #ifndef H5 -->
  354. <passwordPopup></passwordPopup>
  355. <!-- #endif -->
  356. </view>
  357. </view>
  358. </template>
  359. <script>
  360. // +----------------------------------------------------------------------
  361. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  362. // +----------------------------------------------------------------------
  363. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  364. // +----------------------------------------------------------------------
  365. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  366. // +----------------------------------------------------------------------
  367. // | Author: CRMEB Team <admin@crmeb.com>
  368. // +----------------------------------------------------------------------
  369. var sysHeight = uni.getSystemInfoSync().statusBarHeight;
  370. import {
  371. getPresellProductDetail,
  372. getProductCode,
  373. collectAdd,
  374. collectDel,
  375. postCartAdd,
  376. copyPasswordApi, priceRuleApi
  377. } from '@/api/store.js';
  378. import { getUserInfo, imgToBase } from '@/api/user.js';
  379. import { getShopCoupons } from '@/api/api.js';
  380. import { getCartCounts } from '@/api/order.js';
  381. import { mapGetters } from "vuex";
  382. import { imageBase64 } from "@/api/public";
  383. import specs from '@/components/specs/index.vue';
  384. import productConSwiper from '@/components/productConSwiper';
  385. import productWindow from '@/components/productWindow';
  386. import couponListWindow from '@/components/couponListWindow';
  387. import userEvaluation from '@/components/userEvaluation';
  388. import shareRedPackets from '@/components/shareRedPackets';
  389. import { HTTP_REQUEST_URL } from '@/config/app';
  390. import { toLogin } from '@/libs/login.js';
  391. import home from '@/components/home';
  392. import { silenceBindingSpread, configMap } from "@/utils";
  393. import parser from "@/components/jyf-parser/jyf-parser";
  394. // #ifndef H5
  395. import passwordPopup from '@/components/passwordPopup';
  396. // #endif
  397. let app = getApp();
  398. import history from "@/mixins/history";
  399. import shareScence from "@/libs/spread";
  400. import guaranteeTemplate from '@/components/freightGuarantee';
  401. import copyPassword from '@/components/copyPassword';
  402. export default {
  403. components: {
  404. // #ifndef H5
  405. passwordPopup,
  406. // #endif
  407. specs,
  408. productConSwiper,
  409. productWindow,
  410. couponListWindow,
  411. userEvaluation,
  412. shareRedPackets,
  413. home,
  414. guaranteeTemplate,
  415. copyPassword,
  416. "jyf-parser": parser,
  417. },
  418. mixins: [history],
  419. data() {
  420. let that = this;
  421. return {
  422. isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
  423. sysHeight: sysHeight, //系统导航条高度
  424. //属性是否打开
  425. coupon: {
  426. 'coupon': false,
  427. list: [],
  428. },
  429. attrTxt: '选择', //属性页面提示
  430. attrValue: '', //已选属性
  431. animated: false, //购物车动画
  432. id: 0, //商品id
  433. replyCount: 0, //总评论数量
  434. reply: [], //评论列表
  435. storeInfo: {}, //商品详情
  436. presellInfo: {}, //预售详情
  437. productValue: [], //系统属性
  438. couponList: [], //优惠券
  439. cart_num: 1, //购买数量
  440. isOpen: false, //是否打开属性组件
  441. actionSheetHidden: true,
  442. posterImageStatus: false,
  443. storeImage: '', //海报产品图
  444. PromotionCode: '', //二维码图片
  445. canvasStatus: false, //海报绘图标签
  446. posterImage: '', //海报路径
  447. posterbackgd: '/static/images/posterbackgd.png',
  448. sharePacket: {
  449. isState: true, //默认不显示
  450. }, //分销商详细
  451. // uid: 0, //用户uid
  452. circular: false,
  453. autoplay: false,
  454. interval: 3000,
  455. duration: 500,
  456. clientHeight: "",
  457. systemStore: {}, //门店信息
  458. replyChance: 0,
  459. CartCount: 0,
  460. storeSelfMention: true,
  461. posters: false,
  462. weixinStatus: false,
  463. attr: {
  464. cartAttr: false,
  465. productAttr: [],
  466. productSelect: {}
  467. },
  468. description: '',
  469. navActive: 0,
  470. H5ShareBox: false, //公众号分享图片
  471. activity: [],
  472. retunTop: true, //顶部返回
  473. navH: "",
  474. navList: [],
  475. opacity: 0,
  476. scrollY: 0,
  477. topArr: [],
  478. toView: '',
  479. height: 0,
  480. heightArr: [],
  481. lock: false,
  482. scrollTop: 0,
  483. tagStyle: {
  484. img: 'width:100%;display:block;'
  485. },
  486. // 动画状态
  487. showAnimate: true,
  488. domain: HTTP_REQUEST_URL,
  489. minNum: 0,
  490. currSpid: "",
  491. codeImg: "",
  492. videoCoverImg: "",
  493. shipping: "",
  494. guarantee: [],
  495. recommend: [],
  496. guaranteeValue: "",
  497. shippingValue: "",
  498. isCopy: false,
  499. copyUrl: '',
  500. services_type: "",
  501. priceRule: "",
  502. specsInfo: {
  503. show: false,
  504. params: []
  505. },
  506. currentPage: false,
  507. homeTop: 59,
  508. selectNavList: [{
  509. name: '首页',
  510. icon: 'icon-shouye8',
  511. url: '/pages/index/index',
  512. after: 'dialog_after'
  513. },
  514. {
  515. name: '搜索',
  516. icon: 'icon-sousuo6',
  517. url: '/pages/columnGoods/goods_search_con/index',
  518. after: 'dialog_after'
  519. },
  520. {
  521. name: '购物车',
  522. icon: 'icon-gouwuche7',
  523. url: '/pages/order_addcart/order_addcart',
  524. after: 'dialog_after'
  525. },
  526. {
  527. name: '我的收藏',
  528. icon: 'icon-shoucang3',
  529. url: '/pages/users/user_goods_collection/index',
  530. after: 'dialog_after'
  531. },
  532. {
  533. name: '个人中心',
  534. icon: 'icon-gerenzhongxin1',
  535. url: '/pages/user/index'
  536. },
  537. ],
  538. };
  539. },
  540. computed: configMap(['hide_mer_status','site_name','share_pic'],mapGetters(['isLogin','uid','viewColor'])),
  541. onLoad(options) {
  542. let that = this
  543. if (options.spid) {
  544. app.globalData.spid = options.spid;
  545. that.currSpid = options.spid
  546. }
  547. var pages = getCurrentPages();
  548. if (pages.length <= 1) {
  549. that.retunTop = false
  550. }
  551. this.navH = app.globalData.navHeight+10;
  552. // #ifdef APP-PLUS
  553. that.homeTop = (that.sysHeight + 8)*2;
  554. // #endif
  555. // #ifdef H5
  556. that.homeTop = 10;
  557. // #endif
  558. this.id = options.id;
  559. if (options.id) {
  560. this.id = options.id
  561. }
  562. uni.getSystemInfo({
  563. success: function(res) {
  564. that.height = res.windowHeight
  565. //res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
  566. },
  567. });
  568. //扫码携带参数处理
  569. // #ifdef MP
  570. if (options.scene) {
  571. let value = this.$util.getUrlParams(decodeURIComponent(options.scene));
  572. if (value.id) options.id = value.id;
  573. //记录推广人uid
  574. if (value.spid) {
  575. app.globalData.spid = value.spid;
  576. that.currSpid = value.spid
  577. }
  578. }
  579. if (!options.id && !options.scene) {
  580. return this.$util.Tips({
  581. title: '缺少参数无法查看商品'
  582. }, {
  583. tab: 3,
  584. url: 1
  585. });
  586. } else {
  587. this.id = options.id
  588. }
  589. //记录推广人uid
  590. if (options.spid) app.globalData.spid = options.spid;
  591. // #endif
  592. this.getGoodsDetails();
  593. if (this.isLogin) {
  594. // this.downloadFilePromotionCode();
  595. //#ifdef H5
  596. silenceBindingSpread();
  597. //#endif
  598. }
  599. // #ifdef MP
  600. this.getHistory()
  601. // #endif
  602. shareScence(that.currSpid, that.isLogin)
  603. },
  604. onReady() {
  605. this.isNodes++;
  606. this.$nextTick(function() {
  607. // #ifdef MP
  608. const menuButton = uni.getMenuButtonBoundingClientRect();
  609. const query = uni.createSelectorQuery().in(this);
  610. query
  611. .select('#home')
  612. .boundingClientRect(data => {
  613. this.homeTop = menuButton.top * 2 + menuButton.height - data.height;
  614. })
  615. .exec();
  616. // #endif
  617. });
  618. },
  619. onShow() {},
  620. /**
  621. * 用户点击右上角分享
  622. */
  623. // #ifdef MP
  624. onShareAppMessage: function() {
  625. let that = this;
  626. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  627. return {
  628. title: that.storeInfo.store_name || '',
  629. imageUrl: that.storeInfo.image || '',
  630. path: '/pages/activity/presell_details/index?id=' + that.id + '&spid=' + that.uid,
  631. }
  632. },
  633. onShareTimeline: function() {
  634. let that = this;
  635. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  636. return {
  637. title: that.storeInfo.store_name || '',
  638. query: {
  639. id: that.id,
  640. spid: that.uid
  641. },
  642. imageUrl: that.storeInfo.image || ''
  643. }
  644. },
  645. // #endif
  646. methods: {
  647. call: function(){
  648. let that = this;
  649. if(that.storeInfo.merchant.service_phone){
  650. uni.showModal({
  651. title: '提示',
  652. content: '暂无在线客服,确定拨打客服电话:'+that.storeInfo.merchant.service_phone+'吗?',
  653. success: function(res) {
  654. if (res.confirm) {
  655. uni.makePhoneCall({
  656. // 手机号
  657. phoneNumber: that.storeInfo.merchant.service_phone,
  658. // 成功回调
  659. success: (res) => {},
  660. // 失败回调
  661. fail: (res) => {}
  662. });
  663. }
  664. }
  665. })
  666. }else{
  667. return that.$util.Tips({
  668. title: '暂无可用客服'
  669. })
  670. }
  671. },
  672. goCustomer(){
  673. let that = this;
  674. if (that.isLogin === false) {
  675. toLogin()
  676. } else {
  677. uni.navigateTo({
  678. url: `/pages/chat/customer_list/chat?mer_id=${that.storeInfo.mer_id}&uid=${that.uid}&productId=${that.storeInfo.product_id}&presellId=${that.id}`
  679. });
  680. }
  681. },
  682. goProDetail(item) {
  683. uni.redirectTo({
  684. url: '/pages/goods_details/index?id=' + item.product_id
  685. })
  686. },
  687. //下拉导航页面跳转
  688. linkPage(url) {
  689. if (['/pages/index/index', '/pages/order_addcart/order_addcart',
  690. '/pages/user/index', '/pages/plant_grass/index'
  691. ].indexOf(url) > -1) {
  692. uni.switchTab({
  693. url
  694. })
  695. } else {
  696. uni.navigateTo({
  697. url
  698. })
  699. }
  700. this.currentPage = false
  701. },
  702. boxStatus(data) {
  703. this.showAnimate = data
  704. },
  705. closeChange: function() {
  706. this.$set(this.sharePacket, 'isState', true);
  707. },
  708. /**查看运费说明*/
  709. showShip: function() {
  710. this.$refs.guartemplate.showShippingTel();
  711. },
  712. /**查看服务保障*/
  713. showGuaranee: function() {
  714. this.$refs.guartemplate.showGuaranteeTel();
  715. },
  716. /**查看商品参数*/
  717. seeSpecs() {
  718. this.specsInfo.show = true;
  719. },
  720. mySpecs() {
  721. this.$set(this.specsInfo, 'show', false);
  722. },
  723. showNav() {
  724. this.currentPage = !this.currentPage;
  725. },
  726. hideNav() {
  727. this.currentPage = false;
  728. },
  729. /*获取价格说明*/
  730. getPricrRule() {
  731. priceRuleApi(this.storeInfo.cate_id).then(res => {
  732. this.priceRule = res.data
  733. }).catch(err => {
  734. });
  735. },
  736. goActivity: function(e) {
  737. let item = e;
  738. if (item.type === "1") {
  739. uni.navigateTo({
  740. url: `/pages/activity/goods_seckill_details/index?id=${item.id}&time=${item.time}&status=1`
  741. });
  742. } else if (item.type === "2") {
  743. uni.navigateTo({
  744. url: `/pages/activity/goods_bargain_details/index?id=${item.id}&bargain=${this.uid}`
  745. });
  746. } else {
  747. uni.navigateTo({
  748. url: `/pages/activity/goods_combination_details/index?id=${item.id}`
  749. });
  750. }
  751. },
  752. /**
  753. * 打开优惠券插件
  754. */
  755. couponTap: function() {
  756. let that = this;
  757. if (that.isLogin === false) {
  758. toLogin()
  759. } else {
  760. that.$set(that.coupon, 'coupon', true);
  761. }
  762. },
  763. /**
  764. * 获取优惠券
  765. *
  766. */
  767. getCouponList() {
  768. let that = this;
  769. let goodsArr = []
  770. let couponList = [];
  771. let activeList = []
  772. getShopCoupons(that.storeInfo.mer_id).then(({
  773. data
  774. }) => {
  775. couponList = goodsArr.concat(data)
  776. that.$set(that.coupon, 'list', couponList);
  777. for (let i = 0; i < couponList.length; i++) {
  778. if (!couponList[i].issue && activeList.length < 2) {
  779. activeList.push(couponList[i]);
  780. }
  781. }
  782. console.log(that.couponList)
  783. that.$set(that, 'couponList', activeList);
  784. })
  785. },
  786. ChangCouponsUseState(index) {
  787. let that = this;
  788. that.$set(that.coupon, 'coupon', false);
  789. },
  790. /**
  791. * 购物车手动填写
  792. *
  793. */
  794. iptCartNum: function(e) {
  795. let num = parseInt(e)
  796. let stock = this.presellInfo.self_count ? parseInt(this.presellInfo.self_count) : 999999999;
  797. if (num > stock) {
  798. this.$nextTick(res => {
  799. this.$set(this.attr.productSelect, 'cart_num', stock);
  800. })
  801. } else {
  802. if (num <= 0) {
  803. this.$nextTick(res => {
  804. this.$set(this.attr.productSelect, 'cart_num', stock);
  805. })
  806. } else {
  807. this.$nextTick(res => {
  808. this.$set(this.attr.productSelect, 'cart_num', num);
  809. })
  810. }
  811. }
  812. },
  813. // 后退
  814. returns: function() {
  815. uni.navigateBack()
  816. },
  817. // 首页
  818. goHome() {
  819. uni.switchTab({
  820. url: '/pages/index/index'
  821. });
  822. },
  823. tap: function(index) {
  824. var id = "past" + index;
  825. var index = index;
  826. var that = this;
  827. this.$set(this, 'toView', id);
  828. this.$set(this, 'navActive', index);
  829. this.$set(this, 'lock', true);
  830. this.$set(this, 'scrollTop', index > 0 ? that.topArr[index] - (app.globalData.navHeight / 2) : that.topArr[index]);
  831. },
  832. scroll: function(e) {
  833. var that = this,
  834. scrollY = e.detail.scrollTop;
  835. var opacity = scrollY / 200;
  836. opacity = opacity > 1 ? 1 : opacity;
  837. that.$set(that, 'showAnimate', false);
  838. that.$set(that, 'opacity', opacity);
  839. that.$set(that, 'scrollY', scrollY);
  840. if (that.lock) {
  841. that.$set(that, 'lock', false)
  842. return;
  843. }
  844. for (var i = 0; i < that.topArr.length; i++) {
  845. if (scrollY < that.topArr[i] - (app.globalData.navHeight / 2) + that.heightArr[i]) {
  846. that.$set(that, 'navActive', i)
  847. break
  848. }
  849. }
  850. },
  851. /*
  852. *去商品详情页
  853. */
  854. goDetail(item) {
  855. if (item.activity.length == 0) {
  856. uni.redirectTo({
  857. url: '/pages/goods_details/index?id=' + item.id
  858. })
  859. return
  860. }
  861. // 砍价
  862. if (item.activity && item.activity.type == 2) {
  863. uni.redirectTo({
  864. url: `/pages/activity/goods_bargain_details/index?id=${item.activity.id}&bargain=${this.uid}`
  865. })
  866. return
  867. }
  868. // 拼团
  869. if (item.activity && item.activity.type == 3) {
  870. uni.redirectTo({
  871. url: `/pages/activity/goods_combination_details/index?id=${item.activity.id}`
  872. })
  873. return
  874. }
  875. // 秒杀
  876. if (item.activity && item.activity.type == 1) {
  877. uni.redirectTo({
  878. url: `/pages/activity/goods_seckill_details/index?id=${item.activity.id}&time=${item.activity.time}&status=1`
  879. })
  880. return
  881. }
  882. },
  883. ChangCouponsClose: function() {
  884. this.$set(this.coupon, 'coupon', false)
  885. },
  886. /**
  887. * 购物车数量加和数量减
  888. *
  889. */
  890. ChangeCartNum: function(changeValue) {
  891. //changeValue:是否 加|减
  892. //获取当前变动属性
  893. let productSelect = this.productValue[this.attrValue];
  894. //如果没有属性,赋值给商品默认库存
  895. if (productSelect === undefined && !this.attr.productAttr.length)
  896. productSelect = this.attr.productSelect;
  897. //无属性值即库存为0;不存在加减;
  898. if (productSelect === undefined) return;
  899. let stock = productSelect.stock || 999999999;
  900. let num = this.attr.productSelect;
  901. if (changeValue) {
  902. num.cart_num++;
  903. if (num.cart_num > stock) {
  904. this.$set(this.attr.productSelect, "cart_num", stock);
  905. this.$set(this, "cart_num", stock);
  906. uni.showToast({
  907. title: `购买数量不能超过库存`,
  908. icon: 'none'
  909. })
  910. }
  911. } else {
  912. num.cart_num--;
  913. if (num.cart_num < 1) {
  914. this.$set(this.attr.productSelect, "cart_num", 1);
  915. this.$set(this, "cart_num", 1);
  916. }
  917. }
  918. },
  919. attrVal(val) {
  920. this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attr_values[val.indexn]);
  921. },
  922. /**
  923. * 属性变动赋值
  924. *
  925. */
  926. ChangeAttr: function(res) {
  927. let productSelect = this.productValue[res];
  928. if (productSelect && productSelect.stock > 0) {
  929. this.$set(this.attr.productSelect, "image", productSelect.image);
  930. this.$set(this.attr.productSelect, "price", productSelect.price);
  931. if (this.presellInfo.presell_type === 2) this.$set(this.attr.productSelect, "down_price", productSelect.down_price);
  932. this.$set(this.attr.productSelect, "stock", productSelect.stock);
  933. this.$set(this.attr.productSelect, "unique", productSelect.unique);
  934. this.$set(this.attr.productSelect, "cart_num", 1);
  935. this.$set(this, "attrValue", res);
  936. this.$set(this, "attrTxt", "选择");
  937. } else {
  938. this.$set(this.attr.productSelect, "image", this.storeInfo.image);
  939. this.$set(this.attr.productSelect, "price", this.storeInfo.price);
  940. this.$set(this.attr.productSelect, "stock", 0);
  941. if (this.presellInfo.presell_type === 2) this.$set(this.attr.productSelect, "down_price", 0);
  942. this.$set(this.attr.productSelect, "unique", "");
  943. this.$set(this.attr.productSelect, "cart_num", 0);
  944. this.$set(this, "attrValue", "");
  945. this.$set(this, "attrTxt", "选择");
  946. }
  947. },
  948. /**
  949. * 领取完毕移除当前页面领取过的优惠券展示
  950. */
  951. ChangCoupons: function(e) {
  952. let coupon = e;
  953. let couponList = this.$util.ArrayRemove(this.couponList, 'id', coupon.id);
  954. this.$set(this, 'couponList', couponList);
  955. this.getCouponList();
  956. },
  957. setClientHeight: function() {
  958. let that = this;
  959. let view = uni.createSelectorQuery().in(this).select("#list0");
  960. view.fields({
  961. size: true,
  962. }, data => {
  963. that.$set(that, 'clientHeight', data.height + 20)
  964. }).exec();
  965. },
  966. /**
  967. * 获取产品详情
  968. *
  969. */
  970. getGoodsDetails: function() {
  971. uni.showLoading({
  972. title: '加载中',
  973. mask: true
  974. });
  975. let that = this;
  976. getPresellProductDetail(that.id).then(async res => {
  977. uni.hideLoading();
  978. let storeInfo = res.data.product;
  979. let presellInfo = res.data
  980. if (storeInfo.video_link && storeInfo.slider_image.length > 1) {
  981. this.videoCoverImg = storeInfo.slider_image[0]
  982. storeInfo.slider_image.splice(0, 1)
  983. } else if (storeInfo.video_link && storeInfo.slider_image.length === 1) {
  984. this.videoCoverImg = storeInfo.slider_image[0]
  985. }
  986. that.$set(that, 'presellInfo', presellInfo);
  987. that.$set(that, 'storeInfo', storeInfo);
  988. that.$set(that, 'description', storeInfo.content);
  989. that.$set(that, 'reply', res.data.product.topReply ? [res.data.product.topReply] : []);
  990. that.$set(that, 'replyCount', res.data.product.replayData && res.data.product.replayData.count);
  991. that.$set(that, 'replyChance', res.data.product.replayData && res.data.product.replayData.rate);
  992. that.$set(that.attr, 'productAttr', res.data.product.attr);
  993. that.$set(that, 'productValue', res.data.product.sku);
  994. that.$set(that.sharePacket, 'priceName', res.data.product.priceName);
  995. that.$set(that.sharePacket, 'max', res.data.product.max_extension);
  996. that.$set(that.sharePacket, 'min', res.data.product.min_extension);
  997. that.$set(that, 'systemStore', res.data.product.system_store);
  998. that.$set(that, 'storeSelfMention', res.data.product.store_self_mention);
  999. that.$set(that, 'PromotionCode', storeInfo.code_base);
  1000. that.$set(that, 'activity', res.data.product.activity ? res.data.product.activity : []);
  1001. that.$set(that, 'shippingValue', res.data.product.temp ? res.data.product.temp.name : '');
  1002. that.$set(that, 'guaranteeValue', res.data.product.guarantee ? res.data.product.guarantee.template_name : '');
  1003. that.$set(that, 'guarantee', res.data.product.guaranteeTemplate ? res.data.product.guaranteeTemplate : []);
  1004. that.$set(that, 'shipping', res.data.product.temp ? res.data.product.temp.info : '');
  1005. that.$set(that.specsInfo, 'params', res.data.product.params);
  1006. uni.setNavigationBarTitle({
  1007. title: storeInfo.store_name.substring(0, 7) + "..."
  1008. })
  1009. that.$set(that, 'storeImage', that.storeInfo.image);
  1010. // #ifdef H5
  1011. if (that.isLogin) {
  1012. that.getCartCount();
  1013. that.ShareInfo();
  1014. };
  1015. // that.downloadFilePromotionCode();
  1016. // #endif
  1017. // #ifdef APP-PLUS || MP
  1018. that.getCartCount();
  1019. // #endif
  1020. setTimeout(function() {
  1021. that.infoScroll();
  1022. }, 500);
  1023. that.DefaultSelect();
  1024. that.getPricrRule(that.storeInfo.cate_id);
  1025. that.$nextTick(function() {
  1026. that.getCouponList();
  1027. })
  1028. // 找到最小定金金额
  1029. let objs = Object.keys(res.data.product.sku);
  1030. let m = objs.map(key => res.data.product.sku[key]);
  1031. this.minNum = Math.min.apply(Math, m.map(function(o) {
  1032. return o.down_price
  1033. }))
  1034. }).catch(err => {
  1035. //状态异常返回上级页面
  1036. return that.$util.Tips({
  1037. title: err
  1038. }, {
  1039. tab: 3,
  1040. url: 1
  1041. });
  1042. })
  1043. },
  1044. infoScroll: function() {
  1045. var that = this,
  1046. topArr = [],
  1047. heightArr = [];
  1048. for (var i = 0; i < that.navList.length; i++) { //productList
  1049. //获取元素所在位置
  1050. var query = uni.createSelectorQuery().in(this);
  1051. var idView = "#past" + i;
  1052. query.select(idView).boundingClientRect();
  1053. query.exec(function(res) {
  1054. var top = res[0].top;
  1055. var height = res[0].height;
  1056. topArr.push(top);
  1057. heightArr.push(height);
  1058. that.$set(that, 'topArr', topArr);
  1059. that.$set(that, 'heightArr', heightArr);
  1060. });
  1061. };
  1062. },
  1063. /**
  1064. * 拨打电话
  1065. */
  1066. makePhone: function() {
  1067. uni.makePhoneCall({
  1068. phoneNumber: this.systemStore.phone
  1069. })
  1070. },
  1071. /**
  1072. * 默认选中属性
  1073. *
  1074. */
  1075. DefaultSelect: function() {
  1076. let productAttr = this.attr.productAttr;
  1077. let value = [];
  1078. let arr = []
  1079. let unSortArr = []
  1080. for (var key in this.productValue) {
  1081. if (this.productValue[key].stock > 0) {
  1082. value = this.attr.productAttr.length ? key.split(",") : [];
  1083. break;
  1084. }
  1085. }
  1086. for (let i = 0; i < productAttr.length; i++) {
  1087. this.$set(productAttr[i], "index", value[i]);
  1088. }
  1089. //sort();排序函数:数字-英文-汉字;
  1090. let productSelect = this.productValue[value.join(",")];
  1091. if (productSelect && productAttr.length) {
  1092. this.$set(
  1093. this.attr.productSelect,
  1094. "store_name",
  1095. this.storeInfo.store_name
  1096. );
  1097. this.$set(this.attr.productSelect, "image", productSelect.image);
  1098. this.$set(this.attr.productSelect, "price", productSelect.price);
  1099. if (this.presellInfo.presell_type === 2) this.$set(this.attr.productSelect, "down_price", productSelect.down_price);
  1100. this.$set(this.attr.productSelect, "stock", productSelect.stock);
  1101. this.$set(this.attr.productSelect, "unique", productSelect.unique);
  1102. this.$set(this, "attrValue", value.join(","));
  1103. this.$set(this, "attrTxt", "选择");
  1104. if (productSelect.stock == 0) {
  1105. this.$set(this.attr.productSelect, "cart_num", 0);
  1106. } else {
  1107. this.$set(this.attr.productSelect, "cart_num", 1);
  1108. }
  1109. } else if (!productSelect && productAttr.length) {
  1110. this.$set(
  1111. this.attr.productSelect,
  1112. "store_name",
  1113. this.storeInfo.store_name
  1114. );
  1115. this.$set(this.attr.productSelect, "image", this.storeInfo.image);
  1116. this.$set(this.attr.productSelect, "price", this.storeInfo.price);
  1117. if (this.presellInfo.presell_type === 2) this.$set(this.attr.productSelect, "down_price", storeInfo.down_price);
  1118. this.$set(this.attr.productSelect, "stock", 0);
  1119. this.$set(this.attr.productSelect, "unique", "");
  1120. this.$set(this.attr.productSelect, "cart_num", 0);
  1121. this.$set(this, "attrValue", "");
  1122. this.$set(this, "attrTxt", "选择");
  1123. } else if (!productSelect && !productAttr.length) {
  1124. this.$set(
  1125. this.attr.productSelect,
  1126. "store_name",
  1127. this.storeInfo.store_name
  1128. );
  1129. this.$set(this.attr.productSelect, "image", this.storeInfo.image);
  1130. this.$set(this.attr.productSelect, "price", this.storeInfo.price);
  1131. this.$set(this.attr.productSelect, "stock", this.storeInfo.stock);
  1132. this.$set(
  1133. this.attr.productSelect,
  1134. "unique",
  1135. this.storeInfo.unique || ""
  1136. );
  1137. this.$set(this.attr.productSelect, "cart_num", 1);
  1138. this.$set(this, "attrValue", "");
  1139. this.$set(this, "attrTxt", "选择");
  1140. } else if (productSelect && !productAttr.length) {
  1141. this.$set(
  1142. this.attr.productSelect,
  1143. "store_name",
  1144. this.storeInfo.store_name
  1145. );
  1146. this.$set(this.attr.productSelect, "image", productSelect.image);
  1147. this.$set(this.attr.productSelect, "price", productSelect.price);
  1148. this.$set(this.attr.productSelect, "stock", productSelect.stock);
  1149. this.$set(this.attr.productSelect, "unique", productSelect.unique);
  1150. if (this.presellInfo.presell_type === 2) this.$set(this.attr.productSelect, "down_price", productSelect.down_price);
  1151. this.$set(this, "attrValue", value.join(","));
  1152. this.$set(this, "attrTxt", "选择");
  1153. if (productSelect.stock == 0) {
  1154. this.$set(this.attr.productSelect, "cart_num", 0);
  1155. } else {
  1156. this.$set(this.attr.productSelect, "cart_num", 1);
  1157. }
  1158. }
  1159. },
  1160. /*
  1161. * 单独购买
  1162. */
  1163. openAlone: function() {
  1164. uni.navigateTo({
  1165. url: `/pages/goods_details/index?id=${this.storeInfo.old_product_id}`
  1166. })
  1167. },
  1168. /**
  1169. *
  1170. *
  1171. * 收藏商品
  1172. */
  1173. setCollect: function() {
  1174. if (this.isLogin === false) {
  1175. toLogin()
  1176. } else {
  1177. let that = this;
  1178. if (this.storeInfo.isRelation) {
  1179. collectDel({
  1180. type: 2,
  1181. type_id: this.presellInfo.product_presell_id
  1182. }).then(res => {
  1183. that.$util.Tips({
  1184. title: '已取消收藏'
  1185. });
  1186. that.$set(that.storeInfo, 'isRelation', !that.storeInfo.isRelation);
  1187. })
  1188. } else {
  1189. collectAdd({
  1190. type_id: this.presellInfo.product_presell_id,
  1191. type: 2
  1192. }).then(res => {
  1193. that.$util.Tips({
  1194. title: '收藏成功'
  1195. });
  1196. that.$set(that.storeInfo, 'isRelation', !that.storeInfo.isRelation);
  1197. })
  1198. }
  1199. }
  1200. },
  1201. /**
  1202. * 打开属性插件
  1203. */
  1204. selecAttr: function() {
  1205. this.$set(this.attr, 'cartAttr', true);
  1206. this.$set(this, 'isOpen', true);
  1207. },
  1208. onMyEvent: function() {
  1209. this.$set(this.attr, 'cartAttr', false);
  1210. this.$set(this, 'isOpen', false);
  1211. },
  1212. /**
  1213. * 打开属性加入购物车
  1214. *
  1215. */
  1216. joinCart: function(e) {
  1217. //是否登录
  1218. if (this.isLogin === false) {
  1219. toLogin()
  1220. } else {
  1221. this.goCat();
  1222. }
  1223. },
  1224. /*
  1225. * 加入购物车
  1226. */
  1227. goCat: function(news) {
  1228. let that = this,
  1229. productSelect = that.productValue[this.attrValue];
  1230. //打开属性
  1231. if (that.attrValue) {
  1232. //默认选中了属性,但是没有打开过属性弹窗还是自动打开让用户查看默认选中的属性
  1233. that.attr.cartAttr = !that.isOpen ? true : false;
  1234. } else {
  1235. if (that.isOpen) that.attr.cartAttr = true;
  1236. else that.attr.cartAttr = !that.attr.cartAttr;
  1237. }
  1238. //只有关闭属性弹窗时进行加入购物车
  1239. if (that.attr.cartAttr === true && that.isOpen === false)
  1240. return (that.isOpen = true);
  1241. //如果有属性,没有选择,提示用户选择
  1242. if (
  1243. that.attr.productAttr.length &&
  1244. that.isOpen === true &&
  1245. productSelect.stock == 0
  1246. )
  1247. return that.$util.Tips({
  1248. title: "产品库存不足,请选择其它"
  1249. });
  1250. let q = {
  1251. // productId: that.id,
  1252. // cartNum: that.attr.productSelect.cart_num,
  1253. is_new: 1,
  1254. // uniqueId: that.attr.productSelect !== undefined ?
  1255. // that.attr.productSelect.unique : ""
  1256. product_id: that.id,
  1257. cart_num: that.attr.productSelect.cart_num,
  1258. product_attr_unique: that.attr.productSelect !== undefined ? that.attr.productSelect.unique : "",
  1259. product_type: 2,
  1260. spread_id: this.currSpid
  1261. };
  1262. postCartAdd(q)
  1263. .then(function(res) {
  1264. that.isOpen = false;
  1265. that.attr.cartAttr = false;
  1266. if (news) {
  1267. uni.navigateTo({
  1268. url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id
  1269. });
  1270. } else {
  1271. that.$util.Tips({
  1272. title: "添加购物车成功",
  1273. success: () => {
  1274. that.getCartCount(true);
  1275. }
  1276. });
  1277. }
  1278. })
  1279. .catch(res => {
  1280. that.isOpen = false;
  1281. return that.$util.Tips({
  1282. title: res
  1283. });
  1284. });
  1285. },
  1286. /**
  1287. * 获取购物车数量
  1288. * @param boolean 是否展示购物车动画和重置属性
  1289. */
  1290. getCartCount: function(isAnima) {
  1291. let that = this;
  1292. const isLogin = that.isLogin;
  1293. if (isLogin) {
  1294. getCartCounts().then(res => {
  1295. that.CartCount = res.data[0].count;
  1296. //加入购物车后重置属性
  1297. if (isAnima) {
  1298. that.animated = true;
  1299. setTimeout(function() {
  1300. that.animated = false;
  1301. }, 500);
  1302. }
  1303. });
  1304. }
  1305. },
  1306. /**
  1307. * 立即购买
  1308. */
  1309. goBuy: function(e) {
  1310. if (this.isLogin === false) {
  1311. toLogin()
  1312. } else {
  1313. this.goCat(true);
  1314. }
  1315. },
  1316. /**
  1317. * 分享打开
  1318. *
  1319. */
  1320. listenerActionSheet: function() {
  1321. // #ifdef H5
  1322. if (this.$wechat.isWeixin() === true) {
  1323. this.weixinStatus = true;
  1324. }
  1325. // #endif
  1326. this.posters = true;
  1327. },
  1328. // 分享关闭
  1329. listenerActionClose: function() {
  1330. this.posters = false;
  1331. },
  1332. //隐藏海报
  1333. posterImageClose: function() {
  1334. this.posterImageStatus = false
  1335. this.canvasStatus = false
  1336. },
  1337. //替换安全域名
  1338. setDomain: function(url) {
  1339. url = url ? url.toString() : '';
  1340. //本地调试打开,生产请注销
  1341. if (url.indexOf("https://") > -1) return url;
  1342. else return url.replace('http://', 'https://');
  1343. },
  1344. /**
  1345. * 获取产品分销二维码
  1346. * @param function successFn 下载完成回调
  1347. *
  1348. */
  1349. downloadFilePromotionCode: function(successFn) {
  1350. let that = this;
  1351. let type;
  1352. // #ifndef MP
  1353. type = 'wechat'
  1354. // #endif
  1355. // #ifdef MP
  1356. type = 'routine'
  1357. // #endif
  1358. getProductCode(that.id, {
  1359. type: type,
  1360. product_type: 2
  1361. }).then(async res => {
  1362. that.codeImg = res.data.url;
  1363. that.goPoster();
  1364. }).catch(err => {
  1365. //替换
  1366. that.$util.Tips({
  1367. title: err
  1368. });
  1369. that.posters = false;
  1370. that.$set(that, 'PromotionCode', '');
  1371. });
  1372. },
  1373. // 小程序关闭分享弹窗;
  1374. goFriend: function() {
  1375. this.posters = false;
  1376. },
  1377. async imgToBase(url) {
  1378. let res = await imgToBase({
  1379. image: url
  1380. })
  1381. return res.data.image
  1382. },
  1383. /**
  1384. * 生成海报
  1385. */
  1386. async goPoster() {
  1387. if (this.posterImage) {
  1388. this.posterImageStatus = true
  1389. this.posters = false
  1390. return
  1391. }
  1392. let that = this;
  1393. let arr2
  1394. that.posters = false;
  1395. that.$set(that, 'canvasStatus', true);
  1396. uni.showLoading({
  1397. title: '海报生成中',
  1398. mask: true
  1399. });
  1400. uni.hideLoading();
  1401. // #ifdef MP || APP-PLUS
  1402. arr2 = [that.posterbackgd, await that.fileStoreImage(that.storeImage), await that.fileStoreImage(
  1403. that.codeImg), await that.fileStoreImage(that.share_pic)];
  1404. // #endif
  1405. // #ifdef H5
  1406. arr2 = [that.posterbackgd, await this.imgToBase(that.storeImage), await this.imgToBase(this.codeImg), await that.imgToBase(that.share_pic)];
  1407. // #endif
  1408. that.$util.goodsPosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, that.site_name, that.storeInfo.ot_price, function(tempFilePath) {
  1409. that.$set(that, 'posterImage', tempFilePath);
  1410. that.$set(that, 'posterImageStatus', true);
  1411. that.$set(that, 'canvasStatus', false);
  1412. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  1413. }, (err) => {
  1414. that.$util.Tips({
  1415. title: err
  1416. });
  1417. uni.hideLoading();
  1418. that.$set(that, 'canvasStatus', false);
  1419. });
  1420. },
  1421. /*
  1422. * 保存到手机相册
  1423. */
  1424. savePosterPath: function() {
  1425. let that = this;
  1426. // #ifdef MP
  1427. uni.getSetting({
  1428. success(res) {
  1429. if (!res.authSetting['scope.writePhotosAlbum']) {
  1430. uni.authorize({
  1431. scope: 'scope.writePhotosAlbum',
  1432. success() {
  1433. uni.saveImageToPhotosAlbum({
  1434. filePath: that.posterImage,
  1435. success: function(res) {
  1436. that.posterImageClose();
  1437. that.$util.Tips({
  1438. title: '保存成功',
  1439. icon: 'success'
  1440. });
  1441. },
  1442. fail: function(res) {
  1443. that.$util.Tips({
  1444. title: '保存失败'
  1445. });
  1446. }
  1447. })
  1448. }
  1449. })
  1450. } else {
  1451. uni.saveImageToPhotosAlbum({
  1452. filePath: that.posterImage,
  1453. success: function(res) {
  1454. that.posterImageClose();
  1455. that.$util.Tips({
  1456. title: '保存成功',
  1457. icon: 'success'
  1458. });
  1459. },
  1460. fail: function(res) {
  1461. that.$util.Tips({
  1462. title: '保存失败'
  1463. });
  1464. },
  1465. })
  1466. }
  1467. }
  1468. })
  1469. // #endif
  1470. // #ifdef APP-PLUS
  1471. uni.saveImageToPhotosAlbum({
  1472. filePath: that.posterImage,
  1473. success: function(res) {
  1474. that.posterImageClose();
  1475. that.$util.Tips({
  1476. title: '保存成功',
  1477. icon: 'success'
  1478. });
  1479. },
  1480. fail: function(res) {
  1481. that.$util.Tips({
  1482. title: '保存失败'
  1483. });
  1484. },
  1485. })
  1486. // #endif
  1487. },
  1488. //#ifdef H5
  1489. ShareInfo() {
  1490. let data = this.storeInfo;
  1491. let href = location.href;
  1492. if (this.$wechat.isWeixin()) {
  1493. getUserInfo().then(res => {
  1494. href =
  1495. href.indexOf("?") === -1 ?
  1496. href + "?spid=" + res.data.uid :
  1497. href + "&spid=" + res.data.uid;
  1498. let configAppMessage = {
  1499. desc: data.store_info,
  1500. title: data.store_name,
  1501. link: href,
  1502. imgUrl: data.image
  1503. };
  1504. this.$wechat.wechatEvevt([
  1505. "updateAppMessageShareData",
  1506. "updateTimelineShareData",
  1507. "onMenuShareAppMessage",
  1508. "onMenuShareTimeline"
  1509. ], configAppMessage).then(res => {
  1510. console.log(res, '=============================>>WXAPI');
  1511. }).catch(err => {
  1512. console.log(err);
  1513. })
  1514. });
  1515. }
  1516. },
  1517. //#endif
  1518. //图片转符合安全域名路径
  1519. fileStoreImage(url) {
  1520. if(url){
  1521. // #ifdef MP
  1522. let ishttps = url.split('//')[0] == 'https:'
  1523. if (!ishttps) {
  1524. url = 'https://'+url.split('//')[1]
  1525. }
  1526. // #endif
  1527. return new Promise((resolve, reject) => {
  1528. let that = this;
  1529. uni.downloadFile({
  1530. url: url,
  1531. success: function(res) {
  1532. resolve(res.tempFilePath);
  1533. },
  1534. fail: function(error) {
  1535. return that.$util.Tips({
  1536. title: '请检查图片地址是否在合法域名内'
  1537. });
  1538. }
  1539. });
  1540. })
  1541. }
  1542. },
  1543. //复制口令
  1544. copyPwd(){
  1545. let that = this;
  1546. copyPasswordApi({
  1547. id: that.id,
  1548. product_type: 2
  1549. }).then(async res => {
  1550. that.copyUrl = res.data.str;
  1551. that.posters = false
  1552. that.isCopy = true;
  1553. })
  1554. },
  1555. closeCopy(){
  1556. this.isCopy = false
  1557. },
  1558. },
  1559. }
  1560. </script>
  1561. <style scoped lang="scss">
  1562. .font-bg-red{
  1563. position: relative;
  1564. top: -3rpx;
  1565. background-color: var(--view-theme);
  1566. }
  1567. .p-color {
  1568. color: var(--view-priceColor);
  1569. }
  1570. .t-color {
  1571. color: var(--view-theme);
  1572. }
  1573. .product-con .wrapper .coupon .activity {
  1574. border: 1px solid var(--view-priceColor);
  1575. color: var(--view-priceColor);
  1576. }
  1577. .product-con .wrapper .coupon .activity::before,.product-con .wrapper .coupon .activity::after{
  1578. border: 1px solid var(--view-priceColor);
  1579. }
  1580. .product-con .wrapper .coupon .activity::before{
  1581. border-left-color: #ffffff;
  1582. }
  1583. .product-con .wrapper .coupon .activity::after{
  1584. border-right-color: #ffffff;
  1585. }
  1586. .product-con .attribute .params{
  1587. margin-right: 20rpx;
  1588. font-size: 28rpx;
  1589. color: #282828;
  1590. &:nth-child(2){
  1591. margin-right: 0;
  1592. }
  1593. }
  1594. .product-con .nav {
  1595. background-image: url('data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QN/aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MiA3OS4xNjA5MjQsIDIwMTcvMDcvMTMtMDE6MDY6MzkgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6NDNlZTU0ZDMtNjEwZS03ZjQ4LWEwODgtNTZlMTZiNzI3NTQwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjI1NEI2MDUyM0ZDMjExRTk5OTg1REI1OUM1NjNEMUZCIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjI1NEI2MDUxM0ZDMjExRTk5OTg1REI1OUM1NjNEMUZCIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE4IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUyMDIzNWNmLTIwNGYtOTQ0My05YTBiLWNmMmZlMTJmMDk3NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0M2VlNTRkMy02MTBlLTdmNDgtYTA4OC01NmUxNmI3Mjc1NDAiLz4gPC9yZGY6RGVzY3JpcHRpb24+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');
  1596. background-repeat: no-repeat;
  1597. background-size: 100% 100%;
  1598. width: 100%;
  1599. height: 100rpx;
  1600. padding: 0 30rpx;
  1601. box-sizing: border-box;
  1602. }
  1603. .product-con .coupon {
  1604. padding: 0;
  1605. }
  1606. .product-con .nav .money {
  1607. font-size: 28rpx;
  1608. color: #fff;
  1609. }
  1610. .product-con .nav .money .num {
  1611. font-size: 48rpx;
  1612. }
  1613. .product-con .nav .money .y-money {
  1614. font-size: 26rpx;
  1615. margin-left: 10rpx;
  1616. text-decoration: line-through;
  1617. }
  1618. .product-con .nav .time {
  1619. font-size: 20rpx;
  1620. color: #fff;
  1621. text-align: center;
  1622. }
  1623. .product-con .nav .time .timeCon {
  1624. margin-top: 10rpx;
  1625. }
  1626. .product-con .nav .time .timeCon .num {
  1627. padding: 0 7rpx;
  1628. font-size: 22rpx;
  1629. color: #ff3d3d;
  1630. background-color: #fff;
  1631. border-radius: 2rpx;
  1632. }
  1633. .product-con .nav .timeState {
  1634. font-size: 28RPX;
  1635. color: #FFF;
  1636. }
  1637. .product-con .nav .iconfont {
  1638. color: #fff;
  1639. font-size: 30rpx;
  1640. margin-left: 20rpx;
  1641. }
  1642. .product-con .wrapper {
  1643. padding: 32rpx 32rpx 0;
  1644. width: 100%;
  1645. box-sizing: border-box;
  1646. }
  1647. .product-con .price_text {
  1648. display: inline-block;
  1649. width: 90rpx;
  1650. height: 30rpx;
  1651. background: url(~pages/activity/static/images/presell_text.png);
  1652. background-size: 100%;
  1653. color: #FD6523;
  1654. font-size: 22rpx;
  1655. line-height: 30rpx;
  1656. text-align: center;
  1657. margin-left: 27rpx;
  1658. position: relative;
  1659. top: -8rpx;
  1660. }
  1661. .product-con .attribute .atterTxt {
  1662. overflow: hidden;
  1663. white-space: nowrap;
  1664. text-overflow: ellipsis;
  1665. display: inline;
  1666. width: 400rpx;
  1667. }
  1668. .product-con .attribute .atterTxt1{
  1669. color: #282828;
  1670. &.hasAttr{
  1671. &:after{
  1672. content: "";
  1673. display: inline-block;
  1674. position: relative;
  1675. top: -6rpx;
  1676. margin: 0 6rpx;
  1677. width: 5rpx;
  1678. height: 5rpx;
  1679. background-color: #282828;
  1680. border-radius: 100%;
  1681. }
  1682. &:last-child{
  1683. &:after{
  1684. display: none;
  1685. }
  1686. }
  1687. }
  1688. }
  1689. .product-con .guaranteeAttr{
  1690. display: inline-block;
  1691. width: 560rpx;
  1692. overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
  1693. }
  1694. .product-con .wrapper .introduce {
  1695. margin: 0;
  1696. padding-right: 40rpx;
  1697. position: relative;
  1698. margin-top: 20rpx;
  1699. .icon-fenxiang {
  1700. position: absolute;
  1701. top: 0;
  1702. right: 0;
  1703. }
  1704. }
  1705. .product-con .wrapper .introduce .infor {
  1706. width: 570rpx;
  1707. }
  1708. .product-con .wrapper .introduce .iconfont {
  1709. font-size: 37rpx;
  1710. color: #515151;
  1711. }
  1712. .product-con .wrapper .label {
  1713. margin: 18rpx 0 0 0;
  1714. font-size: 24rpx;
  1715. color: #82848f;
  1716. }
  1717. .product-con .wrapper .label .stock {
  1718. width: 255rpx;
  1719. margin-right: 28rpx;
  1720. }
  1721. .product-con .presell_count {
  1722. margin-top: 20rpx;
  1723. font-size: 26rpx;
  1724. color: #999999;
  1725. .presell_time {
  1726. margin: 8rpx 0 4rpx;
  1727. .area_line {
  1728. display: inline-block;
  1729. margin: 0 6rpx;
  1730. }
  1731. }
  1732. .icon-shijian1 {
  1733. display: inline-block;
  1734. margin-right: 4rpx;
  1735. }
  1736. }
  1737. .product-con .presell_process {
  1738. margin-top: 20rpx;
  1739. height: 110rpx;
  1740. padding: 4rpx 32rpx 32rpx;
  1741. .process_count {
  1742. display: inline-block;
  1743. position: relative;
  1744. top: 24rpx;
  1745. left: 40rpx;
  1746. }
  1747. .process_line {
  1748. width: 414rpx;
  1749. height: 2rpx;
  1750. background: #CCCCCC;
  1751. }
  1752. .text_line {
  1753. display: inline-block;
  1754. width: 25%;
  1755. color: #CCCCCC;
  1756. margin-top: 6rpx;
  1757. position: relative;
  1758. &::after {
  1759. content: "";
  1760. display: inline-block;
  1761. width: 14rpx;
  1762. height: 14rpx;
  1763. background: #CCCCCC;
  1764. border-radius: 100%;
  1765. position: absolute;
  1766. top: -14rpx;
  1767. }
  1768. &.text_line1 {
  1769. text-align: left;
  1770. color: var(--view-theme);
  1771. &::after {
  1772. background: var(--view-theme);
  1773. left: 0;
  1774. }
  1775. text {
  1776. margin-left: -20rpx
  1777. }
  1778. }
  1779. &.text_line3 {
  1780. text-align: right;
  1781. &::after {
  1782. right: 0;
  1783. }
  1784. text {
  1785. margin-right: -20rpx
  1786. }
  1787. }
  1788. &.text_line2 {
  1789. width: 50%;
  1790. text-align: center;
  1791. &::after {
  1792. left: 50%;
  1793. margin-left: -4rpx;
  1794. }
  1795. }
  1796. }
  1797. }
  1798. .presell-content-height{
  1799. height: 160rpx;
  1800. height: calc(160rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1801. height: calc(160rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1802. }
  1803. .activity_pin {
  1804. width: auto;
  1805. height: 44rpx;
  1806. line-height: 44rpx;
  1807. background: linear-gradient(90deg, rgba(233, 51, 35, 1) 0%, rgba(250, 101, 20, 1) 100%);
  1808. opacity: 1;
  1809. border-radius: 22rpx;
  1810. padding: 0 15rpx;
  1811. margin-left: 19rpx;
  1812. }
  1813. .activity_miao {
  1814. width: auto;
  1815. height: 44rpx;
  1816. line-height: 44rpx;
  1817. padding: 0 15rpx;
  1818. background: linear-gradient(90deg, rgba(250, 102, 24, 1) 0%, rgba(254, 161, 15, 1) 100%);
  1819. opacity: 1;
  1820. border-radius: 22rpx;
  1821. margin-left: 19rpx;
  1822. }
  1823. .iconfonts {
  1824. color: #fff !important;
  1825. font-size: 28rpx;
  1826. }
  1827. .activity_title {
  1828. font-size: 24rpx;
  1829. color: #fff;
  1830. }
  1831. .activity_kan {
  1832. width: auto;
  1833. height: 44rpx;
  1834. line-height: 44rpx;
  1835. padding: 0 15rpx;
  1836. background: linear-gradient(90deg, rgba(254, 159, 15, 1) 0%, rgba(254, 178, 15, 1) 100%);
  1837. opacity: 1;
  1838. border-radius: 22rpx;
  1839. margin-left: 19rpx;
  1840. }
  1841. .mask {
  1842. z-index: 300 !important;
  1843. }
  1844. .head-bar {
  1845. background: #fff;
  1846. }
  1847. .generate-posters {
  1848. width: 100%;
  1849. height: 170rpx;
  1850. background-color: #fff;
  1851. position: fixed;
  1852. left: 0;
  1853. bottom: 0;
  1854. z-index: 388;
  1855. transform: translate3d(0, 100%, 0);
  1856. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1857. border-top: 1px solid #eee;
  1858. }
  1859. .generate-posters.on {
  1860. transform: translate3d(0, 0, 0);
  1861. }
  1862. .generate-posters .item {
  1863. /* #ifdef H5 */
  1864. flex: 50%;
  1865. /* #endif */
  1866. /* #ifndef H5 */
  1867. flex: 33.33%;
  1868. /* #endif */
  1869. text-align: center;
  1870. font-size: 30rpx;
  1871. &.item3{
  1872. flex: 33.33%;
  1873. }
  1874. }
  1875. .generate-posters .item .iconfont {
  1876. font-size: 80rpx;
  1877. color: #5eae72;
  1878. }
  1879. .generate-posters .item .iconfont.icon-haibao {
  1880. color: #5391f1;
  1881. }
  1882. .generate-posters .item .iconfont.icon-fuzhikouling1 {
  1883. color: #FBB324;
  1884. }
  1885. .product-con .mask {
  1886. z-index: 88;
  1887. }
  1888. .footer_count {
  1889. position: fixed;
  1890. left: 0;
  1891. bottom: 0;
  1892. width: 100%;
  1893. background-color: #fff;
  1894. z-index: 277;
  1895. .presell_desc {
  1896. height: 60rpx;
  1897. line-height: 60rpx;
  1898. background: #FFF7E5;
  1899. color: #FF7F00;
  1900. font-size: 22rpx;
  1901. padding: 0 30rpx;
  1902. }
  1903. }
  1904. .product-con .footer {
  1905. height: 100rpx;
  1906. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1907. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1908. padding: 0 30rpx 0 40rpx;
  1909. box-sizing: border-box;
  1910. border-top: 1px solid #f0f0f0;
  1911. &.footpl{
  1912. padding-left: 70rpx;
  1913. }
  1914. &.noborder {
  1915. border-top: none;
  1916. }
  1917. }
  1918. .product-con .footer .item {
  1919. font-size: 18rpx;
  1920. color: #666;
  1921. text-align: center;
  1922. }
  1923. .product-con .footer .item .iconfont {
  1924. text-align: center;
  1925. font-size: 40rpx;
  1926. }
  1927. .product-con .footer .item .iconfont.icon-shoucang1 {
  1928. color: var(--view-priceColor);
  1929. }
  1930. .product-con .footer .item .iconfont.icon-gouwuche1 {
  1931. font-size: 40rpx;
  1932. position: relative;
  1933. }
  1934. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  1935. color: #fff;
  1936. position: absolute;
  1937. font-size: 18rpx;
  1938. padding: 2rpx 8rpx 3rpx;
  1939. border-radius: 200rpx;
  1940. top: -10rpx;
  1941. right: -10rpx;
  1942. }
  1943. .product-con .footer .bnt {
  1944. width: 444rpx;
  1945. height: 76rpx;
  1946. }
  1947. .product-con .footer .bnt .bnts {
  1948. width: 444rpx;
  1949. text-align: center;
  1950. line-height: 76rpx;
  1951. color: #fff;
  1952. font-size: 28rpx;
  1953. }
  1954. .product-con .footer .bnt .joinCart {
  1955. border-radius: 50rpx 0 0 50rpx;
  1956. background-image: linear-gradient(to right, #fea10f 0%, #fa8013 100%);
  1957. }
  1958. .product-con .footer .bnt .buy {
  1959. border-radius: 50rpx;
  1960. background-image: linear-gradient(to right, #FDA923 0%, #FD6523 100%);
  1961. }
  1962. .product-con .footer .bnt .joinCart[disabled] {
  1963. background: #bbb;
  1964. }
  1965. .product-con .footer .bnt .buy[disabled] {
  1966. background: #bbb;
  1967. }
  1968. .product-con .superior {
  1969. background-color: #fff;
  1970. margin-top: 20rpx;
  1971. padding-bottom: 10rpx;
  1972. }
  1973. .product-con .superior .title {
  1974. height: 98rpx;
  1975. }
  1976. .product-con .superior .title image {
  1977. width: 30rpx;
  1978. height: 30rpx;
  1979. }
  1980. .product-con .superior .title .titleTxt {
  1981. margin: 0 20rpx;
  1982. font-size: 30rpx;
  1983. background-image: linear-gradient(to right, #f57a37 0%, #f21b07 100%);
  1984. -webkit-background-clip: text;
  1985. -webkit-text-fill-color: transparent;
  1986. }
  1987. .product-con .superior .slider-banner {
  1988. width: 690rpx;
  1989. margin: 0 auto;
  1990. position: relative;
  1991. }
  1992. .product-con .superior .slider-banner swiper {
  1993. height: 100%;
  1994. width: 100%;
  1995. }
  1996. .product-con .superior .slider-banner swiper-item {
  1997. height: 100%;
  1998. }
  1999. .product-con .superior .slider-banner .list {
  2000. width: 100%;
  2001. }
  2002. .product-con .superior .slider-banner .list .item {
  2003. width: 215rpx;
  2004. margin: 0 22rpx 30rpx 0;
  2005. font-size: 26rpx;
  2006. }
  2007. .product-con .superior .slider-banner .list .item:nth-of-type(3n) {
  2008. margin-right: 0;
  2009. }
  2010. .product-con .superior .slider-banner .list .item .pictrue {
  2011. position: relative;
  2012. width: 100%;
  2013. height: 215rpx;
  2014. }
  2015. .product-con .superior .slider-banner .list .item .pictrue image {
  2016. width: 100%;
  2017. height: 100%;
  2018. border-radius: 6rpx;
  2019. }
  2020. .product-con .superior .slider-banner .list .item .name {
  2021. color: #282828;
  2022. margin-top: 12rpx;
  2023. }
  2024. .product-con .superior .slider-banner .swiper-pagination-bullet {
  2025. background-color: #999;
  2026. }
  2027. .product-con .superior .slider-banner .swiper-pagination-bullet-active {
  2028. background-color: #e93323;
  2029. }
  2030. button {
  2031. padding: 0;
  2032. margin: 0;
  2033. line-height: normal;
  2034. background-color: #fff;
  2035. }
  2036. button::after {
  2037. border: 0;
  2038. }
  2039. action-sheet-item {
  2040. padding: 0;
  2041. height: 240rpx;
  2042. align-items: center;
  2043. display: flex;
  2044. }
  2045. .contact {
  2046. font-size: 16px;
  2047. width: 50%;
  2048. background-color: #fff;
  2049. padding: 8rpx 0;
  2050. border-radius: 0;
  2051. margin: 0;
  2052. line-height: 2;
  2053. }
  2054. .contact::after {
  2055. border: none;
  2056. }
  2057. .action-sheet {
  2058. font-size: 17px;
  2059. line-height: 1.8;
  2060. width: 50%;
  2061. position: absolute;
  2062. top: 0;
  2063. right: 0;
  2064. padding: 25rpx 0;
  2065. }
  2066. .canvas {
  2067. z-index: 300;
  2068. width: 750px;
  2069. height: 1190px;
  2070. }
  2071. .poster-pop {
  2072. width: 600rpx;
  2073. height: 897rpx;
  2074. position: fixed;
  2075. left: 50%;
  2076. transform: translateX(-50%);
  2077. z-index: 399;
  2078. top: 50%;
  2079. margin-top: -500rpx;
  2080. }
  2081. .poster-pop image {
  2082. width: 100%;
  2083. height: 100%;
  2084. display: block;
  2085. }
  2086. .poster-pop .close {
  2087. width: 46rpx;
  2088. height: 75rpx;
  2089. position: fixed;
  2090. right: 0;
  2091. top: -73rpx;
  2092. display: block;
  2093. }
  2094. .poster-pop .save-poster {
  2095. background-color: #df2d0a;
  2096. font-size: :22rpx;
  2097. color: #fff;
  2098. text-align: center;
  2099. height: 76rpx;
  2100. line-height: 76rpx;
  2101. width: 100%;
  2102. border-radius: 43rpx;
  2103. margin-top: 20rpx;
  2104. }
  2105. .poster-pop .keep {
  2106. color: #fff;
  2107. text-align: center;
  2108. font-size: 25rpx;
  2109. margin-top: 10rpx;
  2110. }
  2111. .mask {
  2112. position: fixed;
  2113. top: 0;
  2114. left: 0;
  2115. right: 0;
  2116. bottom: 0;
  2117. background-color: rgba(0, 0, 0, 0.6);
  2118. z-index: 9;
  2119. }
  2120. .pictrue_log {
  2121. width: 80upx;
  2122. height: 40upx;
  2123. border-radius: 6upx 0 12upx 0;
  2124. line-height: 40upx;
  2125. font-size: 24upx;
  2126. }
  2127. .pictrue_log_class {
  2128. z-index: 3;
  2129. background: -webkit-gradient(linear, left top, right top, from(rgba(246, 122, 56, 1)), to(rgba(241, 27, 9, 1)));
  2130. background: linear-gradient(90deg, rgba(246, 122, 56, 1) 0%, rgba(241, 27, 9, 1) 100%);
  2131. opacity: 1;
  2132. position: absolute;
  2133. top: 0;
  2134. left: 0;
  2135. color: #fff;
  2136. text-align: center;
  2137. }
  2138. .navbar .header {
  2139. height: 96rpx;
  2140. font-size: 30rpx;
  2141. color: #050505;
  2142. background-color: #fff;
  2143. /* #ifdef MP */
  2144. padding-right: 95rpx;
  2145. /* #endif */
  2146. }
  2147. .navbar .header .item {
  2148. position: relative;
  2149. margin: 0 25rpx;
  2150. }
  2151. .navbar .header .item.on:before {
  2152. position: absolute;
  2153. width: 60rpx;
  2154. height: 5rpx;
  2155. background-repeat: no-repeat;
  2156. content: "";
  2157. background-image: linear-gradient(to right, #ff3366 0%, #ff6533 100%);
  2158. bottom: -10rpx;
  2159. left: 50%;
  2160. margin-left: -28rpx;
  2161. }
  2162. .navbar {
  2163. position: fixed;
  2164. background-color: #fff;
  2165. top: 0;
  2166. left: 0;
  2167. z-index: 99;
  2168. width: 100%;
  2169. }
  2170. .navbar .navbarH {
  2171. position: relative;
  2172. }
  2173. .navbar .navbarH .navbarCon {
  2174. position: absolute;
  2175. bottom: 0;
  2176. height: 100rpx;
  2177. width: 100%;
  2178. }
  2179. .share-box {
  2180. z-index: 1000;
  2181. position: fixed;
  2182. left: 0;
  2183. top: 0;
  2184. width: 100%;
  2185. height: 100%;
  2186. image {
  2187. width: 100%;
  2188. height: 100%;
  2189. }
  2190. }
  2191. .store-wrapper {
  2192. margin-top: 20rpx;
  2193. background-color: #fff;
  2194. .store-hd {
  2195. padding: 30rpx;
  2196. border-bottom: 1px solid #F5F5F5;
  2197. .store-info {
  2198. position: relative;
  2199. display: flex;
  2200. .logo {
  2201. width: 86rpx;
  2202. height: 86rpx;
  2203. image {
  2204. width: 86rpx;
  2205. height: 86rpx;
  2206. border-radius: 6rpx;
  2207. }
  2208. }
  2209. .info {
  2210. display: flex;
  2211. flex-direction: column;
  2212. justify-content: center;
  2213. margin-left: 20rpx;
  2214. .name {
  2215. font-size: 28rpx;
  2216. color: #282828;
  2217. font-weight: bold;
  2218. }
  2219. .txt {
  2220. margin-top: 8rpx;
  2221. color: #666666;
  2222. font-size: 22rpx;
  2223. }
  2224. }
  2225. .link {
  2226. position: absolute;
  2227. right: 0;
  2228. top: 50%;
  2229. transform: translateY(-50%);
  2230. display: flex;
  2231. align-items: center;
  2232. justify-content: center;
  2233. width: 114rpx;
  2234. height: 50rpx;
  2235. background-image: linear-gradient(-90deg, var(--view-bntColor21) 0%, var(--view-bntColor21) 100%);
  2236. border-radius: 25rpx;
  2237. color: #fff;
  2238. }
  2239. }
  2240. .score-wrapper {
  2241. display: flex;
  2242. justify-content: space-between;
  2243. margin-top: 30rpx;
  2244. .item {
  2245. color: #948D8C;
  2246. font-size: 26rpx;
  2247. text {
  2248. margin-left: 10rpx;
  2249. color: var(--view-priceColor);
  2250. }
  2251. }
  2252. }
  2253. }
  2254. .con-box {
  2255. padding: 20rpx 0 20rpx 30rpx;
  2256. .title {
  2257. font-size: 28rpx;
  2258. color: #282828;
  2259. margin-bottom: 20rpx;
  2260. }
  2261. .img-box {
  2262. display: flex;
  2263. .img-item {
  2264. width: 206rpx;
  2265. margin-right: 15rpx;
  2266. /deep/image,/deep/uni-image,/deep/.easy-loadimage {
  2267. width: 206rpx;
  2268. height: 206rpx;
  2269. border-radius: 16rpx;
  2270. }
  2271. .txt {
  2272. .title {
  2273. font-size: 28rpx;
  2274. color: #282828;
  2275. }
  2276. .price {
  2277. color: var(--view-priceColor);
  2278. font-size: 28rpx;
  2279. text {
  2280. font-size: 20rpx;
  2281. }
  2282. }
  2283. }
  2284. }
  2285. }
  2286. }
  2287. }
  2288. .sys-head {
  2289. background: transparent;
  2290. }
  2291. .head-wrapper {
  2292. z-index: 999;
  2293. display: flex;
  2294. align-items: center;
  2295. position: fixed;
  2296. left: 30rpx;
  2297. top: 0;
  2298. }
  2299. .head-menu {
  2300. display: flex;
  2301. align-items: center;
  2302. height: 58rpx;
  2303. width: 158rpx;
  2304. background: rgba(255,255,255,0.302);
  2305. border: 2rpx solid rgba(0,0,0,0.0588);
  2306. border-radius: 29rpx;
  2307. .iconfont {
  2308. flex: 1;
  2309. text-align: center;
  2310. color: #000000;
  2311. box-sizing: border-box;
  2312. &.icon-fanhui2 {
  2313. border-right: 1px solid rgba(0,0,0,0.2);;
  2314. }
  2315. }
  2316. }
  2317. .icon-zhuyi-copy {
  2318. display: inline-block;
  2319. margin-right: 5rpx;
  2320. position: relative;
  2321. top: 3rpx;
  2322. }
  2323. .atmosphere {
  2324. &.money {
  2325. height: 100rpx;
  2326. padding-left: 24rpx;
  2327. margin: 0 -32rpx;
  2328. background: center/cover no-repeat;
  2329. font-weight: 800;
  2330. font-size: 28rpx;
  2331. line-height: 100rpx;
  2332. color: #FFFFFF;
  2333. .num {
  2334. font-size: 48rpx;
  2335. }
  2336. }
  2337. &.share {
  2338. align-items: flex-start;
  2339. padding: 20rpx 0 0 !important;
  2340. .introduce {
  2341. flex: 1;
  2342. margin-top: 0;
  2343. }
  2344. }
  2345. }
  2346. </style>