goodsDetail.vue 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. <template>
  2. <view class="box">
  3. <view class="spwBox">
  4. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
  5. <swiper-item v-for="(item,index) in info.ImgList">
  6. <view class="swiper-item">
  7. <img mode="aspectFit" :src="item.url" alt="" class="swiper-itemImg" v-if="item.bizType==1">
  8. <video :loop="false" :src="item.url" v-if="item.bizType==2" show-fullscreen-btn controls style="width: 100%;height: 100%;"></video>
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. </view>
  13. <view class="shopCont">
  14. <view style="display: flex;padding-left: 24rpx;" v-if="info.saleLabel">
  15. <view class="biaoqian">{{info.saleLabel}}</view>
  16. </view>
  17. <view class="shopCtop">
  18. <view class="goodsPrice">
  19. <!-- <view class="goodsPrice1" >{{info.saleLabel}}</view> -->
  20. <view class="goodsPrice2">¥</view>
  21. <view class="goodsPrice3">{{info.salePrice?info.salePrice:info.scribingPrice}}
  22. <span v-if="info.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  23. </view>
  24. <view class="goodsPrice4" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  25. </view>
  26. <view class="shareBoxNew" @click="sharewx">
  27. <view class="shareTxt">分享</view>
  28. <image class="shareIcon" src="../../static/timg/share.png" mode=""></image>
  29. </view>
  30. </view>
  31. <view class="goodsName">{{info.name}}</view>
  32. <view style="display: flex;justify-content: space-between;padding-right: 24rpx;">
  33. <view class="goodsMd" ><span v-if="info.sellingPoint">{{info.sellingPoint}}</span> </view>
  34. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">已售 <span style="color: #FFC107;">{{info.saleQty>0?info.saleQty:0}}</span> </view>
  35. </view>
  36. <view class="goodsMSBox" v-if="info.detailSellingLabel">
  37. <view class="goodsMs" v-for="(item,index) in info.detailSellingLabel.split(',')">{{item}}</view>
  38. </view>
  39. <view style="padding-left: 24rpx;padding-bottom: 20rpx;">
  40. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('2')!=-1">库存 <span style="color: #FFC107;">{{info.qty>0?info.qty:0}}</span> </view>
  41. </view>
  42. </view>
  43. <view class="modeBox">
  44. <view class="modeline">
  45. <view class="modelineLeft">配送方式</view>
  46. <view class="modeLineRight">{{info.distributionType==1?'到店取货':'到店使用'}}</view>
  47. </view>
  48. <view class="modeline" v-if="info.oneQty">
  49. <view class="modelineLeft">限购数量</view>
  50. <view class="modeLineRight" >{{info.oneQty}}</view>
  51. </view>
  52. <view class="modeline" v-if="info.afterService">
  53. <view class="modelineLeft">售后服务</view>
  54. <view class="modeLineRight">{{info.afterService}}</view>
  55. </view>
  56. </view>
  57. <!-- 服务流程 -->
  58. <!-- <view class="fuwuliucBox" v-if="info.showLabel&&info.showLabel.indexOf('4')!=-1">
  59. <view class="fwlcTitle">服务流程</view>
  60. <view class="fwlcxian">
  61. <view class="fwlcyuan"></view>
  62. <view class="fwHx"></view>
  63. <view class="fwlcyuan"></view>
  64. <view class="fwHx"></view>
  65. <view class="fwlcyuan"></view>
  66. <view class="fwHx"></view>
  67. <view class="fwlcyuan"></view>
  68. </view>
  69. <view class="fwTxt">
  70. <view class="fwTxtline">选择商品</view>
  71. <view class="fwTxtline">选择门店</view>
  72. <view class="fwTxtline">在线支付</view>
  73. <view class="fwTxtline">到店服务</view>
  74. </view>
  75. </view> -->
  76. <!-- 购买流程-->
  77. <view class="gmlc">
  78. <view class="gmlcTitle">购买流程</view>
  79. <view>
  80. <image class="gmlcImg" src="http://dmsphoto.66km.com.cn/thFiles/0BF3F1DB-8B56-488A-9BCB-663517985E9A.png" mode="widthFix"></image>
  81. </view>
  82. </view>
  83. <!-- 套餐内容 -->
  84. <view class="mealBox" v-if="info.bizType==3">
  85. <view class="fwlcTitle">套餐内容</view>
  86. <view class="mealLine" v-if="info.itemPackTimesDetails">
  87. <view class="mealTop">
  88. <view class="mealName">项目名称</view>
  89. <view class="mealTopRight">
  90. <view>数量</view>
  91. <view style="padding-left: 60rpx;">有效期</view>
  92. </view>
  93. </view>
  94. <view class="itemlinebOX">
  95. <view class="itemline" v-for="(item,index) in info.itemPackTimesDetails">
  96. <view class="itemname">{{item.flowName}}</view>
  97. <view>{{item.flowQty}}</view>
  98. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  99. <view class="expireNumber" v-else>永久</view>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="mealLine" v-if="info.goodsPackTimesDetails">
  104. <view class="mealTop">
  105. <view class="mealName">商品名称</view>
  106. <view class="mealTopRight">
  107. <view>数量</view>
  108. <view style="padding-left: 60rpx;">有效期</view>
  109. </view>
  110. </view>
  111. <view class="itemlinebOX">
  112. <view class="itemline" v-for="(item,index) in info.goodsPackTimesDetails">
  113. <view class="itemname">{{item.flowName}}</view>
  114. <view>{{item.flowQty}}</view>
  115. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  116. <view class="expireNumber" v-else>永久</view>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <!-- 商品详情 -->
  122. <view class="goodsDetail" v-if="info.details">
  123. <view class="goodsDetailTitle">商品详情</view>
  124. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  125. <rich-text :nodes="info.details" style="background: #fff;"></rich-text>
  126. </view>
  127. <view style="height: 200rpx;padding-bottom: env(safe-area-inset-bottom)"></view>
  128. <view class="bottomHz">
  129. <view class="timeTbox" v-if="!activityEnd">
  130. <view class="timeK">{{shengyuD}}</view>
  131. <view class="timeviewTxt" > 天</view>
  132. <view class="timeK">{{shengyuH}}</view>
  133. <view class="timeviewTxt"> 时</view>
  134. <view class="timeK">{{shengyuM}}</view>
  135. <view class="timeviewTxt" > 分 &nbsp;&nbsp; 后结束抢购</view>
  136. </view>
  137. <view class="timeTbox2" v-if="activityEnd"></view>
  138. <view class="bottomBox">
  139. <view class="bottomImgBox" @click="goINdex">
  140. <image src="../../static/timg/home.png" mode="" class="bottomImg"></image>
  141. <view class="bottomTxt">首页</view>
  142. </view>
  143. <!-- <view class="bottomImgBox" style="margin-left: 20rpx;" @click="sharewx">
  144. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  145. <view class="bottomTxt">分享</view>
  146. </view> -->
  147. <!-- <button open-type="share" class="bottomImgBox shareBtn" >
  148. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  149. <view class="bottomTxt">分享</view>
  150. </button> -->
  151. <view class="bottomBtn commonBtn" @click="ljbuy" v-if="!activityEnd&&info.goodsDownTime&&info.goodsState==1">立即购买</view>
  152. <view class="bottomBtn commonBtn" @click="ljbuy" v-if="activityEnd&&!info.goodsDownTime&&info.goodsState==1">立即购买</view>
  153. <view class="bottomBtn2" v-if="activityEnd&&info.goodsDownTime&&info.goodsState!=2">抢购结束</view>
  154. <view class="bottomBtn2" v-if="info.goodsState==2">商品已下架</view>
  155. </view>
  156. </view>
  157. <!-- 立即购买 -->
  158. <view class="buyBox" v-if="buyShow" @click="buyShow=false">
  159. <view class="buyCont" @click.stop="">
  160. <image src="../../static/timg/chahao.png" mode="" class="buyContCh" @click="buyShow=false"></image>
  161. <view class="goodsBox">
  162. <view class="hotGoodsLine" >
  163. <view>
  164. <image :src="info.ImgList[0].url" mode="" v-if="info.ImgList.length>0" class="hotGoodsLineImg"></image>
  165. <image src="../../static/timg/noimg.png" class="hotGoodsLineImg" v-else></image>
  166. </view>
  167. <view class="hotGoodsLineRIght">
  168. <view class="goodsName2">{{info.name}}</view>
  169. <div style="display: flex;">
  170. <view class="biaoqian2" v-if="info.saleLabel">{{info.saleLabel}}</view>
  171. </div>
  172. <view style="display: flex;justify-content: space-between;">
  173. <view class="goodsPrice">
  174. <view class="goodsPrice22">¥</view>
  175. <view class="goodsPrice33">{{info.salePrice?info.salePrice:info.scribingPrice}}
  176. <span v-if="info.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  177. </view>
  178. <view class="goodsPrice44" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  179. </view>
  180. <view class="Sold" style="padding-top: 18rpx;" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">
  181. 已售 {{info.saleQty>0?info.saleQty:0}}</view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="buyNumBox">
  187. <view class="bugNUm">
  188. <view class="bugNUmLeft">
  189. <view class="buySl">数量</view>
  190. <view class="buyXg" v-if="info.oneQty">限购{{info.oneQty}}件</view>
  191. </view>
  192. <view class="numJsbox">
  193. <view class="numJj" @click="calculation(1)">-</view>
  194. <view class="goodsnum">
  195. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  196. </view>
  197. <view class="numJj" @click="calculation(2)">+</view>
  198. </view>
  199. </view>
  200. <view class="buySHop" @click="ckShop">
  201. <view>服务门店</view>
  202. <view class="buyShopRight" >
  203. <view v-if="shopInfo.shopId">切换门店</view><!-- {{shopInfo.shopName}} -->
  204. <view v-else>请选择</view>
  205. <image src="../../static/timg/icon_arrow_right.png" mode="" class="buyShopRightJt"></image>
  206. </view>
  207. </view>
  208. <view class="buyShopBox" v-if="shopInfo.shopId">
  209. <view class="buyShop">
  210. <view class="buyShopTop">
  211. <view class="buyShopTleft">
  212. <!-- <view class="shopbq">距离最近</view> -->
  213. <view class="buyshopName">{{shopInfo.shopName}}</view>
  214. </view>
  215. <view class="buyShopTRgiht">
  216. <image src="/static/timg/icon_checked@2x.png" mode="" class="duihao"></image>
  217. </view>
  218. </view>
  219. <view class="buyShopCont">
  220. <image :src="shopInfo.doorImg1" v-if="shopInfo.doorImg1" mode="" class="buyShopContImg"></image>
  221. <image :src="shopInfo.doorImg2" v-else-if="shopInfo.doorImg2" mode="" class="buyShopContImg"></image>
  222. <image src="/static/timg/noimg.png" v-else class="buyShopContImg"></image>
  223. <view class="buyShopContAdress">{{shopInfo.provinceName}}{{shopInfo.cityName}}{{shopInfo.areaName}}{{shopInfo.address}}</view>
  224. <view class="buyShopJl" v-if="shopInfo.distance&&shopInfo.distance!= '0.00'">{{shopInfo.distance}}km</view>
  225. </view>
  226. </view>
  227. </view>
  228. <view v-else class="nobuyShopBox"></view>
  229. </view>
  230. <view class="buybtnBox">
  231. <!-- 1上家 2下架 GoodsState -->
  232. <view v-if="info.goodsState!=2" class="buyBtn commonBtn" @click="goBuy" >立即购买</view>
  233. <view v-else class="buyBtn2" >商品已下架</view>
  234. </view>
  235. </view>
  236. </view>
  237. <!-- 手机号授权 -->
  238. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  239. <view class="authorizCont" @click.stop="">
  240. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  241. <view class="authorizMs">未注册的手机号登录后将自动创建会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  242. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  243. </view>
  244. <view style="text-align: center;padding-top: 56rpx;">
  245. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  246. </view>
  247. </view>
  248. <!-- <view :style="{color:colorX}">asdfas</view> -->
  249. <view class="shareBox" v-if="shareShow" @click="shareShow=false">
  250. <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
  251. <view class="shareCont" @click.stop="">
  252. <button open-type="share" class=" shareBtn" >
  253. <image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
  254. <view class="bottomTxtshare">分享</view>
  255. </button>
  256. <view @click="gowp">
  257. <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
  258. <view class="bottomTxtshare">生成海报</view>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. </template>
  264. <script>
  265. export default {
  266. components: {
  267. },
  268. data() {
  269. return {
  270. userInfo:'',
  271. goodsnum:1,
  272. buyShow:false,
  273. id:'',
  274. info:'',
  275. shopInfo:{
  276. shopName:'',
  277. shopId:''
  278. },
  279. authorizShow:false,
  280. code:'',
  281. wxOpenData:'',
  282. categoryIds:'',
  283. thenShow:false,
  284. activityEnd:true,
  285. shengyuD:1,
  286. shengyuH:12,
  287. shengyuM:21,
  288. shareShow:false,
  289. ext:'',
  290. shareId:'',
  291. shareQrCode:'',
  292. scene:'',
  293. themeColor:'',
  294. }
  295. },
  296. onLoad(opt) {
  297. var ext=this.$common.getExtStoreId();
  298. this.ext=ext
  299. this.id=opt.id;
  300. if(opt.shareId){
  301. this.shareId=opt.shareId
  302. }
  303. //this.userInfo = uni.getStorageSync("userInfo");
  304. this.userInfo=this.$store.state.userInfo;
  305. this.ext=this.$common.getExtStoreId();
  306. //opt.scene='10003'
  307. console.log(opt)
  308. if(this.userInfo){
  309. this.themeColor = uni.getStorageSync("themeColor");
  310. this.wxOpenData=this.$store.state.wxOpenData;
  311. if(opt.scene&&opt.scene!='undefined'){
  312. this.scene=opt.scene;
  313. this.getShareParams()
  314. }else{
  315. this.openGoodsDetailById();
  316. }
  317. }else{
  318. this.$common.automaticlogin().then(val => {
  319. this.userInfo=this.$store.state.userInfo;
  320. this.wxOpenData=this.$store.state.wxOpenData;
  321. this.themeColor = uni.getStorageSync("themeColor");
  322. if(opt.scene&&opt.scene!='undefined'){
  323. this.scene=opt.scene;
  324. this.getShareParams()
  325. }else{
  326. this.openGoodsDetailById();
  327. }
  328. })
  329. }
  330. },
  331. onShow() {
  332. this.shopInfo=this.$store.state.ckshopInfo;
  333. //console.log(this.shopInfo)
  334. },
  335. onPullDownRefresh(){
  336. this.openGoodsDetailById();
  337. setTimeout(() => {
  338. uni.stopPullDownRefresh(); // 关闭下拉刷新
  339. }, 2000);
  340. },
  341. methods: {
  342. getShareParams(){
  343. this.$http('openMall/getShareParams', {
  344. scene:this.scene,
  345. },'GET').then(res => {
  346. this.id=res.data.goodsID;
  347. this.shareId=res.data.operatorID
  348. this.openGoodsDetailById();
  349. })
  350. },
  351. gowp(){
  352. // uni.scanCode({
  353. // success: function (res) {
  354. // console.log('条码类型:' + res.scanType);
  355. // console.log(res)
  356. // }
  357. // });
  358. // return false
  359. var time=''
  360. if(this.info.goodsDownTime){
  361. var time = this.info.createTime.slice(0,10) + '~' +this.info.goodsDownTime.slice(0,10)
  362. }else{
  363. }
  364. this.shareShow=false;
  365. uni.navigateTo({
  366. url:'wp?img='+this.info.ImgList[0].url+'&name='+this.info.name+'&time='+time+'&sellingPoint'+this.info.sellingPoint+'&id='+this.id
  367. })
  368. },
  369. sharewx(){
  370. this.shareShow=true;
  371. },
  372. ckShop(){
  373. uni.navigateTo({
  374. url:'ckshopList?goodsId='+this.id
  375. })
  376. },
  377. openGoodsDetailById(){
  378. this.$http('openMall/openGoodsDetailById', {
  379. id:this.id,
  380. GoodsID:this.id,
  381. },'GET').then(res => {
  382. this.info=res.data;
  383. if(this.info.details){
  384. this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  385. }
  386. this.shopInfo='';
  387. this.$store.commit('mutationsckshopInfo', '')
  388. //this.szShop()
  389. if(this.info.goodsDownTime){
  390. if (Number(new Date().getTime()) > (Number(new Date(this.info.goodsDownTime.replace(/-/g, '/')).getTime()) || 0)) {
  391. console.log("现在时间大于结束时间")
  392. this.activityEnd = true
  393. } else {
  394. this.activityEnd=false;
  395. //this.info.goodsDownTime="2022-08-18 11:57:00"
  396. this.clock()
  397. }
  398. }
  399. })
  400. },
  401. clock(){
  402. let _this = this
  403. let today = new Date() // 当前时间
  404. let h = today.getHours()
  405. let m = today.getMinutes()
  406. let s = today.getSeconds()
  407. let stopTime = new Date(_this.info.goodsDownTime.replace(/-/g, '/')) // 结束时间
  408. if (Number(new Date().getTime()) >(Number(new Date(this.info.goodsDownTime.replace(/-/g, '/')).getTime()) || 0) ) {
  409. this.activityEnd = true
  410. return false;
  411. }
  412. let stopH = stopTime.getHours()
  413. let stopM = stopTime.getMinutes()
  414. let stopS = stopTime.getSeconds()
  415. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  416. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  417. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  418. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  419. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  420. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  421. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  422. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  423. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  424. // setTimeout("clock()",500);
  425. this.shengyuM=shengyuM;
  426. this.shengyuD=shengyuD;
  427. this.shengyuH=shengyuH;
  428. setTimeout(_this.clock, 500)
  429. },
  430. ljbuy(){
  431. if(!this.userInfo){
  432. this.authorizShow=true
  433. }else{
  434. this.buyShow=true
  435. }
  436. },
  437. szShop(){
  438. if(this.userInfo){
  439. this.$http('openMall/openStoreList', {
  440. goodsId:this.id,
  441. // lat: '',
  442. // lng: '',
  443. }, 'GET').then(res => {
  444. var queryShopList = res.data
  445. //console.log('list+=', this.queryShopList);
  446. queryShopList.forEach(item=>{
  447. if(item.shopId==this.info.shopId){
  448. var item={
  449. shopId:this.info.shopId,
  450. shopName:this.info.shopName
  451. }
  452. this.shopInfo=item
  453. this.$store.commit('mutationsckshopInfo', item)
  454. }
  455. })
  456. })
  457. }
  458. },
  459. goINdex(){
  460. uni.switchTab({
  461. url:'../index/index'
  462. })
  463. },
  464. goBuy(){
  465. if(!this.shopInfo.shopId){
  466. uni.showToast({
  467. title: '请选择服务门店',
  468. icon: 'none',
  469. duration: 3000
  470. });
  471. return false;
  472. }
  473. if(this.info.oneQty){
  474. if(this.goodsnum>this.info.oneQty){
  475. uni.showToast({
  476. title: '超过限购数量',
  477. icon: 'none',
  478. duration: 3000
  479. });
  480. return false;
  481. }
  482. }
  483. var that=this;
  484. uni.setStorage({
  485. key: 'goodsDetail',
  486. data: that.info,
  487. success: function () {
  488. uni.navigateTo({
  489. url:'confirm?itemQty='+that.goodsnum+'&shopID='+that.shopInfo.shopId+'&shopName='+that.shopInfo.shopName+'&shareId='+that.shareId
  490. })
  491. }
  492. });
  493. },
  494. calculation(type){
  495. if(type==1){
  496. if(this.goodsnum>1){
  497. this.goodsnum--
  498. }
  499. }else{
  500. console.log("+++")
  501. if(this.info.oneQty!=null){
  502. if(this.info.oneQty>this.goodsnum){
  503. this.goodsnum++
  504. }
  505. }else{
  506. this.goodsnum++
  507. }
  508. }
  509. },
  510. decryptPhoneNumber: function(e) {
  511. console.log(e);
  512. this.code=e.detail.code
  513. this.wxPhoneLogin()
  514. this.authorizShow=false;
  515. },
  516. wxPhoneLogin(){
  517. var that=this;
  518. this.$http('miniApp2/sys/wxPhoneLogin', {
  519. appId:this.ext.appId,
  520. unionId:this.ext.unionId,
  521. code:this.code,
  522. openId:this.wxOpenData.openid
  523. },'POST').then(res => {
  524. var data = res.data;
  525. if(data.loginInfo){
  526. this.userInfo=data.loginInfo.openUser;
  527. this.wxOpenData=data.loginInfo;
  528. this.$store.commit('mutationswxOpenData', data)
  529. this.$store.commit('mutationsuserInfo', this.userInfo)
  530. //this.szShop()
  531. }
  532. })
  533. },
  534. },
  535. onShareAppMessage(res) {
  536. var img='';
  537. if(this.info.ImgList.length>0){
  538. img=this.info.ImgList[0].url
  539. }
  540. return {
  541. title: this.info.name,
  542. imageUrl:img,
  543. path: 'pages/shop/goodsDetail?id=' + this.id+'&shareId='+this.userInfo.openId,
  544. success(res){
  545. uni.showToast({
  546. title:'分享成功'
  547. })
  548. },
  549. fail(res){
  550. uni.showToast({
  551. title:'分享失败',
  552. icon:'none',
  553. duration: 3000
  554. })
  555. }
  556. }
  557. },
  558. }
  559. </script>
  560. <style scoped lang="less">
  561. .shareBtn{
  562. /* width: 100rpx; */
  563. background: #F4F5F7;
  564. }
  565. .shareBimg{
  566. width: 102rpx;
  567. height: 102rpx;
  568. }
  569. .bottomTxtshare{
  570. color: #333333;
  571. font-size: 22rpx;
  572. padding-top: 20rpx;
  573. }
  574. .shareBox{
  575. width: 100%;
  576. height: 100vh;
  577. background: rgba(0, 0, 0, 0.5);
  578. position: fixed;
  579. left: 0;
  580. bottom: 0;
  581. z-index: 11;
  582. }
  583. .shareCont{
  584. width: 100%;
  585. background: #F4F5F7;
  586. position: absolute;
  587. left: 0;
  588. bottom: 0;
  589. display: flex;
  590. justify-content: space-around;
  591. padding: 50rpx 0;
  592. border-radius: 40rpx 40rpx 0px 0px;
  593. }
  594. .timeTbox{
  595. width: 750rpx;
  596. height: 60rpx;
  597. background:#FFF5F0;
  598. border-radius: 24rpx 24rpx 0px 0px;
  599. border: 1px solid #EFE1D5;
  600. display: flex;
  601. justify-content: center;
  602. font-size: 24rpx;
  603. font-family: PingFangSC-Regular, PingFang SC;
  604. font-weight: 400;
  605. color: #764D49;
  606. }
  607. .timeTbox2{
  608. height: 60rpx;
  609. }
  610. .timeviewTxt{
  611. line-height: 41rpx;
  612. padding-top: 10rpx;
  613. }
  614. .timeDivTxt{
  615. line-height: 60rpx;
  616. padding: 0 10rpx;
  617. }
  618. .timeK{
  619. height: 41rpx;
  620. line-height: 41rpx;
  621. color: #FFFFFF;
  622. width: 41rpx;
  623. text-align: center;
  624. background: #EC0F0A;
  625. border-radius: 6rpx;
  626. margin-top: 9rpx;
  627. margin-left: 15rpx;
  628. margin-right: 15rpx;
  629. }
  630. .bottomHz{
  631. width: 750rpx;
  632. /* height: 180rpx; */
  633. position: fixed;left: 0;
  634. bottom: 0;
  635. border-radius: 24rpx 24rpx 0px 0px;
  636. }
  637. .box{
  638. background: #F4F5F7;
  639. min-height: 100vh;
  640. }
  641. .buySHop{
  642. display: flex;
  643. justify-content: space-between;
  644. font-size:28rpx ;
  645. color: #666666;
  646. padding-top: 30rpx;
  647. }
  648. .buybtnBox{
  649. width: 750rpx;
  650. height: 120rpx;
  651. background: #FFFFFF;
  652. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  653. padding-top: 20rpx;
  654. }
  655. .buyBox{
  656. width: 750rpx;
  657. height: 100vh;
  658. position: fixed;
  659. left: 0;
  660. top: 0;
  661. background: rgba(0,0,0,0.5);
  662. }
  663. .buyBtn{
  664. width: 690rpx;
  665. height: 74rpx;
  666. background: #EC0F0A;
  667. border-radius: 37rpx;
  668. text-align: center;
  669. line-height: 74rpx;
  670. color: #FFFFFF;
  671. font-size: 30rpx;
  672. margin-left: 30rpx;
  673. }
  674. .buyBtn2{
  675. width: 690rpx;
  676. height: 74rpx;
  677. background: #EC0F0A;
  678. border-radius: 37rpx;
  679. text-align: center;
  680. line-height: 74rpx;
  681. color: #FFFFFF;
  682. font-size: 30rpx;
  683. margin-left: 30rpx;
  684. }
  685. .buyShopRightJt{
  686. width: 12rpx;
  687. height: 20rpx;
  688. margin-top: 8rpx;
  689. margin-left: 10rpx;
  690. }
  691. .buyShopRight{
  692. display: flex;
  693. }
  694. .bugNUm{
  695. border-top: 1px solid #EEEEEE;
  696. border-Bottom: 1px solid #EEEEEE;
  697. padding: 28rpx 0;
  698. display: flex;
  699. justify-content: space-between;
  700. }
  701. .buyXg{
  702. min-width: 110rpx;
  703. height: 36rpx;
  704. border-radius: 4rpx;
  705. border: 1px solid #F19D01;
  706. text-align: center;
  707. line-height: 36rpx;
  708. color: #F19D01;
  709. font-size: 24rpx;
  710. }
  711. .numJj{
  712. width: 60rpx;
  713. height: 44rpx;
  714. background: #F4F5F7;
  715. border-radius: 0px 6rpx 6rpx 0px;
  716. text-align: center;
  717. line-height: 44rpx;
  718. font-size: 32rpx;
  719. color: #999999;
  720. }
  721. .bugNUmLeft{
  722. display: flex;
  723. }
  724. .buySl{
  725. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  726. }
  727. .goodsnum{
  728. width: 80rpx;
  729. height: 44rpx;
  730. background: #F4F5F7;
  731. line-height: 44rpx;
  732. text-align: center;
  733. font-weight: 500;
  734. color: #333333;
  735. font-size: 24rpx;
  736. margin: 0 4rpx;
  737. }
  738. .goodsnumInput{
  739. width: 80rpx;
  740. height: 44rpx;
  741. background: #F4F5F7;
  742. line-height: 44rpx;
  743. text-align: center;
  744. font-weight: 500;
  745. color: #333333;
  746. font-size: 24rpx;
  747. }
  748. .numJsbox{
  749. display: flex;
  750. }
  751. .buyCont{
  752. position: absolute;
  753. left: 0;
  754. bottom: 0;
  755. width: 750rpx;
  756. height: 850rpx;
  757. background: #FFFFFF;
  758. border-radius: 26rpx 26rpx 0px 0px;
  759. }
  760. .buyNumBox{
  761. padding: 30rpx;
  762. padding-top: 10rpx;
  763. /* padding-bottom: 70rpx; */
  764. }
  765. .buyContCh{
  766. position: absolute;
  767. top: 53rpx;
  768. right: 36rpx;
  769. width: 36rpx;
  770. height: 36rpx;
  771. }
  772. .hotGoodsLine{
  773. margin-top: 30rpx;
  774. padding: 20rpx;
  775. background: #FFFFFF;
  776. border-radius: 16rpx;
  777. display: flex;
  778. }
  779. .hotGoodsLineImg{
  780. width: 208rpx;
  781. height: 194rpx;
  782. border-radius: 16rpx;
  783. border: 1px solid #EEEEEE;
  784. }
  785. .goodsName2{
  786. font-size: 28rpx;
  787. font-family: PingFangSC-Regular, PingFang SC;
  788. font-weight: 400;
  789. color: #333333;
  790. line-height: 40rpx;
  791. text-overflow: -o-ellipsis-lastline;
  792. overflow: hidden;
  793. text-overflow: ellipsis;
  794. display: -webkit-box;
  795. -webkit-line-clamp: 2;
  796. line-clamp: 2;
  797. -webkit-box-orient: vertical;
  798. min-height: 80rpx;
  799. width: 370rpx;
  800. }
  801. .hotGoodsLineRIght{
  802. padding-left: 24rpx;
  803. width: 450rpx;
  804. }
  805. .goodsPrice{
  806. display: flex;
  807. padding-top: 10rpx;
  808. }
  809. .goodsPrice11{
  810. font-size: 24rpx;
  811. font-weight: 400;
  812. color: #EC0F0A;
  813. padding-top: 8rpx;
  814. padding-right: 10rpx;
  815. }
  816. .goodsPrice22{
  817. font-size: 22rpx;
  818. font-weight: 400;
  819. color: #EC0F0A;
  820. padding-top: 8rpx;
  821. }
  822. .goodsPrice33{
  823. font-size: 32rpx;
  824. font-weight: 500;
  825. color: #EC0F0A;
  826. }
  827. .goodsPrice44{
  828. font-size: 24rpx;
  829. font-weight: 400;
  830. color: #999999;
  831. padding-top: 8rpx;
  832. padding-left: 5rpx;
  833. text-decoration:line-through;
  834. }
  835. .bottomBox{
  836. width: 750px;
  837. height: 120rpx;
  838. background: #FFFFFF;
  839. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  840. padding-bottom: env(safe-area-inset-bottom);
  841. background: #FFFFFF;
  842. display: flex;
  843. }
  844. .bottomTxt{
  845. color: #666666;font-size: 22rpx;
  846. }
  847. .bottomImg{
  848. width: 48rpx;height: 48rpx;
  849. }
  850. .bottomImgBox{
  851. text-align: center;
  852. padding-top: 20rpx;
  853. padding-left: 60rpx;
  854. }
  855. button::after{
  856. border: none;
  857. }
  858. button{
  859. position: relative;
  860. display: block;
  861. margin-left: 0;
  862. margin-right: 0;
  863. padding-left: 0px;
  864. padding-right: 0px;
  865. box-sizing: border-box;
  866. // font-size: 18px;
  867. text-align: center;
  868. text-decoration: none;
  869. // line-height: 1;
  870. line-height: 1.35;
  871. // border-radius: 5px;
  872. -webkit-tap-highlight-color: transparent;
  873. overflow: hidden;
  874. color: #000000;
  875. background-color: #fff;
  876. height: 100%;
  877. }
  878. .bottomBtn{
  879. width: 530rpx;
  880. height: 74rpx;
  881. background: #EC0F0A;
  882. border-radius: 37rpx;
  883. line-height: 74rpx;
  884. text-align: center;
  885. color: #FFFFFF;
  886. font-size: 30rpx;
  887. margin-top: 23rpx;
  888. margin-left: 80rpx;
  889. }
  890. .bottomBtn2{
  891. width: 530rpx;
  892. height: 74rpx;
  893. background: #DDDDDD;
  894. border-radius: 37rpx;
  895. line-height: 74rpx;
  896. text-align: center;
  897. color: #FFFFFF;
  898. font-size: 30rpx;
  899. margin-top: 23rpx;
  900. margin-left: 80rpx;
  901. }
  902. .goodsDetailTitle{
  903. font-size: 26rpx;
  904. color: #666E80;
  905. background: #FFFFFF;
  906. padding: 20rpx 24rpx;
  907. padding-left: 0;
  908. }
  909. .goodsDetail{
  910. margin-top: 20rpx;
  911. padding-bottom: 30rpx;
  912. background: #FFFFFF;
  913. font-size: 26rpx;
  914. padding-left: 24rpx;
  915. padding-right: 24rpx;
  916. }
  917. .goodsDetail img{
  918. width: 750rpx;
  919. }
  920. .goodsDetail image{
  921. width: 750rpx;
  922. }
  923. .mealBox{
  924. background: #FFFFFF;
  925. padding: 20rpx 24rpx;
  926. margin-top: 20rpx;
  927. }
  928. .mealTopRight{
  929. display: flex;
  930. }
  931. .mealLine{
  932. margin-top: 20rpx;
  933. }
  934. .itemname{
  935. width: 441rpx;
  936. text-overflow: -o-ellipsis-lastline;
  937. overflow: hidden;
  938. text-overflow: ellipsis;
  939. display: -webkit-box;
  940. -webkit-line-clamp: 2;
  941. line-clamp: 2;
  942. -webkit-box-orient: vertical;
  943. }
  944. .itemline{
  945. display: flex;
  946. padding: 10rpx 20rpx;
  947. justify-content: space-between;
  948. line-height: 37rpx;
  949. font-size: 26rpx;
  950. color: #333333;
  951. }
  952. .itemlinebOX{
  953. border-radius: 0px 0px 10px 10px;
  954. border: 2Rpx solid #EEEEEE;
  955. padding: 10rpx 0;
  956. }
  957. .mealTop{
  958. display: flex;
  959. justify-content: space-between;
  960. height: 72rpx;
  961. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  962. border-radius: 10rpx 10rpx 0px 0px;
  963. line-height: 72rpx;
  964. color: #333333;
  965. font-size: 26rpx;
  966. padding: 0 20rpx;
  967. }
  968. .fwlcTitle{
  969. color: #333333;font-size: 30rpx;font-weight: 500;
  970. }
  971. .fuwuliucBox{
  972. background: #FFFFFF;
  973. padding: 20rpx 24rpx;
  974. margin-top: 20rpx;
  975. }
  976. .fwlcxian{
  977. padding:30rpx 42rpx 10rpx 42rpx ;
  978. display: flex;
  979. }
  980. .fwlcyuan{
  981. width: 16rpx;
  982. height: 16rpx;
  983. background: #EC0F0A;
  984. border-radius: 50%;
  985. }
  986. .fwHx{
  987. height: 4rpx;
  988. background: #EC0F0A;
  989. width: 186rpx;
  990. margin-top: 7rpx;
  991. }
  992. .fwTxt{
  993. display: flex;
  994. justify-content: space-between;
  995. }
  996. .fwTxtline{
  997. color: #333333;
  998. line-height: 37px;
  999. font-size: 26rpx;
  1000. }
  1001. .swiper{
  1002. width: 750rpx;
  1003. height: 700rpx;
  1004. background: #FFFFFF;
  1005. border-bottom: 1px solid #EEEEEE;
  1006. }
  1007. .swiper-item{
  1008. width: 750rpx;
  1009. height: 700rpx;
  1010. }
  1011. .swiper-itemImg{
  1012. width: 750rpx;
  1013. height: 700rpx;
  1014. }
  1015. .shopCtop{
  1016. display: flex;
  1017. padding: 20rpx 24rpx 10rpx 24rpx;
  1018. justify-content: space-between;
  1019. background: #FFFFFF;
  1020. }
  1021. .goodsPrice{
  1022. display: flex;
  1023. }
  1024. .goodsPrice1{
  1025. font-size: 24rpx;
  1026. font-weight: 400;
  1027. color: #EC0F0A;
  1028. padding-top: 14rpx;
  1029. padding-right: 14rpx;
  1030. }
  1031. .goodsPrice2{
  1032. font-size: 28rpx;
  1033. font-weight: 400;
  1034. color: #EC0F0A;
  1035. padding-top: 12rpx;
  1036. }
  1037. .goodsPrice3{
  1038. font-size: 40rpx;
  1039. font-weight: 500;
  1040. color: #EC0F0A;
  1041. }
  1042. .goodsPrice4{
  1043. font-size: 24rpx;
  1044. font-weight: 400;
  1045. color: #999999;
  1046. padding-top: 14rpx;
  1047. text-decoration:line-through;
  1048. padding-left: 14rpx;
  1049. }
  1050. .Sold{
  1051. font-weight: 400;
  1052. color: #999999;
  1053. font-size: 24rpx;
  1054. /* padding-top: 18rpx; */
  1055. }
  1056. .goodsName{
  1057. font-size: 30rpx;
  1058. line-height: 42rpx;
  1059. font-weight: 500;
  1060. color: #333333;
  1061. padding: 20rpx 24rpx;
  1062. padding-top: 0;
  1063. padding-bottom: 10rpx;
  1064. }
  1065. .goodsMd{
  1066. font-weight: 400;
  1067. color: #999999;
  1068. font-size: 26rpx;
  1069. padding: 0 24rpx;
  1070. padding-bottom: 10rpx;
  1071. width: 550rpx;
  1072. }
  1073. .shopCont{
  1074. background: #FFFFFF;
  1075. }
  1076. .modeBox{
  1077. margin-top:20rpx ;
  1078. padding: 5rpx 0;
  1079. background: #FFFFFF;
  1080. }
  1081. .modeline{
  1082. display: flex;
  1083. padding: 15rpx 24rpx;
  1084. justify-content: space-between;
  1085. }
  1086. .modelineLeft{
  1087. color: #999999;
  1088. font-size: 26rpx;
  1089. width: 150rpx;
  1090. }
  1091. .modeLineRight{
  1092. color: #333333;
  1093. font-size: 26rpx;
  1094. width: 550rpx;
  1095. text-align: right;
  1096. }
  1097. .expireNumber{
  1098. width: 110rpx;
  1099. text-align: right;
  1100. }
  1101. .authorizBox{
  1102. width: 100vw;
  1103. height: 100vh;
  1104. background: rgba(0, 0, 0, 0.5);
  1105. position: fixed;
  1106. top: 0;
  1107. left: 0;
  1108. }
  1109. .authorizCont{
  1110. margin-top: 30vh;
  1111. width: 564rpx;
  1112. height: 408rpx;
  1113. background: #FFFFFF;
  1114. border-radius: 24rpx;
  1115. margin-left: 93rpx;
  1116. position: relative;
  1117. }
  1118. .authorizCloseImg{
  1119. width: 62rpx;
  1120. height: 62rpx;
  1121. }
  1122. .sqLogoBox{
  1123. width: 180rpx;
  1124. height: 180rpx;
  1125. background: #FFFFFF;
  1126. border-radius: 90rpx;
  1127. text-align: center;
  1128. position: absolute;
  1129. top: -50rpx;
  1130. left: 192rpx;
  1131. }
  1132. .authorizName{
  1133. color: #333333;
  1134. line-height: 42rpx;
  1135. font-size: 30rpx;
  1136. text-align: center;
  1137. padding-top: 58rpx;
  1138. }
  1139. .authorizMs{
  1140. color: #999999;
  1141. line-height: 36rpx;
  1142. font-size: 26rpx;
  1143. width: 452rpx;
  1144. padding-top: 24rpx;
  1145. text-align: center;
  1146. margin-left: 56rpx;
  1147. }
  1148. .authorizContbutton{
  1149. width: 422rpx;
  1150. height: 88rpx;
  1151. background: #EC0F0A;
  1152. border-radius: 44rpx;
  1153. line-height: 88rpx;
  1154. text-align: center;
  1155. font-size:30rpx;
  1156. color: #FFFFFF;
  1157. margin-top: 62rpx;
  1158. margin-left:71rpx;
  1159. }
  1160. .buyShopBox{
  1161. /* padding: 0 24rpx; */
  1162. padding-top: 20rpx;
  1163. }
  1164. .nobuyShopBox{
  1165. height: 220rpx;
  1166. }
  1167. .duihao{
  1168. width: 28rpx;height: 28rpx;
  1169. }
  1170. .buyShopTRgiht{
  1171. display: flex;
  1172. align-items: center;
  1173. }
  1174. .buyShop{
  1175. background: #F9F9F9;
  1176. border-radius:6rpx;
  1177. overflow: hidden;
  1178. }
  1179. .buyShopTop{
  1180. display: flex;justify-content: space-between;
  1181. padding: 16rpx 22rpx;
  1182. background: #F9EFF0;
  1183. }
  1184. .shopbq{
  1185. color: #FF063A;font-size: 22rpx;
  1186. border-radius: 6rpx;
  1187. border: 1rpx solid #FF063A;
  1188. padding: 0rpx 6rpx;
  1189. height: 30rpx;line-height: 30rpx;
  1190. margin-top: 4rpx;
  1191. }
  1192. .buyShopTleft{
  1193. display: flex;
  1194. }
  1195. .buyshopName{
  1196. font-size: 26rpx;
  1197. color: #222222;
  1198. line-height: 37rpx;
  1199. /* padding-left: 8rpx; */
  1200. }
  1201. .buyShopCont{
  1202. display: flex;
  1203. padding: 22rpx;
  1204. }
  1205. .buyShopContImg{
  1206. width: 102rpx;
  1207. height: 102rpx;
  1208. border-radius: 6rpx;
  1209. }
  1210. .buyShopContAdress{
  1211. font-weight: 400;
  1212. font-size: 22rpx;
  1213. color: #666E80;
  1214. line-height: 34rpx;
  1215. width: 440rpx;
  1216. padding-left: 12rpx;
  1217. }
  1218. .buyShopJl{
  1219. font-size: 22rpx;
  1220. color: #666E80; line-height: 34rpx;
  1221. width: 110rpx;
  1222. text-align: right;
  1223. }
  1224. .buyNumlineActive{
  1225. border-radius: 25rpx;
  1226. border: 1rpx solid #FF0035;
  1227. color: #FF0035;
  1228. background: #ffffff;
  1229. height: 48rpx;
  1230. line-height: 48rpx;width: 147rpx;
  1231. }
  1232. .gmlcImg{
  1233. width: 100%;
  1234. }
  1235. .gmlc{
  1236. background: #ffffff;margin-top: 20rpx;
  1237. padding: 30rpx 24rpx;
  1238. }
  1239. .gmlcTitle{
  1240. font-weight: 400;
  1241. font-size: 26rpx;
  1242. color: #666E80;
  1243. line-height: 37rpx;
  1244. padding-bottom: 25rpx;
  1245. }
  1246. .biaoqian{
  1247. background: #FF0035;
  1248. border-radius: 24rpx 24rpx 25rpx 0rpx;
  1249. padding: 4rpx 16rpx;
  1250. font-size: 22rpx;
  1251. color: #FFFFFF;
  1252. margin-top: 24rpx;
  1253. margin-bottom: -20rpx;
  1254. }
  1255. .biaoqian2{
  1256. background: #FF0035;
  1257. border-radius: 24rpx 24rpx 25rpx 0rpx;
  1258. padding: 4rpx 16rpx;
  1259. font-size: 22rpx;
  1260. color: #FFFFFF;
  1261. margin-top: 24rpx;
  1262. }
  1263. .shareIcon{
  1264. width: 33rpx;height: 33rpx;margin-left: 10rpx;
  1265. }
  1266. .shareBoxNew{
  1267. display: flex;font-size: 24rpx;
  1268. color: #666666;padding-top: 16rpx;
  1269. line-height: 33rpx;
  1270. }
  1271. .goodsMSBox{
  1272. display: flex;padding-left: 24rpx;
  1273. flex-wrap: wrap;
  1274. }
  1275. .goodsMs{
  1276. font-size: 18rpx;
  1277. color: #FF063A;
  1278. padding: 2rpx 8rpx;
  1279. border-radius: 6rpx;
  1280. border: 1rpx solid #FF063A;
  1281. margin-right: 16rpx;
  1282. margin-bottom: 16rpx;
  1283. }
  1284. </style>