index.vue 67 KB

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