tanyanfei 3 年 前
コミット
1b02a4a15c
1 ファイル変更11 行追加2 行削除
  1. 11 2
      pages/upload/upload.js

+ 11 - 2
pages/upload/upload.js

@@ -29,6 +29,9 @@ Page({
     if (!this.data.freshen) {
       return;
     }
+    this.setData({
+      disable: false
+    })
     $api.getAuthinfo().then(res=>{
       this.setData({
         role: res.data.data.role,
@@ -271,6 +274,7 @@ Page({
         })
         this.setData({
           freshen: true,
+          disable: false
         })
         setTimeout(() => {
           this.setData({
@@ -279,14 +283,19 @@ Page({
             today_stock_img: [],
             value: [-1],
             is_markt: 0,
-            today_fund: '',
-            disable: false
+            today_fund: ''
+            
           })
           wx.switchTab({
             url: '../index/index',
           })
         }, 200)
       })
+      .catch(err => {
+         this.setData({
+           disable:false
+         })
+      })
     }else{
       this.setData({
         show:1