|
@@ -82,10 +82,11 @@
|
|
|
this.isEditCar = opt.isEditCar
|
|
|
this.carId = opt.id
|
|
|
if (this.isEditCar == 'true') {
|
|
|
+
|
|
|
+ this.getEditData()
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:'编辑爱车'
|
|
|
})
|
|
|
- this.getEditData()
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -137,11 +138,14 @@
|
|
|
// 展示时
|
|
|
this.plateNo = res.data.plateNumber;
|
|
|
carModelInfo.title = res.data.carModel;
|
|
|
- this.time = res.data.acarTime.slice(0,res.data.createTime.length-8);
|
|
|
+ if (res.data.acarTime) {
|
|
|
+ this.time = res.data.acarTime.slice(0,res.data.createTime.length-8);
|
|
|
+ }
|
|
|
this.mileage = res.data.milage;
|
|
|
|
|
|
this.carModelInfo = carModelInfo;
|
|
|
-
|
|
|
+
|
|
|
+ console.log('this carModelInfo',this.carModelInfo);
|
|
|
})
|
|
|
},
|
|
|
goCarModel() {
|