chengjie 7 years ago
parent
commit
fc7c604394
2 changed files with 11 additions and 15 deletions
  1. 1 1
      app.js
  2. 10 14
      pages/main/default.js

+ 1 - 1
app.js

@@ -14,7 +14,7 @@ App({
14
     this.globalData.systemInfo = wx.getSystemInfoSync();
14
     this.globalData.systemInfo = wx.getSystemInfoSync();
15
   },
15
   },
16
   globalData: {
16
   globalData: {
17
-    version: "1.0.7",
17
+    version: "1.0.8",
18
     IsProduction: true,
18
     IsProduction: true,
19
     ProgramID: 105,
19
     ProgramID: 105,
20
     AppID: "wx1fef080f74481cbd",
20
     AppID: "wx1fef080f74481cbd",

+ 10 - 14
pages/main/default.js

@@ -24,19 +24,17 @@ Page({
24
       NickName: app.globalData.userInfo.NickName,
24
       NickName: app.globalData.userInfo.NickName,
25
       AvatarUrl: app.globalData.userInfo.AvatarUrl,
25
       AvatarUrl: app.globalData.userInfo.AvatarUrl,
26
     });
26
     });
27
-    common.getStorageValue(this, "HelpHidden1", false, function () {
28
-      that.showHelp();
29
-    });
27
+    
30
     wx.login({
28
     wx.login({
31
       success: function (res0) {
29
       success: function (res0) {
32
         code = res0.code;
30
         code = res0.code;
33
       }
31
       }
34
     });
32
     });
35
-    this.downloadUserAvatar();
33
+    
36
     this.updateProgram();
34
     this.updateProgram();
37
   },
35
   },
38
-  onUnload:function(){
39
-    this.closeHelp();
36
+  onUnload: function () {
37
+    
40
   },
38
   },
41
   onShow: function () {
39
   onShow: function () {
42
     var list = wx.getStorageSync("AnswerList");
40
     var list = wx.getStorageSync("AnswerList");
@@ -63,15 +61,13 @@ Page({
63
           that.setData({
61
           that.setData({
64
             IsAccredit: true,
62
             IsAccredit: true,
65
           });
63
           });
64
+          that.downloadUserAvatar();
65
+          common.getStorageValue(that, "HelpHidden1", false, function () {
66
+            that.showHelp();
67
+          });
66
         } else {
68
         } else {
67
-          //付费用户请去授权
68
-
69
-          common.getStorageValue(that, "HelpHidden3", false, function () {
70
-            if (that.data.HelpHidden3) {
71
-              wx.navigateTo({
72
-                url: '../about/payfinished',
73
-              });
74
-            }
69
+          wx.navigateTo({
70
+            url: '../about/payfinished',
75
           });
71
           });
76
         }
72
         }
77
       }
73
       }