goodsDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  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.url" alt="" class="swiper-itemImg" v-if="item.bizType==1">
  8. <video :src="item.url" v-if="item.bizType==2" show-fullscreen-btn controls style="width: 100%;height: 100%;"></video>
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. </view>
  13. <view class="shopCont">
  14. <view class="shopCtop">
  15. <view class="goodsPrice">
  16. <view class="goodsPrice1" v-if="info.saleLabel">{{info.saleLabel}}</view>
  17. <view class="goodsPrice2">¥</view>
  18. <view class="goodsPrice3">{{info.salePrice?info.salePrice:info.scribingPrice}}</view>
  19. <view class="goodsPrice4" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  20. </view>
  21. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">已售 {{info.saleQty}}</view>
  22. </view>
  23. <view class="goodsName">{{info.name}}</view>
  24. <view class="goodsMd" v-if="info.sellingPoint">{{info.sellingPoint}}</view>
  25. </view>
  26. <view class="modeBox">
  27. <view class="modeline">
  28. <view class="modelineLeft">配送方式</view>
  29. <view class="modeLineRight">{{info.distributionType==1?'到店取货':'到店使用'}}</view>
  30. </view>
  31. <view class="modeline" v-if="info.oneQty">
  32. <view class="modelineLeft">限购数量</view>
  33. <view class="modeLineRight" >{{info.oneQty}}</view>
  34. </view>
  35. <view class="modeline" v-if="info.afterService">
  36. <view class="modelineLeft">售后服务</view>
  37. <view class="modeLineRight">{{info.afterService}}</view>
  38. </view>
  39. </view>
  40. <!-- 服务流程 -->
  41. <view class="fuwuliucBox" v-if="info.showLabel&&info.showLabel.indexOf('4')!=-1">
  42. <view class="fwlcTitle">服务流程</view>
  43. <view class="fwlcxian">
  44. <view class="fwlcyuan"></view>
  45. <view class="fwHx"></view>
  46. <view class="fwlcyuan"></view>
  47. <view class="fwHx"></view>
  48. <view class="fwlcyuan"></view>
  49. <view class="fwHx"></view>
  50. <view class="fwlcyuan"></view>
  51. </view>
  52. <view class="fwTxt">
  53. <view class="fwTxtline">选择商品</view>
  54. <view class="fwTxtline">选择门店</view>
  55. <view class="fwTxtline">在线支付</view>
  56. <view class="fwTxtline">到店服务</view>
  57. </view>
  58. </view>
  59. <!-- 套餐内容 -->
  60. <view class="mealBox" v-if="info.bizType==3">
  61. <view class="fwlcTitle">套餐内容</view>
  62. <view class="mealLine" v-if="info.itemPackTimesDetails">
  63. <view class="mealTop">
  64. <view class="mealName">项目名称</view>
  65. <view class="mealTopRight">
  66. <view>数量</view>
  67. <view style="padding-left: 60rpx;">有效期</view>
  68. </view>
  69. </view>
  70. <view class="itemlinebOX">
  71. <view class="itemline" v-for="(item,index) in info.itemPackTimesDetails">
  72. <view class="itemname">{{item.flowName}}</view>
  73. <view>{{item.flowQty}}</view>
  74. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  75. <view class="expireNumber" v-else>永久</view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="mealLine" v-if="info.goodsPackTimesDetails">
  80. <view class="mealTop">
  81. <view class="mealName">商品名称</view>
  82. <view class="mealTopRight">
  83. <view>数量</view>
  84. <view style="padding-left: 60rpx;">有效期</view>
  85. </view>
  86. </view>
  87. <view class="itemlinebOX">
  88. <view class="itemline" v-for="(item,index) in info.goodsPackTimesDetails">
  89. <view class="itemname">{{item.flowName}}</view>
  90. <view>{{item.flowQty}}</view>
  91. <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
  92. <view class="expireNumber" v-else>永久</view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 商品详情 -->
  98. <view class="goodsDetail" v-if="info.details">
  99. <view class="goodsDetailTitle">商品详情</view>
  100. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  101. <rich-text :nodes="info.details" style="background: #fff;"></rich-text>
  102. </view>
  103. <view style="height: 120rpx;padding-bottom: env(safe-area-inset-bottom)"></view>
  104. <view class="bottomBox">
  105. <view class="bottomImgBox" @click="goINdex">
  106. <image src="../../static/timg/home.png" mode="" class="bottomImg"></image>
  107. <view class="bottomTxt">首页</view>
  108. </view>
  109. <!-- <view class="bottomImgBox" style="margin-left: 20rpx;" @click="sharewx">
  110. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  111. <view class="bottomTxt">分享</view>
  112. </view> -->
  113. <button open-type="share" class="bottomImgBox shareBtn" >
  114. <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
  115. <view class="bottomTxt">分享</view>
  116. </button>
  117. <view class="bottomBtn" @click="ljbuy">立即购买</view>
  118. </view>
  119. <!-- 立即购买 -->
  120. <view class="buyBox" v-if="buyShow" @click="buyShow=false">
  121. <view class="buyCont" @click.stop="">
  122. <image src="../../static/timg/chahao.png" mode="" class="buyContCh" @click="buyShow=false"></image>
  123. <view class="goodsBox">
  124. <view class="hotGoodsLine" >
  125. <view>
  126. <image :src="info.ImgList[0].url" mode="" v-if="info.ImgList.length>0" class="hotGoodsLineImg"></image>
  127. <image src="../../static/timg/noimg.png" class="hotGoodsLineImg" v-else></image>
  128. </view>
  129. <view class="hotGoodsLineRIght">
  130. <view class="goodsName2">{{info.name}}</view>
  131. <view class="Sold" v-if="info.showLabel&&info.showLabel.indexOf('3')!=-1">
  132. 已售 {{info.saleQty}}</view>
  133. <view class="goodsPrice">
  134. <view class="goodsPrice11" v-if="info.saleLabel">{{info.saleLabel}}</view>
  135. <view class="goodsPrice22">¥</view>
  136. <view class="goodsPrice33">{{info.salePrice?info.salePrice:info.scribingPrice}}</view>
  137. <view class="goodsPrice44" v-if="info.showLabel&&info.scribingPrice&&info.showLabel.indexOf('1')!=-1">¥{{info.scribingPrice}}</view>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="buyNumBox">
  143. <view class="bugNUm">
  144. <view class="bugNUmLeft">
  145. <view class="buySl">数量</view>
  146. <view class="buyXg" v-if="info.oneQty">限购{{info.oneQty}}件</view>
  147. </view>
  148. <view class="numJsbox">
  149. <view class="numJj" @click="calculation(1)">-</view>
  150. <view class="goodsnum">
  151. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  152. </view>
  153. <view class="numJj" @click="calculation(2)">+</view>
  154. </view>
  155. </view>
  156. <view class="buySHop" @click="ckShop">
  157. <view>服务门店</view>
  158. <view class="buyShopRight" >
  159. <view v-if="shopInfo.shopId">{{shopInfo.shopName}}</view>
  160. <view v-else>请选择</view>
  161. <image src="../../static/timg/icon_arrow_right.png" mode="" class="buyShopRightJt"></image>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="buybtnBox">
  166. <view class="buyBtn" @click="goBuy">立即购买</view>
  167. </view>
  168. </view>
  169. </view>
  170. <!-- 手机号授权 -->
  171. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  172. <view class="authorizCont" @click.stop="">
  173. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  174. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  175. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  176. </view>
  177. <view style="text-align: center;padding-top: 56rpx;">
  178. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  179. </view>
  180. </view>
  181. <!-- <view :style="{color:colorX}">asdfas</view> -->
  182. </view>
  183. </template>
  184. <script>
  185. export default {
  186. components: {
  187. },
  188. data() {
  189. return {
  190. userInfo:'',
  191. goodsnum:1,
  192. buyShow:false,
  193. id:'',
  194. info:'',
  195. shopInfo:{
  196. shopName:'',
  197. shopId:''
  198. },
  199. authorizShow:false,
  200. code:'',
  201. wxOpenData:'',
  202. ext:'',
  203. }
  204. },
  205. onLoad(opt) {
  206. this.id=opt.id;
  207. //this.userInfo = uni.getStorageSync("userInfo");
  208. this.userInfo=this.$store.state.userInfo;
  209. this.ext=this.$common.getExtStoreId();
  210. if(this.userInfo){
  211. this.wxOpenData=this.$store.state.wxOpenData;
  212. this.openGoodsDetailById();
  213. }else{
  214. this.$common.automaticlogin().then(val => {
  215. this.userInfo=this.$store.state.userInfo;
  216. this.wxOpenData=this.$store.state.wxOpenData;
  217. this.openGoodsDetailById();
  218. console.log(this.userInfo)
  219. })
  220. }
  221. },
  222. onShow() {
  223. this.shopInfo=this.$store.state.ckshopInfo;
  224. //console.log(this.shopInfo)
  225. },
  226. methods: {
  227. sharewx(){
  228. },
  229. ckShop(){
  230. uni.navigateTo({
  231. url:'ckshopList?goodsId='+this.id
  232. })
  233. },
  234. openGoodsDetailById(){
  235. this.$http('openMall/openGoodsDetailById', {
  236. id:this.id,
  237. GoodsID:this.id,
  238. },'GET').then(res => {
  239. this.info=res.data;
  240. if(this.info.details){
  241. this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  242. }
  243. this.shopInfo='';
  244. this.$store.commit('mutationsckshopInfo', '')
  245. this.szShop()
  246. })
  247. },
  248. ljbuy(){
  249. if(!this.userInfo){
  250. this.authorizShow=true
  251. }else{
  252. this.buyShow=true
  253. }
  254. },
  255. szShop(){
  256. if(this.userInfo){
  257. this.$http('openMall/openStoreList', {
  258. goodsId:this.id,
  259. // lat: '',
  260. // lng: '',
  261. }, 'GET').then(res => {
  262. var queryShopList = res.data
  263. //console.log('list+=', this.queryShopList);
  264. queryShopList.forEach(item=>{
  265. if(item.shopId==this.info.shopId){
  266. var item={
  267. shopId:this.info.shopId,
  268. shopName:this.info.shopName
  269. }
  270. this.shopInfo=item
  271. this.$store.commit('mutationsckshopInfo', item)
  272. }
  273. })
  274. })
  275. }
  276. },
  277. goINdex(){
  278. uni.switchTab({
  279. url:'../index/index'
  280. })
  281. },
  282. goBuy(){
  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: 'goodsDetail',
  294. data: that.info,
  295. success: function () {
  296. uni.navigateTo({
  297. url:'confirm?itemQty='+that.goodsnum+'&shopID='+that.shopInfo.shopId+'&shopName='+that.shopInfo.shopName
  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.oneQty!=null){
  310. if(this.info.oneQty>this.goodsnum){
  311. this.goodsnum++
  312. }
  313. }else{
  314. this.goodsnum++
  315. }
  316. }
  317. },
  318. decryptPhoneNumber: function(e) {
  319. console.log(e);
  320. this.code=e.detail.code
  321. this.wxPhoneLogin()
  322. this.authorizShow=false;
  323. },
  324. wxPhoneLogin(){
  325. var that=this;
  326. this.$http('miniApp2/sys/wxPhoneLogin', {
  327. appId:this.ext.appId,
  328. unionId:this.ext.unionId,
  329. code:this.code,
  330. openId:this.wxOpenData.openid
  331. },'POST').then(res => {
  332. var data = res.data;
  333. if(data.loginInfo){
  334. this.userInfo=data.loginInfo.openUser;
  335. this.wxOpenData=data.loginInfo;
  336. this.$store.commit('mutationswxOpenData', data.loginInfo)
  337. this.$store.commit('mutationsuserInfo', this.userInfo)
  338. this.szShop()
  339. }
  340. })
  341. },
  342. },
  343. onShareAppMessage(res) {
  344. var img='';
  345. if(this.info.ImgList.length>0){
  346. img=this.info.ImgList[0].url
  347. }
  348. return {
  349. title: this.info.name,
  350. imageUrl:img,
  351. path: 'pages/shop/goodsDetail?id=' + this.id,
  352. success(res){
  353. uni.showToast({
  354. title:'分享成功'
  355. })
  356. },
  357. fail(res){
  358. uni.showToast({
  359. title:'分享失败',
  360. icon:'none',
  361. duration: 3000
  362. })
  363. }
  364. }
  365. },
  366. }
  367. </script>
  368. <style scoped lang="less">
  369. .box{
  370. background: #F4F5F7;
  371. min-height: 100vh;
  372. }
  373. .buySHop{
  374. display: flex;
  375. justify-content: space-between;
  376. font-size:28rpx ;
  377. color: #666666;
  378. padding-top: 30rpx;
  379. }
  380. .buybtnBox{
  381. width: 750rpx;
  382. height: 120rpx;
  383. background: #FFFFFF;
  384. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  385. padding-top: 20rpx;
  386. }
  387. .buyBox{
  388. width: 750rpx;
  389. height: 100vh;
  390. position: fixed;
  391. left: 0;
  392. top: 0;
  393. background: rgba(0,0,0,0.5);
  394. }
  395. .buyBtn{
  396. width: 690rpx;
  397. height: 74rpx;
  398. background: #D53533;
  399. border-radius: 37rpx;
  400. text-align: center;
  401. line-height: 74rpx;
  402. color: #FFFFFF;
  403. font-size: 30rpx;
  404. margin-left: 30rpx;
  405. }
  406. .buyShopRightJt{
  407. width: 12rpx;
  408. height: 20rpx;
  409. margin-top: 8rpx;
  410. margin-left: 10rpx;
  411. }
  412. .buyShopRight{
  413. display: flex;
  414. }
  415. .bugNUm{
  416. border-top: 1px solid #EEEEEE;
  417. border-Bottom: 1px solid #EEEEEE;
  418. padding: 28rpx 0;
  419. display: flex;
  420. justify-content: space-between;
  421. }
  422. .buyXg{
  423. width: 110rpx;
  424. height: 36rpx;
  425. border-radius: 4rpx;
  426. border: 1px solid #F19D01;
  427. text-align: center;
  428. line-height: 36rpx;
  429. color: #F19D01;
  430. font-size: 24rpx;
  431. }
  432. .numJj{
  433. width: 44rpx;
  434. height: 44rpx;
  435. background: #F4F5F7;
  436. border-radius: 0px 6rpx 6rpx 0px;
  437. text-align: center;
  438. line-height: 44rpx;
  439. font-size: 32rpx;
  440. color: #999999;
  441. }
  442. .bugNUmLeft{
  443. display: flex;
  444. }
  445. .buySl{
  446. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  447. }
  448. .goodsnum{
  449. width: 88rpx;
  450. height: 44rpx;
  451. background: #F4F5F7;
  452. line-height: 44rpx;
  453. text-align: center;
  454. font-weight: 500;
  455. color: #333333;
  456. font-size: 24rpx;
  457. margin: 0 4rpx;
  458. }
  459. .goodsnumInput{
  460. width: 88rpx;
  461. height: 44rpx;
  462. background: #F4F5F7;
  463. line-height: 44rpx;
  464. text-align: center;
  465. font-weight: 500;
  466. color: #333333;
  467. font-size: 24rpx;
  468. }
  469. .numJsbox{
  470. display: flex;
  471. }
  472. .buyCont{
  473. position: absolute;
  474. left: 0;
  475. bottom: 0;
  476. width: 750rpx;
  477. height: 688rpx;
  478. background: #FFFFFF;
  479. border-radius: 26rpx 26rpx 0px 0px;
  480. }
  481. .buyNumBox{
  482. padding: 30rpx;
  483. padding-top: 10rpx;
  484. padding-bottom: 70rpx;
  485. }
  486. .buyContCh{
  487. position: absolute;
  488. top: 53rpx;
  489. right: 36rpx;
  490. width: 36rpx;
  491. height: 36rpx;
  492. }
  493. .hotGoodsLine{
  494. margin-top: 30rpx;
  495. padding: 20rpx;
  496. background: #FFFFFF;
  497. border-radius: 16rpx;
  498. display: flex;
  499. }
  500. .hotGoodsLineImg{
  501. width: 208rpx;
  502. height: 194rpx;
  503. border-radius: 16rpx;
  504. border: 1px solid #EEEEEE;
  505. }
  506. .goodsName2{
  507. font-size: 28rpx;
  508. font-family: PingFangSC-Regular, PingFang SC;
  509. font-weight: 400;
  510. color: #333333;
  511. line-height: 40rpx;
  512. text-overflow: -o-ellipsis-lastline;
  513. overflow: hidden;
  514. text-overflow: ellipsis;
  515. display: -webkit-box;
  516. -webkit-line-clamp: 2;
  517. line-clamp: 2;
  518. -webkit-box-orient: vertical;
  519. min-height: 80rpx;
  520. width: 370rpx;
  521. }
  522. .hotGoodsLineRIght{
  523. padding-left: 24rpx;
  524. }
  525. .goodsPrice{
  526. display: flex;
  527. padding-top: 10rpx;
  528. }
  529. .goodsPrice11{
  530. font-size: 24rpx;
  531. font-weight: 400;
  532. color: #FF0000;
  533. padding-top: 8rpx;
  534. padding-right: 10rpx;
  535. }
  536. .goodsPrice22{
  537. font-size: 22rpx;
  538. font-weight: 400;
  539. color: #FF0000;
  540. padding-top: 8rpx;
  541. }
  542. .goodsPrice33{
  543. font-size: 32rpx;
  544. font-weight: 500;
  545. color: #FF0000;
  546. }
  547. .goodsPrice44{
  548. font-size: 24rpx;
  549. font-weight: 400;
  550. color: #999999;
  551. padding-top: 8rpx;
  552. padding-left: 5rpx;
  553. text-decoration:line-through;
  554. }
  555. .bottomBox{
  556. width: 750px;
  557. height: 120rpx;
  558. background: #FFFFFF;
  559. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  560. position: fixed;left: 0;
  561. bottom: 0;
  562. display: flex;
  563. padding-bottom: env(safe-area-inset-bottom);
  564. }
  565. .bottomTxt{
  566. color: #666666;font-size: 22rpx;
  567. }
  568. .bottomImg{
  569. width: 48rpx;height: 48rpx;
  570. }
  571. .bottomImgBox{
  572. text-align: center;
  573. padding-top: 20rpx;
  574. padding-left: 40rpx;
  575. }
  576. .shareBtn{
  577. width: 100rpx;
  578. background: #FFFFFF;
  579. }
  580. button::after{
  581. border: none;
  582. }
  583. button{
  584. position: relative;
  585. display: block;
  586. margin-left: 0;
  587. margin-right: 0;
  588. padding-left: 0px;
  589. padding-right: 0px;
  590. box-sizing: border-box;
  591. // font-size: 18px;
  592. text-align: center;
  593. text-decoration: none;
  594. // line-height: 1;
  595. line-height: 1.35;
  596. // border-radius: 5px;
  597. -webkit-tap-highlight-color: transparent;
  598. overflow: hidden;
  599. color: #000000;
  600. background-color: #fff;
  601. height: 100%;
  602. }
  603. .bottomBtn{
  604. width: 450rpx;
  605. height: 74rpx;
  606. background: #D53533;
  607. border-radius: 37rpx;
  608. line-height: 74rpx;
  609. text-align: center;
  610. color: #FFFFFF;
  611. font-size: 30rpx;
  612. margin-top: 23rpx;
  613. margin-left: 70rpx;
  614. }
  615. .goodsDetailTitle{
  616. color: #333333;
  617. font-size: 30rpx;
  618. font-weight: 500;
  619. background: #FFFFFF;
  620. padding: 20rpx 24rpx;
  621. }
  622. .goodsDetail{
  623. margin-top: 20rpx;
  624. padding-bottom: 30rpx;
  625. background: #FFFFFF;
  626. }
  627. .goodsDetail img{
  628. width: 750rpx;
  629. }
  630. .goodsDetail image{
  631. width: 750rpx;
  632. }
  633. .mealBox{
  634. background: #FFFFFF;
  635. padding: 20rpx 24rpx;
  636. margin-top: 20rpx;
  637. }
  638. .mealTopRight{
  639. display: flex;
  640. }
  641. .mealLine{
  642. margin-top: 20rpx;
  643. }
  644. .itemname{
  645. width: 441rpx;
  646. text-overflow: -o-ellipsis-lastline;
  647. overflow: hidden;
  648. text-overflow: ellipsis;
  649. display: -webkit-box;
  650. -webkit-line-clamp: 2;
  651. line-clamp: 2;
  652. -webkit-box-orient: vertical;
  653. }
  654. .itemline{
  655. display: flex;
  656. padding: 10rpx 20rpx;
  657. justify-content: space-between;
  658. line-height: 37rpx;
  659. font-size: 26rpx;
  660. color: #333333;
  661. }
  662. .itemlinebOX{
  663. border-radius: 0px 0px 10px 10px;
  664. border: 2Rpx solid #EEEEEE;
  665. padding: 10rpx 0;
  666. }
  667. .mealTop{
  668. display: flex;
  669. justify-content: space-between;
  670. height: 72rpx;
  671. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  672. border-radius: 10rpx 10rpx 0px 0px;
  673. line-height: 72rpx;
  674. color: #333333;
  675. font-size: 26rpx;
  676. padding: 0 20rpx;
  677. }
  678. .fwlcTitle{
  679. color: #333333;font-size: 30rpx;font-weight: 500;
  680. }
  681. .fuwuliucBox{
  682. background: #FFFFFF;
  683. padding: 20rpx 24rpx;
  684. margin-top: 20rpx;
  685. }
  686. .fwlcxian{
  687. padding:30rpx 42rpx 10rpx 42rpx ;
  688. display: flex;
  689. }
  690. .fwlcyuan{
  691. width: 16rpx;
  692. height: 16rpx;
  693. background: #FF0000;
  694. border-radius: 50%;
  695. }
  696. .fwHx{
  697. height: 4rpx;
  698. background: #FF0000;
  699. width: 186rpx;
  700. margin-top: 7rpx;
  701. }
  702. .fwTxt{
  703. display: flex;
  704. justify-content: space-between;
  705. }
  706. .fwTxtline{
  707. color: #333333;
  708. line-height: 37px;
  709. font-size: 26rpx;
  710. }
  711. .swiper{
  712. width: 750rpx;
  713. height: 700rpx;
  714. background: #FFFFFF;
  715. border-bottom: 1px solid #EEEEEE;
  716. }
  717. .swiper-item{
  718. width: 750rpx;
  719. height: 700rpx;
  720. }
  721. .swiper-itemImg{
  722. width: 750rpx;
  723. height: 700rpx;
  724. }
  725. .shopCtop{
  726. display: flex;
  727. padding: 20rpx 24rpx;
  728. justify-content: space-between;
  729. background: #FFFFFF;
  730. }
  731. .goodsPrice{
  732. display: flex;
  733. }
  734. .goodsPrice1{
  735. font-size: 24rpx;
  736. font-weight: 400;
  737. color: #FF0000;
  738. padding-top: 14rpx;
  739. padding-right: 14rpx;
  740. }
  741. .goodsPrice2{
  742. font-size: 28rpx;
  743. font-weight: 400;
  744. color: #FF0000;
  745. padding-top: 10rpx;
  746. }
  747. .goodsPrice3{
  748. font-size: 40rpx;
  749. font-weight: 500;
  750. color: #FF0000;
  751. }
  752. .goodsPrice4{
  753. font-size: 24rpx;
  754. font-weight: 400;
  755. color: #999999;
  756. padding-top: 14rpx;
  757. text-decoration:line-through;
  758. padding-left: 10rpx;
  759. }
  760. .Sold{
  761. font-weight: 400;
  762. color: #999999;
  763. font-size: 24rpx;
  764. padding-top: 18rpx;
  765. }
  766. .goodsName{
  767. font-size: 30rpx;
  768. line-height: 42rpx;
  769. font-weight: 500;
  770. color: #333333;
  771. padding: 20rpx 24rpx;
  772. padding-top: 0;
  773. padding-bottom: 16rpx;
  774. }
  775. .goodsMd{
  776. font-weight: 400;
  777. color: #999999;
  778. font-size: 26rpx;
  779. padding: 0 24rpx;
  780. padding-bottom: 20rpx;
  781. }
  782. .shopCont{
  783. background: #FFFFFF;
  784. }
  785. .modeBox{
  786. margin-top:20rpx ;
  787. padding: 5rpx 0;
  788. background: #FFFFFF;
  789. }
  790. .modeline{
  791. display: flex;
  792. padding: 15rpx 24rpx;
  793. }
  794. .modelineLeft{
  795. color: #999999;
  796. font-size: 26rpx;
  797. width: 150rpx;
  798. }
  799. .modeLineRight{
  800. color: #333333;
  801. font-size: 26rpx;
  802. width: 550rpx;
  803. }
  804. .expireNumber{
  805. width: 110rpx;
  806. text-align: right;
  807. }
  808. .authorizBox{
  809. width: 100vw;
  810. height: 100vh;
  811. background: rgba(0, 0, 0, 0.5);
  812. position: fixed;
  813. top: 0;
  814. left: 0;
  815. }
  816. .authorizCont{
  817. margin-top: 30vh;
  818. width: 564rpx;
  819. height: 408rpx;
  820. background: #FFFFFF;
  821. border-radius: 24rpx;
  822. margin-left: 93rpx;
  823. position: relative;
  824. }
  825. .authorizCloseImg{
  826. width: 62rpx;
  827. height: 62rpx;
  828. }
  829. .sqLogoBox{
  830. width: 180rpx;
  831. height: 180rpx;
  832. background: #FFFFFF;
  833. border-radius: 90rpx;
  834. text-align: center;
  835. position: absolute;
  836. top: -50rpx;
  837. left: 192rpx;
  838. }
  839. .authorizName{
  840. color: #333333;
  841. line-height: 42rpx;
  842. font-size: 30rpx;
  843. text-align: center;
  844. padding-top: 58rpx;
  845. }
  846. .authorizMs{
  847. color: #999999;
  848. line-height: 36rpx;
  849. font-size: 26rpx;
  850. width: 452rpx;
  851. padding-top: 24rpx;
  852. text-align: center;
  853. margin-left: 56rpx;
  854. }
  855. .authorizContbutton{
  856. width: 422rpx;
  857. height: 88rpx;
  858. background: #D53533;
  859. border-radius: 44rpx;
  860. line-height: 88rpx;
  861. text-align: center;
  862. font-size:30rpx;
  863. color: #FFFFFF;
  864. margin-top: 62rpx;
  865. margin-left:71rpx;
  866. }
  867. </style>