chengjie 3 anni fa
parent
commit
2b84b8a2b1
5 ha cambiato i file con 19 aggiunte e 11 eliminazioni
  1. 1 1
      app.js
  2. 0 6
      pages_test/test/index.js
  3. 12 2
      pages_test/test/list.js
  4. 3 1
      pages_test/test/wordlist.js
  5. 3 1
      utils/main.js

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.3.23",
3
+    Version: "2.3.24",
4 4
     IsProduction: true,
5 5
     //IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",

+ 0 - 6
pages_test/test/index.js

@@ -55,12 +55,6 @@ Page({
55 55
       var name1 = e.currentTarget.dataset.name1;
56 56
       url = "./item?testtype=read&name1=" + name1 + "&name2=英文字母&bookid=100";
57 57
     } 
58
-    else if (e.currentTarget.dataset.bookid>=141 && e.currentTarget.dataset.bookid<=149) {
59
-      var name1 = e.currentTarget.dataset.name1;
60
-      name1 = name1.replace("4000EEW ", "");
61
-      name1 = name1.replace(" 词汇600", "");
62
-      url = "./list?name1=" + name1 + "&id=" + e.currentTarget.dataset.bookid;
63
-    } 
64 58
     else if (e.currentTarget.dataset.name1 && e.currentTarget.dataset.bookid) {
65 59
       url = "./list?name1=" + e.currentTarget.dataset.name1 + "&id=" + e.currentTarget.dataset.bookid;
66 60
     } 

+ 12 - 2
pages_test/test/list.js

@@ -45,12 +45,18 @@ Page({
45 45
         title: name
46 46
       });
47 47
     }
48
-    else if (that.data.BookID>="160" && that.data.BookID<="169"){
48
+    else if (that.data.BookID>="160" && that.data.BookID<="164"){
49 49
       name=name.replace("BASIC ENGLISH WORDS","1000 BEW");
50 50
       wx.setNavigationBarTitle({
51 51
         title: name
52 52
       });
53 53
     }
54
+    else if (that.data.BookID>="165" && that.data.BookID<="168"){
55
+      name=name.replace("CORE ENGLISH WORDS","1000 CEW");
56
+      wx.setNavigationBarTitle({
57
+        title: name
58
+      });
59
+    }
54 60
     else{
55 61
       wx.setNavigationBarTitle({
56 62
         title: name
@@ -60,7 +66,11 @@ Page({
60 66
     
61 67
     var arr = [];
62 68
     var listType="hanzi",fieldName="单词",fieldName2="说含义";
63
-    if (that.data.BookID > 160){
69
+    if (that.data.BookID > 164){
70
+      arr = wx.getStorageSync("CEWEngList");
71
+      listType="english";
72
+    }
73
+    else if (that.data.BookID > 160){
64 74
       arr = wx.getStorageSync("BEWEngList");
65 75
       listType="english";
66 76
     }

+ 3 - 1
pages_test/test/wordlist.js

@@ -61,8 +61,10 @@ Page({
61 61
           arr= wx.getStorageSync("EEWEngList");
62 62
         else if (bookid>=150 && bookid<160)
63 63
           arr= wx.getStorageSync("MiddleSchoolTestWords");
64
-        else if (bookid>=160 && bookid<170)
64
+        else if (bookid>=160 && bookid<165)
65 65
           arr= wx.getStorageSync("BEWEngList");
66
+        else if (bookid>=165 && bookid<170)
67
+          arr= wx.getStorageSync("CEWEngList");
66 68
         
67 69
       }
68 70
       arr = JSON.parse(arr);

+ 3 - 1
utils/main.js

@@ -879,7 +879,7 @@ function GetTestReportInfo(reportid, callback) {
879 879
       var name1 = UserTestReport[n].Name[0].split(" ");
880 880
       var name2 = UserTestReport[n].Name[1];
881 881
 
882
-      if (name1[0].indexOf("英语") >= 0 ||name1[0].indexOf("单词") >= 0 || name1[0].indexOf("1000") >= 0 || name1[0].indexOf("4000") >= 0) {
882
+      if (name1[0].indexOf("英语") >= 0 ||name1[0].indexOf("单词") >= 0 || name1[0].indexOf("1000") >= 0 || name1[0].indexOf("2000") >= 0 || name1[0].indexOf("4000") >= 0) {
883 883
         //console.log("英语");
884 884
         var wordStr = "";
885 885
         var userTestReportInfo = UserTestReport[n];
@@ -1255,6 +1255,7 @@ function getEnglish(callback) {
1255 1255
       var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1256 1256
       var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1257 1257
       var arrEEWEngList = common.Decrypt(data.EEWEngList);
1258
+      var arrCEWEngList = common.Decrypt(data.CEWEngList);
1258 1259
       var arrBEWEngList = common.Decrypt(data.BEWEngList);
1259 1260
       var arrMiddleSchoolTestWords = common.Decrypt(data.MiddleSchoolTestWords);
1260 1261
       var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
@@ -1262,6 +1263,7 @@ function getEnglish(callback) {
1262 1263
       wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1263 1264
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1264 1265
       wx.setStorageSync("EEWEngList", arrEEWEngList);
1266
+      wx.setStorageSync("CEWEngList", arrCEWEngList);
1265 1267
       wx.setStorageSync("BEWEngList", arrBEWEngList);
1266 1268
       wx.setStorageSync("MiddleSchoolTestWords", arrMiddleSchoolTestWords);
1267 1269
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);