index.vue 79 KB

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