integralgoodsDetail.vue 26 KB

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