chengjie лет назад: 7
Родитель
Сommit
322fad01e2
3 измененных файлов с 4 добавлено и 3 удалено
  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
   globalData: {
13
   globalData: {
14
     Version: "1.0.1",
14
     Version: "1.0.1",
15
-    IsProduction: true,
15
+    IsProduction: false,
16
     ProgramID: 106,
16
     ProgramID: 106,
17
     AppID: "wx313a8f2c0741efe1",
17
     AppID: "wx313a8f2c0741efe1",
18
     ShareTitle:"赢在阅读起跑线",
18
     ShareTitle:"赢在阅读起跑线",

+ 2 - 1
pages/main/index.js

@@ -237,7 +237,8 @@ Page({
237
       server.getData('GetHanziCustomList?UserID=' + app.globalData.userInfo.UserID, function (data) {
237
       server.getData('GetHanziCustomList?UserID=' + app.globalData.userInfo.UserID, function (data) {
238
         if (data && data.length>0) {
238
         if (data && data.length>0) {
239
           for (var n = 0; n < data.length; n++) {
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
           wx.setStorageSync("UnitCustom", data);
243
           wx.setStorageSync("UnitCustom", data);
243
         }
244
         }

+ 1 - 1
project.config.json

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