goodsDetail.vue 27 KB

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