chengjie 6 years ago
parent
commit
5f149ac4da
3 changed files with 10 additions and 3 deletions
  1. 2 2
      app.js
  2. 0 1
      pages/index/index.js
  3. 8 0
      pages/main/symbolsetting.js

File diff suppressed because it is too large
+ 2 - 2
app.js


+ 0 - 1
pages/index/index.js

@@ -331,7 +331,6 @@ Page({
331
             wx.removeStorageSync("UserID");
331
             wx.removeStorageSync("UserID");
332
             wx.removeStorageSync("UserName");
332
             wx.removeStorageSync("UserName");
333
             wx.removeStorageSync("SearchWord3");
333
             wx.removeStorageSync("SearchWord3");
334
-
335
             // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
334
             // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
336
             updateManager.applyUpdate();
335
             updateManager.applyUpdate();
337
           }
336
           }

+ 8 - 0
pages/main/symbolsetting.js

@@ -26,6 +26,14 @@ Page({
26
     });
26
     });
27
 
27
 
28
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {
28
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {
29
+      if (that.data.SymbolMain.length>0 && !that.data.SymbolMain[0].Name){
30
+        wx.removeStorageSync("SymbolMain");
31
+        that.setData({
32
+          SymbolMain: app.globalData.SymbolMain,
33
+        });
34
+        wx.setStorageSync("SymbolMain", app.globalData.SymbolMain);
35
+      }
36
+      
29
       var arr = [];
37
       var arr = [];
30
       for (var i = 0; i < app.globalData.SymbolArray.length; i++) {
38
       for (var i = 0; i < app.globalData.SymbolArray.length; i++) {
31
         var obj = {};
39
         var obj = {};