chengjie 3 years ago
parent
commit
0727da9f93

+ 1 - 1
app.js

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

+ 4 - 2
pages/main/add.js

@@ -589,9 +589,11 @@ Page({
589
               str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
589
               str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
590
             else
590
             else
591
               str = "[读]" + item.Content + "[/读]";
591
               str = "[读]" + item.Content + "[/读]";
592
+          } else if (item.Type == "bigword") {
593
+              str = "[特]"+item.Content+"[/特]";
592
           } else if (item.Type == "recorder") {
594
           } else if (item.Type == "recorder") {
593
-            if (item.SoundMark)
594
-              str = "[音 url='" + item.SoundMark + "'][/音]";
595
+                if (item.SoundMark)
596
+                  str = "[音 url='" + item.SoundMark + "'][/音]";
595
           } else if (item.Type == "normal") {
597
           } else if (item.Type == "normal") {
596
             str = item.Content;
598
             str = item.Content;
597
           } else if (item.Type == "return") {
599
           } else if (item.Type == "return") {

+ 1 - 0
pages/main/add.wxml

@@ -55,6 +55,7 @@
55
 						<view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
55
 						<view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
56
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
56
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
57
 						</view>
57
 						</view>
58
+						<text class="textBigWord" wx:if="{{item.Type=='bigword'}}">{{item.Content}}</text>
58
 						<text class="textPinyin" wx:if="{{item.Type=='sound'}}">{{item.Content}}</text>
59
 						<text class="textPinyin" wx:if="{{item.Type=='sound'}}">{{item.Content}}</text>
59
 						<view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
60
 						<view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
60
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
61
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />

+ 4 - 0
pages/main/add.wxss

@@ -321,6 +321,10 @@ page{
321
   background-color: #1E1E1E;
321
   background-color: #1E1E1E;
322
 }
322
 }
323
 
323
 
324
+.panelItem .textBigWord {
325
+  font-size: 42rpx;
326
+  font-weight: 600;
327
+}
324
 .panelItem .textPinyin {
328
 .panelItem .textPinyin {
325
   text-decoration: underline;
329
   text-decoration: underline;
326
   margin-right: 10rpx;
330
   margin-right: 10rpx;

+ 10 - 0
pages/main/mainlist.js

@@ -276,10 +276,20 @@ Page({
276
       if (item.Content[1].ContentStr.length > len)
276
       if (item.Content[1].ContentStr.length > len)
277
         item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].ContentStr.substr(0, len)) + "...";
277
         item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].ContentStr.substr(0, len)) + "...";
278
 
278
 
279
+      if (item.Content[1].ContentStr){
280
+        item.Content[1].ContentStr=item.Content[1].ContentStr.replace("[特]","");
281
+        item.Content[1].ContentStr=item.Content[1].ContentStr.replace("[/特]","");
282
+      }
283
+
279
       item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
284
       item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
280
       if (item.Content[2].ContentStr.length > len)
285
       if (item.Content[2].ContentStr.length > len)
281
         item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].ContentStr.substr(0, len)) + "...";
286
         item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].ContentStr.substr(0, len)) + "...";
282
 
287
 
288
+      if (item.Content[2].ContentStr){
289
+        item.Content[2].ContentStr=item.Content[2].ContentStr.replace("[特]","");
290
+        item.Content[2].ContentStr=item.Content[2].ContentStr.replace("[/特]","");
291
+      }
292
+
283
       var imageUrl = getImage(item.Content[1].Content);
293
       var imageUrl = getImage(item.Content[1].Content);
284
       if (imageUrl.length == 0 && item.Content[2].Content)
294
       if (imageUrl.length == 0 && item.Content[2].Content)
285
         imageUrl = getImage(item.Content[2].Content);
295
         imageUrl = getImage(item.Content[2].Content);

+ 2 - 0
pages/template/cardShow.wxml

@@ -18,6 +18,8 @@
18
       </block>
18
       </block>
19
       </text>
19
       </text>
20
 
20
 
21
+      <text class="textNormal" wx:if="{{item.Type=='bigword'}}" style='font-size: 108rpx;'>{{item.Content}}</text>
22
+      
21
       <view class="panelSound FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" wx:if="{{item.Type=='sound'}}" catchtap="playSound" data-content="{{item.Content}}" data-soundmark="{{item.SoundMark}}" data-fieldid="1">
