goodsDetail.vue 26 KB

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