|
@@ -11,8 +11,8 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="zdyNavTitle">车型件</view>
|
|
<view class="zdyNavTitle">车型件</view>
|
|
- <view class="zdyNavRight" @click="goOemSearch()">OEM搜索</view>
|
|
|
|
- <!-- <view v-else style="width: 50rpx;"></view> -->
|
|
|
|
|
|
+ <view v-if="param.length != 0" class="zdyNavRight" @click="goOemSearch()">OEM搜索</view>
|
|
|
|
+ <view v-else style="width: 50rpx;"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
@@ -31,7 +31,7 @@
|
|
<view class="vinB">VIN</view>
|
|
<view class="vinB">VIN</view>
|
|
<view class="vinNum">{{vin}}</view>
|
|
<view class="vinNum">{{vin}}</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="chexingMes.length != 0" class="vinBox2">
|
|
|
|
|
|
+ <view v-if="chexingMesList.length != 0" class="vinBox2">
|
|
<view class="detail" @click="goCarDetail()">车型详情</view>
|
|
<view class="detail" @click="goCarDetail()">车型详情</view>
|
|
<image src="../../static/img/icon_arrow_blue_r@2x.png" mode="" style="width: 24rpx; height: 24rpx"></image>
|
|
<image src="../../static/img/icon_arrow_blue_r@2x.png" mode="" style="width: 24rpx; height: 24rpx"></image>
|
|
</view>
|
|
</view>
|
|
@@ -75,7 +75,7 @@
|
|
param: '',
|
|
param: '',
|
|
token: '',
|
|
token: '',
|
|
epc_id: '',
|
|
epc_id: '',
|
|
- chexingMes:[],
|
|
|
|
|
|
+ chexingMesList:[],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
@@ -103,7 +103,8 @@
|
|
|
|
|
|
if (res.data.result.restrains.length > 0) {
|
|
if (res.data.result.restrains.length > 0) {
|
|
this.restrains = res.data.result.restrains;
|
|
this.restrains = res.data.result.restrains;
|
|
- this.restrainShow = true;
|
|
|
|
|
|
+ this.restrainShow = true;
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
this.zzTime = res.data.result.access_time;
|
|
this.zzTime = res.data.result.access_time;
|
|
this.zlist = res.data.result.list;
|
|
this.zlist = res.data.result.list;
|
|
@@ -111,6 +112,9 @@
|
|
this.groupShow = true;
|
|
this.groupShow = true;
|
|
this.token = res.data.result.list[0].token;
|
|
this.token = res.data.result.list[0].token;
|
|
this.param = res.data.result.list[0].param;
|
|
this.param = res.data.result.list[0].param;
|
|
|
|
+ }
|
|
|
|
+ if (Object.keys(res.data.result.vehicle).length != 0) {
|
|
|
|
+ this.chexingMesList = res.data.result.vehicle.tree
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
|
|
@@ -128,7 +132,8 @@
|
|
this.token = item.token;
|
|
this.token = item.token;
|
|
|
|
|
|
this.getcarVinGroup()
|
|
this.getcarVinGroup()
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
getcarVinGroup() {
|
|
getcarVinGroup() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中'
|
|
title: '加载中'
|
|
@@ -147,7 +152,9 @@
|
|
this.caption = res.data.result.caption
|
|
this.caption = res.data.result.caption
|
|
if (res.data.result.restrains.length > 0) {
|
|
if (res.data.result.restrains.length > 0) {
|
|
this.restrains = res.data.result.restrains;
|
|
this.restrains = res.data.result.restrains;
|
|
- this.restrainShow = true;
|
|
|
|
|
|
+ this.restrainShow = true;
|
|
|
|
+ this.token = res.data.result.restrains[0].token;
|
|
|
|
+ this.param = res.data.result.restrains[0].param;
|
|
} else {
|
|
} else {
|
|
this.token = res.data.result.list[0].token;
|
|
this.token = res.data.result.list[0].token;
|
|
this.param = res.data.result.list[0].param;
|
|
this.param = res.data.result.list[0].param;
|
|
@@ -155,6 +162,10 @@
|
|
this.zlist = res.data.result.list;
|
|
this.zlist = res.data.result.list;
|
|
this.restrainShow = false;
|
|
this.restrainShow = false;
|
|
this.groupShow = true;
|
|
this.groupShow = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (Object.keys(res.data.result.vehicle).length != 0) {
|
|
|
|
+ this.chexingMesList = res.data.result.vehicle.tree
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -166,10 +177,18 @@
|
|
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- goCarDetail() {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: 'CarDetail'
|
|
|
|
- })
|
|
|
|
|
|
+ goCarDetail() {
|
|
|
|
+ var that = this;
|
|
|
|
+ uni.setStorage({
|
|
|
|
+ key: 'chexingMesList',
|
|
|
|
+ data: that.chexingMesList,
|
|
|
|
+ success: function() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: 'CarDetail'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
goOemSearch() {
|
|
goOemSearch() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|