maintainItem.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962
  1. <template>
  2. <view class="box">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'商品详情'"></homenav>
  4. <view class="spwBox">
  5. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
  6. <swiper-item v-for="(item,index) in detail.openMaintainImgUrls">
  7. <view class="swiper-item">
  8. <img mode="aspectFit" :src="item" alt="" class="swiper-itemImg" >
  9. </view>
  10. </swiper-item>
  11. </swiper>
  12. </view>
  13. <view class="shopCont">
  14. <view style="display: flex;padding-left: 24rpx;">
  15. <view v-if="itemDefault.salesLabel==1" class="biaoqian">活动价</view>
  16. <view v-if="itemDefault.salesLabel==2" class="biaoqian">促销价</view>
  17. <view v-if="itemDefault.salesLabel==3" class="biaoqian">特价</view>
  18. <view v-if="itemDefault.salesLabel==4" class="biaoqian">限量抢购</view>
  19. <view v-if="itemDefault.salesLabel==5" class="biaoqian">{{itemDefault.salesLabelCustom}}</view>
  20. </view>
  21. <view class="shopCtop">
  22. <view class="goodsPrice" >
  23. <view class="goodsPrice2">¥</view>
  24. <view class="goodsPrice3" >{{itemDefault.money}}</view>
  25. <view class="goodsPrice4" v-if="itemDefault.showCrossedPrice==1">原价:
  26. <span class="goodsPrice41">¥{{itemDefault.crossedPrice}}</span>
  27. </view>
  28. </view>
  29. <button open-type="share" class="shareBox" >
  30. <view class="shareTxt">分享</view>
  31. <image class="shareIcon" src="../../static/timg/share.png" mode=""></image>
  32. </button>
  33. <!-- <view class="shareBox" >
  34. </view> -->
  35. </view>
  36. <view class="goodsName">{{detail.title}}</view>
  37. <view class="goodsMSBox" v-if="detail.content">
  38. <!-- <view class="goodsMs" v-if="detail.showOilType">机油类型|{{detail.showOilType}}</view>
  39. <view class="goodsMs" v-if="detail.showOilLevel">机油等级|{{detail.showOilLevel}}</view>
  40. <view class="goodsMs" v-if="detail.showFit">适配粘度|{{detail.showFit}}</view> -->
  41. <view class="goodsMs" v-for="(item,index) in detail.content.split(',')">{{item}}</view>
  42. </view>
  43. <view class="timeBox">
  44. <view class="itemTime" v-if="detail.validityType==1">套餐有效期:{{detail.validityTime}}</view>
  45. <view class="sell" v-if="itemDefault.showSalesCount==1">
  46. <span>已售:</span><span style="color: #FFC107;">{{itemDefault.dummyCount}}</span>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="buyBOx">
  51. <view class="buyLine" @click="ckCar" style="padding-bottom: 10rpx;">
  52. <view class="buyTitle">已选车型</view>
  53. <view class="buyData" style="display: flex;">
  54. <view class="carModelLine"> {{carInfo.carModel?carInfo.carModel:''}}</view>
  55. <image class="jtIcon" src="../../static/img2/byjt.png" mode=""></image>
  56. </view>
  57. </view>
  58. <view class="carTis" v-if="isRecommend!='true'">此套餐可能与爱车不适配</view>
  59. <view class="buyLine" style="padding: 10rpx 24rpx;"><!-- -->
  60. <view class="buyTitle" style="line-height: 52rpx;">商品规格</view>
  61. <view class="guigeBox">
  62. <scroll-view scroll-x="true" enable-flex="true" class="buyData guigeBox2">
  63. <!-- <view class="goodsGuige activeGuige" style="margin-right: 24rpx;">单次购买</view> -->
  64. <view class="goodsGuige" @click="goodsGuige(item)"
  65. :class="{activeGuige:item.id==itemDefault.id}" v-if="item.isShow==1"
  66. v-for="(item,index) in detail.packageItems">{{item.title}}</view>
  67. </scroll-view>
  68. </view>
  69. </view>
  70. <view class="buyLine" style="padding: 12rpx 24rpx;"><!-- -->
  71. <view class="buyTitle" style="line-height: 44rpx;">商品数量</view>
  72. <view class="buyData">
  73. <view class="numJsbox">
  74. <view class="numJj" @click="calculation(1)">-</view>
  75. <view class="goodsnum">
  76. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  77. </view>
  78. <view class="numJj" @click="calculation(2)">+</view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="buyLine">
  83. <view class="buyTitle">使用方式</view>
  84. <view class="buyData">到店使用</view>
  85. </view>
  86. <view class="buyLine">
  87. <view class="buyTitle">可用门店</view>
  88. <view class="buyData" v-if="itemDefault.packTimeShopName=='全部'">全部门店</view>
  89. <view @click="keyongFn" class="buyData " style="display: flex;" v-else>{{itemDefault.packTimeShopName.split(',').length}}个门店可用
  90. <image src="../../static/img2/byjt.png" mode="" class="hjt"></image>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="mealBox" v-if="itemDefault.content">
  95. <view class="fwlcTitle">套餐内容</view>
  96. <rich-text :nodes="itemDefault.content" style="background: #fff;"></rich-text>
  97. <!-- <view class="mealTop">
  98. <view class="mealName">套餐名称</view>
  99. <view class="mealNum">数量</view>
  100. <view class="mealexpire">有效期</view>
  101. </view>
  102. <view class="mealTop2">
  103. <view class="mealName">【豪华车型】全合成机油保养套餐</view>
  104. <view class="mealNum">2</view>
  105. <view class="mealexpire">18个月</view>
  106. </view>
  107. <view class="mealXj">
  108. <view class="xjLine">
  109. <view class="xjyd"></view>
  110. <view class="xjTxt">20项检查</view>
  111. </view>
  112. <view class="xjLine">
  113. <view class="xjyd"></view>
  114. <view class="xjTxt">20美日韩车型专用保养套餐适配机油</view>
  115. </view>
  116. </view>
  117. <view class="mealMs">
  118. <view class="mealMsline">
  119. 1.本套餐不限车辆使用;
  120. 2.机油套餐包含:机油,机油滤,工时费
  121. 3.购买此套餐,共享有2次保养次数。
  122. </view>
  123. </view> -->
  124. </view>
  125. <!-- 商品详情 -->
  126. <view class="goodsDetail" v-if="detail.detailContent">
  127. <view class="goodsDetailTitle">商品详情</view>
  128. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  129. <rich-text :nodes="detail.detailContent" style="background: #fff;"></rich-text>
  130. </view>
  131. <view class="bottomTianc"></view>
  132. <view class="bottom">
  133. <view class="bleft" @click="makePhoneCall(showSetting.tel)">
  134. <image class="kefuIcon" src="../../static/img2/kefu.png" mode=""></image>
  135. <view style="text-align: center;font-size: 20rpx;color: #110B01;">客服</view>
  136. </view>
  137. <view class="Btn commonBtn" @click="submitFn">立即购买</view>
  138. </view>
  139. <!-- 提交订单弹框-->
  140. <view class="tkBox" v-if="tkShow" @click="closeTk">
  141. <view class="tkCont" @click.stop="">
  142. <view class="tkTop">
  143. <image class="tkImg" v-if="itemDefault.mainImgUrl" :src="itemDefault.mainImgUrl" mode="" ></image>
  144. <image class="tkImg" v-else src="../../static/timg/noimg.png" mode="" ></image>
  145. <view class="tkNameBox">
  146. <view class="tkName">{{detail.title}}</view>
  147. <view style="display: flex;padding-bottom: 24rpx;">
  148. <view v-if="itemDefault.salesLabel==1" class="biaoqian">活动价</view>
  149. <view v-if="itemDefault.salesLabel==2" class="biaoqian">促销价</view>
  150. <view v-if="itemDefault.salesLabel==3" class="biaoqian">特价</view>
  151. <view v-if="itemDefault.salesLabel==4" class="biaoqian">限量抢购</view>
  152. <view v-if="itemDefault.salesLabel==5" class="biaoqian">{{itemDefault.salesLabelCustom}}</view>
  153. </view>
  154. <view class="goodsPrice">
  155. <view class="goodsPrice2">¥</view>
  156. <view class="goodsPrice3">{{itemDefault.money}}</view>
  157. <view class="goodsPrice4" v-if="itemDefault.showCrossedPrice==1">原价:
  158. <span class="goodsPrice41">¥{{itemDefault.crossedPrice}}</span>
  159. </view>
  160. </view>
  161. </view>
  162. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  163. </view>
  164. <view class="buyLine">
  165. <view class="buyTitle">商品规格</view>
  166. <view class="guigeBox">
  167. <scroll-view scroll-x="true" enable-flex="true" class="buyData guigeBox2">
  168. <view class="goodsGuige" @click="goodsGuige(item)"
  169. :class="{activeGuige:item.id==itemDefault.id}" v-if="item.isShow==1"
  170. v-for="(item,index) in detail.packageItems">{{item.title}}</view>
  171. </scroll-view>
  172. </view>
  173. </view>
  174. <view class="buyLine">
  175. <view class="buyTitle">商品数量</view>
  176. <view class="buyData">
  177. <view class="numJsbox">
  178. <view class="numJj" @click="calculation(1)">-</view>
  179. <view class="goodsnum">
  180. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  181. </view>
  182. <view class="numJj" @click="calculation(2)">+</view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="tkBottom">
  187. <view class="tkBottomBtn commonBtn" @click="goSubmit">立即购买</view>
  188. </view>
  189. </view>
  190. </view>
  191. <!-- 提交订单弹框-->
  192. <!-- 门店列表-->
  193. <view class="tkBox" v-if="keyongShow" @click="keyongClose">
  194. <view class="tkCont2">
  195. <view class="tkTOp2">
  196. <view class="chahao"></view>
  197. <view class="kymd">可用门店</view>
  198. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  199. </view>
  200. <view class="keyongBOx">
  201. <view class="keyongLine" v-for="(item,index) in itemDefault.packTimeShopName.split(',')">
  202. {{item}}
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </template>
  209. <script>
  210. import homenav from "../../components/homenav/nav.vue"
  211. export default {
  212. components: {
  213. homenav
  214. },
  215. data() {
  216. return {
  217. themeColor:'',
  218. ext:'',
  219. goodsnum:1,
  220. details:'11233',
  221. maintainId:'',
  222. detail:'',
  223. itemDefault:'',
  224. carInfo:'',
  225. userInfo:'',
  226. isRecommend:'',
  227. tkShow:false,
  228. keyongShow:false,
  229. showSetting:'',
  230. iStatusBarHeight:'',
  231. }
  232. },
  233. onLoad(opt) {
  234. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  235. this.ext = this.$common.getExtStoreId();
  236. this.themeColor = uni.getStorageSync("themeColor");
  237. this.maintainId=opt.maintainId
  238. this.carInfo=this.$store.state.carInfo;
  239. this.userInfo=this.$store.state.userInfo;
  240. this.isRecommend=opt.isRecommend
  241. //console.log("this.isRecommend=="+this.isRecommend)
  242. if(this.userInfo){
  243. this.getdetail()
  244. this.getInfo()
  245. }else{
  246. this.$common.automaticlogin().then(val => {
  247. this.userInfo=this.$store.state.userInfo;
  248. this.getdetail()
  249. this.getInfo()
  250. })
  251. }
  252. },
  253. onShow() {
  254. var car =uni.getStorageSync("byCar")
  255. if(car){
  256. this.carInfo=car;
  257. this.getdetail()
  258. this.isRecommend=false
  259. }
  260. },
  261. methods: {
  262. makePhoneCall(tel){
  263. uni.makePhoneCall({
  264. phoneNumber: tel,
  265. });
  266. },
  267. getInfo(){
  268. this.$http('openreservation/getInfo', {
  269. lat: '',
  270. lng: '',
  271. }, 'GET').then(res => {
  272. this.showSetting=res.data.showSetting
  273. })
  274. },
  275. ckCar(){
  276. uni.navigateTo({
  277. url:'../user/addCar/cailist?type=5'
  278. })
  279. },
  280. goodsGuige(item){
  281. this.itemDefault=item
  282. this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
  283. },
  284. goSubmit(){
  285. this.itemDefault.goodsnum=this.goodsnum
  286. this.itemDefault.goodsname=this.detail.title
  287. this.itemDefault.itemId=this.detail.id
  288. this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
  289. uni.setStorage({
  290. key: 'itemDefault',
  291. data: this.itemDefault,
  292. success: function () {
  293. uni.navigateTo({
  294. url:'maintainSubmit'
  295. })
  296. }
  297. });
  298. },
  299. closeTk(){
  300. this.tkShow=false
  301. },
  302. keyongClose(){
  303. this.keyongShow=false;
  304. },
  305. keyongFn(){
  306. this.keyongShow=true;
  307. },
  308. submitFn(){
  309. if(this.itemDefault){
  310. this.tkShow=true
  311. }else{
  312. uni.showToast({
  313. title: '请选择商品规格',
  314. icon:'none',
  315. duration: 3000
  316. });
  317. /* uni.showModal({
  318. title: '提示',
  319. content:"请选择商品规格",
  320. success: function(resTKk) {
  321. }
  322. }); */
  323. }
  324. },
  325. calculation(type){
  326. if(type==1){
  327. if(this.goodsnum>1){
  328. this.goodsnum--
  329. }
  330. }else{
  331. console.log("+++")
  332. this.goodsnum++
  333. }
  334. },
  335. getdetail(){
  336. uni.showLoading({
  337. title: '加载中'
  338. })
  339. this.$http('openMaintain/detail/'+this.maintainId, {
  340. /* maintainId:this.maintainId */
  341. }, 'GET').then(res => {
  342. uni.hideLoading();
  343. this.detail=res.data
  344. this.detail.packageItems.forEach(item=>{
  345. if(item.isDefault==1){
  346. this.itemDefault=item
  347. this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
  348. }
  349. if(item.content){
  350. item.content=item.content.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
  351. }
  352. })
  353. if(this.detail.detailContent){
  354. this.detail.detailContent=this.detail.detailContent.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
  355. }
  356. })
  357. },
  358. },
  359. onShareAppMessage(res) {
  360. var img='';
  361. if(this.detail.openMaintainImgUrls.length>0){
  362. img=this.detail.openMaintainImgUrls[0]
  363. }
  364. return {
  365. title: this.detail.title,
  366. imageUrl:img,
  367. path: 'pages/subPack/maintainItem?maintainId=' + this.maintainId+'&isRecommend='+this.isRecommend+'&shareId='+this.userInfo.openId,
  368. success(res){
  369. uni.showToast({
  370. title:'分享成功'
  371. })
  372. },
  373. fail(res){
  374. uni.showToast({
  375. title:'分享失败',
  376. icon:'none',
  377. duration: 3000
  378. })
  379. }
  380. }
  381. },
  382. }
  383. </script>
  384. <style scoped lang="less">
  385. .box {
  386. width: 100vw;
  387. min-height: 100vh;
  388. background: #F4F4F4;
  389. }
  390. .swiper{
  391. width: 750rpx;
  392. height: 700rpx;
  393. background: #FFFFFF;
  394. /* border-bottom: 1px solid #EEEEEE; */
  395. }
  396. .swiper-item{
  397. width: 750rpx;
  398. height: 700rpx;
  399. }
  400. .swiper-itemImg{
  401. width: 750rpx;
  402. height: 700rpx;
  403. }
  404. .goodsPrice{
  405. display: flex;
  406. }
  407. .goodsPrice1{
  408. font-size: 24rpx;
  409. font-weight: 400;
  410. color: #EC0F0A;
  411. padding-top: 14rpx;
  412. padding-right: 14rpx;
  413. }
  414. .goodsPrice2{
  415. font-size: 28rpx;
  416. font-weight: 400;
  417. color: #EC0F0A;
  418. padding-top: 16rpx;
  419. }
  420. .goodsPrice3{
  421. font-size: 44rpx;
  422. font-weight: 500;
  423. color: #EC0F0A;
  424. }
  425. .goodsPrice4{
  426. font-size: 24rpx;
  427. font-weight: 400;
  428. color: #999999;
  429. padding-top: 20rpx;
  430. padding-left: 10rpx;
  431. }
  432. .goodsPrice41{
  433. text-decoration:line-through;
  434. }
  435. .Sold{
  436. font-weight: 400;
  437. color: #999999;
  438. font-size: 24rpx;
  439. padding-top: 18rpx;
  440. }
  441. .goodsName{
  442. font-size: 30rpx;
  443. line-height: 42rpx;
  444. font-weight: 500;
  445. color: #333333;
  446. padding: 20rpx 24rpx;
  447. padding-top: 0;
  448. padding-bottom: 16rpx;
  449. }
  450. .goodsMd{
  451. font-weight: 400;
  452. color: #999999;
  453. font-size: 26rpx;
  454. padding: 0 24rpx;
  455. padding-bottom: 20rpx;
  456. }
  457. .shopCont{
  458. background: #FFFFFF;
  459. }
  460. .shopCtop{
  461. display: flex;
  462. padding: 20rpx 24rpx 6rpx 20rpx;
  463. justify-content: space-between;
  464. background: #FFFFFF;
  465. }
  466. .goodsMSBox{
  467. display: flex;padding-left: 24rpx;
  468. }
  469. .goodsMs{
  470. font-size: 18rpx;
  471. color: #FF063A;
  472. padding: 2rpx 8rpx;
  473. border-radius: 6rpx;
  474. border: 1rpx solid #FF063A;
  475. margin-right: 16rpx;
  476. }
  477. .timeBox{
  478. display: flex;justify-content: space-between;
  479. padding: 20rpx 24rpx;
  480. font-size: 26rpx;
  481. color: #666E80;
  482. }
  483. .shareIcon{
  484. width: 33rpx;height: 33rpx;margin-left: 10rpx;
  485. }
  486. .shareBox{
  487. display: flex;font-size: 24rpx;
  488. color: #666666;padding-top: 6rpx;
  489. line-height: 33rpx;
  490. }
  491. .jtIcon{
  492. margin-top: 8rpx;
  493. width: 12rpx;
  494. height: 22rpx;
  495. margin-left: 6rpx;
  496. }
  497. .buyLine{
  498. display: flex;justify-content: space-between;
  499. padding: 15rpx 24rpx;font-size: 26rpx;
  500. color: #666E80;
  501. }
  502. .buyBOx{
  503. background: #FFFFFF;margin-top: 20rpx;
  504. padding: 15rpx 0;
  505. }
  506. .buyData{
  507. color: #222222;display: flex;
  508. }
  509. .goodsGuige{
  510. /* width: 150rpx; */
  511. height: 50rpx;line-height: 50rpx;
  512. background: #F6F6F6;
  513. border-radius: 5rpx;
  514. font-size: 24rpx;
  515. color: #222222;text-align: center;
  516. margin-left: 24rpx;
  517. padding: 0 20rpx;
  518. display: inline-block;
  519. }
  520. .activeGuige{
  521. /* width: 146rpx; */
  522. height: 46rpx;line-height: 46rpx;
  523. border: 2rpx solid #FF0035;
  524. border-radius: 5rpx;
  525. font-size: 24rpx;
  526. color: #FF0035;text-align: center;
  527. background: #ffffff;
  528. }
  529. .numJsbox{
  530. display: flex;overflow: hidden;
  531. }
  532. .buyCont{
  533. position: absolute;
  534. left: 0;
  535. bottom: 0;
  536. width: 750rpx;
  537. height: 688rpx;
  538. background: #FFFFFF;
  539. border-radius: 26rpx 26rpx 0px 0px;
  540. }
  541. .buyNumBox{
  542. padding: 30rpx;
  543. padding-top: 10rpx;
  544. padding-bottom: 70rpx;
  545. }
  546. .buyContCh{
  547. position: absolute;
  548. top: 53rpx;
  549. right: 36rpx;
  550. width: 36rpx;
  551. height: 36rpx;
  552. }
  553. .goodsnum{
  554. width: 44rpx;
  555. height: 44rpx;
  556. background: #F4F5F7;
  557. line-height: 44rpx;
  558. text-align: center;
  559. font-weight: 500;
  560. color: #333333;
  561. font-size: 24rpx;
  562. margin: 0 4rpx;
  563. border-left:1px solid #dddddd;
  564. border-right:1px solid #dddddd;
  565. }
  566. .goodsnumInput{
  567. width: 44rpx;
  568. height: 44rpx;
  569. background: #FFFFFF;
  570. line-height: 44rpx;
  571. text-align: center;
  572. font-weight: 500;
  573. color: #333333;
  574. font-size: 24rpx;
  575. }
  576. .numJj{
  577. width: 44rpx;
  578. height: 44rpx;
  579. background: #ffffff;
  580. border-radius: 0px 6rpx 6rpx 0px;
  581. text-align: center;
  582. line-height: 44rpx;
  583. font-size: 32rpx;
  584. color: #999999;
  585. }
  586. .numJsbox{
  587. border: 1px solid #dddddd;
  588. border-radius: 6rpx;
  589. }
  590. .mealBox{
  591. background: #FFFFFF;
  592. padding: 20rpx 24rpx;
  593. margin-top: 20rpx;
  594. font-size: 26rpx;
  595. }
  596. .fwlcTitle{
  597. font-size: 26rpx;padding-bottom: 24rpx;
  598. color: #666E80;
  599. }
  600. .mealTop{
  601. display: flex;
  602. justify-content: space-between;
  603. height: 72rpx;
  604. line-height: 72rpx;
  605. font-weight: 500;
  606. font-size: 26rpx;
  607. color: #222222;
  608. font-size: 26rpx;
  609. padding: 0 20rpx;
  610. }
  611. .mealNum{
  612. text-align: center;
  613. width: 120rpx;
  614. }
  615. .mealexpire{
  616. text-align: center; width: 120rpx;
  617. }
  618. .mealName{
  619. width: 460rpx;
  620. }
  621. .mealTop2{
  622. display: flex;
  623. justify-content: space-between;
  624. height: 72rpx;
  625. line-height: 72rpx;
  626. font-weight: 500;
  627. font-size: 26rpx;
  628. color: #222222;
  629. font-size: 26rpx;
  630. padding: 0 20rpx;
  631. background: #FFF6DB;
  632. }
  633. .mealXj{
  634. background: #FFFCF3;
  635. }
  636. .xjLine{
  637. display: flex;
  638. font-weight: 500;
  639. font-size: 26rpx;
  640. color: #222222;
  641. padding: 20rpx 20rpx;
  642. }
  643. .xjyd{
  644. width: 8rpx;
  645. height: 8rpx;
  646. background: #FABF1B;
  647. border-radius: 50rpx;
  648. margin-top: 12rpx;
  649. margin-right: 10rpx;
  650. }
  651. .mealMs{
  652. background: #FFFFFF;
  653. padding: 20rpx;
  654. font-weight: 400;
  655. font-size: 24rpx;
  656. color: #9A9A9A;
  657. line-height: 38rpx;
  658. }
  659. .goodsDetailTitle{
  660. font-size: 26rpx;
  661. color: #666E80;
  662. background: #FFFFFF;
  663. padding-bottom: 24rpx;
  664. }
  665. .goodsDetail{
  666. padding: 20rpx;
  667. background: #FFFFFF;
  668. font-size: 26rpx;
  669. margin-top: 20rpx;
  670. }
  671. .goodsDetail img{
  672. width: 750rpx;
  673. }
  674. .goodsDetail image{
  675. width: 750rpx;
  676. }.bottom{
  677. background: #FFFFFF;
  678. display: flex;
  679. justify-content: space-between;
  680. position: fixed;
  681. width: 100%;
  682. padding:30rpx 0;
  683. padding-bottom: constant(safe-area-inset-bottom);
  684. padding-bottom: env(safe-area-inset-bottom);
  685. left: 0;bottom: 0;
  686. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  687. }
  688. .bleft{
  689. font-weight: 500;
  690. color: #222222;
  691. padding-left: 50rpx;
  692. }
  693. .Btn{
  694. width: 532rpx;text-align: center;
  695. height: 86rpx;line-height: 86rpx;
  696. /* background: #FCD903; */
  697. border-radius: 43rpx;
  698. font-size: 32rpx;
  699. color: #110B01;
  700. margin-right: 36rpx;
  701. }
  702. .kefuIcon{
  703. width: 50rpx;height: 50rpx;
  704. }
  705. .bottomTianc{
  706. height: 160rpx;
  707. padding-bottom: constant(safe-area-inset-bottom);
  708. padding-bottom: env(safe-area-inset-bottom);
  709. }
  710. .carTis{
  711. color: #EC0F0A;font-size: 20rpx;
  712. text-align: right;
  713. padding-right: 24rpx;
  714. }
  715. .guigeBox{
  716. /* height: 50rpx; */
  717. height: 52rpx;
  718. width: 500rpx;
  719. overflow: hidden;
  720. }
  721. .guigeBox2{
  722. flex-wrap: nowrap;justify-content: flex-end;white-space: nowrap;
  723. height: 50rpx;
  724. }
  725. .tkBox{
  726. width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
  727. position: fixed;left: 0;top: 0;
  728. z-index: 11;
  729. }
  730. .tkCont{
  731. width: 750rpx;
  732. height: 611rpx;
  733. background: #FFFFFF;
  734. border-radius: 28rpx 28rpx 0rpx 0rpx;
  735. position: absolute;
  736. left: 0;bottom: 0;
  737. padding-bottom: constant(safe-area-inset-bottom);
  738. padding-bottom: env(safe-area-inset-bottom);
  739. }
  740. .tkCont2{
  741. width: 750rpx;
  742. height:50vh;
  743. background: #FFFFFF;
  744. border-radius: 28rpx 28rpx 0rpx 0rpx;
  745. position: absolute;
  746. left: 0;bottom: 0;
  747. padding-bottom: constant(safe-area-inset-bottom);
  748. padding-bottom: env(safe-area-inset-bottom);
  749. overflow-y: auto;
  750. }
  751. .tkTop{
  752. display: flex;padding: 40rpx 24rpx;
  753. padding-bottom: 25rpx;
  754. }
  755. .tkImg{
  756. width: 160rpx;
  757. height: 160rpx;border-radius: 13rpx;
  758. }
  759. .tkName{
  760. font-size: 30rpx;
  761. color: #222222;
  762. line-height: 42rpx;
  763. font-weight: 500;
  764. text-overflow: -o-ellipsis-lastline;
  765. overflow: hidden;
  766. text-overflow: ellipsis;
  767. display: -webkit-box;
  768. -webkit-line-clamp: 2;
  769. line-clamp: 2;
  770. -webkit-box-orient: vertical;
  771. }
  772. .tkNameBox{
  773. padding-left: 24rpx;width: 500rpx;
  774. }
  775. .chahao{
  776. width: 22rpx;height: 22rpx;padding-top: 10rpx;
  777. }
  778. .buyLine{
  779. display: flex;justify-content: space-between;
  780. padding: 15rpx 24rpx;font-size: 26rpx;
  781. color: #666E80;
  782. }
  783. .buyBOx{
  784. background: #FFFFFF;margin-top: 20rpx;
  785. }
  786. .buyData{
  787. color: #222222;display: flex;
  788. }
  789. .carModelLine{
  790. max-width: 560rpx;
  791. white-space: nowrap; /* 确保文本在一行内显示 */
  792. overflow: hidden; /* 超出容器部分隐藏 */
  793. text-overflow: ellipsis
  794. }
  795. .activeGuige{
  796. /* width: 146rpx; */
  797. height: 46rpx;line-height: 46rpx;
  798. border: 2rpx solid #FF0035;
  799. border-radius: 5rpx;
  800. font-size: 24rpx;
  801. color: #FF0035;text-align: center;
  802. background: #ffffff;
  803. font-weight: 500;
  804. }
  805. .numJsbox{
  806. display: flex;
  807. }
  808. .buyCont{
  809. position: absolute;
  810. left: 0;
  811. bottom: 0;
  812. width: 750rpx;
  813. height: 688rpx;
  814. background: #FFFFFF;
  815. border-radius: 26rpx 26rpx 0px 0px;
  816. }
  817. .buyNumBox{
  818. padding: 30rpx;
  819. padding-top: 10rpx;
  820. padding-bottom: 70rpx;
  821. }
  822. .buyContCh{
  823. position: absolute;
  824. top: 53rpx;
  825. right: 36rpx;
  826. width: 36rpx;
  827. height: 36rpx;
  828. }
  829. .tkBottomBtn{
  830. width: 661rpx;text-align: center;
  831. height: 86rpx;line-height: 86rpx;
  832. /* background: #FCD903; */
  833. border-radius: 43rpx;
  834. font-size: 32rpx;
  835. color: #110B01;
  836. }
  837. .tkBottom{
  838. width: 750rpx;
  839. padding-top: 30rpx;
  840. background: #FFFFFF;
  841. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  842. padding-bottom: constant(safe-area-inset-bottom);
  843. padding-bottom: env(safe-area-inset-bottom);
  844. display: flex;justify-content: center;align-items: center;
  845. position: absolute;left: 0;bottom: 0;
  846. }
  847. .tkTOp2{
  848. display: flex;justify-content: space-between;
  849. font-size: 30rpx;
  850. padding: 30rpx;
  851. }
  852. .keyongLine{
  853. padding: 16rpx 24rpx;
  854. font-size: 26rpx;
  855. border-bottom: 1px solid #eaeaea;
  856. }
  857. .mealBox img{
  858. width: 100%;
  859. }
  860. .hjt{
  861. width: 12rpx;height: 24rpx;
  862. margin-top: 8rpx;margin-left: 10rpx;
  863. }
  864. button::after{
  865. border: none;
  866. }
  867. button{
  868. position: relative;
  869. display: block;
  870. margin-left: 0;
  871. margin-right: 0;
  872. padding-left: 0px;
  873. padding-right: 0px;
  874. box-sizing: border-box;
  875. // font-size: 18px;
  876. text-align: center;
  877. text-decoration: none;
  878. // line-height: 1;
  879. line-height: 1.35;
  880. // border-radius: 5px;
  881. -webkit-tap-highlight-color: transparent;
  882. overflow: hidden;
  883. color: #000000;
  884. background-color: #fff;
  885. height: 100%;
  886. }
  887. .biaoqian{
  888. background: #FF0035;
  889. border-radius: 24rpx 24rpx 25rpx 0rpx;
  890. padding: 4rpx 16rpx;
  891. font-size: 22rpx;
  892. color: #FFFFFF;
  893. margin-top: 24rpx;
  894. margin-bottom: -15rpx;
  895. }
  896. .tkNameBox .biaoqian{
  897. margin-top: 16rpx;margin-bottom: -18rpx;
  898. }
  899. </style>