goodsDetail.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129
  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" :style="{background:'#'+themeColor}" @click="ljbuy" v-if="!activityEnd&&info.goodsDownTime">立即购买</view>
  130. <view class="bottomBtn" :style="{background:'#'+themeColor}" @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" :style="{background:'#'+themeColor}">立即购买</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. 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.loginInfo){
  467. this.userInfo=data.loginInfo.openUser;
  468. this.wxOpenData=data.loginInfo;
  469. this.$store.commit('mutationswxOpenData', data.loginInfo)
  470. this.$store.commit('mutationsuserInfo', this.userInfo)
  471. this.szShop()
  472. }
  473. })
  474. },
  475. },
  476. onShareAppMessage(res) {
  477. var img='';
  478. if(this.info.ImgList.length>0){
  479. img=this.info.ImgList[0].url
  480. }
  481. return {
  482. title: this.info.name,
  483. imageUrl:img,
  484. path: 'pages/shop/goodsDetail?id=' + this.id+'&shareId='+this.userInfo.openId,
  485. success(res){
  486. uni.showToast({
  487. title:'分享成功'
  488. })
  489. },
  490. fail(res){
  491. uni.showToast({
  492. title:'分享失败',
  493. icon:'none',
  494. duration: 3000
  495. })
  496. }
  497. }
  498. },
  499. }
  500. </script>
  501. <style scoped lang="less">
  502. .shareBtn{
  503. /* width: 100rpx; */
  504. background: #F4F5F7;
  505. }
  506. .shareBimg{
  507. width: 102rpx;
  508. height: 102rpx;
  509. }
  510. .bottomTxtshare{
  511. color: #333333;
  512. font-size: 22rpx;
  513. padding-top: 20rpx;
  514. }
  515. .shareBox{
  516. width: 100%;
  517. height: 100vh;
  518. background: rgba(0, 0, 0, 0.5);
  519. position: fixed;
  520. left: 0;
  521. bottom: 0;
  522. z-index: 11;
  523. }
  524. .shareCont{
  525. width: 100%;
  526. background: #F4F5F7;
  527. position: absolute;
  528. left: 0;
  529. bottom: 0;
  530. display: flex;
  531. justify-content: space-around;
  532. padding: 50rpx 0;
  533. border-radius: 40rpx 40rpx 0px 0px;
  534. }
  535. .timeTbox{
  536. width: 750rpx;
  537. height: 60rpx;
  538. background:#FFF5F0;
  539. border-radius: 24rpx 24rpx 0px 0px;
  540. border: 1px solid #EFE1D5;
  541. display: flex;
  542. justify-content: center;
  543. font-size: 24rpx;
  544. font-family: PingFangSC-Regular, PingFang SC;
  545. font-weight: 400;
  546. color: #764D49;
  547. }
  548. .timeTbox2{
  549. height: 60rpx;
  550. }
  551. .timeviewTxt{
  552. line-height: 41rpx;
  553. padding-top: 10rpx;
  554. }
  555. .timeDivTxt{
  556. line-height: 60rpx;
  557. padding: 0 10rpx;
  558. }
  559. .timeK{
  560. height: 41rpx;
  561. line-height: 41rpx;
  562. color: #FFFFFF;
  563. width: 41rpx;
  564. text-align: center;
  565. background: #F03B3B;
  566. border-radius: 6rpx;
  567. margin-top: 9rpx;
  568. margin-left: 15rpx;
  569. margin-right: 15rpx;
  570. }
  571. .bottomHz{
  572. width: 750rpx;
  573. /* height: 180rpx; */
  574. position: fixed;left: 0;
  575. bottom: 0;
  576. border-radius: 24rpx 24rpx 0px 0px;
  577. }
  578. .box{
  579. background: #F4F5F7;
  580. min-height: 100vh;
  581. }
  582. .buySHop{
  583. display: flex;
  584. justify-content: space-between;
  585. font-size:28rpx ;
  586. color: #666666;
  587. padding-top: 30rpx;
  588. }
  589. .buybtnBox{
  590. width: 750rpx;
  591. height: 120rpx;
  592. background: #FFFFFF;
  593. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  594. padding-top: 20rpx;
  595. }
  596. .buyBox{
  597. width: 750rpx;
  598. height: 100vh;
  599. position: fixed;
  600. left: 0;
  601. top: 0;
  602. background: rgba(0,0,0,0.5);
  603. }
  604. .buyBtn{
  605. width: 690rpx;
  606. height: 74rpx;
  607. background: #D53533;
  608. border-radius: 37rpx;
  609. text-align: center;
  610. line-height: 74rpx;
  611. color: #FFFFFF;
  612. font-size: 30rpx;
  613. margin-left: 30rpx;
  614. }
  615. .buyShopRightJt{
  616. width: 12rpx;
  617. height: 20rpx;
  618. margin-top: 8rpx;
  619. margin-left: 10rpx;
  620. }
  621. .buyShopRight{
  622. display: flex;
  623. }
  624. .bugNUm{
  625. border-top: 1px solid #EEEEEE;
  626. border-Bottom: 1px solid #EEEEEE;
  627. padding: 28rpx 0;
  628. display: flex;
  629. justify-content: space-between;
  630. }
  631. .buyXg{
  632. width: 110rpx;
  633. height: 36rpx;
  634. border-radius: 4rpx;
  635. border: 1px solid #F19D01;
  636. text-align: center;
  637. line-height: 36rpx;
  638. color: #F19D01;
  639. font-size: 24rpx;
  640. }
  641. .numJj{
  642. width: 44rpx;
  643. height: 44rpx;
  644. background: #F4F5F7;
  645. border-radius: 0px 6rpx 6rpx 0px;
  646. text-align: center;
  647. line-height: 44rpx;
  648. font-size: 32rpx;
  649. color: #999999;
  650. }
  651. .bugNUmLeft{
  652. display: flex;
  653. }
  654. .buySl{
  655. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  656. }
  657. .goodsnum{
  658. width: 88rpx;
  659. height: 44rpx;
  660. background: #F4F5F7;
  661. line-height: 44rpx;
  662. text-align: center;
  663. font-weight: 500;
  664. color: #333333;
  665. font-size: 24rpx;
  666. margin: 0 4rpx;
  667. }
  668. .goodsnumInput{
  669. width: 88rpx;
  670. height: 44rpx;
  671. background: #F4F5F7;
  672. line-height: 44rpx;
  673. text-align: center;
  674. font-weight: 500;
  675. color: #333333;
  676. font-size: 24rpx;
  677. }
  678. .numJsbox{
  679. display: flex;
  680. }
  681. .buyCont{
  682. position: absolute;
  683. left: 0;
  684. bottom: 0;
  685. width: 750rpx;
  686. height: 688rpx;
  687. background: #FFFFFF;
  688. border-radius: 26rpx 26rpx 0px 0px;
  689. }
  690. .buyNumBox{
  691. padding: 30rpx;
  692. padding-top: 10rpx;
  693. padding-bottom: 70rpx;
  694. }
  695. .buyContCh{
  696. position: absolute;
  697. top: 53rpx;
  698. right: 36rpx;
  699. width: 36rpx;
  700. height: 36rpx;
  701. }
  702. .hotGoodsLine{
  703. margin-top: 30rpx;
  704. padding: 20rpx;
  705. background: #FFFFFF;
  706. border-radius: 16rpx;
  707. display: flex;
  708. }
  709. .hotGoodsLineImg{
  710. width: 208rpx;
  711. height: 194rpx;
  712. border-radius: 16rpx;
  713. border: 1px solid #EEEEEE;
  714. }
  715. .goodsName2{
  716. font-size: 28rpx;
  717. font-family: PingFangSC-Regular, PingFang SC;
  718. font-weight: 400;
  719. color: #333333;
  720. line-height: 40rpx;
  721. text-overflow: -o-ellipsis-lastline;
  722. overflow: hidden;
  723. text-overflow: ellipsis;
  724. display: -webkit-box;
  725. -webkit-line-clamp: 2;
  726. line-clamp: 2;
  727. -webkit-box-orient: vertical;
  728. min-height: 80rpx;
  729. width: 370rpx;
  730. }
  731. .hotGoodsLineRIght{
  732. padding-left: 24rpx;
  733. }
  734. .goodsPrice{
  735. display: flex;
  736. padding-top: 10rpx;
  737. }
  738. .goodsPrice11{
  739. font-size: 24rpx;
  740. font-weight: 400;
  741. color: #FF0000;
  742. padding-top: 8rpx;
  743. padding-right: 10rpx;
  744. }
  745. .goodsPrice22{
  746. font-size: 22rpx;
  747. font-weight: 400;
  748. color: #FF0000;
  749. padding-top: 8rpx;
  750. }
  751. .goodsPrice33{
  752. font-size: 32rpx;
  753. font-weight: 500;
  754. color: #FF0000;
  755. }
  756. .goodsPrice44{
  757. font-size: 24rpx;
  758. font-weight: 400;
  759. color: #999999;
  760. padding-top: 8rpx;
  761. padding-left: 5rpx;
  762. text-decoration:line-through;
  763. }
  764. .bottomBox{
  765. width: 750px;
  766. height: 120rpx;
  767. background: #FFFFFF;
  768. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  769. padding-bottom: env(safe-area-inset-bottom);
  770. background: #FFFFFF;
  771. display: flex;
  772. }
  773. .bottomTxt{
  774. color: #666666;font-size: 22rpx;
  775. }
  776. .bottomImg{
  777. width: 48rpx;height: 48rpx;
  778. }
  779. .bottomImgBox{
  780. text-align: center;
  781. padding-top: 20rpx;
  782. padding-left: 40rpx;
  783. }
  784. button::after{
  785. border: none;
  786. }
  787. button{
  788. position: relative;
  789. display: block;
  790. margin-left: 0;
  791. margin-right: 0;
  792. padding-left: 0px;
  793. padding-right: 0px;
  794. box-sizing: border-box;
  795. // font-size: 18px;
  796. text-align: center;
  797. text-decoration: none;
  798. // line-height: 1;
  799. line-height: 1.35;
  800. // border-radius: 5px;
  801. -webkit-tap-highlight-color: transparent;
  802. overflow: hidden;
  803. color: #000000;
  804. background-color: #fff;
  805. height: 100%;
  806. }
  807. .bottomBtn{
  808. width: 450rpx;
  809. height: 74rpx;
  810. background: #D53533;
  811. border-radius: 37rpx;
  812. line-height: 74rpx;
  813. text-align: center;
  814. color: #FFFFFF;
  815. font-size: 30rpx;
  816. margin-top: 23rpx;
  817. margin-left: 70rpx;
  818. }
  819. .bottomBtn2{
  820. width: 450rpx;
  821. height: 74rpx;
  822. background: #DDDDDD;
  823. border-radius: 37rpx;
  824. line-height: 74rpx;
  825. text-align: center;
  826. color: #FFFFFF;
  827. font-size: 30rpx;
  828. margin-top: 23rpx;
  829. margin-left: 70rpx;
  830. }
  831. .goodsDetailTitle{
  832. color: #333333;
  833. font-size: 30rpx;
  834. font-weight: 500;
  835. background: #FFFFFF;
  836. padding: 20rpx 24rpx;
  837. }
  838. .goodsDetail{
  839. margin-top: 20rpx;
  840. padding-bottom: 30rpx;
  841. background: #FFFFFF;
  842. }
  843. .goodsDetail img{
  844. width: 750rpx;
  845. }
  846. .goodsDetail image{
  847. width: 750rpx;
  848. }
  849. .mealBox{
  850. background: #FFFFFF;
  851. padding: 20rpx 24rpx;
  852. margin-top: 20rpx;
  853. }
  854. .mealTopRight{
  855. display: flex;
  856. }
  857. .mealLine{
  858. margin-top: 20rpx;
  859. }
  860. .itemname{
  861. width: 441rpx;
  862. text-overflow: -o-ellipsis-lastline;
  863. overflow: hidden;
  864. text-overflow: ellipsis;
  865. display: -webkit-box;
  866. -webkit-line-clamp: 2;
  867. line-clamp: 2;
  868. -webkit-box-orient: vertical;
  869. }
  870. .itemline{
  871. display: flex;
  872. padding: 10rpx 20rpx;
  873. justify-content: space-between;
  874. line-height: 37rpx;
  875. font-size: 26rpx;
  876. color: #333333;
  877. }
  878. .itemlinebOX{
  879. border-radius: 0px 0px 10px 10px;
  880. border: 2Rpx solid #EEEEEE;
  881. padding: 10rpx 0;
  882. }
  883. .mealTop{
  884. display: flex;
  885. justify-content: space-between;
  886. height: 72rpx;
  887. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  888. border-radius: 10rpx 10rpx 0px 0px;
  889. line-height: 72rpx;
  890. color: #333333;
  891. font-size: 26rpx;
  892. padding: 0 20rpx;
  893. }
  894. .fwlcTitle{
  895. color: #333333;font-size: 30rpx;font-weight: 500;
  896. }
  897. .fuwuliucBox{
  898. background: #FFFFFF;
  899. padding: 20rpx 24rpx;
  900. margin-top: 20rpx;
  901. }
  902. .fwlcxian{
  903. padding:30rpx 42rpx 10rpx 42rpx ;
  904. display: flex;
  905. }
  906. .fwlcyuan{
  907. width: 16rpx;
  908. height: 16rpx;
  909. background: #FF0000;
  910. border-radius: 50%;
  911. }
  912. .fwHx{
  913. height: 4rpx;
  914. background: #FF0000;
  915. width: 186rpx;
  916. margin-top: 7rpx;
  917. }
  918. .fwTxt{
  919. display: flex;
  920. justify-content: space-between;
  921. }
  922. .fwTxtline{
  923. color: #333333;
  924. line-height: 37px;
  925. font-size: 26rpx;
  926. }
  927. .swiper{
  928. width: 750rpx;
  929. height: 700rpx;
  930. background: #FFFFFF;
  931. border-bottom: 1px solid #EEEEEE;
  932. }
  933. .swiper-item{
  934. width: 750rpx;
  935. height: 700rpx;
  936. }
  937. .swiper-itemImg{
  938. width: 750rpx;
  939. height: 700rpx;
  940. }
  941. .shopCtop{
  942. display: flex;
  943. padding: 20rpx 24rpx;
  944. justify-content: space-between;
  945. background: #FFFFFF;
  946. }
  947. .goodsPrice{
  948. display: flex;
  949. }
  950. .goodsPrice1{
  951. font-size: 24rpx;
  952. font-weight: 400;
  953. color: #FF0000;
  954. padding-top: 14rpx;
  955. padding-right: 14rpx;
  956. }
  957. .goodsPrice2{
  958. font-size: 28rpx;
  959. font-weight: 400;
  960. color: #FF0000;
  961. padding-top: 10rpx;
  962. }
  963. .goodsPrice3{
  964. font-size: 40rpx;
  965. font-weight: 500;
  966. color: #FF0000;
  967. }
  968. .goodsPrice4{
  969. font-size: 24rpx;
  970. font-weight: 400;
  971. color: #999999;
  972. padding-top: 14rpx;
  973. text-decoration:line-through;
  974. padding-left: 10rpx;
  975. }
  976. .Sold{
  977. font-weight: 400;
  978. color: #999999;
  979. font-size: 24rpx;
  980. padding-top: 18rpx;
  981. }
  982. .goodsName{
  983. font-size: 30rpx;
  984. line-height: 42rpx;
  985. font-weight: 500;
  986. color: #333333;
  987. padding: 20rpx 24rpx;
  988. padding-top: 0;
  989. padding-bottom: 16rpx;
  990. }
  991. .goodsMd{
  992. font-weight: 400;
  993. color: #999999;
  994. font-size: 26rpx;
  995. padding: 0 24rpx;
  996. padding-bottom: 20rpx;
  997. }
  998. .shopCont{
  999. background: #FFFFFF;
  1000. }
  1001. .modeBox{
  1002. margin-top:20rpx ;
  1003. padding: 5rpx 0;
  1004. background: #FFFFFF;
  1005. }
  1006. .modeline{
  1007. display: flex;
  1008. padding: 15rpx 24rpx;
  1009. }
  1010. .modelineLeft{
  1011. color: #999999;
  1012. font-size: 26rpx;
  1013. width: 150rpx;
  1014. }
  1015. .modeLineRight{
  1016. color: #333333;
  1017. font-size: 26rpx;
  1018. width: 550rpx;
  1019. }
  1020. .expireNumber{
  1021. width: 110rpx;
  1022. text-align: right;
  1023. }
  1024. .authorizBox{
  1025. width: 100vw;
  1026. height: 100vh;
  1027. background: rgba(0, 0, 0, 0.5);
  1028. position: fixed;
  1029. top: 0;
  1030. left: 0;
  1031. }
  1032. .authorizCont{
  1033. margin-top: 30vh;
  1034. width: 564rpx;
  1035. height: 408rpx;
  1036. background: #FFFFFF;
  1037. border-radius: 24rpx;
  1038. margin-left: 93rpx;
  1039. position: relative;
  1040. }
  1041. .authorizCloseImg{
  1042. width: 62rpx;
  1043. height: 62rpx;
  1044. }
  1045. .sqLogoBox{
  1046. width: 180rpx;
  1047. height: 180rpx;
  1048. background: #FFFFFF;
  1049. border-radius: 90rpx;
  1050. text-align: center;
  1051. position: absolute;
  1052. top: -50rpx;
  1053. left: 192rpx;
  1054. }
  1055. .authorizName{
  1056. color: #333333;
  1057. line-height: 42rpx;
  1058. font-size: 30rpx;
  1059. text-align: center;
  1060. padding-top: 58rpx;
  1061. }
  1062. .authorizMs{
  1063. color: #999999;
  1064. line-height: 36rpx;
  1065. font-size: 26rpx;
  1066. width: 452rpx;
  1067. padding-top: 24rpx;
  1068. text-align: center;
  1069. margin-left: 56rpx;
  1070. }
  1071. .authorizContbutton{
  1072. width: 422rpx;
  1073. height: 88rpx;
  1074. background: #D53533;
  1075. border-radius: 44rpx;
  1076. line-height: 88rpx;
  1077. text-align: center;
  1078. font-size:30rpx;
  1079. color: #FFFFFF;
  1080. margin-top: 62rpx;
  1081. margin-left:71rpx;
  1082. }
  1083. </style>