goodsDetail.vue 27 KB

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