Procházet zdrojové kódy

Merge branch 'feature/asyncOrder' of http://git.aseanbusiness.cn/qzyReal/market-app-ui into feature/asyncOrder

qzyReal před 1 rokem
rodič
revize
83ce415fe8
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      pages/index/index.vue

+ 5 - 0
pages/index/index.vue

@@ -181,6 +181,11 @@ export default {
 			uni.navigateTo({ url: '/pages/news/list?keyword=' + this.keyword });
 		},
 		navTo(url) {
+			//收购商需要认证才给访问
+			if (this.getUser().userType == 3 && !this.hasAuth()) {
+				uni.navigateTo({ url: '/pages/authentication/index' });
+				return;
+			}
 			uni.navigateTo({
 				url: url,
 				fail: res => {