maintain.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. <template>
  2. <view class="box">
  3. <view class="top" :style="{background:'#'+themeColor}">
  4. <view class="inputBox">
  5. <view class="ibLeft" @click="goCkcar">
  6. <image class="ibCarIcon" v-if="carInfo.brandLogo" :src="carInfo.brandLogo" mode=""></image>
  7. <image class="ibCarIcon" v-else src="../../static/timg/nocar.png" mode=""></image>
  8. <view class="ibCarBox">
  9. <view class="ibCar">{{carInfo.brand?carInfo.brand:''}}&nbsp;{{carInfo.series?carInfo.series:''}}</view>
  10. <image src="../../static/img2/xia.png" mode="" class="xiaIcon"></image>
  11. </view>
  12. </view>
  13. <view class="ibRight">
  14. <image src="http://dmsphoto.66km.com.cn/thFiles/403AC6C5-CD4B-4D7A-B0D6-BA997D0AB9CE.png" mode="" class="glIcon"></image>
  15. <!-- <view class="glInput" v-if="milage">{{milage}}km</view>
  16. <view class="glInput" v-else>暂无填写</view> -->
  17. <!-- <input type="text" v-else placeholder="暂无填写" class="glInput"/> -->
  18. <input type="text" @blur="milageBlur" v-if="carInfo.milage" v-model="carInfo.milage" class="glInput"/>
  19. <input type="text" @blur="milageBlur" v-model="carInfo.milage" v-else placeholder="暂无填写" class="glInput"/>
  20. <image src="../../static/img2/xia.png" mode="" class="xiaIcon"></image>
  21. </view>
  22. </view>
  23. <view class="msBox">
  24. <view class="msLine">
  25. <image class="msIcon" src="../../static/img2/zp.png" mode=""></image>
  26. <view class="msTxt">正品保障</view>
  27. </view>
  28. <view class="msLine">
  29. <image class="msIcon" src="../../static/img2/jp.png" mode=""></image>
  30. <view class="msTxt">精准适配</view>
  31. </view>
  32. <view class="msLine">
  33. <image class="msIcon" src="../../static/img2/shwy.png" mode=""></image>
  34. <view class="msTxt">售后无忧</view>
  35. </view>
  36. <view class="msLine">
  37. <image class="msIcon" src="../../static/img2/zyfw.png" mode=""></image>
  38. <view class="msTxt">专业服务</view>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 适配推荐 -->
  43. <view class="spBox">
  44. <view class="spTop">
  45. <view class="spTitle">适配推荐</view>
  46. <view class="spMs">
  47. <span @click="historySpend">保养记录</span>
  48. <span style="padding: 0 10rpx;"> | </span>
  49. <span @click="information">保养手册</span>
  50. </view>
  51. </view>
  52. <view class="znBox">
  53. <view class="znCont">
  54. <view class="znCar">智能推荐-{{carInfo.brand?carInfo.brand:''}}&nbsp;{{carInfo.series?carInfo.series:''}}</view>
  55. <view>
  56. <image class="hxIcon" src="../../static/img2/hx.png" mode=""></image>
  57. </view>
  58. <view class="znMs">超期不保养,会影响汽车性能!</view>
  59. </view>
  60. </view>
  61. <!-- 套餐-->
  62. <view class="lineBox">
  63. <view class="line"
  64. @click="goItem(item)" v-for="(item,index) in list">
  65. <view class="lineTop">
  66. <image src="http://dmsphoto.66km.com.cn/thFiles/F4CEDFE9-CF9F-41C5-B2BC-0EE00D9EA455.png" mode="" v-if="item.showType.indexOf(1)!=-1" class="byTj"></image>
  67. <image class="lineImg" v-if="item.mainImgUrl" :src="item.mainImgUrl" mode=""></image>
  68. <image class="lineImg" v-else src="../../static/timg/noimg.png" mode=""></image>
  69. <view class="lineNameBox">
  70. <view class="goodsName">{{item.title}}</view>
  71. <view class="goodsMs">{{item.showContent}}</view>
  72. <view class="goodsKbox">
  73. <view class="goosK1" v-if="item.showOilType">{{item.showOilType}}</view>
  74. <view class="goosK2" v-if="item.showOilLevel">机油等级 | {{item.showOilLevel}}</view>
  75. <view class="goosK2" v-if="item.showFit">适配粘度 | {{item.showFit}}</view>
  76. </view>
  77. <!-- <view class="bfb">有91.4%的车主选择本商品</view> -->
  78. </view>
  79. </view>
  80. <view class="tcBox">
  81. <view class="tcLine" :class="{lineActive:v.select}"
  82. @click.stop="selectItem(v,item)" v-for="(v,i) in item.packageItems">
  83. <view class="tcTitle">
  84. <view class="tcName">{{v.title}}</view>
  85. <view class="tcNameTs" v-if="v.count>1&&v.isDefault==1">{{v.count}}次更划算</view>
  86. </view>
  87. <view class="tcprice">
  88. <span class="tcSpan1">¥</span>
  89. <span class="tcSpan2">{{v.price}}</span>
  90. <span class="tcSpan3">/次</span>
  91. <span class="tcSpan3" style="padding-left: 10rpx;">{{v.count}}次¥{{v.money}}</span>
  92. <!-- <span class="tcSpan3" style="padding-left: 10rpx;">2次</span>
  93. <span class="tcSpan1">¥588</span> -->
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view style="height: 220rpx;"></view>
  100. </view>
  101. <view class="bottom">
  102. <!-- <view class="kaBox">
  103. <view class="ka">
  104. <view class="kaLeft">
  105. <image class="vipIcon" src="../../static/img2/vip.png" mode=""></image>
  106. <view class="kaMS">开通权益卡 可享受更多优惠服务</view>
  107. </view>
  108. <view class="kaRight">去开卡></view>
  109. </view>
  110. </view> -->
  111. <view class="bottomView">
  112. <view class="bLeft" @click="qingdan">
  113. <view class="bLeftImgBox">
  114. <image class="qingdanIcon" src="../../static/img2/qingdan.png" mode=""></image>
  115. <view class="qdTxt">清单</view>
  116. <view class="qdNum" v-if="qdNum">{{qdNum}}</view>
  117. </view>
  118. <view>
  119. <view class="bottomprice">
  120. <span class="bSpan1">¥</span>
  121. <span class="bSpan2">{{totalPrice}}</span>
  122. </view>
  123. <!-- <view class="byh">
  124. <span class="bspan3">已优惠</span>
  125. <span class="bspan4"> ¥0</span>
  126. </view> -->
  127. </view>
  128. </view>
  129. <view class="bottomBtn commonBtn" @click="goSubmit">立即购买</view>
  130. </view>
  131. </view>
  132. <!-- 提交订单弹框-->
  133. <view class="tkBox" v-if="tkShow">
  134. <view class="tkCont">
  135. <view class="tkTop">
  136. <view class="tkDelBox" @click="clearAll">
  137. <image v-if="itemDefault" src="../../static/img2/shanchu.png" mode="" class="tkDelIcon"></image>
  138. <view v-if="itemDefault" class="tkDelTxt">清空</view>
  139. </view>
  140. <view class="tkTitle">清单</view>
  141. <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  142. </view>
  143. <view class="tkCBox">
  144. <view class="tkLine" v-if="itemDefault">
  145. <view class="tkLineTop">
  146. <view class="tklineTopTitle">套餐卡</view>
  147. <view class="tkDelBox" @click="delitemDefault">
  148. <image src="../../static/img2/shanchu.png" mode="" class="tkDelIcon"></image>
  149. <view class="tkDelTxt">删除</view>
  150. </view>
  151. </view>
  152. <view class="tklineCont">
  153. <image class="tkImg" v-if="itemDefault.mainImgUrl" :src="itemDefault.mainImgUrl" mode=""></image>
  154. <image class="tkImg" v-else src="../../static/timg/noimg.png" mode=""></image>
  155. <view class="tkNameBox">
  156. <view class="tkName">{{itemDefault.goodsname}}</view>
  157. <view class="goodsPrice">
  158. <view class="goodsPrice4" >¥{{itemDefault.money}}/</view>
  159. <view class="goodsPrice2">¥</view>
  160. <view class="goodsPrice3">{{itemDefault.price}}</view>
  161. <view class="tkcount">{{itemDefault.count}}次</view>
  162. <!-- <view class="goodsPrice4" >原价:¥{{itemDefault.crossedPrice}}</view> -->
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <view v-if="!itemDefault" class="nodataBox">
  168. <view style="text-align: center;">
  169. <image class="nodataImg" src="http://dmsphoto.66km.com.cn/thFiles/FB1CBE1D-D56F-4921-AEB9-6364E7AC96BE.png" mode=""></image>
  170. </view>
  171. <view class="nodataTxt">暂无添加商品</view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <!-- 提交订单弹框-->
  177. </view>
  178. </template>
  179. <script>
  180. export default {
  181. components: {
  182. },
  183. data() {
  184. return {
  185. themeColor:'',
  186. ext:'',
  187. goodsnum:1,
  188. tkShow:false,
  189. carInfo:'',
  190. list:[],
  191. totalPrice:0,
  192. itemDefault:'',
  193. lineItem:'',
  194. maintainProjectID:'',
  195. qdNum:1,
  196. milage:'',
  197. multiArray: [
  198. ['亚洲', '欧洲'],
  199. ['中国', '日本'],
  200. ['公里']
  201. ],
  202. }
  203. },
  204. onLoad(opt) {
  205. this.ext = this.$common.getExtStoreId();
  206. this.themeColor = uni.getStorageSync("themeColor");
  207. uni.setNavigationBarColor({
  208. frontColor: "#000000",
  209. backgroundColor: '#' + this.themeColor
  210. })
  211. this.carInfo=this.$store.state.carInfo;
  212. this.milage=this.carInfo.milage
  213. if(this.carInfo.milage==0){
  214. this.carInfo.milage=''
  215. }
  216. this.maintainProjectID=opt.maintainProjectID
  217. if(this.carInfo){
  218. this.getRecommend()
  219. }else{
  220. uni.showModal({
  221. title: '提示',
  222. content: '请先选择车辆',
  223. showCancel:false,
  224. success: function (res) {
  225. if (res.confirm) {
  226. uni.navigateTo({
  227. url:'../user/addCar/cailist?type=5'
  228. })
  229. }
  230. }
  231. });
  232. }
  233. },
  234. onShow() {
  235. var car =uni.getStorageSync("byCar")
  236. if(car){
  237. this.carInfo=car;
  238. this.milage=this.carInfo.milage
  239. if(this.carInfo.milage==0){
  240. this.carInfo.milage=''
  241. }
  242. this.getRecommend()
  243. }
  244. },
  245. methods: {
  246. milageBlur(){
  247. var cardata = {
  248. plateNumber:this.carInfo.plateNumber,
  249. milage: this.carInfo.milage,
  250. brand: this.carInfo.brand,
  251. displacement: this.carInfo.displacement,
  252. series: this.carInfo.series,
  253. annualmoney: this.carInfo.productionYear,
  254. carModel: this.carInfo.carModel,
  255. saleName:this.carInfo.saleName,
  256. transmissionType: this.carInfo.transmissionType,
  257. model: this.carInfo.model,
  258. nLevelID:this.carInfo.nLevelID,
  259. engineType: this.carInfo.engineType,
  260. brandLogo: this.carInfo.brandLogo,
  261. buyDate: this.carInfo.buyDate,
  262. guidePrice: this.carInfo.guidePrice,
  263. vIN: this.carInfo.vIN,
  264. id: this.carInfo.id,
  265. }
  266. this.$http('opencarInfoOwner/addCarOwner', cardata, 'POST').then(res => {
  267. if (res.code == 0) {
  268. uni.showToast({
  269. title: '修改成功',
  270. icon: 'none',
  271. duration: 3000
  272. });
  273. } else {
  274. uni.showToast({
  275. title: res.msg,
  276. icon: 'none',
  277. duration: 3000
  278. });
  279. }
  280. })
  281. },
  282. information(){
  283. console.log('车辆信息--',this.carInfo);
  284. uni.navigateTo({
  285. url:'../index/handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  286. })
  287. },
  288. historySpend(){
  289. uni.navigateTo({
  290. url:'../user/historySpend'
  291. })
  292. },
  293. qingdan(){
  294. this.tkShow=true;
  295. },
  296. qdTkclose(){
  297. this.tkShow=false
  298. },
  299. clearAll(){
  300. var that=this
  301. uni.showModal({
  302. title: '提示',
  303. content: '确定清空吗?',
  304. success: function(resTK) {
  305. if (resTK.confirm) {
  306. that.list.forEach(item=>{
  307. item.packageItems.forEach(v=>{
  308. v.select=false
  309. })
  310. })
  311. that.itemDefault=''
  312. that.qdNum=0
  313. that.totalPrice=0
  314. }
  315. }
  316. });
  317. },
  318. delitemDefault(){
  319. var that=this
  320. uni.showModal({
  321. title: '提示',
  322. content: '确定删除吗?',
  323. success: function(resTK) {
  324. if (resTK.confirm) {
  325. that.list.forEach(item=>{
  326. item.packageItems.forEach(v=>{
  327. v.select=false
  328. })
  329. })
  330. that.itemDefault=''
  331. that.qdNum=0
  332. that.totalPrice=0
  333. }
  334. }
  335. });
  336. },
  337. selectItem(v,item){
  338. this.list.forEach(item=>{
  339. item.packageItems.forEach(v=>{
  340. v.select=false
  341. })
  342. })
  343. v.select=true
  344. this.totalPrice=v.money
  345. this.itemDefault=v
  346. this.lineItem=item
  347. this.qdNum=1
  348. this.itemDefault.goodsname=this.lineItem.title
  349. this.itemDefault.itemId=this.lineItem.id
  350. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  351. },
  352. goCkcar(){
  353. uni.navigateTo({
  354. url:'../user/addCar/cailist?type=5'
  355. })
  356. },
  357. goItem(item){
  358. uni.removeStorageSync('byCar');
  359. uni.navigateTo({
  360. url:'maintainItem?maintainId='+item.id+'&isRecommend='+item.isRecommend
  361. })
  362. },
  363. goSubmit(){
  364. if(this.itemDefault){
  365. this.itemDefault.goodsnum=this.goodsnum
  366. this.itemDefault.goodsname=this.lineItem.title
  367. this.itemDefault.itemId=this.lineItem.id
  368. this.itemDefault.mainImgUrl=this.lineItem.mainImgUrl
  369. uni.setStorage({
  370. key: 'itemDefault',
  371. data: this.itemDefault,
  372. success: function () {
  373. uni.navigateTo({
  374. url:'maintainSubmit'
  375. })
  376. }
  377. });
  378. }else{
  379. uni.showToast({
  380. title: '请选择商品规格',
  381. icon:'none',
  382. duration: 3000
  383. });
  384. }
  385. },
  386. getRecommend(){
  387. uni.showLoading({
  388. title: '加载中'
  389. })
  390. this.$http('open-apply/get-recommend', {
  391. carId:this.carInfo.id,
  392. bizId:this.maintainProjectID
  393. }, 'GET').then(res => {
  394. uni.hideLoading();
  395. if(!res.data.data){
  396. this.list=''
  397. this.itemDefault=''
  398. this.qdNum=0
  399. this.totalPrice=0
  400. }
  401. res.data.data.forEach(item=>{
  402. item.packageItems.forEach(v=>{
  403. v.select=false
  404. })
  405. })
  406. this.list=res.data.data
  407. this.lineItem=this.list[0]
  408. this.lineItem.packageItems.forEach(d=>{
  409. if(d.isDefault==1){
  410. d.select=true
  411. this.itemDefault=d
  412. this.itemDefault.goodsname=this.lineItem.title
  413. this.totalPrice=d.money
  414. this.qdNum=1
  415. }
  416. })
  417. //this.list=this.list.concat(this.list)
  418. })
  419. },
  420. calculation(type){
  421. if(type==1){
  422. if(this.goodsnum>1){
  423. this.goodsnum--
  424. }
  425. }else{
  426. console.log("+++")
  427. this.goodsnum++
  428. }
  429. },
  430. }
  431. }
  432. </script>
  433. <style scoped lang="less">
  434. .box {
  435. width: 100vw;
  436. min-height: 100vh;
  437. background: #F4F4F4;
  438. }
  439. .tkBox{
  440. width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
  441. position: fixed;left: 0;top: 0;
  442. }
  443. .tkCont{
  444. width: 750rpx;
  445. height: 60vh;
  446. background: #EFEFEF;
  447. border-radius: 28rpx 28rpx 0rpx 0rpx;
  448. position: absolute;
  449. left: 0;bottom: 0;
  450. padding-bottom: constant(safe-area-inset-bottom);
  451. padding-bottom: env(safe-area-inset-bottom);
  452. }
  453. .top{
  454. height: 170rpx;
  455. padding: 40rpx 24rpx;
  456. }
  457. .inputBox{
  458. background: rgba(255,255,255,0.4);
  459. border-radius: 38rpx;line-height: 42rpx;
  460. border: 1px solid #FFFFFF;
  461. padding: 18rpx 30rpx;font-size: 26rpx;color: #222222;
  462. display: flex;justify-content: space-between;
  463. }
  464. .xiaIcon{
  465. width: 12rpx;height: 9rpx;margin-top: 18rpx;margin-left: 10rpx;
  466. }
  467. .ibCarIcon{
  468. height: 42rpx;width: 42rpx;
  469. }
  470. .glIcon{
  471. width: 34rpx;height: 34rpx;margin-top: 6rpx;
  472. }
  473. .ibLeft{
  474. display: flex;
  475. }
  476. .ibRight{
  477. display: flex;
  478. }
  479. .ibCarBox{
  480. display: flex;padding-left: 10rpx;
  481. }
  482. .glInput{
  483. width: 120rpx;line-height: 42rpx;height: 42rpx;
  484. padding-left: 10rpx;
  485. }
  486. .msIcon{
  487. width: 26rpx;height: 26rpx;
  488. }
  489. .msTxt{
  490. font-weight: 500;margin-left: 12rpx;
  491. font-size: 22rpx;
  492. color: #A77102;
  493. padding-top: 2rpx;
  494. }
  495. .msLine{
  496. display: flex;line-height: 28rpx;
  497. }
  498. .msBox{
  499. display: flex;justify-content: space-between;padding-top: 24rpx;
  500. padding-left: 30rpx;padding-right: 30rpx;
  501. }
  502. .spBox{
  503. background: linear-gradient( 180deg, #FFFFFF 0%, #F4F4F4 440rpx);
  504. border-radius: 23rpx;
  505. padding: 24rpx 20rpx 0 24rpx;
  506. margin-top: -50rpx;
  507. padding-bottom: constant(safe-area-inset-bottom);
  508. padding-bottom: env(safe-area-inset-bottom);
  509. }
  510. .spTop{
  511. display: flex;justify-content: space-between;line-height: 40rpx;
  512. padding-bottom: 16rpx;
  513. }
  514. .spTitle{
  515. font-weight: 500;
  516. font-size: 28rpx;
  517. color: #222222;
  518. }
  519. .spMs{
  520. font-size: 24rpx;
  521. color: #666666;
  522. }
  523. .znBox{
  524. height: 200rpx;
  525. background: #FDC856;
  526. border-radius: 21rpx;
  527. }
  528. .znCont{
  529. background: url('http://dmsimg.66km.com/marketing/be56733ed0464993b9e71d351d82062e.jpg') no-repeat;
  530. background-size: 100% 100%;
  531. height: 160rpx;
  532. border-radius: 26rpx;
  533. }
  534. .hxIcon{
  535. height: 4rpx;width: 360rpx;
  536. margin-left: 18rpx;margin-top: 20rpx;
  537. display: block;
  538. }
  539. .znMs{
  540. font-size: 24rpx;
  541. color: #FFFFFF;
  542. line-height: 33rpx;
  543. padding-left: 18rpx;padding-top: 16rpx;
  544. }
  545. .znCar{
  546. font-weight: 500;padding-left: 18rpx;
  547. font-size: 32rpx;padding-top: 24rpx;
  548. color: #8C5E24;
  549. line-height: 45rpx;
  550. }
  551. .line{
  552. background: #FFFFFF;padding: 24rpx;
  553. border-radius: 16rpx;margin-bottom: 20rpx;
  554. padding-bottom: 4rpx;position: relative;
  555. }
  556. .lineImg{
  557. width: 162rpx;
  558. height: 162rpx;
  559. border-radius: 16rpx;
  560. }
  561. .lineTop{
  562. display: flex;
  563. }
  564. .lineBox{
  565. margin-top: -52rpx;
  566. }
  567. .goodsKbox{
  568. display: flex;flex-wrap: wrap;
  569. }
  570. .goosK1 {
  571. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;
  572. border: 1rpx solid #EC0F0A;font-size: 20rpx;
  573. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  574. margin-top: 10rpx;
  575. }
  576. .goosK2{
  577. height: 30rpx;line-height: 32rpx;padding: 0 8rpx;color: #34B084;
  578. border: 1rpx solid #34B084;font-size: 20rpx;border-radius: 6rpx;
  579. margin-right: 10rpx;margin-top: 10rpx;
  580. }
  581. .goodsName{
  582. font-weight: 500;
  583. font-size: 28rpx;
  584. color: #222222;
  585. line-height: 40rpx;
  586. }
  587. .goodsMs{
  588. font-weight: 400;padding-top: 10rpx;
  589. padding-bottom: 6rpx;
  590. font-size: 22rpx;
  591. color: #8B8B8B;
  592. line-height: 28rpx;
  593. white-space: nowrap; /* 确保文本在一行内显示 */
  594. overflow: hidden; /* 超出容器部分隐藏 */
  595. text-overflow: ellipsis;
  596. width: 480rpx;
  597. }
  598. .bfb{
  599. font-size: 20rpx;padding-top: 10rpx;
  600. color: #FFD804;
  601. line-height: 28rpx;
  602. }
  603. .lineNameBox{
  604. padding-left: 20rpx; width: 500rpx;
  605. }
  606. .tcLine{
  607. background: #FBFBFB;
  608. border-radius: 14rpx;
  609. border: 1px solid #f1f1ff;
  610. width: 316rpx;
  611. height: 138rpx;
  612. margin-bottom: 20rpx;
  613. }
  614. .tcName{
  615. font-weight: 500;
  616. font-size: 28rpx;
  617. color: #435B6E;
  618. line-height: 40rpx;
  619. padding-left: 25rpx;padding-top: 24rpx;
  620. white-space: nowrap; /* 确保文本在一行内显示 */
  621. overflow: hidden; /* 超出容器部分隐藏 */
  622. text-overflow: ellipsis;
  623. max-width: 170rpx;
  624. }
  625. .tcTitle{
  626. display: flex;
  627. }
  628. .tcprice{
  629. padding-top: 4rpx;font-size: 20rpx;
  630. color: #666666;padding-left: 25rpx;
  631. }
  632. .tcSpan2{
  633. font-size: 34rpx;
  634. color: #000000;
  635. }
  636. .tcSpan3{
  637. font-size: 20rpx;
  638. color: #999999;
  639. }
  640. .tcNameTs{
  641. padding: 0 8rpx;margin-top: 30rpx;margin-left: 10rpx;
  642. height: 25rpx;
  643. background: #FE0200;
  644. text-align: center;
  645. line-height: 26rpx;
  646. font-size: 18rpx;
  647. color: #FFFFFF;
  648. border-radius: 4rpx;
  649. }
  650. .tcBox{
  651. display: flex;justify-content: space-between;
  652. padding-top: 26rpx;flex-wrap: wrap;
  653. }
  654. .bottom{
  655. width: 100%;
  656. position: fixed;
  657. bottom: 0rpx;
  658. padding-bottom: constant(safe-area-inset-bottom);
  659. padding-bottom: env(safe-area-inset-bottom);
  660. background: #FFFFFF;
  661. z-index: 111;
  662. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  663. }
  664. .kaBox{
  665. height: 70rpx;
  666. }
  667. .bottomView{
  668. background: #FFFFFF;
  669. }
  670. .vipIcon{
  671. width: 47rpx;height: 45rpx;
  672. }
  673. .ka{
  674. display: flex;justify-content: space-between;
  675. background: #FEE0B9;
  676. padding: 12rpx 20rpx;
  677. }
  678. .kaLeft{
  679. display: flex;line-height: 45rpx;
  680. }
  681. .kaMS{
  682. font-size: 22rpx;
  683. color: #666666;padding-left: 15rpx;
  684. }
  685. .kaRight{
  686. line-height: 45rpx;font-size: 22rpx;
  687. color: #A26D4F;
  688. }
  689. .bottomBtn{
  690. width: 223rpx;
  691. height: 86rpx;
  692. background: #FCD903;
  693. border-radius: 43rpx;
  694. line-height: 86rpx;
  695. text-align: center;
  696. font-size: 32rpx;
  697. color: #110B01;
  698. }
  699. .bottomView{
  700. display: flex;justify-content: space-between;
  701. padding: 15rpx 30rpx;
  702. padding-top: 30rpx;
  703. padding-bottom: 0;
  704. }
  705. .qingdanIcon{
  706. width: 40rpx;height: 45rpx;
  707. display: block;
  708. }
  709. .bLeft{
  710. display: flex;
  711. }
  712. .bLeftImgBox{
  713. position: relative;text-align: center;padding-top: 12rpx;
  714. }
  715. .qdNum{
  716. position: absolute;
  717. width: 22rpx;
  718. height: 22rpx;
  719. background: #EC0F0A;
  720. text-align: center;line-height: 22rpx;
  721. font-size: 16rpx;
  722. color: #FFFFFF;
  723. top: 0rpx;
  724. right: -8rpx;
  725. border-radius: 50%;
  726. }
  727. .qdTxt{
  728. font-size: 20rpx;
  729. color: #666666;
  730. line-height: 28rpx;
  731. }
  732. .bottomprice{
  733. padding-left: 38rpx;
  734. font-weight: 600;
  735. font-size: 20rpx;padding-top: 24rpx;
  736. color: #EC0F0A;line-height: 45rpx;
  737. }
  738. .byh{
  739. padding-left: 38rpx;
  740. font-size: 20rpx;
  741. color: #666666;
  742. line-height: 28rpx;
  743. }
  744. .bspan4{
  745. color: #EC0F0A;
  746. }
  747. .bSpan2{
  748. font-weight: 500;
  749. font-size: 34rpx;
  750. color: #EC0F0A;
  751. line-height: 45rpx;
  752. }
  753. .goodsPrice{
  754. display: flex;
  755. }
  756. .goodsPrice1{
  757. font-size: 24rpx;
  758. font-weight: 400;
  759. color: #EC0F0A;
  760. padding-top: 14rpx;
  761. padding-right: 14rpx;
  762. }
  763. .goodsPrice2{
  764. font-size: 28rpx;
  765. font-weight: 400;
  766. color: #EC0F0A;
  767. padding-top: 12rpx;
  768. }
  769. .goodsPrice3{
  770. font-size: 28rpx;
  771. padding-top: 12rpx;
  772. font-weight: 500;
  773. color: #EC0F0A;
  774. }
  775. .goodsPrice4{
  776. font-size: 24rpx;
  777. font-weight: 400;
  778. color: #999999;
  779. padding-top: 16rpx;
  780. /* text-decoration:line-through; */
  781. padding-left: 10rpx;
  782. }
  783. .tkTop{
  784. display: flex;padding: 40rpx 24rpx;
  785. }
  786. .tkImg{
  787. width: 120rpx;
  788. height: 120rpx;
  789. background: #DDDDDD;
  790. border-radius: 6rpx;
  791. }
  792. .tkName{
  793. font-weight: 400;
  794. font-size: 24rpx;
  795. color: #222222;
  796. line-height: 33rpx;
  797. }
  798. .tkNameBox{
  799. padding-left: 24rpx;width: 515rpx;
  800. }
  801. .chahao{
  802. width: 22rpx;height: 22rpx;padding-top: 10rpx;
  803. padding-left: 80rpx;
  804. }
  805. .buyLine{
  806. display: flex;justify-content: space-between;
  807. padding: 20rpx 24rpx;font-size: 26rpx;
  808. color: #666E80;
  809. }
  810. .buyBOx{
  811. background: #FFFFFF;margin-top: 20rpx;
  812. }
  813. .buyData{
  814. color: #222222;display: flex;
  815. }
  816. .goodsGuige{
  817. width: 150rpx;
  818. height: 50rpx;line-height: 50rpx;
  819. background: #F6F6F6;
  820. border-radius: 5rpx;
  821. font-size: 24rpx;
  822. color: #222222;text-align: center;
  823. }
  824. .activeGuige{
  825. width: 146rpx;
  826. height: 46rpx;line-height: 46rpx;
  827. border: 2rpx solid #FF0035;
  828. border-radius: 5rpx;
  829. font-size: 24rpx;
  830. color: #FF0035;text-align: center;
  831. }
  832. .numJsbox{
  833. display: flex;
  834. }
  835. .buyCont{
  836. position: absolute;
  837. left: 0;
  838. bottom: 0;
  839. width: 750rpx;
  840. height: 688rpx;
  841. background: #FFFFFF;
  842. border-radius: 26rpx 26rpx 0px 0px;
  843. }
  844. .buyNumBox{
  845. padding: 30rpx;
  846. padding-top: 10rpx;
  847. padding-bottom: 70rpx;
  848. }
  849. .buyContCh{
  850. position: absolute;
  851. top: 53rpx;
  852. right: 36rpx;
  853. width: 36rpx;
  854. height: 36rpx;
  855. }
  856. .goodsnum{
  857. width: 44rpx;
  858. height: 44rpx;
  859. background: #F4F5F7;
  860. line-height: 44rpx;
  861. text-align: center;
  862. font-weight: 500;
  863. color: #333333;
  864. font-size: 24rpx;
  865. margin: 0 4rpx;
  866. border-left:1px solid #C0C0C0;
  867. border-right:1px solid #C0C0C0;
  868. }
  869. .goodsnumInput{
  870. width: 44rpx;
  871. height: 44rpx;
  872. background: #FFFFFF;
  873. line-height: 44rpx;
  874. text-align: center;
  875. font-weight: 500;
  876. color: #333333;
  877. font-size: 24rpx;
  878. }
  879. .numJj{
  880. width: 44rpx;
  881. height: 44rpx;
  882. background: #ffffff;
  883. border-radius: 0px 6rpx 6rpx 0px;
  884. text-align: center;
  885. line-height: 44rpx;
  886. font-size: 32rpx;
  887. color: #999999;
  888. }
  889. .numJsbox{
  890. border: 1px solid #C0C0C0;
  891. border-radius: 6rpx;
  892. }
  893. .tkBottomBtn{
  894. width: 661rpx;text-align: center;
  895. height: 86rpx;line-height: 86rpx;
  896. /* background: #FCD903; */
  897. border-radius: 43rpx;
  898. font-size: 32rpx;
  899. color: #110B01;
  900. }
  901. .tkBottom{
  902. width: 750rpx;
  903. height: 146rpx;
  904. background: #FFFFFF;
  905. box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
  906. padding-bottom: constant(safe-area-inset-bottom);
  907. padding-bottom: env(safe-area-inset-bottom);
  908. display: flex;justify-content: center;align-items: center;
  909. position: absolute;left: 0;bottom: 0;
  910. }
  911. .lineActive{
  912. border: 1px solid #FE0200;
  913. background: #FFF7F7;
  914. }
  915. .tkLine{
  916. background: #ffffff;
  917. padding: 20rpx 22rpx;
  918. padding-bottom: 30rpx;
  919. border-radius: 16rpx;
  920. }
  921. .tkDelIcon{
  922. width: 25rpx;height: 27rpx;
  923. margin: 6rpx;
  924. }
  925. .tkTitle{
  926. font-weight: 500;
  927. font-size: 30rpx;
  928. color: #222222;
  929. line-height: 42rpx;
  930. }
  931. .tkTop{
  932. justify-content: space-between;
  933. }
  934. .tkDelBox{
  935. display: flex;width: 100rpx;
  936. }
  937. .tkTop .tkDelTxt{
  938. font-weight: 500;
  939. font-size: 26rpx;
  940. color: #222222;
  941. line-height: 42rpx;
  942. padding-left: 8rpx;
  943. }
  944. .tkCBox{
  945. padding: 0 22rpx;
  946. }
  947. .tkLineTop{
  948. display: flex;justify-content: space-between;
  949. }
  950. .tklineTopTitle{
  951. font-size: 26rpx;
  952. }
  953. .tkCBox .tkDelTxt{
  954. font-weight: 400;
  955. font-size: 26rpx;
  956. color: #222222;
  957. line-height: 42rpx;
  958. padding-left: 8rpx;
  959. }
  960. .tklineCont{
  961. display: flex;
  962. padding-top: 24rpx;
  963. }
  964. .tkcount{
  965. font-weight: 400;
  966. font-size: 22rpx;
  967. color: #222222;
  968. padding-left: 22rpx;
  969. padding-top: 16rpx;
  970. }
  971. .tkCBox .goodsPrice{
  972. padding-top: 36rpx;
  973. justify-content: flex-end;
  974. }
  975. .nodataImg{
  976. width: 176rpx;height: 180rpx;
  977. }
  978. .nodataTxt{
  979. font-weight: 400;
  980. font-size: 26rpx;
  981. color: #999999;
  982. line-height: 37rpx;
  983. text-align: center;
  984. padding-top: 10rpx;
  985. }
  986. .nodataBox{
  987. padding-top: 186rpx;
  988. background: #fff;
  989. padding-bottom: 200rpx;
  990. border-radius: 20rpx;
  991. }
  992. .byTj{
  993. width: 70rpx;height: 70rpx;top: 0;left: 0;
  994. position: absolute;
  995. }
  996. .bSpan1{
  997. font-size: 30rpx;
  998. }
  999. </style>