goodsDetail.vue 24 KB

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