integralgoodsDetail.vue 22 KB

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