Browse Source

bug修改

twt 2 years ago
parent
commit
7237232eec
3 changed files with 27 additions and 5 deletions
  1. 1 1
      pages/mobile/OEDetail.vue
  2. 1 1
      pages/mobile/OESearch.vue
  3. 25 3
      pages/mobile/index.vue

+ 1 - 1
pages/mobile/OEDetail.vue

@@ -85,7 +85,7 @@
 			},
 			bindChange(e){
 				console.log(e)
-				this.brandName=this.epc_info[0].brand
+				this.brandName=this.epc_info[e.detail.value].brand
 				this.epc_id=this.oedata.epc_info[e.detail.value].epc_id;
 				this.brand_id=this.oedata.epc_info[e.detail.value].brand_id;
 				this.find2()

+ 1 - 1
pages/mobile/OESearch.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="box">
-		<view class="brand">当前品牌:{{this.itemList[0].brands}}</view>
+		<!-- <view class="brand">当前品牌:{{this.itemList[0].brands}}</view> -->
 
 		<!-- <view class="tab">
 			<view class="tabLine" :class="{tabActive:tabIndex==0}" @click="tabClick(0)">品牌下搜索</view>

+ 25 - 3
pages/mobile/index.vue

@@ -50,9 +50,31 @@
 				this.gogroup()
 			},
             gogroup(){
-				uni.navigateTo({
-					url:'group?vin='+this.vin
-				})
+				uni.showLoading({
+					title: '加载中'
+				});
+				this.$http('advancedEpc/getVinGroup', {
+					vin: this.vin,
+				
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					//console.log(res.data.number);
+					if (res.data.number == 200 || res.data.number == 5212) {
+						uni.navigateTo({
+							url:'group?vin='+this.vin
+						})
+						
+					} else {
+				
+						uni.showToast({
+							title: res.data.message,
+							icon: 'none',
+							duration: 3000
+						});
+					}
+				
+				});
+				
 			},
 			gogroup2(vin){
 				uni.navigateTo({