integralgoodsDetail.vue 21 KB

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