integralgoodsDetail.vue 23 KB

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