|
@@ -77,14 +77,76 @@
|
|
|
chexingMesList:[],
|
|
|
chexing:'',
|
|
|
description:'',
|
|
|
+ type:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- this.vin = opt.vin
|
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
|
- this.getData()
|
|
|
+ if(opt.type==2){
|
|
|
+ this.type=2
|
|
|
+ this.token=opt.token;
|
|
|
+ this.param=opt.param;
|
|
|
+ this.access_time=opt.access_time;
|
|
|
+ this.epc_id=opt.epc_id;
|
|
|
+ this.description=opt.modelname;
|
|
|
+ //车型点选
|
|
|
+ this.getModelGroup()
|
|
|
+ }else{
|
|
|
+ this.vin = opt.vin
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+ getModelGroup(){
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ });
|
|
|
+ this.$http('advancedEpc/getModelGroup', {
|
|
|
+ token: this.token,
|
|
|
+ param: this.param,
|
|
|
+ epc_id:this.epc_id,
|
|
|
+ access_time:this.access_time
|
|
|
+ }, 'GET').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ //console.log(res.data.number);
|
|
|
+ if (res.data.number == 200 || res.data.number == 5212) {
|
|
|
+ this.brand_name = res.data.result.brand_name;
|
|
|
+ this.brand_id = res.data.result.brand_id;
|
|
|
+ this.access_time = res.data.result.access_time;
|
|
|
+ this.caption = res.data.result.caption
|
|
|
+ this.epc_id = res.data.result.epc_id;
|
|
|
+
|
|
|
+ if (res.data.result.restrains.length > 0) {
|
|
|
+ this.restrains = res.data.result.restrains;
|
|
|
+ this.restrainShow = true;
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.zzTime = res.data.result.access_time;
|
|
|
+ this.zlist = res.data.result.list;
|
|
|
+ this.restrainShow = false;
|
|
|
+ this.groupShow = true;
|
|
|
+ this.token = res.data.result.list[0].token;
|
|
|
+ this.param = res.data.result.list[0].param;
|
|
|
+ if(res.data.result.vehicle.description){
|
|
|
+ this.description=res.data.result.vehicle.description
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (Object.keys(res.data.result.vehicle).length != 0) {
|
|
|
+ this.chexingMesList = res.data.result.vehicle.tree;
|
|
|
+ this.chexing = res.data.result.vehicle.description;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
getData() {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|