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