integralgoodsDetail.vue 23 KB

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