李书文 1 year ago
parent
commit
5ab5fccb84
2 changed files with 9 additions and 2 deletions
  1. 1 2
      pages/authentication/purchaser/index.vue
  2. 8 0
      pages/personal/personal.vue

+ 1 - 2
pages/authentication/purchaser/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="cmain">
-		<view v-if="item">
+		<view v-if="item.name">
 			<view v-if="item.judgeStatus == 0">
 				<view class="icon">&#xe64d;</view>
 				<view class="title">您的资料已经提交审核</view>
@@ -50,7 +50,6 @@ export default {
 				url: '/level-two-server/app/TbPurchaser/auditStatus',
 				data: param,
 				success: res => {
-					console.log(res.data.data)
 					if (res.data.data) {
 						this.item = res.data.data;
 					}

+ 8 - 0
pages/personal/personal.vue

@@ -174,6 +174,14 @@ export default {
 	},
 	onShow() {
 		this.user = this.getUser();
+		if (!this.hasAuth()) {
+			this.http.request({
+				url: '/sp-admin/app/AppUser/getAuth',
+				success: res => {
+					this.user.auth = res.data.data;
+				}
+			});
+		}
 	},
 	methods: {
 		order() {