index.vue 66 KB

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