index.vue 75 KB

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