goodsDetail.vue 32 KB

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