integralgoodsDetail.vue 23 KB

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