maintain.vue 24 KB

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