twt hai 2 semanas
pai
achega
d6ff1f2d8b
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      pages/mobile/group.vue

+ 12 - 3
pages/mobile/group.vue

@@ -55,7 +55,9 @@
 		<view class="mainBox" v-if="restrainShow">
 			<view class="maintitle">{{caption}}</view>
 			<view class="mainLine" v-for="(item,index) in restrains" @click="restrainsClick(item)">
-				<view class="lineName">{{item.combine_cp}}</view>
+				<!-- <view class="lineName">{{item.combine_cp}}</view> -->
+				<view class="lineName">{{item.car_name}}</view> 
+				
 				<image src="../../static/img/jt.png" mode="" class="mainLineJt"></image>
 			</view>
 		</view>
@@ -63,7 +65,8 @@
 		<view class="mainBox" v-if="groupShow">
 			<view class="maintitle">{{caption}}</view>
 			<view class="mainLine" v-for="(item,index) in zlist" @click="goTwo(item)">
-				<view class="lineName">{{item.caption}}</view>
+				<!-- <view class="lineName">{{item.caption}}</view> -->
+				<view class="lineName">{{item.car_name}}</view> 
 				<image src="../../static/img/jt.png" mode="" class="mainLineJt"></image>
 			</view>
 		</view>
@@ -113,6 +116,7 @@
 		},
 		methods: {
 			getModelGroup() {
+				
 				uni.showLoading({
 					title: '加载中'
 				});
@@ -123,8 +127,9 @@
 					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;
@@ -132,10 +137,12 @@
 						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;
@@ -179,8 +186,10 @@
 						this.epc_id = res.data.result.epc_id;
 
 						if (res.data.result.restrains.length > 0) {
+							console.log("车辆配置")
 							this.restrains = res.data.result.restrains;
 							this.restrainShow = true;
+							console.log(this.restrains)
 
 						} else {
 							this.zzTime = res.data.result.access_time;