integralgoodsDetail.vue 23 KB

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