Pārlūkot izejas kodu

实名状态改变

hejie 3 gadi atpakaļ
vecāks
revīzija
1390ad816f
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/pages/my/index.vue

+ 3 - 2
src/pages/my/index.vue

@@ -427,6 +427,7 @@ export default {
   },
   onShow: function () {
     this.userinfo = uni.getStorageSync("userinfo");
+    this.isShiMing = this.userinfo.is_authentication == 0 ? true : false;
     let token = uni.getStorageSync("token");
     if (!token) {
       this.login();
@@ -453,7 +454,7 @@ export default {
 
     // 获取用户信息
     loadData() {
-      u_post("ShuZiTeaYW/my/index", {
+      post("ShuZiTeaYW/my/index", {
         userId: this.user_id,
       }).then((res) => {
         if (res.status == 200) {
@@ -470,7 +471,7 @@ export default {
       var that = this;
       uni.showLoading({ mask: true });
       appEv.setData((res) => {
-        that.loadData();
+        // that.loadData();
         uni.hideLoading();
         that.showAuth = false;
       });