goodsDetail.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  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. categoryIds:'',
  233. thenShow:false,
  234. activityEnd:true,
  235. shengyuD:1,
  236. shengyuH:12,
  237. shengyuM:21,
  238. shareShow:false,
  239. ext:'',
  240. shareId:'',
  241. shareQrCode:'',
  242. scene:'',
  243. themeColor:'',
  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.themeColor = uni.getStorageSync("themeColor");
  260. this.wxOpenData=this.$store.state.wxOpenData;
  261. if(opt.scene&&opt.scene!='undefined'){
  262. this.scene=opt.scene;
  263. this.getShareParams()
  264. }else{
  265. this.openGoodsDetailById();
  266. }
  267. }else{
  268. this.$common.automaticlogin().then(val => {
  269. this.userInfo=this.$store.state.userInfo;
  270. this.wxOpenData=this.$store.state.wxOpenData;
  271. this.themeColor = uni.getStorageSync("themeColor");
  272. if(opt.scene&&opt.scene!='undefined'){
  273. this.scene=opt.scene;
  274. this.getShareParams()
  275. }else{
  276. this.openGoodsDetailById();
  277. }
  278. })
  279. }
  280. },
  281. onShow() {
  282. this.shopInfo=this.$store.state.ckshopInfo;
  283. //console.log(this.shopInfo)
  284. },
  285. onPullDownRefresh(){
  286. this.openGoodsDetailById();
  287. setTimeout(() => {
  288. uni.stopPullDownRefresh(); // 关闭下拉刷新
  289. }, 2000);
  290. },
  291. methods: {
  292. getShareParams(){
  293. this.$http('openMall/getShareParams', {
  294. scene:this.scene,
  295. },'GET').then(res => {
  296. this.id=res.data.goodsID;
  297. this.shareId=res.data.operatorID
  298. this.openGoodsDetailById();
  299. })
  300. },
  301. gowp(){
  302. // uni.scanCode({
  303. // success: function (res) {
  304. // console.log('条码类型:' + res.scanType);
  305. // console.log(res)
  306. // }
  307. // });
  308. // return false
  309. var time=''
  310. if(this.info.goodsDownTime){
  311. var time = this.info.createTime.slice(0,10) + '~' +this.info.goodsDownTime.slice(0,10)
  312. }else{
  313. }
  314. this.shareShow=false;
  315. uni.navigateTo({
  316. url:'wp?img='+this.info.ImgList[0].url+'&name='+this.info.name+'&time='+time+'&sellingPoint'+this.info.sellingPoint+'&id='+this.id
  317. })
  318. },
  319. sharewx(){
  320. this.shareShow=true;
  321. },
  322. ckShop(){
  323. uni.navigateTo({
  324. url:'ckshopList?goodsId='+this.id
  325. })
  326. },
  327. openGoodsDetailById(){
  328. this.$http('openMall/openGoodsDetailById', {
  329. id:this.id,
  330. GoodsID:this.id,
  331. },'GET').then(res => {
  332. this.info=res.data;
  333. if(this.info.details){
  334. this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  335. }
  336. this.shopInfo='';
  337. this.$store.commit('mutationsckshopInfo', '')
  338. //this.szShop()
  339. if(this.info.goodsDownTime){
  340. if (Number(new Date().getTime()) > (Number(new Date(this.info.goodsDownTime.replace(/-/g, '/')).getTime()) || 0)) {
  341. console.log("现在时间大于结束时间")
  342. this.activityEnd = true
  343. } else {
  344. this.activityEnd=false;
  345. //this.info.goodsDownTime="2022-08-18 11:57:00"
  346. this.clock()
  347. }
  348. }
  349. })
  350. },
  351. clock(){
  352. let _this = this
  353. let today = new Date() // 当前时间
  354. let h = today.getHours()
  355. let m = today.getMinutes()
  356. let s = today.getSeconds()
  357. let stopTime = new Date(_this.info.goodsDownTime.replace(/-/g, '/')) // 结束时间
  358. if (Number(new Date().getTime()) >(Number(new Date(this.info.goodsDownTime.replace(/-/g, '/')).getTime()) || 0) ) {
  359. this.activityEnd = true
  360. return false;
  361. }
  362. let stopH = stopTime.getHours()
  363. let stopM = stopTime.getMinutes()
  364. let stopS = stopTime.getSeconds()
  365. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  366. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  367. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  368. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  369. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  370. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  371. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  372. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  373. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  374. // setTimeout("clock()",500);
  375. this.shengyuM=shengyuM;
  376. this.shengyuD=shengyuD;
  377. this.shengyuH=shengyuH;
  378. setTimeout(_this.clock, 500)
  379. },
  380. ljbuy(){
  381. if(!this.userInfo){
  382. this.authorizShow=true
  383. }else{
  384. this.buyShow=true
  385. }
  386. },
  387. szShop(){
  388. if(this.userInfo){
  389. this.$http('openMall/openStoreList', {
  390. goodsId:this.id,
  391. // lat: '',
  392. // lng: '',
  393. }, 'GET').then(res => {
  394. var queryShopList = res.data
  395. //console.log('list+=', this.queryShopList);
  396. queryShopList.forEach(item=>{
  397. if(item.shopId==this.info.shopId){
  398. var item={
  399. shopId:this.info.shopId,
  400. shopName:this.info.shopName
  401. }
  402. this.shopInfo=item
  403. this.$store.commit('mutationsckshopInfo', item)
  404. }
  405. })
  406. })
  407. }
  408. },
  409. goINdex(){
  410. uni.switchTab({
  411. url:'../index/index'
  412. })
  413. },
  414. goBuy(){
  415. if(!this.shopInfo.shopId){
  416. uni.showToast({
  417. title: '请选择服务门店',
  418. icon: 'none',
  419. duration: 3000
  420. });
  421. return false;
  422. }
  423. var that=this;
  424. uni.setStorage({
  425. key: 'goodsDetail',
  426. data: that.info,
  427. success: function () {
  428. uni.navigateTo({
  429. url:'confirm?itemQty='+that.goodsnum+'&shopID='+that.shopInfo.shopId+'&shopName='+that.shopInfo.shopName+'&shareId='+that.shareId
  430. })
  431. }
  432. });
  433. },
  434. calculation(type){
  435. if(type==1){
  436. if(this.goodsnum>1){
  437. this.goodsnum--
  438. }
  439. }else{
  440. console.log("+++")
  441. if(this.info.oneQty!=null){
  442. if(this.info.oneQty>this.goodsnum){
  443. this.goodsnum++
  444. }
  445. }else{
  446. this.goodsnum++
  447. }
  448. }
  449. },
  450. decryptPhoneNumber: function(e) {
  451. console.log(e);
  452. this.code=e.detail.code
  453. this.wxPhoneLogin()
  454. this.authorizShow=false;
  455. },
  456. wxPhoneLogin(){
  457. var that=this;
  458. this.$http('miniApp2/sys/wxPhoneLogin', {
  459. appId:this.ext.appId,
  460. unionId:this.ext.unionId,
  461. code:this.code,
  462. openId:this.wxOpenData.openid
  463. },'POST').then(res => {
  464. var data = res.data;
  465. if(data.loginInfo){
  466. this.userInfo=data.loginInfo.openUser;
  467. this.wxOpenData=data.loginInfo;
  468. this.$store.commit('mutationswxOpenData', data)
  469. this.$store.commit('mutationsuserInfo', this.userInfo)
  470. //this.szShop()
  471. }
  472. })
  473. },
  474. },
  475. onShareAppMessage(res) {
  476. var img='';
  477. if(this.info.ImgList.length>0){
  478. img=this.info.ImgList[0].url
  479. }
  480. return {
  481. title: this.info.name,
  482. imageUrl:img,
  483. path: 'pages/shop/goodsDetail?id=' + this.id+'&shareId='+this.userInfo.openId,
  484. success(res){
  485. uni.showToast({
  486. title:'分享成功'
  487. })
  488. },
  489. fail(res){
  490. uni.showToast({
  491. title:'分享失败',
  492. icon:'none',
  493. duration: 3000
  494. })
  495. }
  496. }
  497. },
  498. }
  499. </script>
  500. <style scoped lang="less">
  501. .shareBtn{
  502. /* width: 100rpx; */
  503. background: #F4F5F7;
  504. }
  505. .shareBimg{
  506. width: 102rpx;
  507. height: 102rpx;
  508. }
  509. .bottomTxtshare{
  510. color: #333333;
  511. font-size: 22rpx;
  512. padding-top: 20rpx;
  513. }
  514. .shareBox{
  515. width: 100%;
  516. height: 100vh;
  517. background: rgba(0, 0, 0, 0.5);
  518. position: fixed;
  519. left: 0;
  520. bottom: 0;
  521. z-index: 11;
  522. }
  523. .shareCont{
  524. width: 100%;
  525. background: #F4F5F7;
  526. position: absolute;
  527. left: 0;
  528. bottom: 0;
  529. display: flex;
  530. justify-content: space-around;
  531. padding: 50rpx 0;
  532. border-radius: 40rpx 40rpx 0px 0px;
  533. }
  534. .timeTbox{
  535. width: 750rpx;
  536. height: 60rpx;
  537. background:#FFF5F0;
  538. border-radius: 24rpx 24rpx 0px 0px;
  539. border: 1px solid #EFE1D5;
  540. display: flex;
  541. justify-content: center;
  542. font-size: 24rpx;
  543. font-family: PingFangSC-Regular, PingFang SC;
  544. font-weight: 400;
  545. color: #764D49;
  546. }
  547. .timeTbox2{
  548. height: 60rpx;
  549. }
  550. .timeviewTxt{
  551. line-height: 41rpx;
  552. padding-top: 10rpx;
  553. }
  554. .timeDivTxt{
  555. line-height: 60rpx;
  556. padding: 0 10rpx;
  557. }
  558. .timeK{
  559. height: 41rpx;
  560. line-height: 41rpx;
  561. color: #FFFFFF;
  562. width: 41rpx;
  563. text-align: center;
  564. background: #F03B3B;
  565. border-radius: 6rpx;
  566. margin-top: 9rpx;
  567. margin-left: 15rpx;
  568. margin-right: 15rpx;
  569. }
  570. .bottomHz{
  571. width: 750rpx;
  572. /* height: 180rpx; */
  573. position: fixed;left: 0;
  574. bottom: 0;
  575. border-radius: 24rpx 24rpx 0px 0px;
  576. }
  577. .box{
  578. background: #F4F5F7;
  579. min-height: 100vh;
  580. }
  581. .buySHop{
  582. display: flex;
  583. justify-content: space-between;
  584. font-size:28rpx ;
  585. color: #666666;
  586. padding-top: 30rpx;
  587. }
  588. .buybtnBox{
  589. width: 750rpx;
  590. height: 120rpx;
  591. background: #FFFFFF;
  592. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  593. padding-top: 20rpx;
  594. }
  595. .buyBox{
  596. width: 750rpx;
  597. height: 100vh;
  598. position: fixed;
  599. left: 0;
  600. top: 0;
  601. background: rgba(0,0,0,0.5);
  602. }
  603. .buyBtn{
  604. width: 690rpx;
  605. height: 74rpx;
  606. background: #D53533;
  607. border-radius: 37rpx;
  608. text-align: center;
  609. line-height: 74rpx;
  610. color: #FFFFFF;
  611. font-size: 30rpx;
  612. margin-left: 30rpx;
  613. }
  614. .buyShopRightJt{
  615. width: 12rpx;
  616. height: 20rpx;
  617. margin-top: 8rpx;
  618. margin-left: 10rpx;
  619. }
  620. .buyShopRight{
  621. display: flex;
  622. }
  623. .bugNUm{
  624. border-top: 1px solid #EEEEEE;
  625. border-Bottom: 1px solid #EEEEEE;
  626. padding: 28rpx 0;
  627. display: flex;
  628. justify-content: space-between;
  629. }
  630. .buyXg{
  631. width: 110rpx;
  632. height: 36rpx;
  633. border-radius: 4rpx;
  634. border: 1px solid #F19D01;
  635. text-align: center;
  636. line-height: 36rpx;
  637. color: #F19D01;
  638. font-size: 24rpx;
  639. }
  640. .numJj{
  641. width: 44rpx;
  642. height: 44rpx;
  643. background: #F4F5F7;
  644. border-radius: 0px 6rpx 6rpx 0px;
  645. text-align: center;
  646. line-height: 44rpx;
  647. font-size: 32rpx;
  648. color: #999999;
  649. }
  650. .bugNUmLeft{
  651. display: flex;
  652. }
  653. .buySl{
  654. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  655. }
  656. .goodsnum{
  657. width: 88rpx;
  658. height: 44rpx;
  659. background: #F4F5F7;
  660. line-height: 44rpx;
  661. text-align: center;
  662. font-weight: 500;
  663. color: #333333;
  664. font-size: 24rpx;
  665. margin: 0 4rpx;
  666. }
  667. .goodsnumInput{
  668. width: 88rpx;
  669. height: 44rpx;
  670. background: #F4F5F7;
  671. line-height: 44rpx;
  672. text-align: center;
  673. font-weight: 500;
  674. color: #333333;
  675. font-size: 24rpx;
  676. }
  677. .numJsbox{
  678. display: flex;
  679. }
  680. .buyCont{
  681. position: absolute;
  682. left: 0;
  683. bottom: 0;
  684. width: 750rpx;
  685. height: 688rpx;
  686. background: #FFFFFF;
  687. border-radius: 26rpx 26rpx 0px 0px;
  688. }
  689. .buyNumBox{
  690. padding: 30rpx;
  691. padding-top: 10rpx;
  692. padding-bottom: 70rpx;
  693. }
  694. .buyContCh{
  695. position: absolute;
  696. top: 53rpx;
  697. right: 36rpx;
  698. width: 36rpx;
  699. height: 36rpx;
  700. }
  701. .hotGoodsLine{
  702. margin-top: 30rpx;
  703. padding: 20rpx;
  704. background: #FFFFFF;
  705. border-radius: 16rpx;
  706. display: flex;
  707. }
  708. .hotGoodsLineImg{
  709. width: 208rpx;
  710. height: 194rpx;
  711. border-radius: 16rpx;
  712. border: 1px solid #EEEEEE;
  713. }
  714. .goodsName2{
  715. font-size: 28rpx;
  716. font-family: PingFangSC-Regular, PingFang SC;
  717. font-weight: 400;
  718. color: #333333;
  719. line-height: 40rpx;
  720. text-overflow: -o-ellipsis-lastline;
  721. overflow: hidden;
  722. text-overflow: ellipsis;
  723. display: -webkit-box;
  724. -webkit-line-clamp: 2;
  725. line-clamp: 2;
  726. -webkit-box-orient: vertical;
  727. min-height: 80rpx;
  728. width: 370rpx;
  729. }
  730. .hotGoodsLineRIght{
  731. padding-left: 24rpx;
  732. }
  733. .goodsPrice{
  734. display: flex;
  735. padding-top: 10rpx;
  736. }
  737. .goodsPrice11{
  738. font-size: 24rpx;
  739. font-weight: 400;
  740. color: #FF0000;
  741. padding-top: 8rpx;
  742. padding-right: 10rpx;
  743. }
  744. .goodsPrice22{
  745. font-size: 22rpx;
  746. font-weight: 400;
  747. color: #FF0000;
  748. padding-top: 8rpx;
  749. }
  750. .goodsPrice33{
  751. font-size: 32rpx;
  752. font-weight: 500;
  753. color: #FF0000;
  754. }
  755. .goodsPrice44{
  756. font-size: 24rpx;
  757. font-weight: 400;
  758. color: #999999;
  759. padding-top: 8rpx;
  760. padding-left: 5rpx;
  761. text-decoration:line-through;
  762. }
  763. .bottomBox{
  764. width: 750px;
  765. height: 120rpx;
  766. background: #FFFFFF;
  767. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  768. padding-bottom: env(safe-area-inset-bottom);
  769. background: #FFFFFF;
  770. display: flex;
  771. }
  772. .bottomTxt{
  773. color: #666666;font-size: 22rpx;
  774. }
  775. .bottomImg{
  776. width: 48rpx;height: 48rpx;
  777. }
  778. .bottomImgBox{
  779. text-align: center;
  780. padding-top: 20rpx;
  781. padding-left: 40rpx;
  782. }
  783. button::after{
  784. border: none;
  785. }
  786. button{
  787. position: relative;
  788. display: block;
  789. margin-left: 0;
  790. margin-right: 0;
  791. padding-left: 0px;
  792. padding-right: 0px;
  793. box-sizing: border-box;
  794. // font-size: 18px;
  795. text-align: center;
  796. text-decoration: none;
  797. // line-height: 1;
  798. line-height: 1.35;
  799. // border-radius: 5px;
  800. -webkit-tap-highlight-color: transparent;
  801. overflow: hidden;
  802. color: #000000;
  803. background-color: #fff;
  804. height: 100%;
  805. }
  806. .bottomBtn{
  807. width: 450rpx;
  808. height: 74rpx;
  809. background: #D53533;
  810. border-radius: 37rpx;
  811. line-height: 74rpx;
  812. text-align: center;
  813. color: #FFFFFF;
  814. font-size: 30rpx;
  815. margin-top: 23rpx;
  816. margin-left: 70rpx;
  817. }
  818. .bottomBtn2{
  819. width: 450rpx;
  820. height: 74rpx;
  821. background: #DDDDDD;
  822. border-radius: 37rpx;
  823. line-height: 74rpx;
  824. text-align: center;
  825. color: #FFFFFF;
  826. font-size: 30rpx;
  827. margin-top: 23rpx;
  828. margin-left: 70rpx;
  829. }
  830. .goodsDetailTitle{
  831. color: #333333;
  832. font-size: 30rpx;
  833. font-weight: 500;
  834. background: #FFFFFF;
  835. padding: 20rpx 24rpx;
  836. }
  837. .goodsDetail{
  838. margin-top: 20rpx;
  839. padding-bottom: 30rpx;
  840. background: #FFFFFF;
  841. }
  842. .goodsDetail img{
  843. width: 750rpx;
  844. }
  845. .goodsDetail image{
  846. width: 750rpx;
  847. }
  848. .mealBox{
  849. background: #FFFFFF;
  850. padding: 20rpx 24rpx;
  851. margin-top: 20rpx;
  852. }
  853. .mealTopRight{
  854. display: flex;
  855. }
  856. .mealLine{
  857. margin-top: 20rpx;
  858. }
  859. .itemname{
  860. width: 441rpx;
  861. text-overflow: -o-ellipsis-lastline;
  862. overflow: hidden;
  863. text-overflow: ellipsis;
  864. display: -webkit-box;
  865. -webkit-line-clamp: 2;
  866. line-clamp: 2;
  867. -webkit-box-orient: vertical;
  868. }
  869. .itemline{
  870. display: flex;
  871. padding: 10rpx 20rpx;
  872. justify-content: space-between;
  873. line-height: 37rpx;
  874. font-size: 26rpx;
  875. color: #333333;
  876. }
  877. .itemlinebOX{
  878. border-radius: 0px 0px 10px 10px;
  879. border: 2Rpx solid #EEEEEE;
  880. padding: 10rpx 0;
  881. }
  882. .mealTop{
  883. display: flex;
  884. justify-content: space-between;
  885. height: 72rpx;
  886. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  887. border-radius: 10rpx 10rpx 0px 0px;
  888. line-height: 72rpx;
  889. color: #333333;
  890. font-size: 26rpx;
  891. padding: 0 20rpx;
  892. }
  893. .fwlcTitle{
  894. color: #333333;font-size: 30rpx;font-weight: 500;
  895. }
  896. .fuwuliucBox{
  897. background: #FFFFFF;
  898. padding: 20rpx 24rpx;
  899. margin-top: 20rpx;
  900. }
  901. .fwlcxian{
  902. padding:30rpx 42rpx 10rpx 42rpx ;
  903. display: flex;
  904. }
  905. .fwlcyuan{
  906. width: 16rpx;
  907. height: 16rpx;
  908. background: #FF0000;
  909. border-radius: 50%;
  910. }
  911. .fwHx{
  912. height: 4rpx;
  913. background: #FF0000;
  914. width: 186rpx;
  915. margin-top: 7rpx;
  916. }
  917. .fwTxt{
  918. display: flex;
  919. justify-content: space-between;
  920. }
  921. .fwTxtline{
  922. color: #333333;
  923. line-height: 37px;
  924. font-size: 26rpx;
  925. }
  926. .swiper{
  927. width: 750rpx;
  928. height: 700rpx;
  929. background: #FFFFFF;
  930. border-bottom: 1px solid #EEEEEE;
  931. }
  932. .swiper-item{
  933. width: 750rpx;
  934. height: 700rpx;
  935. }
  936. .swiper-itemImg{
  937. width: 750rpx;
  938. height: 700rpx;
  939. }
  940. .shopCtop{
  941. display: flex;
  942. padding: 20rpx 24rpx;
  943. justify-content: space-between;
  944. background: #FFFFFF;
  945. }
  946. .goodsPrice{
  947. display: flex;
  948. }
  949. .goodsPrice1{
  950. font-size: 24rpx;
  951. font-weight: 400;
  952. color: #FF0000;
  953. padding-top: 14rpx;
  954. padding-right: 14rpx;
  955. }
  956. .goodsPrice2{
  957. font-size: 28rpx;
  958. font-weight: 400;
  959. color: #FF0000;
  960. padding-top: 10rpx;
  961. }
  962. .goodsPrice3{
  963. font-size: 40rpx;
  964. font-weight: 500;
  965. color: #FF0000;
  966. }
  967. .goodsPrice4{
  968. font-size: 24rpx;
  969. font-weight: 400;
  970. color: #999999;
  971. padding-top: 14rpx;
  972. text-decoration:line-through;
  973. padding-left: 10rpx;
  974. }
  975. .Sold{
  976. font-weight: 400;
  977. color: #999999;
  978. font-size: 24rpx;
  979. padding-top: 18rpx;
  980. }
  981. .goodsName{
  982. font-size: 30rpx;
  983. line-height: 42rpx;
  984. font-weight: 500;
  985. color: #333333;
  986. padding: 20rpx 24rpx;
  987. padding-top: 0;
  988. padding-bottom: 16rpx;
  989. }
  990. .goodsMd{
  991. font-weight: 400;
  992. color: #999999;
  993. font-size: 26rpx;
  994. padding: 0 24rpx;
  995. padding-bottom: 20rpx;
  996. }
  997. .shopCont{
  998. background: #FFFFFF;
  999. }
  1000. .modeBox{
  1001. margin-top:20rpx ;
  1002. padding: 5rpx 0;
  1003. background: #FFFFFF;
  1004. }
  1005. .modeline{
  1006. display: flex;
  1007. padding: 15rpx 24rpx;
  1008. }
  1009. .modelineLeft{
  1010. color: #999999;
  1011. font-size: 26rpx;
  1012. width: 150rpx;
  1013. }
  1014. .modeLineRight{
  1015. color: #333333;
  1016. font-size: 26rpx;
  1017. width: 550rpx;
  1018. }
  1019. .expireNumber{
  1020. width: 110rpx;
  1021. text-align: right;
  1022. }
  1023. .authorizBox{
  1024. width: 100vw;
  1025. height: 100vh;
  1026. background: rgba(0, 0, 0, 0.5);
  1027. position: fixed;
  1028. top: 0;
  1029. left: 0;
  1030. }
  1031. .authorizCont{
  1032. margin-top: 30vh;
  1033. width: 564rpx;
  1034. height: 408rpx;
  1035. background: #FFFFFF;
  1036. border-radius: 24rpx;
  1037. margin-left: 93rpx;
  1038. position: relative;
  1039. }
  1040. .authorizCloseImg{
  1041. width: 62rpx;
  1042. height: 62rpx;
  1043. }
  1044. .sqLogoBox{
  1045. width: 180rpx;
  1046. height: 180rpx;
  1047. background: #FFFFFF;
  1048. border-radius: 90rpx;
  1049. text-align: center;
  1050. position: absolute;
  1051. top: -50rpx;
  1052. left: 192rpx;
  1053. }
  1054. .authorizName{
  1055. color: #333333;
  1056. line-height: 42rpx;
  1057. font-size: 30rpx;
  1058. text-align: center;
  1059. padding-top: 58rpx;
  1060. }
  1061. .authorizMs{
  1062. color: #999999;
  1063. line-height: 36rpx;
  1064. font-size: 26rpx;
  1065. width: 452rpx;
  1066. padding-top: 24rpx;
  1067. text-align: center;
  1068. margin-left: 56rpx;
  1069. }
  1070. .authorizContbutton{
  1071. width: 422rpx;
  1072. height: 88rpx;
  1073. background: #D53533;
  1074. border-radius: 44rpx;
  1075. line-height: 88rpx;
  1076. text-align: center;
  1077. font-size:30rpx;
  1078. color: #FFFFFF;
  1079. margin-top: 62rpx;
  1080. margin-left:71rpx;
  1081. }
  1082. </style>