chengjie 7 vuotta sitten
vanhempi
commit
322fad01e2
3 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 1 1
      app.js
  2. 2 1
      pages/main/index.js
  3. 1 1
      project.config.json

+ 1 - 1
app.js

@@ -12,7 +12,7 @@ App({
12 12
   },
13 13
   globalData: {
14 14
     Version: "1.0.1",
15
-    IsProduction: true,
15
+    IsProduction: false,
16 16
     ProgramID: 106,
17 17
     AppID: "wx313a8f2c0741efe1",
18 18
     ShareTitle:"赢在阅读起跑线",

+ 2 - 1
pages/main/index.js

@@ -237,7 +237,8 @@ Page({
237 237
       server.getData('GetHanziCustomList?UserID=' + app.globalData.userInfo.UserID, function (data) {
238 238
         if (data && data.length>0) {
239 239
           for (var n = 0; n < data.length; n++) {
240
-            data[n].List = JSON.parse(data[n].List);
240
+            if (data[n].List)
241
+              data[n].List = JSON.parse(data[n].List);
241 242
           }
242 243
           wx.setStorageSync("UnitCustom", data);
243 244
         }

+ 1 - 1
project.config.json

@@ -1,7 +1,7 @@
1 1
 {
2 2
 	"description": "项目配置文件。",
3 3
 	"setting": {
4
-		"urlCheck": true,
4
+		"urlCheck": false,
5 5
 		"es6": true,
6 6
 		"postcss": true,
7 7
 		"minified": true,