goodsDetail.vue 20 KB

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