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