ソースを参照

添加实名认证逻辑

martin.ma 3 年 前
コミット
bf2e0126bc
1 ファイル変更12 行追加0 行削除
  1. 12 0
      components/bind_wechat_article/index.vue

+ 12 - 0
components/bind_wechat_article/index.vue

@@ -75,6 +75,12 @@ export default {
       loading: false
     };
   },
+  computed:{
+    isSign() {
+      return this.userinfo["realname_re"] == 2 ? true : false;
+      // return false
+    },
+  },
   methods: {
     show({ name, uid, avatar }) {
       this.name = name;
@@ -89,6 +95,12 @@ export default {
       if (this.loading) {
         return;
       }
+      // 实名认证 逻辑判断
+      if(!this.isSign){
+        this.$message.error("仅实名认证的用户可以申请");
+        return;
+      }
+
       if (this.bandId == "") {
         this.$message.error("请填写账户ID");
         return;