goodsDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  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. methods: {
  233. sharewx(){
  234. },
  235. ckShop(){
  236. uni.navigateTo({
  237. url:'ckshopList?goodsId='+this.id
  238. })
  239. },
  240. openGoodsDetailById(){
  241. this.$http('openMall/openGoodsDetailById', {
  242. id:this.id,
  243. GoodsID:this.id,
  244. },'GET').then(res => {
  245. this.info=res.data;
  246. if(this.info.details){
  247. this.info.details = this.info.details.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
  248. }
  249. this.shopInfo='';
  250. this.$store.commit('mutationsckshopInfo', '')
  251. this.szShop()
  252. })
  253. },
  254. ljbuy(){
  255. if(!this.userInfo){
  256. this.authorizShow=true
  257. }else{
  258. this.buyShow=true
  259. }
  260. },
  261. szShop(){
  262. if(this.userInfo){
  263. this.$http('openMall/openStoreList', {
  264. goodsId:this.id,
  265. // lat: '',
  266. // lng: '',
  267. }, 'GET').then(res => {
  268. var queryShopList = res.data
  269. //console.log('list+=', this.queryShopList);
  270. queryShopList.forEach(item=>{
  271. if(item.shopId==this.info.shopId){
  272. var item={
  273. shopId:this.info.shopId,
  274. shopName:this.info.shopName
  275. }
  276. this.shopInfo=item
  277. this.$store.commit('mutationsckshopInfo', item)
  278. }
  279. })
  280. })
  281. }
  282. },
  283. goINdex(){
  284. uni.switchTab({
  285. url:'../index/index'
  286. })
  287. },
  288. goBuy(){
  289. if(!this.shopInfo.shopId){
  290. uni.showToast({
  291. title: '请选择服务门店',
  292. icon: 'none',
  293. duration: 3000
  294. });
  295. return false;
  296. }
  297. var that=this;
  298. uni.setStorage({
  299. key: 'goodsDetail',
  300. data: that.info,
  301. success: function () {
  302. uni.navigateTo({
  303. url:'confirm?itemQty='+that.goodsnum+'&shopID='+that.shopInfo.shopId+'&shopName='+that.shopInfo.shopName
  304. })
  305. }
  306. });
  307. },
  308. calculation(type){
  309. if(type==1){
  310. if(this.goodsnum>1){
  311. this.goodsnum--
  312. }
  313. }else{
  314. console.log("+++")
  315. if(this.info.oneQty!=null){
  316. if(this.info.oneQty>this.goodsnum){
  317. this.goodsnum++
  318. }
  319. }else{
  320. this.goodsnum++
  321. }
  322. }
  323. },
  324. decryptPhoneNumber: function(e) {
  325. console.log(e);
  326. this.code=e.detail.code
  327. this.wxPhoneLogin()
  328. this.authorizShow=false;
  329. },
  330. wxPhoneLogin(){
  331. var that=this;
  332. this.$http('miniApp2/sys/wxPhoneLogin', {
  333. appId:this.ext.appId,
  334. unionId:this.ext.unionId,
  335. code:this.code,
  336. openId:this.wxOpenData.openid
  337. },'POST').then(res => {
  338. var data = res.data;
  339. if(data.loginInfo){
  340. this.userInfo=data.loginInfo.openUser;
  341. this.wxOpenData=data.loginInfo;
  342. this.$store.commit('mutationswxOpenData', data.loginInfo)
  343. this.$store.commit('mutationsuserInfo', this.userInfo)
  344. this.szShop()
  345. }
  346. })
  347. },
  348. },
  349. onShareAppMessage(res) {
  350. var img='';
  351. if(this.info.ImgList.length>0){
  352. img=this.info.ImgList[0].url
  353. }
  354. return {
  355. title: this.info.name,
  356. imageUrl:img,
  357. path: 'pages/shop/goodsDetail?id=' + this.id,
  358. success(res){
  359. uni.showToast({
  360. title:'分享成功'
  361. })
  362. },
  363. fail(res){
  364. uni.showToast({
  365. title:'分享失败',
  366. icon:'none',
  367. duration: 3000
  368. })
  369. }
  370. }
  371. },
  372. }
  373. </script>
  374. <style scoped lang="less">
  375. .box{
  376. background: #F4F5F7;
  377. min-height: 100vh;
  378. }
  379. .buySHop{
  380. display: flex;
  381. justify-content: space-between;
  382. font-size:28rpx ;
  383. color: #666666;
  384. padding-top: 30rpx;
  385. }
  386. .buybtnBox{
  387. width: 750rpx;
  388. height: 120rpx;
  389. background: #FFFFFF;
  390. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  391. padding-top: 20rpx;
  392. }
  393. .buyBox{
  394. width: 750rpx;
  395. height: 100vh;
  396. position: fixed;
  397. left: 0;
  398. top: 0;
  399. background: rgba(0,0,0,0.5);
  400. }
  401. .buyBtn{
  402. width: 690rpx;
  403. height: 74rpx;
  404. background: #D53533;
  405. border-radius: 37rpx;
  406. text-align: center;
  407. line-height: 74rpx;
  408. color: #FFFFFF;
  409. font-size: 30rpx;
  410. margin-left: 30rpx;
  411. }
  412. .buyShopRightJt{
  413. width: 12rpx;
  414. height: 20rpx;
  415. margin-top: 8rpx;
  416. margin-left: 10rpx;
  417. }
  418. .buyShopRight{
  419. display: flex;
  420. }
  421. .bugNUm{
  422. border-top: 1px solid #EEEEEE;
  423. border-Bottom: 1px solid #EEEEEE;
  424. padding: 28rpx 0;
  425. display: flex;
  426. justify-content: space-between;
  427. }
  428. .buyXg{
  429. width: 110rpx;
  430. height: 36rpx;
  431. border-radius: 4rpx;
  432. border: 1px solid #F19D01;
  433. text-align: center;
  434. line-height: 36rpx;
  435. color: #F19D01;
  436. font-size: 24rpx;
  437. }
  438. .numJj{
  439. width: 44rpx;
  440. height: 44rpx;
  441. background: #F4F5F7;
  442. border-radius: 0px 6rpx 6rpx 0px;
  443. text-align: center;
  444. line-height: 44rpx;
  445. font-size: 32rpx;
  446. color: #999999;
  447. }
  448. .bugNUmLeft{
  449. display: flex;
  450. }
  451. .buySl{
  452. color: #666666;font-size: 28rpx;padding-right: 30rpx;
  453. }
  454. .goodsnum{
  455. width: 88rpx;
  456. height: 44rpx;
  457. background: #F4F5F7;
  458. line-height: 44rpx;
  459. text-align: center;
  460. font-weight: 500;
  461. color: #333333;
  462. font-size: 24rpx;
  463. margin: 0 4rpx;
  464. }
  465. .goodsnumInput{
  466. width: 88rpx;
  467. height: 44rpx;
  468. background: #F4F5F7;
  469. line-height: 44rpx;
  470. text-align: center;
  471. font-weight: 500;
  472. color: #333333;
  473. font-size: 24rpx;
  474. }
  475. .numJsbox{
  476. display: flex;
  477. }
  478. .buyCont{
  479. position: absolute;
  480. left: 0;
  481. bottom: 0;
  482. width: 750rpx;
  483. height: 688rpx;
  484. background: #FFFFFF;
  485. border-radius: 26rpx 26rpx 0px 0px;
  486. }
  487. .buyNumBox{
  488. padding: 30rpx;
  489. padding-top: 10rpx;
  490. padding-bottom: 70rpx;
  491. }
  492. .buyContCh{
  493. position: absolute;
  494. top: 53rpx;
  495. right: 36rpx;
  496. width: 36rpx;
  497. height: 36rpx;
  498. }
  499. .hotGoodsLine{
  500. margin-top: 30rpx;
  501. padding: 20rpx;
  502. background: #FFFFFF;
  503. border-radius: 16rpx;
  504. display: flex;
  505. }
  506. .hotGoodsLineImg{
  507. width: 208rpx;
  508. height: 194rpx;
  509. border-radius: 16rpx;
  510. border: 1px solid #EEEEEE;
  511. }
  512. .goodsName2{
  513. font-size: 28rpx;
  514. font-family: PingFangSC-Regular, PingFang SC;
  515. font-weight: 400;
  516. color: #333333;
  517. line-height: 40rpx;
  518. text-overflow: -o-ellipsis-lastline;
  519. overflow: hidden;
  520. text-overflow: ellipsis;
  521. display: -webkit-box;
  522. -webkit-line-clamp: 2;
  523. line-clamp: 2;
  524. -webkit-box-orient: vertical;
  525. min-height: 80rpx;
  526. width: 370rpx;
  527. }
  528. .hotGoodsLineRIght{
  529. padding-left: 24rpx;
  530. }
  531. .goodsPrice{
  532. display: flex;
  533. padding-top: 10rpx;
  534. }
  535. .goodsPrice11{
  536. font-size: 24rpx;
  537. font-weight: 400;
  538. color: #FF0000;
  539. padding-top: 8rpx;
  540. padding-right: 10rpx;
  541. }
  542. .goodsPrice22{
  543. font-size: 22rpx;
  544. font-weight: 400;
  545. color: #FF0000;
  546. padding-top: 8rpx;
  547. }
  548. .goodsPrice33{
  549. font-size: 32rpx;
  550. font-weight: 500;
  551. color: #FF0000;
  552. }
  553. .goodsPrice44{
  554. font-size: 24rpx;
  555. font-weight: 400;
  556. color: #999999;
  557. padding-top: 8rpx;
  558. padding-left: 5rpx;
  559. text-decoration:line-through;
  560. }
  561. .bottomBox{
  562. width: 750px;
  563. height: 120rpx;
  564. background: #FFFFFF;
  565. box-shadow: 0px -2px 10px 0px rgba(153,153,153,0.2000);
  566. position: fixed;left: 0;
  567. bottom: 0;
  568. display: flex;
  569. padding-bottom: env(safe-area-inset-bottom);
  570. }
  571. .bottomTxt{
  572. color: #666666;font-size: 22rpx;
  573. }
  574. .bottomImg{
  575. width: 48rpx;height: 48rpx;
  576. }
  577. .bottomImgBox{
  578. text-align: center;
  579. padding-top: 20rpx;
  580. padding-left: 40rpx;
  581. }
  582. .shareBtn{
  583. width: 100rpx;
  584. background: #FFFFFF;
  585. }
  586. button::after{
  587. border: none;
  588. }
  589. button{
  590. position: relative;
  591. display: block;
  592. margin-left: 0;
  593. margin-right: 0;
  594. padding-left: 0px;
  595. padding-right: 0px;
  596. box-sizing: border-box;
  597. // font-size: 18px;
  598. text-align: center;
  599. text-decoration: none;
  600. // line-height: 1;
  601. line-height: 1.35;
  602. // border-radius: 5px;
  603. -webkit-tap-highlight-color: transparent;
  604. overflow: hidden;
  605. color: #000000;
  606. background-color: #fff;
  607. height: 100%;
  608. }
  609. .bottomBtn{
  610. width: 450rpx;
  611. height: 74rpx;
  612. background: #D53533;
  613. border-radius: 37rpx;
  614. line-height: 74rpx;
  615. text-align: center;
  616. color: #FFFFFF;
  617. font-size: 30rpx;
  618. margin-top: 23rpx;
  619. margin-left: 70rpx;
  620. }
  621. .goodsDetailTitle{
  622. color: #333333;
  623. font-size: 30rpx;
  624. font-weight: 500;
  625. background: #FFFFFF;
  626. padding: 20rpx 24rpx;
  627. }
  628. .goodsDetail{
  629. margin-top: 20rpx;
  630. padding-bottom: 30rpx;
  631. background: #FFFFFF;
  632. }
  633. .goodsDetail img{
  634. width: 750rpx;
  635. }
  636. .goodsDetail image{
  637. width: 750rpx;
  638. }
  639. .mealBox{
  640. background: #FFFFFF;
  641. padding: 20rpx 24rpx;
  642. margin-top: 20rpx;
  643. }
  644. .mealTopRight{
  645. display: flex;
  646. }
  647. .mealLine{
  648. margin-top: 20rpx;
  649. }
  650. .itemname{
  651. width: 441rpx;
  652. text-overflow: -o-ellipsis-lastline;
  653. overflow: hidden;
  654. text-overflow: ellipsis;
  655. display: -webkit-box;
  656. -webkit-line-clamp: 2;
  657. line-clamp: 2;
  658. -webkit-box-orient: vertical;
  659. }
  660. .itemline{
  661. display: flex;
  662. padding: 10rpx 20rpx;
  663. justify-content: space-between;
  664. line-height: 37rpx;
  665. font-size: 26rpx;
  666. color: #333333;
  667. }
  668. .itemlinebOX{
  669. border-radius: 0px 0px 10px 10px;
  670. border: 2Rpx solid #EEEEEE;
  671. padding: 10rpx 0;
  672. }
  673. .mealTop{
  674. display: flex;
  675. justify-content: space-between;
  676. height: 72rpx;
  677. background: #F19D01 linear-gradient(90deg, #FFF7EB 0%, #FFEFD5 100%);
  678. border-radius: 10rpx 10rpx 0px 0px;
  679. line-height: 72rpx;
  680. color: #333333;
  681. font-size: 26rpx;
  682. padding: 0 20rpx;
  683. }
  684. .fwlcTitle{
  685. color: #333333;font-size: 30rpx;font-weight: 500;
  686. }
  687. .fuwuliucBox{
  688. background: #FFFFFF;
  689. padding: 20rpx 24rpx;
  690. margin-top: 20rpx;
  691. }
  692. .fwlcxian{
  693. padding:30rpx 42rpx 10rpx 42rpx ;
  694. display: flex;
  695. }
  696. .fwlcyuan{
  697. width: 16rpx;
  698. height: 16rpx;
  699. background: #FF0000;
  700. border-radius: 50%;
  701. }
  702. .fwHx{
  703. height: 4rpx;
  704. background: #FF0000;
  705. width: 186rpx;
  706. margin-top: 7rpx;
  707. }
  708. .fwTxt{
  709. display: flex;
  710. justify-content: space-between;
  711. }
  712. .fwTxtline{
  713. color: #333333;
  714. line-height: 37px;
  715. font-size: 26rpx;
  716. }
  717. .swiper{
  718. width: 750rpx;
  719. height: 700rpx;
  720. background: #FFFFFF;
  721. border-bottom: 1px solid #EEEEEE;
  722. }
  723. .swiper-item{
  724. width: 750rpx;
  725. height: 700rpx;
  726. }
  727. .swiper-itemImg{
  728. width: 750rpx;
  729. height: 700rpx;
  730. }
  731. .shopCtop{
  732. display: flex;
  733. padding: 20rpx 24rpx;
  734. justify-content: space-between;
  735. background: #FFFFFF;
  736. }
  737. .goodsPrice{
  738. display: flex;
  739. }
  740. .goodsPrice1{
  741. font-size: 24rpx;
  742. font-weight: 400;
  743. color: #FF0000;
  744. padding-top: 14rpx;
  745. padding-right: 14rpx;
  746. }
  747. .goodsPrice2{
  748. font-size: 28rpx;
  749. font-weight: 400;
  750. color: #FF0000;
  751. padding-top: 10rpx;
  752. }
  753. .goodsPrice3{
  754. font-size: 40rpx;
  755. font-weight: 500;
  756. color: #FF0000;
  757. }
  758. .goodsPrice4{
  759. font-size: 24rpx;
  760. font-weight: 400;
  761. color: #999999;
  762. padding-top: 14rpx;
  763. text-decoration:line-through;
  764. padding-left: 10rpx;
  765. }
  766. .Sold{
  767. font-weight: 400;
  768. color: #999999;
  769. font-size: 24rpx;
  770. padding-top: 18rpx;
  771. }
  772. .goodsName{
  773. font-size: 30rpx;
  774. line-height: 42rpx;
  775. font-weight: 500;
  776. color: #333333;
  777. padding: 20rpx 24rpx;
  778. padding-top: 0;
  779. padding-bottom: 16rpx;
  780. }
  781. .goodsMd{
  782. font-weight: 400;
  783. color: #999999;
  784. font-size: 26rpx;
  785. padding: 0 24rpx;
  786. padding-bottom: 20rpx;
  787. }
  788. .shopCont{
  789. background: #FFFFFF;
  790. }
  791. .modeBox{
  792. margin-top:20rpx ;
  793. padding: 5rpx 0;
  794. background: #FFFFFF;
  795. }
  796. .modeline{
  797. display: flex;
  798. padding: 15rpx 24rpx;
  799. }
  800. .modelineLeft{
  801. color: #999999;
  802. font-size: 26rpx;
  803. width: 150rpx;
  804. }
  805. .modeLineRight{
  806. color: #333333;
  807. font-size: 26rpx;
  808. width: 550rpx;
  809. }
  810. .expireNumber{
  811. width: 110rpx;
  812. text-align: right;
  813. }
  814. .authorizBox{
  815. width: 100vw;
  816. height: 100vh;
  817. background: rgba(0, 0, 0, 0.5);
  818. position: fixed;
  819. top: 0;
  820. left: 0;
  821. }
  822. .authorizCont{
  823. margin-top: 30vh;
  824. width: 564rpx;
  825. height: 408rpx;
  826. background: #FFFFFF;
  827. border-radius: 24rpx;
  828. margin-left: 93rpx;
  829. position: relative;
  830. }
  831. .authorizCloseImg{
  832. width: 62rpx;
  833. height: 62rpx;
  834. }
  835. .sqLogoBox{
  836. width: 180rpx;
  837. height: 180rpx;
  838. background: #FFFFFF;
  839. border-radius: 90rpx;
  840. text-align: center;
  841. position: absolute;
  842. top: -50rpx;
  843. left: 192rpx;
  844. }
  845. .authorizName{
  846. color: #333333;
  847. line-height: 42rpx;
  848. font-size: 30rpx;
  849. text-align: center;
  850. padding-top: 58rpx;
  851. }
  852. .authorizMs{
  853. color: #999999;
  854. line-height: 36rpx;
  855. font-size: 26rpx;
  856. width: 452rpx;
  857. padding-top: 24rpx;
  858. text-align: center;
  859. margin-left: 56rpx;
  860. }
  861. .authorizContbutton{
  862. width: 422rpx;
  863. height: 88rpx;
  864. background: #D53533;
  865. border-radius: 44rpx;
  866. line-height: 88rpx;
  867. text-align: center;
  868. font-size:30rpx;
  869. color: #FFFFFF;
  870. margin-top: 62rpx;
  871. margin-left:71rpx;
  872. }
  873. </style>