index.vue 68 KB

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