chengjie 3 yıl önce
ebeveyn
işleme
0727da9f93

+ 1 - 1
app.js

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

+ 4 - 2
pages/main/add.js

@@ -589,9 +589,11 @@ Page({
589 589
               str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
590 590
             else
591 591
               str = "[读]" + item.Content + "[/读]";
592
+          } else if (item.Type == "bigword") {
593
+              str = "[特]"+item.Content+"[/特]";
592 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 597
           } else if (item.Type == "normal") {
596 598
             str = item.Content;
597 599
           } else if (item.Type == "return") {

+ 1 - 0
pages/main/add.wxml

@@ -55,6 +55,7 @@
55 55
 						<view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
56 56
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
57 57
 						</view>
58
+						<text class="textBigWord" wx:if="{{item.Type=='bigword'}}">{{item.Content}}</text>
58 59
 						<text class="textPinyin" wx:if="{{item.Type=='sound'}}">{{item.Content}}</text>
59 60
 						<view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
60 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 321
   background-color: #1E1E1E;
322 322
 }
323 323
 
324
+.panelItem .textBigWord {
325
+  font-size: 42rpx;
326
+  font-weight: 600;
327
+}
324 328
 .panelItem .textPinyin {
325 329
   text-decoration: underline;
326 330
   margin-right: 10rpx;

+ 10 - 0
pages/main/mainlist.js

@@ -276,10 +276,20 @@ Page({
276 276
       if (item.Content[1].ContentStr.length > len)
277 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 284
       item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
280 285
       if (item.Content[2].ContentStr.length > len)
281 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 293
       var imageUrl = getImage(item.Content[1].Content);
284 294
       if (imageUrl.length == 0 && item.Content[2].Content)
285 295
         imageUrl = getImage(item.Content[2].Content);

+ 2 - 0
pages/template/cardShow.wxml

@@ -18,6 +18,8 @@
18 18
       </block>
19 19
       </text>
20 20
 
21
+      <text class="textNormal" wx:if="{{item.Type=='bigword'}}" style='font-size: 108rpx;'>{{item.Content}}</text>
22
+      
21 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 24
         <image class="universalpic_read_mark_black_20x20" src='../../pages/images/universalpic_read_mark_black_20x20.png' />
23 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 245
         for (var k = 0; k < list.length; k++) {
246 246
           var taskInfo = list[k];
247 247
           
248
-          taskInfo.TagWidth=336;
248
+          taskInfo.TagWidth=306;
249 249
           if (options.bookid>="74")
250
-            taskInfo.TagWidth=308;
250
+            taskInfo.TagWidth=520;
251 251
 
252 252
           if (taskInfo.Word.length>8)
253 253
             taskInfo.FontSize=48;

+ 16 - 2
pages_test/test/list.js

@@ -45,6 +45,12 @@ Page({
45 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 54
     else{
49 55
       wx.setNavigationBarTitle({
50 56
         title: name
@@ -54,7 +60,15 @@ Page({
54 60
     
55 61
     var arr = [];
56 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 72
       arr = wx.getStorageSync("EEWEngList");
59 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 200
         that.setData({
187 201
           List: list,
188 202
           UnitsID: id,

+ 4 - 0
pages_test/test/wordlist.js

@@ -59,6 +59,10 @@ Page({
59 59
           arr= wx.getStorageSync("CambridgeEngList");
60 60
         else if (bookid>=140 && bookid<150)
61 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 68
       arr = JSON.parse(arr);

+ 15 - 6
utils/main.js

@@ -350,6 +350,13 @@ function changeStringToView(field) {
350 350
             }
351 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 360
           } else if ((arr[k].indexOf("[线]") >= 0 && arr[k].indexOf("[/线]") > 0) || (arr[k].indexOf("[光]") >= 0 && arr[k].indexOf("[/光]") > 0)) {
354 361
             var obj;
355 362
             var content = [],
@@ -872,7 +879,7 @@ function GetTestReportInfo(reportid, callback) {
872 879
       var name1 = UserTestReport[n].Name[0].split(" ");
873 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 883
         //console.log("英语");
877 884
         var wordStr = "";
878 885
         var userTestReportInfo = UserTestReport[n];
@@ -912,12 +919,10 @@ function GetTestReportInfo(reportid, callback) {
912 919
           unitsid = Number(UserTestReport[n].Name[2]);
913 920
         } else if (bookid > 120 && bookid <= 124) {
914 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 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 926
         getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&LessonID=' + unitsid + '&Words=' + wordStr + "&TestType=" + userTestReportInfo.TestType, function (data) {
922 927
           if (data) {
923 928
             var result = {};
@@ -1250,11 +1255,15 @@ function getEnglish(callback) {
1250 1255
       var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1251 1256
       var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1252 1257
       var arrEEWEngList = common.Decrypt(data.EEWEngList);
1258
+      var arrBEWEngList = common.Decrypt(data.BEWEngList);
1259
+      var arrMiddleSchoolTestWords = common.Decrypt(data.MiddleSchoolTestWords);
1253 1260
       var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1254 1261
       wx.setStorageSync("EnglishAll", arrEng);
1255 1262
       wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1256 1263
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1257 1264
       wx.setStorageSync("EEWEngList", arrEEWEngList);
1265
+      wx.setStorageSync("BEWEngList", arrBEWEngList);
1266
+      wx.setStorageSync("MiddleSchoolTestWords", arrMiddleSchoolTestWords);
1258 1267
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1259 1268
       wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1260 1269