Browse Source

首页的菜单,也做收购商认证后才能访问

李书文 1 year ago
parent
commit
dd296c8637
1 changed files with 5 additions and 0 deletions
  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 => {