|
@@ -128,12 +128,17 @@ Page(Object.assign({
|
|
|
get(pathmap.cardetail,{id:this.data.id},function(json){
|
|
|
if(json.statusCode==200){
|
|
|
var detail = json.data;
|
|
|
- var time = detail.first_plate_at.split('-');
|
|
|
+ if(detail.first_plate_at){
|
|
|
+ var time = detail.first_plate_at.split('-');
|
|
|
+ detail.first_plate_atn = time[0]+"/"+time[1]+"首次上牌";
|
|
|
+ detail.first_plate_atname = time[0]+"年"+parseInt(time[1])+"月";
|
|
|
+ }else{
|
|
|
+ detail.first_plate_atn = "未上牌";
|
|
|
+ detail.first_plate_atname = "未上牌";
|
|
|
+ }
|
|
|
/*数据结构处理*/
|
|
|
detail.imgs = detail.imgs&&detail.imgs.split(",");
|
|
|
detail.imgslength = detail.imgs.length;
|
|
|
- detail.first_plate_at = time[0]+"/"+time[1];
|
|
|
- detail.first_plate_atname = time[0]+"年"+parseInt(time[1])+"月";
|
|
|
detail.check_info.forEach(function(item){
|
|
|
item.passn = 0;
|
|
|
item.unpassn = 0;
|