|
@@ -5,8 +5,11 @@
|
|
<view class="zdyNavBox">
|
|
<view class="zdyNavBox">
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
<view class="zdyNav">
|
|
<view class="zdyNav">
|
|
- <div @click="goback" class="uni-page-head-btn"><i class="uni-btn-icon" style="color: rgb(0, 0, 0); font-size: 27px; width: 120rpx;"></i></div>
|
|
|
|
-
|
|
|
|
|
|
+ <view class="zdyNavLeft">
|
|
|
|
+ <div @click="goback" class="uni-page-head-btn"><i class="uni-btn-icon"
|
|
|
|
+ style="color: rgb(0, 0, 0); font-size: 27px;"></i></div>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
<view class="zdyNavTitle">车型件</view>
|
|
<view class="zdyNavTitle">车型件</view>
|
|
<view v-if="param.length != 0" class="zdyNavRight" @click="goOemSearch()">OEM搜索</view>
|
|
<view v-if="param.length != 0" class="zdyNavRight" @click="goOemSearch()">OEM搜索</view>
|
|
<view v-else style="width: 120rpx;"></view>
|
|
<view v-else style="width: 120rpx;"></view>
|
|
@@ -77,14 +80,76 @@
|
|
chexingMesList:[],
|
|
chexingMesList:[],
|
|
chexing:'',
|
|
chexing:'',
|
|
description:'',
|
|
description:'',
|
|
|
|
+ type:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
- this.vin = opt.vin
|
|
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
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: {
|
|
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() {
|
|
getData() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中'
|
|
title: '加载中'
|
|
@@ -267,7 +332,9 @@
|
|
padding: 14rpx 6rpx;
|
|
padding: 14rpx 6rpx;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ .zdyNavLeft{
|
|
|
|
+ width: 120rpx;
|
|
|
|
+ }
|
|
.zdyNavTitle {
|
|
.zdyNavTitle {
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
text-align: center;
|
|
text-align: center;
|