dedsudiyu преди 1 ден
родител
ревизия
95d5e6d197
променени са 1 файла, в които са добавени 17 реда и са изтрити 10 реда
  1. 17 10
      pages_manage/views/accessQualification/accessQualificationInfo.vue

+ 17 - 10
pages_manage/views/accessQualification/accessQualificationInfo.vue

@@ -1,6 +1,6 @@
 <!-- 准入资格申请详情 -->
 <template>
-	<view id="accessQualificationInfo">
+	<view id="accessQualificationInfo" v-show="showType">
 		<view class="user-info-box">
 			<view class="user-info-box-min">
 				<view>实验室:</view>
@@ -97,6 +97,7 @@
 				itemData: {},
 				type: 0,
 				applyId: '',
+				showType:false,
 			}
 		},
 		onLoad(option) {
@@ -156,11 +157,14 @@
 					});
 					let homeType = false;
 					let list = getCurrentPages();
-					for(let i=0;i<list.length;i++){
-						if(list[i].route.indexOf('home') != -1){
-							homeType = true;
-						}
+					if(list[1]){
+						homeType = true;
 					}
+					// for(let i=0;i<list.length;i++){
+					// 	if(list[i].route.indexOf('home') != -1){
+					// 		homeType = true;
+					// 	}
+					// }
 					if(homeType){
 						setTimeout(function() {
 							uni.navigateBack();
@@ -274,11 +278,14 @@
 					//判断链接跳转逻辑
 					let homeType = false;
 					let list = getCurrentPages();
-					for(let i=0;i<list.length;i++){
-						if(list[i].route.indexOf('home') != -1){
-							homeType = true;
-						}
+					if(list[1]){
+						homeType = true;
 					}
+					// for(let i=0;i<list.length;i++){
+					// 	if(list[i].route.indexOf('home') != -1){
+					// 		homeType = true;
+					// 	}
+					// }
 					if(!homeType){
 						if(data.data.labSecurityApply.auditStatus != 0){
 							uni.showToast({
@@ -349,7 +356,7 @@
 						}
 					}
 					this.$set(this, 'newData', data.data)
-					console.log(this.newData)
+					this.$set(this, 'showType', true)
 				}
 
 			},