|
@@ -24,10 +24,12 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="item.carDetailInfo.NextAuditTime||item.carDetailInfo.InsuranceExpireDate||item.remindSheetInfo.length>0">
|
|
|
+ <!-- <view v-if="item.carDetailInfo.NextAuditTime||item.carDetailInfo.InsuranceExpireDate||item.remindSheetInfo.length>0||item.carDetailInfo.NextCareTime"> -->
|
|
|
+ <view>
|
|
|
<image class="carUpimg" v-if="item.show" src="../../static/img/icon_arrow_up.png" mode=""></image>
|
|
|
<image class="carUpimg" v-if="!item.show" src="../../static/img/icon_arrow_down.png" mode=""></image>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="carData">
|
|
|
<view class="carDataLine" > 最新里程:
|
|
@@ -76,6 +78,43 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="" style="border-top: 1px solid #EEEEEE;">
|
|
|
+ <view class="lineTop" v-show="item.carDetailInfo.NextCareTime" @click.stop="carDfn5(item)">
|
|
|
+ <view class="lineTop1">
|
|
|
+ <view class="lineTopNs">
|
|
|
+ <view class="nsTxt">保养提醒</view>
|
|
|
+ <view v-if="isDateGreater(item.carDetailInfo.NextCareTime)">
|
|
|
+ <span v-if="daysUntilDate(item.carDetailInfo.NextCareTime)>30"></span>
|
|
|
+ <view class="nsStatus" v-else>即将过期</view>
|
|
|
+ </view>
|
|
|
+ <view class="nsStatus" v-else>
|
|
|
+ <span>已过期</span>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="lineTimeBox">
|
|
|
+ <span v-if="item.carDetailInfo.NextCareMilage">{{item.carDetailInfo.NextCareMilage}}km/</span>
|
|
|
+ <span>{{item.carDetailInfo.NextCareTime}}</span>
|
|
|
+ <image class="carUpimg" v-show="item.show5" src="../../static/img/icon_arrow_up.png" mode=""></image>
|
|
|
+ <image class="carUpimg" v-show="!item.show5" src="../../static/img/icon_arrow_down.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="lineTop2" v-show="item.show5">
|
|
|
+ <view class="chaoqi" v-if="isDateGreater(item.carDetailInfo.NextCareTime)">
|
|
|
+ <span >距离天数:</span>
|
|
|
+ {{daysUntilDate(item.carDetailInfo.NextCareTime)}}天
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="chaoqi">
|
|
|
+ <span v-if="!isDateGreater(item.carDetailInfo.NextCareTime)">超期天数:{{daysUntilDate(item.carDetailInfo.NextAuditTime)}}天</span>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <view class="lineBtn" @click.stop="sendChat(item,5)">发送提醒</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="lineCont" v-show="item.carDetailInfo.InsuranceExpireDate" @click.stop="carDfn2(item)">
|
|
|
<view class="lcLine">
|
|
|
<view class="lineTop1">
|
|
@@ -316,6 +355,20 @@
|
|
|
txt='您好,您的爱车'+item.PlateNumber+item.CategoryName+'维修保养服务已超过预计下次服务日'+day+'5天了,请及时到店保养~'
|
|
|
}
|
|
|
}
|
|
|
+ if(num==5){
|
|
|
+ var state= this.isDateGreater(item.carDetailInfo.NextCareTime)
|
|
|
+ var day= this.daysUntilDate(item.carDetailInfo.NextCareTime)
|
|
|
+ if(state){
|
|
|
+ if(day>30){
|
|
|
+ txt='您的爱车'+item.PlateNumber+'保养到期时间为'+item.carDetailInfo.NextCareTime+',还有'+day+'天到期,请及时保养~'
|
|
|
+ }else{
|
|
|
+ txt='您的爱车'+item.PlateNumber+'保养到期时间为'+item.carDetailInfo.NextCareTime+',还有'+day+'天即将到期,请及时保养~'
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ txt='您的爱车'+item.PlateNumber+'保养已于'+item.carDetailInfo.NextCareTime+'过期,为了不影响车辆使用,请及时保养~'
|
|
|
+ }
|
|
|
+ }
|
|
|
console.log(txt)
|
|
|
/* uni.showToast({
|
|
|
title: txt,
|
|
@@ -354,7 +407,17 @@
|
|
|
})
|
|
|
},
|
|
|
carlineFn(item){
|
|
|
- item.show=!item.show
|
|
|
+ if(item.carDetailInfo.NextAuditTime||item.carDetailInfo.InsuranceExpireDate||item.remindSheetInfo.length>0||item.carDetailInfo.NextCareTime){
|
|
|
+ item.show=!item.show
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: '暂无提醒',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
carDfn2(item){
|
|
|
item.show3=!item.show3
|
|
@@ -365,6 +428,10 @@
|
|
|
carDfn4(item){
|
|
|
item.show4=!item.show4
|
|
|
},
|
|
|
+ carDfn5(item){
|
|
|
+ item.show5=!item.show5
|
|
|
+ },
|
|
|
+
|
|
|
getdata(){
|
|
|
this.extCarInfo()
|
|
|
/* var that=this;
|
|
@@ -398,6 +465,7 @@
|
|
|
item.show2=false
|
|
|
item.show3=false
|
|
|
item.show4=false
|
|
|
+ item.show5=false
|
|
|
})
|
|
|
this.carList=res.data
|
|
|
})
|