integralgoodsDetail.vue 23 KB

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