integralgoodsDetail.vue 23 KB

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