tireDetail.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198
  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 3">
  7. <view class="swiper-item">
  8. <img mode="aspectFit" src="http://dmsphoto.66km.com.cn/thFiles/339E5DB5-F727-4F0F-AD41-1A2EBAB73883.png" 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 class="biaoqian">4条到手单价</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" >294.90</view>
  25. <view class="goodsPrice4" >优惠前:
  26. <span class="goodsPrice41">¥666</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="nameBox">
  37. <view class="shipei">适配</view>
  38. <view class="goodsName">
  39. 路博(ROADBOSS)轮胎 195/65R5 91H HP601
  40. </view>
  41. </view>
  42. <view class="goodsMSBox" >
  43. <!-- <view class="goodsMs" v-if="detail.showOilType">机油类型|{{detail.showOilType}}</view>
  44. <view class="goodsMs" v-if="detail.showOilLevel">机油等级|{{detail.showOilLevel}}</view>
  45. <view class="goodsMs" v-if="detail.showFit">适配粘度|{{detail.showFit}}</view> -->
  46. <view class="goodsMs" v-for="(item,index) in 4">标签</view>
  47. </view>
  48. <!-- <view class="timeBox">
  49. <view class="itemTime" v-if="detail.validityType==1">套餐有效期:{{detail.validityTime}}</view>
  50. <view class="sell" v-if="itemDefault.showSalesCount==1">
  51. <span>已售:</span><span style="color: #FFC107;">{{itemDefault.dummyCount}}</span>
  52. </view>
  53. </view> -->
  54. <view class="topGuigeBox">
  55. <view class="topGuigeLeft">
  56. <image src="../../static/img2/duihao.png" mode="" class="duihaoImg"></image>
  57. <span>品牌·规格·花纹·载重系数</span>
  58. </view>
  59. <image src="../../static/img2/hjt.png" mode="" class="jtImg1"></image>
  60. </view>
  61. </view>
  62. <!-- 促销-->
  63. <view class="promotion">
  64. <view class="promotionLeft">
  65. <view class="promotionTitle">促销</view>
  66. <view class="promotionBox">
  67. <view class="promotionLine" v-for="(item,index) in 5">
  68. <view class="chu">赠</view>
  69. <view class="promotionLineTxt">3年换新保障x1</view>
  70. </view>
  71. </view>
  72. </view>
  73. <image src="../../static/img2/hjt.png" mode="" class="jtImg1"></image>
  74. </view>
  75. <!-- 促销-->
  76. <view class="buyBOx">
  77. <view class="buyLine" @click="ckCar" style="padding-bottom: 10rpx;">
  78. <view class="buyTitle">已选车型</view>
  79. <view class="buyData" style="display: flex;">
  80. <view class="carModelLine"> {{carInfo.carModel?carInfo.carModel:'请选择车辆'}}</view>
  81. <image class="jtIcon" src="../../static/img2/byjt.png" mode=""></image>
  82. </view>
  83. </view>
  84. <view class="carTis" v-if="isRecommend!='true'">此轮胎可能与爱车不适配</view>
  85. <view class="buyLine" style="padding: 12rpx 24rpx;"><!-- -->
  86. <view class="buyTitle" style="line-height: 44rpx;">商品数量</view>
  87. <view class="buyData">
  88. <view class="numJsbox">
  89. <view class="numJj" @click="calculation(1)">-</view>
  90. <view class="goodsnum">
  91. <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
  92. </view>
  93. <view class="numJj" @click="calculation(2)">+</view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="buyLine">
  98. <view class="buyTitle">服务方式</view>
  99. <view class="buyData">到店使用</view>
  100. </view>
  101. <view class="buyLine">
  102. <view class="buyTitle">服务门店</view>
  103. <view class="buyData" v-if="itemDefault.packTimeShopName=='全部'">全部门店</view>
  104. <view @click="keyongFn" class="buyData " style="display: flex;" v-else>{{itemDefault.packTimeShopName.split(',').length}}个门店可用
  105. <image src="../../static/img2/byjt.png" mode="" class="hjt"></image>
  106. </view>
  107. </view>
  108. <view class="buyLine" style="padding-bottom: 10rpx;">
  109. <view class="buyTitle">商品库存</view>
  110. <view class="buyData" >
  111. <view class="carModelLine"> 有货/门店 </view>
  112. </view>
  113. </view>
  114. <view class="carTis" style="color: #797979;">当天23:59分之前下单,次日内即可进店</view>
  115. </view>
  116. <!-- 购买流程-->
  117. <view class="gmlc">
  118. <view class="gmlcTitle">购买流程</view>
  119. <view>
  120. <image class="gmlcImg" src="http://dmsphoto.66km.com.cn/thFiles/789E7F17-D744-4E80-9EFD-75FF15BA2584.png" mode="widthFix"></image>
  121. </view>
  122. </view>
  123. <view class="mealBox" v-if="itemDefault.content">
  124. <view class="fwlcTitle">套餐内容</view>
  125. <rich-text :nodes="itemDefault.content" style="background: #fff;"></rich-text>
  126. <!-- <view class="mealTop">
  127. <view class="mealName">套餐名称</view>
  128. <view class="mealNum">数量</view>
  129. <view class="mealexpire">有效期</view>
  130. </view>
  131. <view class="mealTop2">
  132. <view class="mealName">【豪华车型】全合成机油保养套餐</view>
  133. <view class="mealNum">2</view>
  134. <view class="mealexpire">18个月</view>
  135. </view>
  136. <view class="mealXj">
  137. <view class="xjLine">
  138. <view class="xjyd"></view>
  139. <view class="xjTxt">20项检查</view>
  140. </view>
  141. <view class="xjLine">
  142. <view class="xjyd"></view>
  143. <view class="xjTxt">20美日韩车型专用保养套餐适配机油</view>
  144. </view>
  145. </view>
  146. <view class="mealMs">
  147. <view class="mealMsline">
  148. 1.本套餐不限车辆使用;
  149. 2.机油套餐包含:机油,机油滤,工时费
  150. 3.购买此套餐,共享有2次保养次数。
  151. </view>
  152. </view> -->
  153. </view>
  154. <!-- 商品详情 -->
  155. <view class="goodsDetail" v-if="detail.detailContent">
  156. <view class="goodsDetailTitle">商品详情</view>
  157. <!-- <view v-html="info.details" style="background: #fff;"></view> -->
  158. <rich-text :nodes="detail.detailContent" style="background: #fff;"></rich-text>
  159. </view>
  160. <view class="bottomTianc"></view>
  161. <view class="bottom">
  162. <view class="bleft" @click="makePhoneCall(showSetting.tel)">
  163. <image class="kefuIcon" src="../../static/img2/kefu.png" mode=""></image>
  164. <view style="text-align: center;font-size: 20rpx;color: #110B01;">客服</view>
  165. </view>
  166. <view class="Btn commonBtn" @click="submitFn">立即购买</view>
  167. </view>
  168. <!-- 提交订单弹框-->
  169. <view class="tkBox" v-if="tkShow" @click="closeTk">
  170. <view class="tkCont" @click.stop="">
  171. <view class="tkTop">
  172. <image class="tkImg" v-if="itemDefaultTk.mainImgUrl" :src="itemDefaultTk.mainImgUrl" mode="" ></image>
  173. <image class="tkImg" v-else src="../../static/timg/noimg.png" mode="" ></image>
  174. <view class="tkNameBox">
  175. <view class="tkName"> <span class="isRecommend">适配</span>
  176. <span class="tkltName">路博(ROADBOSS)轮胎 195/65R5 91H HP601</span>
  177. </view>
  178. <view style="display: flex;padding-bottom: 24rpx;">
  179. <view class="biaoqian">4条到手单价</view>
  180. </view>
  181. <view class="goodsPrice">
  182. <view class="goodsPrice2">¥</view>
  183. <view class="goodsPrice3">299</view>
  184. <view class="goodsPrice4">
  185. <span style="color: #EC0F0A;padding-right: 20rpx;"></span>/条
  186. <span class="goodsPrice41">优惠前¥399</span>
  187. </view>
  188. </view>
  189. </view>
  190. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  191. </view>
  192. <view class="buyNumBox">
  193. <view class="buyNumTitle">购买数量</view>
  194. <view class="buyNumLineBox">
  195. <view class="buyNumline">1条</view>
  196. <view class="buyNumline">2条</view>
  197. <view class="buyNumline">3条</view>
  198. <view class="buyNumline">4条</view>
  199. </view>
  200. </view>
  201. <view class="tkBottom">
  202. <view class="tkBottomBtn commonBtn" @click="goSubmit">立即购买</view>
  203. </view>
  204. </view>
  205. </view>
  206. <!-- 提交订单弹框-->
  207. <!-- 门店列表-->
  208. <view class="tkBox" v-if="keyongShow" @click="keyongClose">
  209. <view class="tkCont2">
  210. <view class="tkTOp2">
  211. <view class="chahao"></view>
  212. <view class="kymd">可用门店</view>
  213. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  214. </view>
  215. <view class="keyongBOx">
  216. <view class="keyongLine" v-for="(item,index) in itemDefault.packTimeShopName.split(',')">
  217. {{item}}
  218. </view>
  219. </view>
  220. </view>
  221. </view>
  222. <!-- 产品弹框-->
  223. <view class="tkBox canpinTkBox" v-if="canpinShow">
  224. <view class="tkCont2 canpinTk">
  225. <view class="tkTOp2">
  226. <view class="chahao"></view>
  227. <view class="kymd">产品参数</view>
  228. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  229. </view>
  230. <view class="canpinBox">
  231. <view class="canpinLine">
  232. <view class="canpinLineLeft">轮胎规格</view>
  233. <view class="canpinRgiht">215/50 R18</view>
  234. </view>
  235. <view class="canpinLine">
  236. <view class="canpinLineLeft">速度级别</view>
  237. <view class="canpinRgiht">215/50 R18</view>
  238. </view>
  239. <view class="canpinLine">
  240. <view class="canpinLineLeft">载重系数</view>
  241. <view class="canpinRgiht">96</view>
  242. </view>
  243. <view class="canpinLine">
  244. <view class="canpinLineLeft">花纹</view>
  245. <view class="canpinRgiht">96</view>
  246. </view>
  247. <view class="canpinLine">
  248. <view class="canpinLineLeft">轮箍直径</view>
  249. <view class="canpinRgiht">96</view>
  250. </view>
  251. <view class="canpinLine">
  252. <view class="canpinLineLeft">横截面宽度</view>
  253. <view class="canpinRgiht">96</view>
  254. </view>
  255. <view class="canpinLine">
  256. <view class="canpinLineLeft">扁平比</view>
  257. <view class="canpinRgiht">96</view>
  258. </view>
  259. <view class="canpinLine">
  260. <view class="canpinLineLeft">品牌</view>
  261. <view class="canpinRgiht">96</view>
  262. </view>
  263. <view class="canpinLine">
  264. <view class="canpinLineLeft">商品编码</view>
  265. <view class="canpinRgiht" style="display: flex;">
  266. <span>TTMTP20240570001</span>
  267. <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  268. </view>
  269. </view>
  270. <view class="canpinLine">
  271. <view class="canpinLineLeft">DOT</view>
  272. <view class="canpinRgiht">-</view>
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. <!-- 产品弹框-->
  278. <!-- 促销介绍-->
  279. <view class="tkBox cktk" v-if="cxShow">
  280. <view class="tkCont2">
  281. <view class="tkTOp2">
  282. <view class="chahao"></view>
  283. <view class="kymd">促销介绍</view>
  284. <image class="chahao" src="../../static/img2/chahao.png" mode="" @click="closeTk"></image>
  285. </view>
  286. <view class="keyongBOx">
  287. <view class="promotionBox cktkLineBox">
  288. <view class="promotionLine " v-for="(item,index) in 5">
  289. <view class="chu">赠</view>
  290. <view class="promotionLineTxt">3年换新保障x1</view>
  291. </view>
  292. </view>
  293. </view>
  294. </view>
  295. </view>
  296. <!-- 促销介绍-->
  297. </view>
  298. </template>
  299. <script>
  300. import homenav from "../../components/homenav/nav.vue"
  301. export default {
  302. components: {
  303. homenav
  304. },
  305. data() {
  306. return {
  307. themeColor:'',
  308. ext:'',
  309. goodsnum:1,
  310. details:'11233',
  311. maintainId:'',
  312. detail:'',
  313. itemDefault:'',
  314. carInfo:'',
  315. userInfo:'',
  316. isRecommend:'',
  317. tkShow:false,
  318. keyongShow:false,
  319. showSetting:'',
  320. iStatusBarHeight:'',
  321. itemDefaultTk:'',
  322. canpinShow:false,
  323. cxShow:false,
  324. }
  325. },
  326. onLoad(opt) {
  327. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  328. this.ext = this.$common.getExtStoreId();
  329. this.themeColor = uni.getStorageSync("themeColor");
  330. this.maintainId=opt.maintainId
  331. this.carInfo=this.$store.state.carInfo;
  332. this.userInfo=this.$store.state.userInfo;
  333. this.isRecommend=opt.isRecommend
  334. //console.log("this.isRecommend=="+this.isRecommend)
  335. if(this.userInfo){
  336. this.getdetail()
  337. this.getInfo()
  338. }else{
  339. this.$common.automaticlogin().then(val => {
  340. this.userInfo=this.$store.state.userInfo;
  341. this.getdetail()
  342. this.getInfo()
  343. })
  344. }
  345. },
  346. onShow() {
  347. var car =uni.getStorageSync("byCar")
  348. if(car){
  349. this.carInfo=car;
  350. this.getdetail()
  351. this.isRecommend=false
  352. }
  353. },
  354. methods: {
  355. makePhoneCall(tel){
  356. uni.makePhoneCall({
  357. phoneNumber: tel,
  358. });
  359. },
  360. getInfo(){
  361. this.$http('openreservation/getInfo', {
  362. lat: '',
  363. lng: '',
  364. }, 'GET').then(res => {
  365. this.showSetting=res.data.showSetting
  366. })
  367. },
  368. ckCar(){
  369. uni.navigateTo({
  370. url:'../user/addCar/cailist?type=5'
  371. })
  372. },
  373. goodsGuige(item){
  374. this.itemDefault=item
  375. this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
  376. this.itemDefaultTk=this.itemDefault
  377. },
  378. goodsGuige2(item){
  379. this.itemDefaultTk=item
  380. this.itemDefaultTk.mainImgUrl=this.detail.openMaintainImgUrls[0]
  381. },
  382. goSubmit(){
  383. this.itemDefaultTk.goodsnum=this.goodsnum
  384. this.itemDefaultTk.goodsname=this.detail.title
  385. this.itemDefaultTk.itemId=this.detail.id
  386. this.itemDefaultTk.mainImgUrl=this.detail.openMaintainImgUrls[0]
  387. uni.setStorage({
  388. key: 'itemDefault',
  389. data: this.itemDefaultTk,
  390. success: function () {
  391. uni.navigateTo({
  392. url:'maintainSubmit'
  393. })
  394. }
  395. });
  396. },
  397. closeTk(){
  398. this.tkShow=false
  399. },
  400. keyongClose(){
  401. this.keyongShow=false;
  402. },
  403. keyongFn(){
  404. this.keyongShow=true;
  405. },
  406. submitFn(){
  407. /* if(!this.carInfo){
  408. uni.showToast({
  409. title: '请先选择车辆',
  410. icon:'none',
  411. duration: 3000
  412. });
  413. return false
  414. } */
  415. this.tkShow=true
  416. },
  417. calculation(type){
  418. if(type==1){
  419. if(this.goodsnum>1){
  420. this.goodsnum--
  421. }
  422. }else{
  423. console.log("+++")
  424. this.goodsnum++
  425. }
  426. },
  427. getdetail(){
  428. uni.showLoading({
  429. title: '加载中'
  430. })
  431. this.$http('openMaintain/detail/'+this.maintainId, {
  432. /* maintainId:this.maintainId */
  433. }, 'GET').then(res => {
  434. uni.hideLoading();
  435. this.detail=res.data
  436. this.detail.packageItems.forEach(item=>{
  437. if(item.isDefault==1){
  438. this.itemDefault=item
  439. this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
  440. if(item.isShow==1){
  441. this.itemDefaultTk=item
  442. }
  443. }
  444. if(item.content){
  445. item.content=item.content.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
  446. }
  447. })
  448. if(this.detail.detailContent){
  449. this.detail.detailContent=this.detail.detailContent.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
  450. }
  451. })
  452. },
  453. },
  454. onShareAppMessage(res) {
  455. var img='';
  456. if(this.detail.openMaintainImgUrls.length>0){
  457. img=this.detail.openMaintainImgUrls[0]
  458. }
  459. return {
  460. title: this.detail.title,
  461. imageUrl:img,
  462. path: 'pages/subPack/maintainItem?maintainId=' + this.maintainId+'&isRecommend='+this.isRecommend+'&shareId='+this.userInfo.openId,
  463. success(res){
  464. uni.showToast({
  465. title:'分享成功'
  466. })
  467. },
  468. fail(res){
  469. uni.showToast({
  470. title:'分享失败',
  471. icon:'none',
  472. duration: 3000
  473. })
  474. }
  475. }
  476. },
  477. }
  478. </script>
  479. <style scoped lang="less">
  480. .box {
  481. width: 100vw;
  482. min-height: 100vh;
  483. background: #F4F4F4;
  484. }
  485. .jtImg1{
  486. width: 10rpx;height: 20rpx;
  487. }
  488. .topGuigeBox{
  489. display: flex;justify-content: space-between;
  490. padding: 20rpx 24rpx;
  491. font-size: 24rpx;
  492. color: #828282;
  493. }
  494. .shipei{
  495. background: #57C73D;
  496. border-radius: 4rpx;
  497. width: 52rpx;
  498. height: 32rpx;
  499. line-height: 32rpx;
  500. font-size: 22rpx;
  501. color: #FFFFFF;
  502. text-align: center;
  503. margin-top: 6rpx;
  504. margin-right: 8rpx;
  505. }
  506. .goodsName{
  507. width: 580rpx;
  508. }
  509. .nameBox{
  510. display: flex; padding: 20rpx 24rpx;
  511. }
  512. .swiper{
  513. width: 750rpx;
  514. height: 700rpx;
  515. background: #FFFFFF;
  516. /* border-bottom: 1px solid #EEEEEE; */
  517. }
  518. .swiper-item{
  519. width: 750rpx;
  520. height: 700rpx;
  521. }
  522. .swiper-itemImg{
  523. width: 750rpx;
  524. height: 700rpx;
  525. }
  526. .goodsPrice{
  527. display: flex;
  528. }
  529. .goodsPrice1{
  530. font-size: 24rpx;
  531. font-weight: 400;
  532. color: #EC0F0A;
  533. padding-top: 14rpx;
  534. padding-right: 14rpx;
  535. }
  536. .goodsPrice2{
  537. font-size: 28rpx;
  538. font-weight: 400;
  539. color: #EC0F0A;
  540. padding-top: 16rpx;
  541. }
  542. .goodsPrice3{
  543. font-size: 44rpx;
  544. font-weight: 500;
  545. color: #EC0F0A;
  546. }
  547. .goodsPrice4{
  548. font-size: 24rpx;
  549. font-weight: 400;
  550. color: #999999;
  551. padding-top: 20rpx;
  552. padding-left: 10rpx;
  553. }
  554. .goodsPrice41{
  555. text-decoration:line-through;
  556. }
  557. .Sold{
  558. font-weight: 400;
  559. color: #999999;
  560. font-size: 24rpx;
  561. padding-top: 18rpx;
  562. }
  563. .goodsName{
  564. font-size: 30rpx;
  565. line-height: 42rpx;
  566. font-weight: 500;
  567. color: #333333;
  568. padding-top: 0;
  569. }
  570. .goodsMd{
  571. font-weight: 400;
  572. color: #999999;
  573. font-size: 26rpx;
  574. padding: 0 24rpx;
  575. padding-bottom: 20rpx;
  576. }
  577. .shopCont{
  578. background: #FFFFFF;
  579. }
  580. .shopCtop{
  581. display: flex;
  582. padding: 20rpx 24rpx 6rpx 20rpx;
  583. justify-content: space-between;
  584. background: #FFFFFF;
  585. }
  586. .goodsMSBox{
  587. display: flex;padding-left: 24rpx;
  588. }
  589. .goodsMs{
  590. font-size: 18rpx;
  591. color: #FF063A;
  592. padding: 2rpx 8rpx;
  593. border-radius: 6rpx;
  594. border: 1rpx solid #FF063A;
  595. margin-right: 16rpx;
  596. }
  597. .timeBox{
  598. display: flex;justify-content: space-between;
  599. padding: 20rpx 24rpx;
  600. font-size: 26rpx;
  601. color: #666E80;
  602. }
  603. .shareIcon{
  604. width: 33rpx;height: 33rpx;margin-left: 10rpx;
  605. }
  606. .shareBox{
  607. display: flex;font-size: 24rpx;
  608. color: #666666;padding-top: 6rpx;
  609. line-height: 33rpx;
  610. }
  611. .jtIcon{
  612. margin-top: 8rpx;
  613. width: 12rpx;
  614. height: 22rpx;
  615. margin-left: 6rpx;
  616. }
  617. .buyLine{
  618. display: flex;justify-content: space-between;
  619. padding: 15rpx 24rpx;font-size: 26rpx;
  620. color: #666E80;
  621. }
  622. .buyBOx{
  623. background: #FFFFFF;margin-top: 20rpx;
  624. padding: 15rpx 0;
  625. }
  626. .buyData{
  627. color: #222222;display: flex;
  628. }
  629. .goodsGuige{
  630. /* width: 150rpx; */
  631. height: 50rpx;line-height: 50rpx;
  632. background: #F6F6F6;
  633. border-radius: 5rpx;
  634. font-size: 24rpx;
  635. color: #222222;text-align: center;
  636. margin-left: 24rpx;
  637. padding: 0 20rpx;
  638. display: inline-block;
  639. }
  640. .activeGuige{
  641. /* width: 146rpx; */
  642. height: 46rpx;line-height: 46rpx;
  643. border: 2rpx solid #FF0035;
  644. border-radius: 5rpx;
  645. font-size: 24rpx;
  646. color: #FF0035;text-align: center;
  647. background: #ffffff;
  648. }
  649. .numJsbox{
  650. display: flex;overflow: hidden;
  651. }
  652. .buyCont{
  653. position: absolute;
  654. left: 0;
  655. bottom: 0;
  656. width: 750rpx;
  657. height: 688rpx;
  658. background: #FFFFFF;
  659. border-radius: 26rpx 26rpx 0px 0px;
  660. }
  661. .buyNumBox{
  662. padding: 30rpx;
  663. padding-top: 10rpx;
  664. padding-bottom: 70rpx;
  665. }
  666. .buyContCh{
  667. position: absolute;
  668. top: 53rpx;
  669. right: 36rpx;
  670. width: 36rpx;
  671. height: 36rpx;
  672. }
  673. .goodsnum{
  674. width: 44rpx;
  675. height: 44rpx;
  676. background: #F4F5F7;
  677. line-height: 44rpx;
  678. text-align: center;
  679. font-weight: 500;
  680. color: #333333;
  681. font-size: 24rpx;
  682. margin: 0 4rpx;
  683. border-left:1px solid #dddddd;
  684. border-right:1px solid #dddddd;
  685. }
  686. .goodsnumInput{
  687. width: 44rpx;
  688. height: 44rpx;
  689. background: #FFFFFF;
  690. line-height: 44rpx;
  691. text-align: center;
  692. font-weight: 500;
  693. color: #333333;
  694. font-size: 24rpx;
  695. }
  696. .numJj{
  697. width: 44rpx;
  698. height: 44rpx;
  699. background: #ffffff;
  700. border-radius: 0px 6rpx 6rpx 0px;
  701. text-align: center;
  702. line-height: 44rpx;
  703. font-size: 32rpx;
  704. color: #999999;
  705. }
  706. .numJsbox{
  707. border: 1px solid #dddddd;
  708. border-radius: 6rpx;
  709. }
  710. .mealBox{
  711. background: #FFFFFF;
  712. padding: 20rpx 24rpx;
  713. margin-top: 20rpx;
  714. font-size: 26rpx;
  715. }
  716. .fwlcTitle{
  717. font-size: 26rpx;padding-bottom: 24rpx;
  718. color: #666E80;
  719. }
  720. .mealTop{
  721. display: flex;
  722. justify-content: space-between;
  723. height: 72rpx;
  724. line-height: 72rpx;
  725. font-weight: 500;
  726. font-size: 26rpx;
  727. color: #222222;
  728. font-size: 26rpx;
  729. padding: 0 20rpx;
  730. }
  731. .mealNum{
  732. text-align: center;
  733. width: 120rpx;
  734. }
  735. .mealexpire{
  736. text-align: center; width: 120rpx;
  737. }
  738. .mealName{
  739. width: 460rpx;
  740. }
  741. .mealTop2{
  742. display: flex;
  743. justify-content: space-between;
  744. height: 72rpx;
  745. line-height: 72rpx;
  746. font-weight: 500;
  747. font-size: 26rpx;
  748. color: #222222;
  749. font-size: 26rpx;
  750. padding: 0 20rpx;
  751. background: #FFF6DB;
  752. }
  753. .mealXj{
  754. background: #FFFCF3;
  755. }
  756. .xjLine{
  757. display: flex;
  758. font-weight: 500;
  759. font-size: 26rpx;
  760. color: #222222;
  761. padding: 20rpx 20rpx;
  762. }
  763. .xjyd{
  764. width: 8rpx;
  765. height: 8rpx;
  766. background: #FABF1B;
  767. border-radius: 50rpx;
  768. margin-top: 12rpx;
  769. margin-right: 10rpx;
  770. }
  771. .mealMs{
  772. background: #FFFFFF;
  773. padding: 20rpx;
  774. font-weight: 400;
  775. font-size: 24rpx;
  776. color: #9A9A9A;
  777. line-height: 38rpx;
  778. }
  779. .goodsDetailTitle{
  780. font-size: 26rpx;
  781. color: #666E80;
  782. background: #FFFFFF;
  783. padding-bottom: 24rpx;
  784. }
  785. .goodsDetail{
  786. padding: 20rpx;
  787. background: #FFFFFF;
  788. font-size: 26rpx;
  789. margin-top: 20rpx;
  790. }
  791. .goodsDetail img{
  792. width: 750rpx;
  793. }
  794. .goodsDetail image{
  795. width: 750rpx;
  796. }.bottom{
  797. background: #FFFFFF;
  798. display: flex;
  799. justify-content: space-between;
  800. position: fixed;
  801. width: 100%;
  802. padding:30rpx 0;
  803. padding-bottom: constant(safe-area-inset-bottom);
  804. padding-bottom: env(safe-area-inset-bottom);
  805. left: 0;bottom: 0;
  806. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  807. }
  808. .bleft{
  809. font-weight: 500;
  810. color: #222222;
  811. padding-left: 50rpx;
  812. }
  813. .Btn{
  814. width: 532rpx;text-align: center;
  815. height: 86rpx;line-height: 86rpx;
  816. /* background: #FCD903; */
  817. border-radius: 43rpx;
  818. font-size: 32rpx;
  819. color: #110B01;
  820. margin-right: 36rpx;
  821. }
  822. .kefuIcon{
  823. width: 50rpx;height: 50rpx;
  824. }
  825. .bottomTianc{
  826. height: 160rpx;
  827. padding-bottom: constant(safe-area-inset-bottom);
  828. padding-bottom: env(safe-area-inset-bottom);
  829. }
  830. .carTis{
  831. color: #EC0F0A;font-size: 20rpx;
  832. text-align: right;
  833. padding-right: 24rpx;
  834. }
  835. .guigeBox{
  836. /* height: 50rpx; */
  837. height: 52rpx;
  838. width: 500rpx;
  839. overflow: hidden;
  840. }
  841. .guigeBox2{
  842. flex-wrap: nowrap;justify-content: flex-end;white-space: nowrap;
  843. height: 50rpx;
  844. }
  845. .tkBox{
  846. width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
  847. position: fixed;left: 0;top: 0;
  848. z-index: 11;
  849. }
  850. .tkCont{
  851. width: 750rpx;
  852. height: 611rpx;
  853. background: #FFFFFF;
  854. border-radius: 28rpx 28rpx 0rpx 0rpx;
  855. position: absolute;
  856. left: 0;bottom: 0;
  857. padding-bottom: constant(safe-area-inset-bottom);
  858. padding-bottom: env(safe-area-inset-bottom);
  859. }
  860. .tkCont2{
  861. width: 750rpx;
  862. height:50vh;
  863. background: #FFFFFF;
  864. border-radius: 28rpx 28rpx 0rpx 0rpx;
  865. position: absolute;
  866. left: 0;bottom: 0;
  867. padding-bottom: constant(safe-area-inset-bottom);
  868. padding-bottom: env(safe-area-inset-bottom);
  869. overflow-y: auto;
  870. }
  871. .tkTop{
  872. display: flex;padding: 40rpx 24rpx;
  873. padding-bottom: 25rpx;
  874. }
  875. .tkImg{
  876. width: 160rpx;
  877. height: 160rpx;border-radius: 13rpx;
  878. }
  879. .tkName{
  880. text-overflow: -o-ellipsis-lastline;
  881. overflow: hidden;
  882. text-overflow: ellipsis;
  883. display: -webkit-box;
  884. -webkit-line-clamp: 2;
  885. line-clamp: 2;
  886. -webkit-box-orient: vertical;
  887. }
  888. .tkNameBox{
  889. padding-left: 24rpx;width: 496rpx;
  890. }
  891. .chahao{
  892. width: 22rpx;height: 22rpx;padding-top: 10rpx;
  893. padding-left: 4rpx;
  894. }
  895. .buyLine{
  896. display: flex;justify-content: space-between;
  897. padding: 15rpx 24rpx;font-size: 26rpx;
  898. color: #666E80;
  899. }
  900. .buyBOx{
  901. background: #FFFFFF;margin-top: 20rpx;
  902. }
  903. .buyData{
  904. color: #222222;display: flex;
  905. }
  906. .carModelLine{
  907. max-width: 560rpx;
  908. white-space: nowrap; /* 确保文本在一行内显示 */
  909. overflow: hidden; /* 超出容器部分隐藏 */
  910. text-overflow: ellipsis
  911. }
  912. .activeGuige{
  913. /* width: 146rpx; */
  914. height: 46rpx;line-height: 46rpx;
  915. border: 2rpx solid #FF0035;
  916. border-radius: 5rpx;
  917. font-size: 24rpx;
  918. color: #FF0035;text-align: center;
  919. background: #ffffff;
  920. font-weight: 500;
  921. }
  922. .numJsbox{
  923. display: flex;
  924. }
  925. .buyCont{
  926. position: absolute;
  927. left: 0;
  928. bottom: 0;
  929. width: 750rpx;
  930. height: 688rpx;
  931. background: #FFFFFF;
  932. border-radius: 26rpx 26rpx 0px 0px;
  933. }
  934. .buyNumBox{
  935. padding: 30rpx;
  936. padding-top: 10rpx;
  937. padding-bottom: 70rpx;
  938. }
  939. .buyContCh{
  940. position: absolute;
  941. top: 53rpx;
  942. right: 36rpx;
  943. width: 36rpx;
  944. height: 36rpx;
  945. }
  946. .tkBottomBtn{
  947. width: 661rpx;text-align: center;
  948. height: 86rpx;line-height: 86rpx;
  949. /* background: #FCD903; */
  950. border-radius: 43rpx;
  951. font-size: 32rpx;
  952. color: #110B01;
  953. }
  954. .tkBottom{
  955. width: 750rpx;
  956. padding-top: 30rpx;
  957. background: #FFFFFF;
  958. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  959. padding-bottom: constant(safe-area-inset-bottom);
  960. padding-bottom: env(safe-area-inset-bottom);
  961. display: flex;justify-content: center;align-items: center;
  962. position: absolute;left: 0;bottom: 0;
  963. }
  964. .tkTOp2{
  965. display: flex;justify-content: space-between;
  966. font-size: 30rpx;
  967. padding: 30rpx;
  968. }
  969. .keyongLine{
  970. padding: 16rpx 24rpx;
  971. font-size: 26rpx;
  972. border-bottom: 1px solid #eaeaea;
  973. }
  974. .mealBox img{
  975. width: 100%;
  976. }
  977. .mealBox image{
  978. width: 100%;
  979. }
  980. .goodsDetail image{
  981. width: 100%;
  982. }
  983. .goodsDetail img{
  984. width: 100%;
  985. }
  986. .hjt{
  987. width: 12rpx;height: 24rpx;
  988. margin-top: 8rpx;margin-left: 10rpx;
  989. }
  990. button::after{
  991. border: none;
  992. }
  993. button{
  994. position: relative;
  995. display: block;
  996. margin-left: 0;
  997. margin-right: 0;
  998. padding-left: 0px;
  999. padding-right: 0px;
  1000. box-sizing: border-box;
  1001. // font-size: 18px;
  1002. text-align: center;
  1003. text-decoration: none;
  1004. // line-height: 1;
  1005. line-height: 1.35;
  1006. // border-radius: 5px;
  1007. -webkit-tap-highlight-color: transparent;
  1008. overflow: hidden;
  1009. color: #000000;
  1010. background-color: #fff;
  1011. height: 100%;
  1012. }
  1013. .biaoqian{
  1014. background: #FF0035;
  1015. border-radius: 24rpx 24rpx 25rpx 0rpx;
  1016. padding: 4rpx 16rpx;
  1017. font-size: 22rpx;
  1018. color: #FFFFFF;
  1019. margin-top: 24rpx;
  1020. margin-bottom: -15rpx;
  1021. }
  1022. .tkNameBox .biaoqian{
  1023. margin-top: 16rpx;margin-bottom: -18rpx;
  1024. }
  1025. .duihaoImg{
  1026. width: 24rpx;height: 24rpx;
  1027. margin-top: 4rpx;
  1028. margin-right: 6rpx;
  1029. }
  1030. .topGuigeLeft{
  1031. display: flex;
  1032. }
  1033. .promotion{
  1034. background: #ffffff;margin-top: 20rpx;display: flex;justify-content: space-between;
  1035. padding: 36rpx 24rpx;
  1036. }
  1037. .promotionLeft{
  1038. display: flex;
  1039. }
  1040. .chu{
  1041. width: 28rpx;
  1042. height: 28rpx;
  1043. border-radius: 3rpx;
  1044. border: 1rpx solid #FF063A;
  1045. text-align: center;
  1046. line-height: 28rpx;
  1047. font-size: 16rpx;
  1048. color: #FF063A;
  1049. }
  1050. .promotionLineTxt{
  1051. font-size: 24rpx;
  1052. color: #222222;
  1053. line-height: 30rpx;
  1054. padding-left: 20rpx;
  1055. }
  1056. .promotionLine{
  1057. display: flex;padding-bottom: 10rpx;
  1058. }
  1059. .promotionTitle{
  1060. font-size: 24rpx;
  1061. color: #828282;
  1062. width: 100rpx;
  1063. }
  1064. .gmlcImg{
  1065. width: 100%;
  1066. }
  1067. .gmlc{
  1068. background: #ffffff;margin-top: 20rpx;
  1069. padding: 30rpx 24rpx;
  1070. }
  1071. .gmlcTitle{
  1072. font-weight: 400;
  1073. font-size: 26rpx;
  1074. color: #666E80;
  1075. line-height: 37rpx;
  1076. padding-bottom: 25rpx;
  1077. }
  1078. .copyIcon{
  1079. width: 30rpx;height: 30rpx;
  1080. margin-top: 4rpx;margin-left: 6rpx;
  1081. }
  1082. .canpinLine{
  1083. display: flex;justify-content: space-between;font-size: 24rpx;
  1084. color: #666E80;border-bottom: 1px solid #DCDCDC;
  1085. padding: 24rpx 0;
  1086. }
  1087. .canpinRgiht{
  1088. color: #222222;
  1089. }
  1090. .canpinBox{
  1091. padding: 0 20rpx 40rpx 20rpx;
  1092. }
  1093. .canpinTkBox .canpinTk{
  1094. height: 60vh;
  1095. }
  1096. .cktkLineBox .promotionLine{
  1097. padding-left: 15rpx;
  1098. padding-bottom: 30rpx;
  1099. }
  1100. .isRecommend{
  1101. font-size: 20rpx;
  1102. background: #57C73D;
  1103. height: 30rpx;
  1104. padding: 0 6rpx;
  1105. border-radius: 6rpx;
  1106. color: #fff;
  1107. margin-top: 2rpx;
  1108. /* margin-right: 10rpx; */
  1109. }
  1110. .tkltName{
  1111. font-size: 28rpx;
  1112. color: #222222;
  1113. line-height: 40rpx;
  1114. padding-left: 8rpx;
  1115. }
  1116. .buyNumLineBox{
  1117. display: flex;justify-content: space-between;
  1118. }
  1119. .buyNumline{
  1120. width: 149rpx;
  1121. height: 50rpx;
  1122. background: #F6F6F6;
  1123. border-radius: 25rpx;
  1124. font-size: 24rpx;
  1125. color: #222222;
  1126. line-height: 50rpx;text-align: center;
  1127. }
  1128. .buyNumTitle{
  1129. font-size: 26rpx;
  1130. color: #666E80;
  1131. padding-bottom: 8rpx;
  1132. }
  1133. </style>