23
       <view class="panelSound FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" wx:if="{{item.Type=='sound'}}" catchtap="playSound" data-content="{{item.Content}}" data-soundmark="{{item.SoundMark}}" data-fieldid="1">
22
         <image class="universalpic_read_mark_black_20x20" src='../../pages/images/universalpic_read_mark_black_20x20.png' />
24
         <image class="universalpic_read_mark_black_20x20" src='../../pages/images/universalpic_read_mark_black_20x20.png' />
23
       </view>
25
       </view>

pages/images/universalpic_words_blue_30x30.png → pages_test/images/universalpic_words_blue_30x30.png


+ 2 - 2
pages_test/test/item.js

@@ -245,9 +245,9 @@ Page({
245
         for (var k = 0; k < list.length; k++) {
245
         for (var k = 0; k < list.length; k++) {
246
           var taskInfo = list[k];
246
           var taskInfo = list[k];
247
           
247
           
248
-          taskInfo.TagWidth=336;
248
+          taskInfo.TagWidth=306;
249
           if (options.bookid>="74")
249
           if (options.bookid>="74")
250
-            taskInfo.TagWidth=308;
250
+            taskInfo.TagWidth=520;
251
 
251
 
252
           if (taskInfo.Word.length>8)
252
           if (taskInfo.Word.length>8)
253
             taskInfo.FontSize=48;
253
             taskInfo.FontSize=48;

+ 16 - 2
pages_test/test/list.js

@@ -45,6 +45,12 @@ Page({
45
         title: name
45
         title: name
46
       });
46
       });
47
     }
47
     }
