chengjie před 3 roky
rodič
revize
2221e50a23

+ 3 - 3
app.js

@@ -1,8 +1,8 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.3.3",
4
-    IsProduction: true,
5
-    //IsProduction: false,
3
+    Version: "2.3.8",
4
+    //IsProduction: true,
5
+    IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",
7 7
     SharePath: "pages/index/index",
8 8
     ShareImage: '../images/program_screenshot_main.png',

+ 6 - 0
pages/index/index.js

@@ -129,6 +129,12 @@ Page({
129 129
           gotoUrl: "../other/webview?PageID=" + options.PageID,
130 130
         });
131 131
       }
132
+      else if (options.type == "shareIndex") {
133
+        this.setData({
134
+          gotoType: "other",
135
+          gotoUrl: "../share/shareindex",
136
+        });
137
+      }
132 138
       else if (options.type == "help") {
133 139
         this.setData({
134 140
           gotoType: "other",

+ 28 - 34
pages/main/add.js

@@ -407,6 +407,10 @@ Page({
407 407
         }, 5000);
408 408
 
409 409
         if (that.checkImageCount(that.data.Field)) {
410
+          timeoutUploadImage = setTimeout(function () {
411
+            wx.hideLoading();
412
+          }, 30000);
413
+          
410 414
           that.uploadImageAll(that.data.Field, function (success, field) {
411 415
             if (success) {
412 416
               that.data.Field = field;
@@ -445,6 +449,7 @@ Page({
445 449
                 title: '保存中',
446 450
                 mask: true,
447 451
               });
452
+              clearTimeout(timeoutUploadImage);
448 453
               timeoutUploadImage = setTimeout(function () {
449 454
                 wx.hideLoading();
450 455
               }, 15000);
@@ -647,21 +652,10 @@ Page({
647 652
               }
648 653
             });
649 654
           }
650
-          b = true;
651 655
         }
652 656
       }
653 657
     }
654 658
 
655
-    if (b) {
656
-      wx.showLoading({
657
-        title: '正在上传',
658
-        mask: true,
659
-      });
660
-      timeoutUploadImage = setTimeout(function () {
661
-        wx.hideLoading();
662
-      }, 30000);
663
-    }
664
-
665 659
     //检查是否上传成功
666 660
     setTimeout(function () {
667 661
       console.log(arrResult.length);
@@ -684,11 +678,6 @@ Page({
684 678
                 }
685 679
               }
686 680
               console.log("serverUrl:" + serverUrl);
687
-              //console.log("tempUrl:" + tempUrl);
688
-              // if (serverUrl == "")
689
-              //   serverUrl = main.getServerImage(tempUrl);
690
-
691
-              // main.saveTempImage(serverUrl, tempUrl);
692 681
 
693 682
               arr[i][j].Content = serverUrl;
694 683
               arr[i][j].ContentServer = serverUrl;
@@ -707,6 +696,10 @@ Page({
707 696
   },
708 697
   uploadFileToServer: function (file, callback) {
709 698
     var url = common.Encrypt("MiaoguoUploadFile2");
699
+    wx.showLoading({
700
+      title: '上传中',
701
+      mask: true,
702
+    });
710 703
     wx.uploadFile({
711 704
       url: app.globalData.serverUrl + url,
712 705
       filePath: file,
@@ -714,25 +707,26 @@ Page({
714 707
       success(res) {
715 708
         var err = JSON.parse(res.data);
716 709
         if (err.errcode == 10000) {
710
+          wx.hideLoading();
717 711
           callback(err.result);
718
-          setTimeout(function () {
719
-            wx.downloadFile({
720
-              url: err.result.Target,
721
-              success(res) {
722
-                wx.hideLoading();
723
-                if (res.statusCode != 200) {
724
-                  wx.showModal({
725
-                    title: '上传图片可能失败',
726
-                    showCancel: false,
727
-                    confirmText: '知道了',
728
-                    content: "请点左下角“复查”后编辑上一张题卡重新上传图片。"
729
-                  });
730
-                } else {
731
-                  console.log("上传成功");
732
-                }
733
-              }
734
-            });
735
-          }, 5000);
712
+          // setTimeout(function () {
713
+          //   wx.downloadFile({
714
+          //     url: err.result.Target,
715
+          //     success(res) {
716
+          //       wx.hideLoading();
717
+          //       if (res.statusCode != 200) {
718
+          //         wx.showModal({
719
+          //           title: '上传图片可能失败',
720
+          //           showCancel: false,
721
+          //           confirmText: '知道了',
722
+          //           content: "请点左下角“复查”后编辑上一张题卡重新上传图片。"
723
+          //         });
724
+          //       } else {
725
+          //         console.log("上传成功");
726
+          //       }
727
+          //     }
728
+          //   });
729
+          // }, 5000);
736 730
         } else {
737 731
           wx.hideLoading();
738 732
           wx.showModal({

+ 11 - 1
pages/main/addInfomationDetail.js

@@ -257,7 +257,17 @@ Page({
257 257
                   }
258 258
                   str = arr2.join("\n");
259 259
                 }
260
-              } else
260
+              } 
261
+              else if (item.Tag == "释义"){
262
+                if (item.Content.indexOf("[读 src=")>=0){
263
+                  var sound=item.Content.substring(item.Content.indexOf("[读"));
264
+                  sound=sound.substring(sound.indexOf("src='")+5,sound.indexOf("']"));
265
+                  var sound2 = main.GetSoundError(sound);
266
+                  item.Content=item.Content.replace(sound,sound2);
267
+                }
268
+                str = item.Content;
269
+              }
270
+              else
261 271
                 str = item.Content;
262 272
             }
263 273
 

+ 1 - 1
pages/main/addInfomationDetail.wxml

@@ -261,7 +261,7 @@
261 261
 
262 262
     <view class="{{CSS['CHN_PinYin_explain_'+index].Css1}} panelItemHeight panelItem FlexRow"
263 263
       wx:for="{{Result.CHN.PinYin}}" wx:key="pinyin" bindtap='getInputData' data-type="normal"
264
-      data-content="[读]{{item.pinyin}}[/读]\n{{item.explain}}" data-css="CHN_PinYin_explain_{{index}}" data-tag="释义">
264
+      data-content="[读 src='({{item.pinyin}})']{{item.pinyin}}[/读]\n{{item.explain}}" data-css="CHN_PinYin_explain_{{index}}" data-tag="释义">
265 265
       <view class="FlexRow">
266 266
         <view class="{{CSS['CHN_PinYin_explain_'+index].Css2}} panelSelect0">{{CSS['CHN_PinYin_explain_'+index].Number}}
267 267
         </view>

+ 1 - 1
pages/main/detail.wxss

@@ -627,7 +627,7 @@ page{
627 627
 .icon_reload_1{
628 628
   width: 30rpx;
629 629
   height: 30rpx;
630
-  margin: 0 20rpx 0 0;
630
+  margin: 0 20rpx 20rpx 0;
631 631
 }
632 632
 
633 633
 .icon_report_1{

+ 3 - 3
pages/share/shareindex.js

@@ -139,9 +139,9 @@ Page({
139 139
   },
140 140
   onShareAppMessage: function () {
141 141
     return {
142
-      title: app.globalData.ShareTitle,
143
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
144
-      imageUrl: app.globalData.ShareImage,
142
+      title: "勤勉接力",
143
+      path: app.globalData.SharePath + '?type=shareIndex&UserID=' + app.globalData.userInfo.UserID,
144
+      imageUrl: app.globalData.uploadImageUrl+"web/program_screenshot_qmjl.png",
145 145
     }
146 146
   },
147 147
 })

+ 10 - 3
pages/share/shareitem.js

@@ -229,7 +229,10 @@ Page({
229 229
                   
230 230
                   wx.hideLoading();
231 231
 
232
-                  main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID, function (data) {
232
+                  var createTime=that.data.Info.CreateTimeStr1;
233
+                  if (createTime.indexOf(".")>0)
234
+                    createTime=common.ReplaceAllString(createTime,".","-");
235
+                  main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID+"&CreateTime="+createTime, function (data) {
233 236
                     that.setData({
234 237
                       IsBuildReport: false,
235 238
                     });
@@ -356,7 +359,12 @@ Page({
356 359
                   
357 360
                   wx.hideLoading();
358 361
 
359
-                  main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID, function (data) {
362
+                  var createTime=that.data.Info.CreateTimeStr1;
363
+                  if (createTime.indexOf(".")>0){
364
+                    createTime=createTime.replace(".","-");
365
+                    createTime=createTime.replace(".","-");
366
+                  }
367
+                  main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID+"&CreateTime="+createTime, function (data) {
360 368
                     that.setData({
361 369
                       IsBuildReport: false,
362 370
                     });
@@ -368,7 +376,6 @@ Page({
368 376
         });
369 377
       });
370 378
     });
371
-
372 379
   },
373 380
   //生成分享图片(历史)
374 381
   buildShareImageHistory: function () {

+ 3 - 3
pages/share/shareitem.wxml

@@ -17,10 +17,10 @@
17 17
     </view>
18 18
     <image bindtap="showImageSource" data-image="{{Info.Image}}" class="panelImage1" lazy-load="true" mode="widthFix" src="{{Info.Image}}">
19 19
     </image>
20
-    <view class="text6">{{Info.AuthorCn}}</view>
20
+    <text user-select="true" class="text6">{{Info.AuthorCn}}</text>
21 21
     <view class="text7">来给你打气</view>
22 22
     <image class="icon_punctuation_1" lazy-load="true" src="../images/icon_punctuation_1.png"></image>
23
-    <text class="text8">{{Info.Content}}</text>
23
+    <text user-select="true" class="text8">{{Info.Content}}</text>
24 24
     <image class="icon_punctuation_2" lazy-load="true" src="../images/icon_punctuation_2.png"></image>
25 25
     <view class="text9">Ta是谁?</view>
26 26
     <view class="text10">{{Info.Country}}</view>
@@ -28,7 +28,7 @@
28 28
     <view class="text12">{{Info.BirthAndDeath}}</view>
29 29
     <image class="panelImage1" lazy-load="true" mode="widthFix" src="{{Info.AuthorImage}}"></image>
30 30
     <view class="text13 FlexColumn">
31
-      <text class="text131" wx:key="*this" wx:for="{{Info.Remark}}">{{item}}</text>
31
+      <text user-select="true" class="text131" wx:key="*this" wx:for="{{Info.Remark}}">{{item}}</text>
32 32
     </view>
33 33
 
34 34
     <view class="panelFooter{{IPhoneX}} panelFooter FlexRow">

+ 6 - 1
pages_agent/marketing/index.js

@@ -13,6 +13,11 @@ Page({
13 13
       app.globalData.userInfo.UserID=options.UserID;
14 14
     }
15 15
 
16
+    wx.setNavigationBarColor({
17
+      backgroundColor: '#ffffff',
18
+      frontColor:"#000000",
19
+    });
20
+
16 21
     this.setData({
17 22
       Containnerheight: main.getWindowHeight(),
18 23
     });
@@ -25,7 +30,7 @@ Page({
25 30
   },
26 31
   onShareAppMessage: function () {
27 32
     return {
28
-      title: app.globalData.ShareTitle,
33
+      title: "秒过推广",
29 34
       path: app.globalData.SharePath + '?type=marketing&UserID=' + app.globalData.userInfo.UserID,
30 35
       imageUrl: app.globalData.uploadImageUrl+"web/program_screenshot_promotion.png",
31 36
     }

+ 13 - 4
pages_test/test/index.js

@@ -45,16 +45,25 @@ Page({
45 45
     var url = e.currentTarget.dataset.url;
46 46
     if (url == "../other/userbook") {
47 47
 
48
-    } else if (e.currentTarget.dataset.type == "Shici") {
48
+    } 
49
+    else if (e.currentTarget.dataset.type == "Shici") {
49 50
       var name1 = e.currentTarget.dataset.name1;
50 51
       name1 = name1.replace("语文古诗文", "语文");
51 52
       url = "./item?testtype=recite&name1=" + name1 + "&bookid=" + e.currentTarget.dataset.bookid;
52
-    } else if (e.currentTarget.dataset.type == "Word" && e.currentTarget.dataset.bookid == 100) {
53
+    } 
54
+    else if (e.currentTarget.dataset.type == "Word" && e.currentTarget.dataset.bookid == 100) {
53 55
       var name1 = e.currentTarget.dataset.name1;
54 56
       url = "./item?testtype=read&name1=" + name1 + "&name2=英文字母&bookid=100";
55
-    } else if (e.currentTarget.dataset.name1 && e.currentTarget.dataset.bookid) {
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
+    else if (e.currentTarget.dataset.name1 && e.currentTarget.dataset.bookid) {
56 65
       url = "./list?name1=" + e.currentTarget.dataset.name1 + "&id=" + e.currentTarget.dataset.bookid;
57
-    }
66
+    } 
58 67
     wx.navigateTo({
59 68
       url: url,
60 69
     });

+ 19 - 4
pages_test/test/list.js

@@ -38,12 +38,27 @@ Page({
38 38
     var name = that.data.Name1;
39 39
     if (name.indexOf(" ") > 0)
40 40
       name = name.substr(name.indexOf(" ") + 1);
41
-    wx.setNavigationBarTitle({
42
-      title: name
43
-    });
41
+    
42
+    if (that.data.BookID>="140" && that.data.BookID<="149"){
43
+      name=name.replace("ESSENTIAL ENGLISH WORDS","4000 EEW");
44
+      wx.setNavigationBarTitle({
45
+        title: name
46
+      });
47
+    }
48
+    else{
49
+      wx.setNavigationBarTitle({
50
+        title: name
51
+      });
52
+    }
53
+
54
+    
44 55
     var arr = [];
45 56
     var listType="hanzi",fieldName="单词",fieldName2="说含义";
46
-    if (that.data.BookID > 130){
57
+    if (that.data.BookID > 140){
58
+      arr = wx.getStorageSync("EEWEngList");
59
+      listType="english";
60
+    }
61
+    else if (that.data.BookID > 130){
47 62
       arr = wx.getStorageSync("CambridgeEngList");
48 63
       listType="english";
49 64
     }

+ 0 - 1
pages_test/test/list.json

@@ -1,5 +1,4 @@
1 1
 {
2
-  "navigationBarTitleText": "语文识字",
3 2
   "backgroundColorTop": "#f2f2f2",
4 3
   "backgroundColorBottom": "#f2f2f2"
5 4
 }

+ 2 - 2
pages_test/test/list.wxml

@@ -1,8 +1,8 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-	<view class="text1" wx:if="{{ListType!='english' && BookID!=43 && BookID!=44}}">请对照课本选择字组或词组</view>
2
+	<view class="text1" wx:if="{{ListType!='english' && BookID!=43 && BookID!=44 && BookID!=73}}">请对照课本选择字组或词组</view>
3 3
 	<view class="text1" wx:if="{{ListType=='english' && BookID>110 && BookID<120}}">将词汇等分成若干单元以便分批检验,分割方法并无特殊含义</view>
4 4
 	<view class="text1" wx:if="{{ListType=='english' && BookID>120 && BookID<130}}">词汇根据Lesson分组</view>
5
-	<view class="textNull" wx:if="{{ListType=='english' && ((BookID>130 && BookID<140) || (BookID>100 && BookID<110))}}"></view>
5
+	<view class="textNull" wx:if="{{ListType=='english' && ((BookID>130 && BookID<150) || (BookID>100 && BookID<110)) || (BookID==73)}}"></view>
6 6
 
7 7
 	<block wx:for="{{List}}" wx:key="index">
8 8
 		<view class="PanelItem FlexColumn" bindtap="onShowFrame" data-id="{{item.ID}}">

+ 2 - 0
pages_test/test/wordlist.js

@@ -57,6 +57,8 @@ Page({
57 57
           arr= wx.getStorageSync("NewConceptEngList");
58 58
         else if (bookid>=130 && bookid<140)
59 59
           arr= wx.getStorageSync("CambridgeEngList");
60
+        else if (bookid>=140 && bookid<150)
61
+          arr= wx.getStorageSync("EEWEngList");
60 62
         
61 63
       }
62 64
       arr = JSON.parse(arr);

+ 1 - 1
project.private.config.json

@@ -12,7 +12,7 @@
12 12
         {
13 13
           "name": "pages/index/index",
14 14
           "pathName": "pages/index/index",
15
-          "query": "type=helpAddInfomation",
15
+          "query": "type=marketing",
16 16
           "launchMode": "default",
17 17
           "scene": 1007
18 18
         },

+ 6 - 2
utils/main.js

@@ -888,7 +888,7 @@ function GetTestReportInfo(reportid, callback) {
888 888
       var name1 = UserTestReport[n].Name[0].split(" ");
889 889
       var name2 = UserTestReport[n].Name[1];
890 890
 
891
-      if (name1[0].indexOf("英语") >= 0) {
891
+      if (name1[0].indexOf("英语") >= 0 || name1[0].indexOf("4000") >= 0) {
892 892
         //console.log("英语");
893 893
         var wordStr = "";
894 894
         var userTestReportInfo = UserTestReport[n];
@@ -930,6 +930,8 @@ function GetTestReportInfo(reportid, callback) {
930 930
           unitsid = Number(name2.replace("Lesson ", ""));
931 931
         } else if (bookid > 130 && bookid <= 140 && UserTestReport[n].Name[2]) {
932 932
           unitsid = Number(UserTestReport[n].Name[2]);
933
+        } else if (bookid > 140 && bookid <= 150 && UserTestReport[n].Name[2]) {
934
+          unitsid = Number(UserTestReport[n].Name[2]);
933 935
         }
934 936
 
935 937
         getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&LessonID=' + unitsid + '&Words=' + wordStr + "&TestType=" + userTestReportInfo.TestType, function (data) {
@@ -1263,10 +1265,12 @@ function getEnglish(callback) {
1263 1265
       var arrEng = common.Decrypt(data.EngList);
1264 1266
       var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1265 1267
       var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1268
+      var arrEEWEngList = common.Decrypt(data.EEWEngList);
1266 1269
       var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1267 1270
       wx.setStorageSync("EnglishAll", arrEng);
1268 1271
       wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1269 1272
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1273
+      wx.setStorageSync("EEWEngList", arrEEWEngList);
1270 1274
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1271 1275
       wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1272 1276
 
@@ -1617,7 +1621,7 @@ function GetTestReportList(userID, callback) {
1617 1621
           }
1618 1622
           dataTemp.push(data[i]);
1619 1623
 
1620
-          if (data[i].Name[0].indexOf("英语") >= 0 || data[i].Name[0].indexOf("语文词语") >= 0 || data[i].Name[0].indexOf("识字 上学期") >= 0 || data[i].Name[0].indexOf("拼音") >= 0 || data[i].Name[1].indexOf("古诗文") >= 0 || data[i].Name[0].indexOf("文言文") >= 0) {
1624
+          if (data[i].Name[0].indexOf("英语") >= 0 || data[i].Name[0].indexOf("4000") >= 0 || data[i].Name[0].indexOf("语文词语") >= 0 || data[i].Name[0].indexOf("识字 上学期") >= 0 || data[i].Name[0].indexOf("拼音") >= 0 || data[i].Name[1].indexOf("古诗文") >= 0 || data[i].Name[0].indexOf("文言文") >= 0) {
1621 1625
             if (data[i].TestRightStr) {
1622 1626
               data[i].TestRightStr = data[i].TestRightStr.split(",");
1623 1627
             }