|
@@ -75,7 +75,8 @@
|
|
|
param: '',
|
|
|
token: '',
|
|
|
epc_id: '',
|
|
|
- chexingMesList:[],
|
|
|
+ chexingMesList:[],
|
|
|
+ chexing:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -114,7 +115,8 @@
|
|
|
this.param = res.data.result.list[0].param;
|
|
|
}
|
|
|
if (Object.keys(res.data.result.vehicle).length != 0) {
|
|
|
- this.chexingMesList = res.data.result.vehicle.tree
|
|
|
+ this.chexingMesList = res.data.result.vehicle.tree;
|
|
|
+ this.chexing = res.data.result.vehicle.description;
|
|
|
}
|
|
|
} else {
|
|
|
|
|
@@ -165,7 +167,8 @@
|
|
|
}
|
|
|
|
|
|
if (Object.keys(res.data.result.vehicle).length != 0) {
|
|
|
- this.chexingMesList = res.data.result.vehicle.tree
|
|
|
+ this.chexingMesList = res.data.result.vehicle.tree;
|
|
|
+ this.chexing = res.data.result.vehicle.description;
|
|
|
}
|
|
|
} else {
|
|
|
uni.showToast({
|
|
@@ -180,14 +183,22 @@
|
|
|
goCarDetail() {
|
|
|
var that = this;
|
|
|
uni.setStorage({
|
|
|
- key: 'chexingMesList',
|
|
|
- data: that.chexingMesList,
|
|
|
+ key: 'chexing',
|
|
|
+ data: that.chexing,
|
|
|
success: function() {
|
|
|
- uni.navigateTo({
|
|
|
- url: 'CarDetail'
|
|
|
- })
|
|
|
+
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'chexingMesList',
|
|
|
+ data: that.chexingMesList,
|
|
|
+ success: function() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'CarDetail'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
},
|
|
|
goOemSearch() {
|
|
@@ -200,11 +211,26 @@
|
|
|
console.log('返回');
|
|
|
uni.navigateBack({})
|
|
|
},
|
|
|
- goTwo(item) {
|
|
|
- uni.navigateTo({
|
|
|
- url: 'modelTwo?vin=' + this.vin + '&zzTime=' + this.zzTime + '¶m=' + item.param +
|
|
|
- '&token=' + item.token + '&epc_id=' + this.epc_id
|
|
|
- })
|
|
|
+ goTwo(item) {
|
|
|
+ var that = this;
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'chexing',
|
|
|
+ data: that.chexing,
|
|
|
+ success: function() {
|
|
|
+
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'chexingMesList',
|
|
|
+ data: that.chexingMesList,
|
|
|
+ success: function() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'modelTwo?vin=' + that.vin + '&zzTime=' + that.zzTime + '¶m=' + item.param +
|
|
|
+ '&token=' + item.token + '&epc_id=' + that.epc_id
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|