48
+    else if (that.data.BookID>="160" && that.data.BookID<="169"){
49
+      name=name.replace("BASIC ENGLISH WORDS","1000 BEW");
50
+      wx.setNavigationBarTitle({
51
+        title: name
52
+      });
53
+    }
48
     else{
54
     else{
49
       wx.setNavigationBarTitle({
55
       wx.setNavigationBarTitle({
50
         title: name
56
         title: name
@@ -54,7 +60,15 @@ Page({
54
     
60
     
55
     var arr = [];
61
     var arr = [];
56
     var listType="hanzi",fieldName="单词",fieldName2="说含义";
62
     var listType="hanzi",fieldName="单词",fieldName2="说含义";
57
-    if (that.data.BookID > 140){
63
+    if (that.data.BookID > 160){
64
+      arr = wx.getStorageSync("BEWEngList");
65
+      listType="english";
66
+    }
67
+    else if (that.data.BookID > 150){
68
+      arr = wx.getStorageSync("MiddleSchoolTestWords");
69
+      listType="english";
70
+    }
71
+    else if (that.data.BookID > 140){
58
       arr = wx.getStorageSync("EEWEngList");
72
       arr = wx.getStorageSync("EEWEngList");
59
       listType="english";
73
       listType="english";
60
     }
74
     }
@@ -182,7 +196,7 @@ Page({
182
             }
196
             }
183
           }
197
           }
184
         }
198
         }
185
-        console.log("List:"+list.length);
199
+        //console.log("List:"+list.length);
186
         that.setData({
200
         that.setData({
187
           List: list,
201
           List: list,
188
           UnitsID: id,
202
           UnitsID: id,

+ 4 - 0
pages_test/test/wordlist.js

@@ -59,6 +59,10 @@ Page({
59
           arr= wx.getStorageSync("CambridgeEngList");
59
           arr= wx.getStorageSync("CambridgeEngList");
60
         else if (bookid>=140 && bookid<150)
60
         else if (bookid>=140 && bookid<150)
61
           arr= wx.getStorageSync("EEWEngList");
61
           arr= wx.getStorageSync("EEWEngList");
62
+        else if (bookid>=150 && bookid<160)
63
+          arr= wx.getStorageSync("MiddleSchoolTestWords");
64
+        else if (bookid>=160 && bookid<170)
65
+          arr= wx.getStorageSync("BEWEngList");
62
         
66
         
63
       }
67
       }
64
       arr = JSON.parse(arr);
68
       arr = JSON.parse(arr);

+ 15 - 6
utils/main.js

@@ -350,6 +350,13 @@ function changeStringToView(field) {
350
             }
350
             }
351
             arrResult.push(obj);
351
             arrResult.push(obj);
352
 
352
 
353
+          } else if (arr[k].indexOf("[特]") >= 0 && arr[k].indexOf("[/特]") > 0) {
354
+            var obj = {};
355
+            obj.Type = "bigword";
356
+            var content = arr[k].substring(arr[k].indexOf("[特]")+3,arr[k].indexOf("[/特]"));
357
+            obj.Content = content;
358
+            arrResult.push(obj);
359
+
353
           } else if ((arr[k].indexOf("[线]") >= 0 && arr[k].indexOf("[/线]") > 0) || (arr[k].indexOf("[光]") >= 0 && arr[k].indexOf("[/光]") > 0)) {
360
           } else if ((arr[k].indexOf("[线]") >= 0 && arr[k].indexOf("[/线]") > 0) || (arr[k].indexOf("[光]") >= 0 && arr[k].indexOf("[/光]") > 0)) {
354
             var obj;
361
             var obj;
355
             var content = [],
362
             var content = [],
@@ -872,7 +879,7 @@ function GetTestReportInfo(reportid, callback) {
872
       var name1 = UserTestReport[n].Name[0].split(" ");
879
       var name1 = UserTestReport[n].Name[0].split(" ");
873
       var name2 = UserTestReport[n].Name[1];
880
       var name2 = UserTestReport[n].Name[1];
874
 
881
 
875
-      if (name1[0].indexOf("英语") >= 0 || name1[0].indexOf("4000") >= 0) {
882
+      if (name1[0].indexOf("英语") >= 0 ||name1[0].indexOf("单词") >= 0 || name1[0].indexOf("1000") >= 0 || name1[0].indexOf("4000") >= 0) {
876
         //console.log("英语");
883
         //console.log("英语");
877
         var wordStr = "";
884
         var wordStr = "";
878
         var userTestReportInfo = UserTestReport[n];
885
         var userTestReportInfo = UserTestReport[n];
@@ -912,12 +919,10 @@ function GetTestReportInfo(reportid, callback) {
912
           unitsid = Number(UserTestReport[n].Name[2]);
919
           unitsid = Number(UserTestReport[n].Name[2]);
913
         } else if (bookid > 120 && bookid <= 124) {
920
         } else if (bookid > 120 && bookid <= 124) {
914
           unitsid = Number(name2.replace("Lesson ", ""));
921
           unitsid = Number(name2.replace("Lesson ", ""));
915
-        } else if (bookid > 130 && bookid <= 140 && UserTestReport[n].Name[2]) {
922
+        } else if (bookid > 130 && bookid <= 170 && UserTestReport[n].Name[2]) {
916
           unitsid = Number(UserTestReport[n].Name[2]);
923
           unitsid = Number(UserTestReport[n].Name[2]);
917
-        } else if (bookid > 140 && bookid <= 150 && UserTestReport[n].Name[2]) {
918
-          unitsid = Number(UserTestReport[n].Name[2]);
919
-        }
920
-
924
+        } 
925
+        
921
         getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&LessonID=' + unitsid + '&Words=' + wordStr + "&TestType=" + userTestReportInfo.TestType, function (data) {
926
         getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&LessonID=' + unitsid + '&Words=' + wordStr + "&TestType=" + userTestReportInfo.TestType, function (data) {
922
           if (data) {
927
           if (data) {
923
             var result = {};
928
             var result = {};
@@ -1250,11 +1255,15 @@ function getEnglish(callback) {
1250
       var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1255
       var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1251
       var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1256
       var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1252
       var arrEEWEngList = common.Decrypt(data.EEWEngList);
1257
       var arrEEWEngList = common.Decrypt(data.EEWEngList);
1258
+      var arrBEWEngList = common.Decrypt(data.BEWEngList);
1259
+      var arrMiddleSchoolTestWords = common.Decrypt(data.MiddleSchoolTestWords);
1253
       var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1260
       var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1254
       wx.setStorageSync("EnglishAll", arrEng);
1261
       wx.setStorageSync("EnglishAll", arrEng);
1255
       wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1262
       wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1256
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1263
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1257
       wx.setStorageSync("EEWEngList", arrEEWEngList);
1264
       wx.setStorageSync("EEWEngList", arrEEWEngList);
1265
+      wx.setStorageSync("BEWEngList", arrBEWEngList);
1266
+      wx.setStorageSync("MiddleSchoolTestWords", arrMiddleSchoolTestWords);
1258
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1267
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1259
       wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1268
       wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1260
 
1269