chengjie 4 years ago
parent
commit
c720179114
78 changed files with 1072 additions and 1183 deletions
  1. 1 2
      app.js
  2. 2 1
      app.json
  3. 1 1
      app.wxss
  4. BIN
      pages/images/universalpic_plan_6dots_gray_30x32.png
  5. BIN
      pages/images/universalpic_practisemodel_gray_30x28.png
  6. BIN
      pages/images/universalpic_star_gray_34x34.png
  7. BIN
      pages/images/universalpic_star_tc01_34x34.png
  8. BIN
      pages/images/universalpic_star_tc02_34x34.png
  9. BIN
      pages/images/universalpic_star_tc03_34x34.png
  10. BIN
      pages/images/universalpic_star_tc04_34x34.png
  11. 1 1
      pages/index/index.js
  12. 146 81
      pages/main/add.js
  13. 0 1
      pages/main/add.json
  14. 41 48
      pages/main/add.wxml
  15. 62 30
      pages/main/add.wxss
  16. 166 120
      pages/main/addInfomation.js
  17. 1 2
      pages/main/addInfomation.json
  18. 10 12
      pages/main/addInfomation.wxml
  19. 41 1
      pages/main/addInfomation.wxss
  20. 17 1
      pages/main/addInfomationDetail.js
  21. 1 2
      pages/main/addInfomationDetail.json
  22. 6 5
      pages/main/addInfomationDetail.wxml
  23. 2 1
      pages/main/addInfomationDetail.wxss
  24. 42 36
      pages/main/cardmain.js
  25. 1 2
      pages/main/cardmain.json
  26. 10 10
      pages/main/cardmain.wxml
  27. 9 2
      pages/main/cardmain.wxss
  28. 7 19
      pages/main/default.js
  29. 4 10
      pages/main/default.wxml
  30. 33 14
      pages/main/detail.js
  31. 8 7
      pages/main/detail.wxml
  32. 6 10
      pages/main/detail.wxss
  33. 17 4
      pages/main/folderEdit.js
  34. 1 1
      pages/main/folderEdit.wxml
  35. 2 0
      pages/main/folderEdit.wxss
  36. 10 3
      pages/main/folderIcon.js
  37. 2 1
      pages/main/folderIcon.json
  38. 1 1
      pages/main/folderIcon.wxml
  39. 57 51
      pages/main/mainlist.js
  40. 2 1
      pages/main/mainlist.json
  41. 8 8
      pages/main/mainlist.wxml
  42. 60 38
      pages/main/preview.js
  43. 32 26
      pages/main/preview.wxml
  44. 0 5
      pages/main/preview.wxss
  45. 0 175
      pages/main/previewMenu.js
  46. 0 5
      pages/main/previewMenu.json
  47. 0 70
      pages/main/previewMenu.wxml
  48. 0 222
      pages/main/previewMenu.wxss
  49. 28 95
      pages/main/searchCard.js
  50. 6 7
      pages/main/searchCard.wxml
  51. 13 6
      pages/main/searchCard.wxss
  52. 0 1
      pages/main/systemsetting.json
  53. 2 2
      pages/other/annualreport.wxml
  54. 1 2
      pages/other/binding.json
  55. 1 2
      pages/other/coupon.json
  56. 0 1
      pages/other/homework.json
  57. 1 2
      pages/other/lesson.json
  58. 1 2
      pages/other/lessonlist.json
  59. 3 3
      pages/other/paycustom.wxml
  60. 31 0
      pages/other/recover.js
  61. 6 0
      pages/other/recover.json
  62. 6 0
      pages/other/recover.wxml
  63. 35 0
      pages/other/recover.wxss
  64. 1 2
      pages/other/tips.json
  65. 1 1
      pages/other/userlist.wxml
  66. 1 2
      pages/plan/pattern.json
  67. 0 1
      pages/plan/setting.json
  68. 2 2
      pages/plan/studyplan.js
  69. 1 1
      pages/plan/studyplan.json
  70. 1 1
      pages/plan/studyplandetail.wxml
  71. 0 1
      pages/plan/studyplandetail.wxss
  72. 2 2
      pages/template/cardShow.wxml
  73. 1 1
      pages/test/index.json
  74. 0 5
      pages/test/item.wxss
  75. 2 2
      pages/test/list.json
  76. 4 3
      project.config.json
  77. 1 1
      utils/constant.js
  78. 111 5
      utils/main.js

+ 1 - 2
app.js

@@ -1,6 +1,6 @@
1
 App({
1
 App({
2
   globalData: {
2
   globalData: {
3
-    Version: "2.0.3",
3
+    Version: "2.1.0",
4
     IsProduction: false,
4
     IsProduction: false,
5
     ShareTitle: "高效学习从秒过开始",
5
     ShareTitle: "高效学习从秒过开始",
6
     SharePath: "pages/index/index",
6
     SharePath: "pages/index/index",
@@ -39,7 +39,6 @@ App({
39
     SearchItem: {},//资料搜索项信息,用于资料搜索时用
39
     SearchItem: {},//资料搜索项信息,用于资料搜索时用
40
     TempFieldNumber: 0,//资料搜索时的段落编号
40
     TempFieldNumber: 0,//资料搜索时的段落编号
41
     TempSearchBackNumber: 3,//资料搜索时返回的页面数
41
     TempSearchBackNumber: 3,//资料搜索时返回的页面数
42
-    TempIsEditCardType: 0,//临时是编辑学习计划
43
     IsShowSettingRemind: 3,//首页显示设置提醒日期限制
42
     IsShowSettingRemind: 3,//首页显示设置提醒日期限制
44
     TempStr:"",//临时字符串。用于不能传递的一些参数
43
     TempStr:"",//临时字符串。用于不能传递的一些参数
45
     TempStr2:"",//临时字符串。用于不能传递的一些参数
44
     TempStr2:"",//临时字符串。用于不能传递的一些参数

+ 2 - 1
app.json

@@ -2,6 +2,7 @@
2
   "pages": [
2
   "pages": [
3
    
3
    
4
     "pages/index/index",
4
     "pages/index/index",
5
+
5
     
6
     
6
     "pages/main/folderEdit",
7
     "pages/main/folderEdit",
7
     "pages/main/folderIcon",
8
     "pages/main/folderIcon",
@@ -31,7 +32,6 @@
31
     "pages/main/detail",
32
     "pages/main/detail",
32
     "pages/main/systemsetting",
33
     "pages/main/systemsetting",
33
     "pages/main/symbolsetting",
34
     "pages/main/symbolsetting",
34
-    "pages/main/previewMenu",
35
 
35
 
36
     "pages/plan/clicktype",
36
     "pages/plan/clicktype",
37
     "pages/plan/colorplan",
37
     "pages/plan/colorplan",
@@ -46,6 +46,7 @@
46
     "pages/marketing/award",
46
     "pages/marketing/award",
47
     "pages/marketing/index",
47
     "pages/marketing/index",
48
     
48
     
49
+    "pages/other/recover",
49
     "pages/other/video",
50
     "pages/other/video",
50
     "pages/other/menu",
51
     "pages/other/menu",
51
     "pages/other/lessonlist",
52
     "pages/other/lessonlist",

+ 1 - 1
app.wxss

@@ -24,7 +24,7 @@
24
   color: #1e1e1e;
24
   color: #1e1e1e;
25
   justify-content: flex-start;
25
   justify-content: flex-start;
26
   font-weight: 500;
26
   font-weight: 500;
27
-  background-color: #f0f0f0;
27
+  background-color: #F2F2F2;
28
 } 
28
 } 
29
 .footerHeight{
29
 .footerHeight{
30
   width: 100%;
30
   width: 100%;

BIN
pages/images/universalpic_plan_6dots_gray_30x32.png


BIN
pages/images/universalpic_practisemodel_gray_30x28.png


BIN
pages/images/universalpic_star_gray_34x34.png


BIN
pages/images/universalpic_star_tc01_34x34.png


BIN
pages/images/universalpic_star_tc02_34x34.png


BIN
pages/images/universalpic_star_tc03_34x34.png


BIN
pages/images/universalpic_star_tc04_34x34.png


+ 1 - 1
pages/index/index.js

@@ -321,7 +321,7 @@ Page({
321
               timeoutRedirect=setTimeout(function () {
321
               timeoutRedirect=setTimeout(function () {
322
                 console.log("Time5:" + new Date().getTime());
322
                 console.log("Time5:" + new Date().getTime());
323
                 clearTimeout(timeout1);
323
                 clearTimeout(timeout1);
324
-
324
+                app.globalData.FolderList=[];
325
                 wx.redirectTo({
325
                 wx.redirectTo({
326
                   url: url,
326
                   url: url,
327
                 });
327
                 });

+ 146 - 81
pages/main/add.js

@@ -19,6 +19,7 @@ var tempRecorderFile = "";
19
 var innerAudioContext;
19
 var innerAudioContext;
20
 var isViolate = false; //是否是违禁词
20
 var isViolate = false; //是否是违禁词
21
 var isFirstAdd = true;//是第一个填加
21
 var isFirstAdd = true;//是第一个填加
22
+var isAddFolder = false;//用于新增卡单时用
22
 
23
 
23
 Page({
24
 Page({
24
   data: {
25
   data: {
@@ -31,15 +32,16 @@ Page({
31
     IsPracticeTime: false,
32
     IsPracticeTime: false,
32
     IsRecorder: false,
33
     IsRecorder: false,
33
     IsIPhoneX: app.globalData.IsIPhoneX,
34
     IsIPhoneX: app.globalData.IsIPhoneX,
35
+    IsAndroid: app.globalData.IsAndroid,
34
     IsTagShow:false,
36
     IsTagShow:false,
35
-    IsEditCardType:"",
36
     PageTitle:"新建题卡",
37
     PageTitle:"新建题卡",
37
     InputHeight:315,
38
     InputHeight:315,
38
     IsShowMenu:false,
39
     IsShowMenu:false,
39
     IsHelp:false,
40
     IsHelp:false,
40
-    HelpArr:["help_board_tips_jiaziliao","help_board_tips_gengduo","help_board_tips_qingchu","help_board_tips_meihua","help_board_tips_geshi"],
41
+    HelpArr:["help_board_tips_jiaziliao","help_board_tips_diankaigengduo","help_board_tips_lianxvxinjian","help_board_tips_meihua","help_board_tips_geshi"],
41
     IsFontsize:false,
42
     IsFontsize:false,
42
     IsCollect:0,
43
     IsCollect:0,
44
+    BtnSaveSelectCss:"",
43
   },
45
   },
44
   onReady: function () {
46
   onReady: function () {
45
     recorderManager = wx.getRecorderManager();
47
     recorderManager = wx.getRecorderManager();
@@ -67,18 +69,36 @@ Page({
67
     if (options.fieldid)
69
     if (options.fieldid)
68
       fieldNumber = options.fieldid;
70
       fieldNumber = options.fieldid;
69
 
71
 
72
+    var cardtype=options.CardType;
73
+    if (!cardtype)
74
+      cardtype=0;
75
+    else
76
+      cardtype=Number(cardtype);
77
+
78
+    var folderid=options.FolderID;
79
+    var foldername="";
80
+    if (!folderid)
81
+      folderid=0;
82
+    else{
83
+      folderid=Number(folderid);
84
+      foldername=options.FolderName;
85
+    }
86
+      
70
     that.setData({
87
     that.setData({
71
       Containnerheight: main.getWindowHeight(),
88
       Containnerheight: main.getWindowHeight(),
72
       UpdateType: options.type,
89
       UpdateType: options.type,
73
       MiaoguoCardID: options.id,
90
       MiaoguoCardID: options.id,
74
       FieldNumber: fieldNumber,
91
       FieldNumber: fieldNumber,
75
       IsShow: app.globalData.userInfo.IsShow,
92
       IsShow: app.globalData.userInfo.IsShow,
76
-      CardType:0,
77
-      PracticeCardType: "日常题卡",
93
+      CardType:cardtype,
94
+      PracticeCardType: constant1.arrStudyPattern[cardtype]+"题卡",
95
+      FolderID:folderid,
96
+      FolderName:foldername,
78
       LimitTime:common.formatTime(new Date()),
97
       LimitTime:common.formatTime(new Date()),
79
       PracticeTimeStr:common.formatDateCHS(common.formatTime(new Date())),
98
       PracticeTimeStr:common.formatDateCHS(common.formatTime(new Date())),
80
       FontSize:48,
99
       FontSize:48,
81
       FontSizeName:"标准",
100
       FontSizeName:"标准",
101
+      OpenType:options.opentype,
82
     });
102
     });
83
 
103
 
84
     var list = app.globalData.CardList;
104
     var list = app.globalData.CardList;
@@ -104,12 +124,9 @@ Page({
104
       that.gotoAddInfomationDetail(options);
124
       that.gotoAddInfomationDetail(options);
105
     }
125
     }
106
 
126
 
107
-    if (options.opentype){
108
-      that.setData({
109
-        IsOpentype: true,
110
-      });
111
-      that.showPanel({currentTarget:{dataset:{type:options.opentype}}});
112
-    }
127
+    if (options.type.indexOf("add")>=0)
128
+      common.getStorageValue(that, "IsShowAddHelp", 0, function () {});
129
+  
113
   },
130
   },
114
   onShow: function () {
131
   onShow: function () {
115
     var that = this;
132
     var that = this;
@@ -118,6 +135,7 @@ Page({
118
     } else {
135
     } else {
119
       var card = {},
136
       var card = {},
120
         content = "";
137
         content = "";
138
+      
121
       var list = app.globalData.CardList;
139
       var list = app.globalData.CardList;
122
       for (var i = 0; i < list.length; i++) {
140
       for (var i = 0; i < list.length; i++) {
123
         if (that.data.MiaoguoCardID == list[i].MiaoguoCardID) {
141
         if (that.data.MiaoguoCardID == list[i].MiaoguoCardID) {
@@ -131,8 +149,14 @@ Page({
131
             card.CardType=0;
149
             card.CardType=0;
132
           
150
           
133
           card.IsCollect=list[i].IsCollect;
151
           card.IsCollect=list[i].IsCollect;
152
+          if (!card.IsCollect)
153
+            card.IsCollect=0;
134
           card.FontSize=list[i].FontSize;
154
           card.FontSize=list[i].FontSize;
155
+          if (!card.FontSize)
156
+            card.FontSize=48;
135
           card.FolderID=list[i].FolderID;
157
           card.FolderID=list[i].FolderID;
158
+          if (!card.FolderID)
159
+            card.FolderID=0;
136
           card.FolderName=list[i].FolderName;
160
           card.FolderName=list[i].FolderName;
137
 
161
 
138
           if (list[i].LimitTime)
162
           if (list[i].LimitTime)
@@ -142,29 +166,11 @@ Page({
142
          
166
          
143
           if (that.data.FieldNumber && that.data.FieldNumber > 0)
167
           if (that.data.FieldNumber && that.data.FieldNumber > 0)
144
             content = main.encryptUrl(list[i].Content[that.data.FieldNumber].Content);
168
             content = main.encryptUrl(list[i].Content[that.data.FieldNumber].Content);
169
+          
145
           break;
170
           break;
146
         }
171
         }
147
       }
172
       }
148
 
173
 
149
-      switch(Number(card.CardType)){
150
-        case 0:
151
-          card.CardTypeStr="日常";
152
-          break;
153
-        case 1:
154
-          card.CardTypeStr="紧急";
155
-          break;
156
-        case -1:
157
-          card.CardTypeStr="归档";
158
-          break;
159
-      }
160
-
161
-      if (app.globalData.TempIsEditCardType==1 && that.data.IsEditCardType==""){
162
-        app.globalData.TempIsEditCardType=0;
163
-        that.setData({
164
-          IsEditCardType:"_IsEditCardType",
165
-        });
166
-      }
167
-
168
       var arrTagTemp=[];
174
       var arrTagTemp=[];
169
       for(var j=0;j<card.Tags.length;j++){
175
       for(var j=0;j<card.Tags.length;j++){
170
         if (card.Tags[j])
176
         if (card.Tags[j])
@@ -184,7 +190,7 @@ Page({
184
       that.setData({
190
       that.setData({
185
         MiaoguoCardID: card.MiaoguoCardID,
191
         MiaoguoCardID: card.MiaoguoCardID,
186
         LimitTime: common.formatTime(card.LimitTime),
192
         LimitTime: common.formatTime(card.LimitTime),
187
-        PracticeCardType: card.CardTypeStr+"题卡",
193
+        PracticeCardType: constant1.arrStudyPattern[card.CardType]+"题卡",
188
         PracticeTimeStr: common.formatDateCHS(common.formatTime(card.LimitTime)),
194
         PracticeTimeStr: common.formatDateCHS(common.formatTime(card.LimitTime)),
189
         Field: card.Field,
195
         Field: card.Field,
190
         Tags: card.Tags,
196
         Tags: card.Tags,
@@ -213,13 +219,18 @@ Page({
213
           }
219
           }
214
         });
220
         });
215
       }
221
       }
222
+      if (that.data.OpenType){
223
+        that.showPanel({currentTarget:{dataset:{type:that.data.OpenType}}});
224
+      }
216
     }
225
     }
217
 
226
 
218
     if (that.data.IsFolder){
227
     if (that.data.IsFolder){
219
       that.getFolderList();
228
       that.getFolderList();
220
     }
229
     }
221
 
230
 
222
-    common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function () { });
231
+    that.setBtnSaveCss();
232
+
233
+    common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function () {});
223
   },
234
   },
224
   onHide: function () {
235
   onHide: function () {
225
     //用于恢复未保存的新题卡
236
     //用于恢复未保存的新题卡
@@ -396,12 +407,13 @@ Page({
396
               main.postData('AddMiaoguoCard?Type=' + that.data.UpdateType + '&UserID=' + userid, param1, function (data) {
407
               main.postData('AddMiaoguoCard?Type=' + that.data.UpdateType + '&UserID=' + userid, param1, function (data) {
397
                 wx.removeStorageSync("TempCardNoSaved");
408
                 wx.removeStorageSync("TempCardNoSaved");
398
 
409
 
399
-                if (that.data.UpdateType == "edit" || that.data.UpdateType == "edit2" || that.data.UpdateType == "edit3") {
410
+                if (that.data.UpdateType.indexOf("edit")>=0) {
400
                   var list = app.globalData.CardList;
411
                   var list = app.globalData.CardList;
401
                   for (var i = 0; i < list.length; i++) {
412
                   for (var i = 0; i < list.length; i++) {
402
                     if (list[i].MiaoguoCardID == that.data.MiaoguoCardID){
413
                     if (list[i].MiaoguoCardID == that.data.MiaoguoCardID){
403
                       list[i].CardType = that.data.CardType;
414
                       list[i].CardType = that.data.CardType;
404
                       list[i].IsCollect = that.data.IsCollect;
415
                       list[i].IsCollect = that.data.IsCollect;
416
+                      list[i].FontSize=that.data.FontSize;
405
                       list[i].FolderID=that.data.FolderID;
417
                       list[i].FolderID=that.data.FolderID;
406
                       list[i].FolderName=that.data.FolderName;
418
                       list[i].FolderName=that.data.FolderName;
407
                       
419
                       
@@ -416,19 +428,19 @@ Page({
416
                   if (that.data.CardType==1){
428
                   if (that.data.CardType==1){
417
                     app.globalData.TaskToday.CardNumberUrgent++;
429
                     app.globalData.TaskToday.CardNumberUrgent++;
418
                   }
430
                   }
419
-                  app.globalData.TempIsEditCardType=1;
420
                   that.onClose();
431
                   that.onClose();
421
                 } else {
432
                 } else {
422
                   wx.hideLoading();
433
                   wx.hideLoading();
423
 
434
 
424
                   if (that.data.UpdateType == "add2") {
435
                   if (that.data.UpdateType == "add2") {
425
-                    if (!wx.getStorageSync("IsRemindContinuousNew") && that.data.IsEditCardType){
436
+                    var remind=wx.getStorageSync("IsRemindContinuousNew")
437
+                    if (!remind){
426
                         wx.showModal({
438
                         wx.showModal({
427
                           title: '提醒',
439
                           title: '提醒',
428
                           showCancel: true,
440
                           showCancel: true,
429
                           cancelText: "不再提醒",
441
                           cancelText: "不再提醒",
430
-                          content: '连续新建会保留上一张题卡的练习模式、到期时间等设置,以便减少设置次数,新建一批相同属性的题卡。以蓝色标明。点恢复按键可立即恢复成默认设置。',
431
-                          confirmText: '好的',
442
+                          content: '已进入连续新建状态,此时会保留上一张题卡的练习模式、到期时间、卡单、字号的设置,以方便您创建大量有相同属性的新题卡。另外,还能一键「复查」上一张题卡。',
443
+                          confirmText: '知道了',
432
                           success(res) {
444
                           success(res) {
433
                             if (res.confirm) {
445
                             if (res.confirm) {
434
                               wx.setStorageSync("IsRemindContinuousNew",1);
446
                               wx.setStorageSync("IsRemindContinuousNew",1);
@@ -437,6 +449,7 @@ Page({
437
                               wx.setStorageSync("IsRemindContinuousNew",2);
449
                               wx.setStorageSync("IsRemindContinuousNew",2);
438
                             }
450
                             }
439
                             changePattern(that);
451
                             changePattern(that);
452
+                            
440
                           }
453
                           }
441
                         });
454
                         });
442
                     }
455
                     }
@@ -458,6 +471,10 @@ Page({
458
                     changePattern(that);
471
                     changePattern(that);
459
                   }
472
                   }
460
 
473
 
474
+                  if (that.data.FolderID>0){
475
+                    app.globalData.FolderList=[];
476
+                  }
477
+
461
                 }
478
                 }
462
                 wx.removeStorageSync("TempCardInfo");
479
                 wx.removeStorageSync("TempCardInfo");
463
 
480
 
@@ -701,6 +718,7 @@ Page({
701
       ],
718
       ],
702
       Tags: [],
719
       Tags: [],
703
       UpdateType: "add2",
720
       UpdateType: "add2",
721
+      BtnSaveSelectCss:"",
704
     });
722
     });
705
   },
723
   },
706
   onBindError: function (e) {
724
   onBindError: function (e) {
@@ -753,7 +771,7 @@ Page({
753
     if (isFirstAdd == true || !that.data.Field) {
771
     if (isFirstAdd == true || !that.data.Field) {
754
       wx.showModal({
772
       wx.showModal({
755
         title: '提醒',
773
         title: '提醒',
756
-        content: '无法复查,因为没有上一张。从连续新建第二张题卡起可一键查看上一张题卡。',
774
+        content: '本功能用于在连续新建题卡时一键复查「上一张题卡」。请在连续新建到第二张时再来试一试。',
757
         confirmText: '知道了',
775
         confirmText: '知道了',
758
         showCancel: false,
776
         showCancel: false,
759
       });
777
       });
@@ -761,10 +779,11 @@ Page({
761
     else if (that.data.Field[1].length > 0 || that.data.Field[2].length > 0 || that.data.Field[2].length > 0) {
779
     else if (that.data.Field[1].length > 0 || that.data.Field[2].length > 0 || that.data.Field[2].length > 0) {
762
       wx.showModal({
780
       wx.showModal({
763
         title: '提醒',
781
         title: '提醒',
764
-        content: '将离开编辑状态,请先保存题卡。',
765
-        confirmText: '不保存',
782
+        content: '您所做的编辑还没有保存,要放弃保存吗?',
783
+        confirmText: '取消',
784
+        cancelText: "不保存",
766
         success(res) {
785
         success(res) {
767
-          if (res.confirm) {
786
+          if (!res.confirm) {
768
             goto();
787
             goto();
769
             setTimeout(function () {
788
             setTimeout(function () {
770
               wx.removeStorageSync("TempCardNoSaved");
789
               wx.removeStorageSync("TempCardNoSaved");
@@ -998,6 +1017,8 @@ Page({
998
       next(that);
1017
       next(that);
999
     }
1018
     }
1000
 
1019
 
1020
+    
1021
+
1001
     function next(obj) {
1022
     function next(obj) {
1002
       isViolate = false;
1023
       isViolate = false;
1003
 
1024
 
@@ -1015,6 +1036,22 @@ Page({
1015
       that.setData({
1036
       that.setData({
1016
         PageTitle: title,
1037
         PageTitle: title,
1017
       });
1038
       });
1039
+
1040
+      that.setBtnSaveCss();
1041
+    }
1042
+  },
1043
+
1044
+  setBtnSaveCss:function(){
1045
+    var that=this;
1046
+    if (that.data.Field[1] != ""){
1047
+      that.setData({
1048
+        BtnSaveSelectCss:"MenuBtnSelect",
1049
+      });
1050
+    }
1051
+    else{
1052
+      that.setData({
1053
+        BtnSaveSelectCss:"",
1054
+      });
1018
     }
1055
     }
1019
   },
1056
   },
1020
 
1057
 
@@ -1411,6 +1448,10 @@ Page({
1411
     wx.navigateTo({
1448
     wx.navigateTo({
1412
       url: url,
1449
       url: url,
1413
     });
1450
     });
1451
+
1452
+    if (url=="./folderEdit?type=add"){
1453
+      isAddFolder=true;
1454
+    }
1414
   },
1455
   },
1415
   showTagShow:function(){
1456
   showTagShow:function(){
1416
     var tagTemp=this.data.Tags.join(",");
1457
     var tagTemp=this.data.Tags.join(",");
@@ -1437,10 +1478,9 @@ Page({
1437
   setCardTypeInit:function(){
1478
   setCardTypeInit:function(){
1438
     this.setData({
1479
     this.setData({
1439
       CardType:0,
1480
       CardType:0,
1440
-      PracticeCardType:"日常"+"题卡",
1481
+      PracticeCardType:constant1.arrStudyPattern[0]+"题卡",
1441
       PracticeTimeStr:"",
1482
       PracticeTimeStr:"",
1442
       LimitTime:common.formatTime(new Date(),"-",true),
1483
       LimitTime:common.formatTime(new Date(),"-",true),
1443
-      IsEditCardType:"",
1444
     });
1484
     });
1445
     wx.showToast({
1485
     wx.showToast({
1446
       title: '已恢复默认',
1486
       title: '已恢复默认',
@@ -1448,27 +1488,14 @@ Page({
1448
     });
1488
     });
1449
   },
1489
   },
1450
   gotoAddInfomationDetail:function(param){
1490
   gotoAddInfomationDetail:function(param){
1451
-    var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
1452
-    url += "&Word=" + param.Word;
1453
-    if (param.SearchType)
1454
-      url += "&SearchType=" + param.SearchType;
1455
-    if (param.Author)
1456
-      url += "&Author=" + param.Author;
1457
-    if (app.globalData.TempStr){
1458
-      url += "&ShiciUrl=" + app.globalData.TempStr;
1459
-      app.globalData.TempStr="";
1460
-    }
1461
-    main.getData(url, function (data) {
1462
-      if (data){
1463
-        var obj={};
1464
-        obj.Value=data;
1465
-        main.updateSearchList(obj);
1491
+    main.searchInfomation(param.Word,param.SearchType,param.Author,app.globalData.TempStr,function(list,obj){
1492
+      main.updateSearchList(obj,function(){
1466
         app.globalData.TempSearchBackNumber=1;
1493
         app.globalData.TempSearchBackNumber=1;
1467
 
1494
 
1468
         wx.navigateTo({
1495
         wx.navigateTo({
1469
           url: './addInfomationDetail',
1496
           url: './addInfomationDetail',
1470
         });
1497
         });
1471
-      }
1498
+      });
1472
     });
1499
     });
1473
   },
1500
   },
1474
   showPanel: function (e) {
1501
   showPanel: function (e) {
@@ -1483,7 +1510,9 @@ Page({
1483
       case "menu":
1510
       case "menu":
1484
         that.setData({
1511
         that.setData({
1485
           IsShowMenu: true,
1512
           IsShowMenu: true,
1513
+          IsShowAddHelp:1,
1486
         });
1514
         });
1515
+        wx.setStorageSync("IsShowAddHelp",that.data.IsShowAddHelp);
1487
         break;
1516
         break;
1488
       case "folder":
1517
       case "folder":
1489
         that.setData({
1518
         that.setData({
@@ -1496,11 +1525,13 @@ Page({
1496
         for(var i=0;i<arrLimitTime.length;i++){
1525
         for(var i=0;i<arrLimitTime.length;i++){
1497
           arrLimitTime[i].Selected="";
1526
           arrLimitTime[i].Selected="";
1498
         }
1527
         }
1499
-        arrLimitTime[0].Selected="MenuBtnSelect";  
1528
+        //arrLimitTime[0].Selected="MenuBtnSelect";  
1500
           
1529
           
1501
         that.setData({
1530
         that.setData({
1531
+          Today:common.formatTime(new Date()),
1502
           IsLimitTime: true,
1532
           IsLimitTime: true,
1503
           LimitTimeTemp:that.data.LimitTime,
1533
           LimitTimeTemp:that.data.LimitTime,
1534
+          PracticeTimeStrTemp: common.formatDateCHS(that.data.LimitTime),
1504
           LimitTimeArr:arrLimitTime,
1535
           LimitTimeArr:arrLimitTime,
1505
         });
1536
         });
1506
         break;
1537
         break;
@@ -1536,22 +1567,23 @@ Page({
1536
           obj.UrgentCss="MenuBtnSelect";
1567
           obj.UrgentCss="MenuBtnSelect";
1537
         }
1568
         }
1538
         else if (that.data.CardType==-1){
1569
         else if (that.data.CardType==-1){
1539
-          obj.NormalCss="";
1540
-          obj.UrgentCss="";
1541
-        }
1542
-        if (app.globalData.TaskToday.CardNumberUrgent>200){
1570
+          obj.NormalCss="MenuBtnDisabled";
1543
           obj.UrgentCss="MenuBtnDisabled";
1571
           obj.UrgentCss="MenuBtnDisabled";
1544
         }
1572
         }
1545
-
1573
+        
1546
         that.setData({
1574
         that.setData({
1547
           IsCardType: true,
1575
           IsCardType: true,
1548
           CardTypeCss:obj,
1576
           CardTypeCss:obj,
1577
+          CardTypeTemp:that.data.CardType,
1578
+          CardNumberUrgent:app.globalData.TaskToday.CardNumberUrgent,
1549
         });
1579
         });
1550
         break;
1580
         break;
1551
     }
1581
     }
1552
   },
1582
   },
1553
   hiddenPanel:function(e){
1583
   hiddenPanel:function(e){
1554
-    this.setData({
1584
+    var that=this;
1585
+    
1586
+    that.setData({
1555
       IsShowMenu:false,
1587
       IsShowMenu:false,
1556
       IsHelp: false,
1588
       IsHelp: false,
1557
       IsFontsize:false,
1589
       IsFontsize:false,
@@ -1560,8 +1592,13 @@ Page({
1560
       IsCardType:false,
1592
       IsCardType:false,
1561
     });
1593
     });
1562
 
1594
 
1563
-    if (this.data.IsOpentype && !e){
1564
-      this.saveCard();
1595
+    if (that.data.IsFolder){
1596
+      for(var i=0;i<that.data.FolderArr.length;i++){
1597
+        that.data.FolderArr[i].Selected="";
1598
+      }
1599
+      that.setData({
1600
+        FolderArr:that.data.FolderArr,
1601
+      });
1565
     }
1602
     }
1566
   },
1603
   },
1567
   setFontSize:function(e){
1604
   setFontSize:function(e){
@@ -1578,12 +1615,20 @@ Page({
1578
     that.setData({
1615
     that.setData({
1579
       FontSizeTemp:e.currentTarget.dataset.fontsize,
1616
       FontSizeTemp:e.currentTarget.dataset.fontsize,
1580
       FontSizeArr:fontSize,
1617
       FontSizeArr:fontSize,
1581
-      FontSizeName:fontSizeName,
1618
+      FontSizeNameTemp:fontSizeName,
1582
     });
1619
     });
1583
   },
1620
   },
1584
   saveFontSize:function(){
1621
   saveFontSize:function(){
1622
+    var fontSizeName;
1623
+    var fontSize=constant1.arrFontSize;
1624
+    for(var i=0;i<fontSize.length;i++){
1625
+      if (fontSize[i].Value==this.data.FontSizeTemp){
1626
+        fontSizeName=fontSize[i].Name;
1627
+      }
1628
+    }
1585
     this.setData({
1629
     this.setData({
1586
       FontSize:this.data.FontSizeTemp,
1630
       FontSize:this.data.FontSizeTemp,
1631
+      FontSizeName:fontSizeName,
1587
     });
1632
     });
1588
     this.hiddenPanel();
1633
     this.hiddenPanel();
1589
   },
1634
   },
@@ -1593,6 +1638,13 @@ Page({
1593
       var url="GetUserFolderList?UserID="+app.globalData.userInfo.UserID;
1638
       var url="GetUserFolderList?UserID="+app.globalData.userInfo.UserID;
1594
       main.getData(url, function (data) {
1639
       main.getData(url, function (data) {
1595
         if (data) {
1640
         if (data) {
1641
+          if (isAddFolder){
1642
+            that.setData({
1643
+              FolderID:data[0].ID,
1644
+            });
1645
+            isAddFolder=false;
1646
+          }
1647
+
1596
           update(data);
1648
           update(data);
1597
         }
1649
         }
1598
       });
1650
       });
@@ -1602,14 +1654,15 @@ Page({
1602
     }
1654
     }
1603
 
1655
 
1604
     function update(arr){
1656
     function update(arr){
1605
-      if (that.data.FolderID){
1606
-        for(var i=0;i<arr.length;i++){
1657
+      for(var i=0;i<arr.length;i++){
1658
+        arr[i].Selected="";
1659
+        if (that.data.FolderID){
1607
           if (arr[i].ID==that.data.FolderID){
1660
           if (arr[i].ID==that.data.FolderID){
1608
             arr[i].Selected="MenuBtnSelect";
1661
             arr[i].Selected="MenuBtnSelect";
1609
-            break;
1610
           }
1662
           }
1611
         }
1663
         }
1612
       }
1664
       }
1665
+      
1613
       that.setData({
1666
       that.setData({
1614
         FolderArr:arr,
1667
         FolderArr:arr,
1615
       });
1668
       });
@@ -1665,21 +1718,33 @@ Page({
1665
     
1718
     
1666
     that.setData({
1719
     that.setData({
1667
       LimitTimeTemp: limitTime,
1720
       LimitTimeTemp: limitTime,
1668
-      PracticeTimeStr: common.formatDateCHS(limitTime),
1721
+      PracticeTimeStrTemp: common.formatDateCHS(limitTime),
1669
       LimitTimeArr:that.data.LimitTimeArr,
1722
       LimitTimeArr:that.data.LimitTimeArr,
1670
     });
1723
     });
1671
   },
1724
   },
1672
   selectLimitTime2:function(e){
1725
   selectLimitTime2:function(e){
1673
     var that=this;
1726
     var that=this;
1674
     var limitTime=e.detail.value;
1727
     var limitTime=e.detail.value;
1675
-    for(var i=0;i<that.data.LimitTimeArr.length;i++){
1676
-      that.data.LimitTimeArr[i].Selected="";
1728
+    var today=common.formatTime(new Date(),"-",true);
1729
+    console.log(today);
1730
+    if (limitTime<today){
1731
+      wx.showModal({
1732
+        title: '提醒',
1733
+        content: '指定日期只能是今天或未来某日,您可重新选择。',
1734
+        confirmText: "知道了",
1735
+        showCancel:false,
1736
+      });
1737
+    }
1738
+    else{
1739
+      for(var i=0;i<that.data.LimitTimeArr.length;i++){
1740
+        that.data.LimitTimeArr[i].Selected="";
1741
+      }
1742
+      that.setData({
1743
+        LimitTimeTemp: limitTime,
1744
+        PracticeTimeStrTemp: common.formatDateCHS(limitTime),
1745
+        LimitTimeArr:that.data.LimitTimeArr,
1746
+      });
1677
     }
1747
     }
1678
-    that.setData({
1679
-      LimitTimeTemp: limitTime,
1680
-      PracticeTimeStr: common.formatDateCHS(limitTime),
1681
-      LimitTimeArr:that.data.LimitTimeArr,
1682
-    });
1683
   },
1748
   },
1684
   setLimitTime:function(e){
1749
   setLimitTime:function(e){
1685
     var that=this;
1750
     var that=this;
@@ -1734,8 +1799,8 @@ Page({
1734
         obj.UrgentCss="MenuBtnSelect";
1799
         obj.UrgentCss="MenuBtnSelect";
1735
       }
1800
       }
1736
       if (cardtype==-1){
1801
       if (cardtype==-1){
1737
-        obj.NormalCss="";
1738
-        obj.UrgentCss="";
1802
+        obj.NormalCss="MenuBtnDisabled";
1803
+        obj.UrgentCss="MenuBtnDisabled";
1739
       }
1804
       }
1740
 
1805
 
1741
       if (that.data.CardType==1 && (cardtype==0 || cardtype==-1))
1806
       if (that.data.CardType==1 && (cardtype==0 || cardtype==-1))

+ 0 - 1
pages/main/add.json

@@ -1,6 +1,5 @@
1
 {
1
 {
2
   "navigationBarTitleText": "新建题卡",
2
   "navigationBarTitleText": "新建题卡",
3
-  "backgroundColor": "#F0F0F0",
4
   "usingComponents": {
3
   "usingComponents": {
5
     "navigation-bar": "/components/navigation-bar/navigation-bar"
4
     "navigation-bar": "/components/navigation-bar/navigation-bar"
6
   },
5
   },

+ 41 - 48
pages/main/add.wxml

@@ -5,7 +5,7 @@
5
 	<view class="panelTop FlexRow" style="top:{{topBarHeight}}rpx;">
5
 	<view class="panelTop FlexRow" style="top:{{topBarHeight}}rpx;">
6
 		<view class="panelLeft FlexRow">
6
 		<view class="panelLeft FlexRow">
7
 			<view class='panelTop1 FlexRow' catchtap='onClose'>
7
 			<view class='panelTop1 FlexRow' catchtap='onClose'>
8
-				关闭
8
+				放弃
9
 			</view>
9
 			</view>
10
 		</view>
10
 		</view>
11
 		<view class="panelRight FlexRow">
11
 		<view class="panelRight FlexRow">
@@ -13,10 +13,11 @@
13
 			<view class="panelTop11 panelTop1 FlexColumn" catchtap="showPanel" data-type="help">
13
 			<view class="panelTop11 panelTop1 FlexColumn" catchtap="showPanel" data-type="help">
14
 				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
14
 				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
15
 			</view>
15
 			</view>
16
-			<view class="panelTop1 FlexColumn" catchtap="showPanel" data-type="menu">
16
+			<view class="panelTop1 FlexColumn" catchtap="showPanel" data-type="menu" wx:if="{{UpdateType!='edit1'}}">
17
 				<image class="universalpic_omit_black_36x10" src='../images/universalpic_omit_black_36x10.png' />
17
 				<image class="universalpic_omit_black_36x10" src='../images/universalpic_omit_black_36x10.png' />
18
 			</view>
18
 			</view>
19
 		</view>
19
 		</view>
20
+		<image wx:if="{{IsShowAddHelp==0}}" class="message_edit_01" src='../images/message_edit_01.png' />
20
 	</view>
21
 	</view>
21
 	<view class="panelHeight10" style="margin-top:{{topBarHeight}}rpx;"></view>
22
 	<view class="panelHeight10" style="margin-top:{{topBarHeight}}rpx;"></view>
22
 
23
 
@@ -57,8 +58,8 @@
57
 						</view>
58
 						</view>
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_voicerecorder_transmit_black_44x34"
61
-								src='../images/universalpic_voicerecorder_transmit_black_44x34.png' />
61
+							<image class="universalpic_read_mark_black_20x20"
62
+								src='../images/universalpic_read_mark_black_20x20.png' />
62
 						</view>
63
 						</view>
63
 						<image class="imageFree" mode="widthFix" wx:if="{{item.Type=='image'}}" src='{{item.Content}}'
64
 						<image class="imageFree" mode="widthFix" wx:if="{{item.Type=='image'}}" src='{{item.Content}}'
64
 							binderror="onBindError" />
65
 							binderror="onBindError" />
@@ -73,7 +74,7 @@
73
 	</view>
74
 	</view>
74
 
75
 
75
 	<view class="panelItem0 FlexColumn"
76
 	<view class="panelItem0 FlexColumn"
76
-		wx:if="{{CardType===0 || CardType===1 || CardType===-1 || FolderID || LimitTime || FontSize}}">
77
+		wx:if="{{(CardType===0 || CardType===1 || CardType===-1 || FolderID || LimitTime || FontSize) && UpdateType!='edit1'}}">
77
 		<view class="panelItemCircleTop"></view>
78
 		<view class="panelItemCircleTop"></view>
78
 		<block wx:if="{{CardType===0 || CardType===1 || CardType===-1}}">
79
 		<block wx:if="{{CardType===0 || CardType===1 || CardType===-1}}">
79
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="cardtype">
80
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="cardtype">
@@ -82,20 +83,12 @@
82
 						class="universalpic_practisemodel_black_30x28" />
83
 						class="universalpic_practisemodel_black_30x28" />
83
 					<view class="panelTimePlan1">{{PracticeCardType}}</view>
84
 					<view class="panelTimePlan1">{{PracticeCardType}}</view>
84
 				</view>
85
 				</view>
85
-				
86
 				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
86
 				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
87
-				<!-- <image  wx:if="{{!IsContinute}}" src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
88
-				<view class="right FlexRow" wx:if="{{IsContinute}}">
89
-					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
90
-					<view class="panelTop1 FlexRow">
91
-						<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
92
-					</view>
93
-				</view> -->
94
 			</view>
87
 			</view>
95
 		</block>
88
 		</block>
96
 
89
 
97
 		<block wx:if="{{FolderID}}">
90
 		<block wx:if="{{FolderID}}">
98
-			<view class="lineWidthAll FlexRow" wx:if="{{CardType}}">
91
+			<view class="lineWidthAll FlexRow">
99
 				<view class="lineWidth620"></view>
92
 				<view class="lineWidth620"></view>
100
 			</view>
93
 			</view>
101
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="folder">
94
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="folder">
@@ -110,7 +103,7 @@
110
 		</block>
103
 		</block>
111
 
104
 
112
 		<block wx:if="{{LimitTime && CardType!=-1}}">
105
 		<block wx:if="{{LimitTime && CardType!=-1}}">
113
-			<view class="lineWidthAll FlexRow" wx:if="{{CardType || FolderID}}">
106
+			<view class="lineWidthAll FlexRow">
114
 				<view class="lineWidth620"></view>
107
 				<view class="lineWidth620"></view>
115
 			</view>
108
 			</view>
116
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="limittime">
109
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="limittime">
@@ -125,7 +118,7 @@
125
 		</block>
118
 		</block>
126
 
119
 
127
 		<block wx:if="{{FontSize}}">
120
 		<block wx:if="{{FontSize}}">
128
-			<view class="lineWidthAll FlexRow" wx:if="{{CardType || FolderID || LimitTime}}">
121
+			<view class="lineWidthAll FlexRow">
129
 				<view class="lineWidth620"></view>
122
 				<view class="lineWidth620"></view>
130
 			</view>
123
 			</view>
131
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="fontsize">
124
 			<view class="panelTimePlan FlexRow" catchtap="showPanel" data-type="fontsize">
@@ -133,25 +126,20 @@
133
 					<image src='../images/universalpic_typesize_black_30x18.png' class="universalpic_typesize_black_30x18" />
126
 					<image src='../images/universalpic_typesize_black_30x18.png' class="universalpic_typesize_black_30x18" />
134
 					<view class="panelTimePlan1">{{FontSizeName}}</view>
127
 					<view class="panelTimePlan1">{{FontSizeName}}</view>
135
 				</view>
128
 				</view>
136
-				
137
 				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
129
 				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
138
-				
139
 			</view>
130
 			</view>
140
 		</block>
131
 		</block>
141
 
132
 
142
 		<block wx:if="{{Tags && Tags.length>0}}">
133
 		<block wx:if="{{Tags && Tags.length>0}}">
143
-			<view class="lineWidthAll FlexRow" wx:if="{{CardType || FolderID || LimitTime || FontSize}}">
134
+			<view class="lineWidthAll FlexRow">
144
 				<view class="lineWidth620"></view>
135
 				<view class="lineWidth620"></view>
145
 			</view>
136
 			</view>
146
 			<view class="panelTimePlan FlexRow" catchtap="showTagShow">
137
 			<view class="panelTimePlan FlexRow" catchtap="showTagShow">
147
 				<view class="panelItem1 FlexRow">
138
 				<view class="panelItem1 FlexRow">
148
 					<image src='../images/universalpic_tag_black_30x30.png' class="universalpic_tag_black_30x30" />
139
 					<image src='../images/universalpic_tag_black_30x30.png' class="universalpic_tag_black_30x30" />
149
-					<view class="panelTimePlan1">自动记号</view>
150
-				</view>
151
-				<view class="FlexRow">
152
 					<view class="panelTimePlan1">{{TagsStr}}</view>
140
 					<view class="panelTimePlan1">{{TagsStr}}</view>
153
-					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
154
 				</view>
141
 				</view>
142
+				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
155
 			</view>
143
 			</view>
156
 		</block>
144
 		</block>
157
 
145
 
@@ -165,9 +153,9 @@
165
 				复查
153
 				复查
166
 			</view>
154
 			</view>
167
 			<view class="panelSave1" catchtap='onClose' wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
155
 			<view class="panelSave1" catchtap='onClose' wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
168
-				复查
156
+				
169
 			</view>
157
 			</view>
170
-			<view class='panelSave2' bindtap="saveCard">
158
+			<view class='{{BtnSaveSelectCss}} panelSave2' bindtap="saveCard">
171
 				保存
159
 				保存
172
 			</view>
160
 			</view>
173
 			<view class="panelSave1" bindtap="onPreview">
161
 			<view class="panelSave1" bindtap="onPreview">
@@ -261,12 +249,16 @@
261
 			<image class="universalpic_microphone_black_20x30" src='../images/universalpic_microphone_black_20x30.png' />
249
 			<image class="universalpic_microphone_black_20x30" src='../images/universalpic_microphone_black_20x30.png' />
262
 		</view>
250
 		</view>
263
 
251
 
264
-		<view class="panelSaveTag3 FlexRow" catchtap="onSearchField">
252
+		<!-- <view class="panelSaveTag3 FlexRow" catchtap="onSearchField">
265
 			加资料
253
 			加资料
266
 		</view>
254
 		</view>
267
 
255
 
268
 		<view class="panelSaveTag31 panelSaveTag3 panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="true">
256
 		<view class="panelSaveTag31 panelSaveTag3 panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="true">
269
 			确定
257
 			确定
258
+		</view> -->
259
+
260
+		<view class="panelSaveTag31 panelSaveTag3 panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="true">
261
+			<view class="panelSaveTag311">确定</view>
270
 		</view>
262
 		</view>
271
 	</view>
263
 	</view>
272
 	<view class='lineFooter'></view>
264
 	<view class='lineFooter'></view>
@@ -304,7 +296,7 @@
304
       <text class='RecorderPanel311'>以下内容来自题卡段落\n只要提前写进段落,就能在录音时方便照读。</text>
296
       <text class='RecorderPanel311'>以下内容来自题卡段落\n只要提前写进段落,就能在录音时方便照读。</text>
305
 		</view>
297
 		</view>
306
 		<view class="panelLine2"></view>
298
 		<view class="panelLine2"></view>
307
-    <textarea class="RecorderPanel32" maxlength='-1' value="{{FieldContent}}" />
299
+    <textarea class="RecorderPanel32" maxlength='-1' value="{{FieldContent}}" fixed="true"/>
308
   </view>
300
   </view>
309
   <view class='RecorderPanel1 FlexColumn'>
301
   <view class='RecorderPanel1 FlexColumn'>
310
     <view class='RecorderPanel11 FlexRow'>
302
     <view class='RecorderPanel11 FlexRow'>
@@ -316,11 +308,12 @@
316
     </view>
308
     </view>
317
     <view class='RecorderPanel12 FlexRow' wx:if="{{IsRecorderFinished}}">
309
     <view class='RecorderPanel12 FlexRow' wx:if="{{IsRecorderFinished}}">
318
       <view class='btnRecorderStart2 btnRecorderStart FlexRow' hover-class="btnRecorderEnd" catchtap='showRecorder'>
310
       <view class='btnRecorderStart2 btnRecorderStart FlexRow' hover-class="btnRecorderEnd" catchtap='showRecorder'>
319
-        <view>重录</view>
311
+        <view class="symbol1">●</view>
312
+      	<view>重录</view>
320
       </view>
313
       </view>
321
       <view class='btnRecorderStart2 btnRecorderStart FlexRow' catchtap='btnRecorderPlay'>
314
       <view class='btnRecorderStart2 btnRecorderStart FlexRow' catchtap='btnRecorderPlay'>
322
-        <view class="symbol1" wx:if="{{RecorderPlayName=='播放'}}">▶︎</view>
323
-        <view class="symbol1" wx:if="{{RecorderPlayName=='停止'}}">■</view>
315
+        <view class="symbol2" wx:if="{{RecorderPlayName=='播放'}}">▶︎</view>
316
+        <view class="symbol2" wx:if="{{RecorderPlayName=='停止'}}">■</view>
324
         <view>{{RecorderPlayName}}</view>
317
         <view>{{RecorderPlayName}}</view>
325
       </view>
318
       </view>
326
     </view>
319
     </view>
@@ -329,7 +322,8 @@
329
 
322
 
330
 <!-- 菜单 -->
323
 <!-- 菜单 -->
331
 <view wx:if="{{IsShowMenu}}" class="panelMenu container FlexColumn" style='height:{{Containnerheight}}rpx; top:{{topBarHeight}}rpx;'>
324
 <view wx:if="{{IsShowMenu}}" class="panelMenu container FlexColumn" style='height:{{Containnerheight}}rpx; top:{{topBarHeight}}rpx;'>
332
-	<view class="panelMenu12 panelMenu1 FlexColumn">
325
+	<view class="panelMenu0 FlexColumn">
326
+		<view class="panelMenu12 panelMenu1 FlexColumn">
333
 		<view class="panelMenu1 FlexRow" catchtap="showPanel" data-type="cardtype">
327
 		<view class="panelMenu1 FlexRow" catchtap="showPanel" data-type="cardtype">
334
 			<view class="Arrow"></view>
328
 			<view class="Arrow"></view>
335
 		  <view>练习模式</view>
329
 		  <view>练习模式</view>
@@ -354,7 +348,7 @@
354
 		<view class="panelMenu1 FlexRow" catchtap="setCollect">
348
 		<view class="panelMenu1 FlexRow" catchtap="setCollect">
355
 			<view></view>
349
 			<view></view>
356
 			<view wx:if="{{IsCollect==0}}">加注星标</view>
350
 			<view wx:if="{{IsCollect==0}}">加注星标</view>
357
-			<view wx:if="{{IsCollect==1}}">除星标</view>
351
+			<view wx:if="{{IsCollect==1}}">除星标</view>
358
 			<view></view>
352
 			<view></view>
359
 		</view>
353
 		</view>
360
 		<view class="panelMenuLine"></view>
354
 		<view class="panelMenuLine"></view>
@@ -367,7 +361,8 @@
367
 	</view>
361
 	</view>
368
 	<view class="panelMenu11 panelMenu1" wx:if="{{UpdateType!='add' && UpdateType!='add2' && UpdateType!='add3'}}" catchtap="deleteCard">删除题卡</view>
362
 	<view class="panelMenu11 panelMenu1" wx:if="{{UpdateType!='add' && UpdateType!='add2' && UpdateType!='add3'}}" catchtap="deleteCard">删除题卡</view>
369
 	<view class="panelMenu10 panelMenu1" catchtap="hiddenPanel">取消</view>
363
 	<view class="panelMenu10 panelMenu1" catchtap="hiddenPanel">取消</view>
370
-	<view class="iphone10plusMenu" wx:if="{{IsIPhoneX}}"></view>
364
+	</view>
365
+	
371
 </view>
366
 </view>
372
 
367
 
373
 <view wx:if="{{IsHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
368
 <view wx:if="{{IsHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
@@ -378,12 +373,11 @@
378
       </view>
373
       </view>
379
       <view></view>
374
       <view></view>
380
     </view>
375
     </view>
381
-    <swiper class="HelpPanel2" indicator-dots="true" autoplay="true" interval="5000" duration="2000">
376
+    <swiper class="HelpPanel2" indicator-dots="true" autoplay="true" interval="10000" duration="500">
382
       <block wx:for="{{HelpArr}}" wx:key="*this">
377
       <block wx:for="{{HelpArr}}" wx:key="*this">
383
         <swiper-item>
378
         <swiper-item>
384
           <view class="HelpPanel12 FlexColumn">
379
           <view class="HelpPanel12 FlexColumn">
385
-            <image src='{{ImagePath}}web/{{item}}.png'
386
-              class="{{item}}" />
380
+            <image src='{{ImagePath}}web/{{item}}.png?0' class="{{item}}" />
387
           </view>
381
           </view>
388
         </swiper-item>
382
         </swiper-item>
389
       </block>
383
       </block>
@@ -406,7 +400,7 @@
406
 				<view class="panelTitle21">调整题卡「字号」</view>
400
 				<view class="panelTitle21">调整题卡「字号」</view>
407
 				<view class="panelTitle22">只有段落1可调整字号,默认字号为「标准」</view>
401
 				<view class="panelTitle22">只有段落1可调整字号,默认字号为「标准」</view>
408
 			</view>
402
 			</view>
409
-			<view class="FontsizeShow" style="font-size:{{FontSizeTemp}}rpx;">{{FontSizeName}}字号效果</view>
403
+			<view class="FontsizeShow" style="font-size:{{FontSizeTemp}}rpx;">{{FontSizeNameTemp}}字号效果</view>
410
 			<view class="MenuBtn FlexRow">
404
 			<view class="MenuBtn FlexRow">
411
 				<view class="{{item.Selected}} MenuBtn1" wx:for="{{FontSizeArr}}" wx:key="index" catchtap="setFontSize" data-fontsize="{{item.Value}}">{{item.Name}}</view>
405
 				<view class="{{item.Selected}} MenuBtn1" wx:for="{{FontSizeArr}}" wx:key="index" catchtap="setFontSize" data-fontsize="{{item.Value}}">{{item.Name}}</view>
412
 			</view>
406
 			</view>
@@ -442,8 +436,7 @@
442
 					<text class="MenuItem1">{{item.Name}}</text>
436
 					<text class="MenuItem1">{{item.Name}}</text>
443
 				</view>
437
 				</view>
444
 			</scroll-view>
438
 			</scroll-view>
445
-			<view class="panelHeight100"></view>
446
-    </view>
439
+		</view>
447
   </view>
440
   </view>
448
 </view>
441
 </view>
449
 
442
 
@@ -460,7 +453,7 @@
460
     <view class="HelpPanel5 HelpPanel2 FlexColumn" >
453
     <view class="HelpPanel5 HelpPanel2 FlexColumn" >
461
       <view class="panelTitle20 panelTitle2 FlexColumn">
454
       <view class="panelTitle20 panelTitle2 FlexColumn">
462
 				<view class="panelTitle21">修改题卡「到期时间」</view>
455
 				<view class="panelTitle21">修改题卡「到期时间」</view>
463
-				<view class="panelTitle23 panelTitle21">{{PracticeTimeStr}}</view>
456
+				<view class="panelTitle23 panelTitle21">{{PracticeTimeStrTemp}}</view>
464
 				<view class="panelTitle22">到期时间就是下次练习的时间,一般情况无须更改</view>
457
 				<view class="panelTitle22">到期时间就是下次练习的时间,一般情况无须更改</view>
465
 				<view class="panelTitle24 panelTitle21">可更改为</view>
458
 				<view class="panelTitle24 panelTitle21">可更改为</view>
466
 				<view class="panelTitle22">只能改成今天或未来某日</view>
459
 				<view class="panelTitle22">只能改成今天或未来某日</view>
@@ -468,7 +461,7 @@
468
 			<view class="MenuBtn FlexRow">
461
 			<view class="MenuBtn FlexRow">
469
 				<view class="{{item.Selected}} MenuBtn4 MenuBtn1" wx:for="{{LimitTimeArr}}" wx:key="index" catchtap="selectLimitTime" data-daynumber="{{item.DayNumber}}">{{item.Name}}</view>
462
 				<view class="{{item.Selected}} MenuBtn4 MenuBtn1" wx:for="{{LimitTimeArr}}" wx:key="index" catchtap="selectLimitTime" data-daynumber="{{item.DayNumber}}">{{item.Name}}</view>
470
 			</view>
463
 			</view>
471
-			<picker class="Picker" mode="date" value="{{Today}}" start="{{Today}}" end="2050-01-01" bindchange="selectLimitTime2">
464
+			<picker class="Picker" mode="date" value="{{Today}}" end="2050-01-01" bindchange="selectLimitTime2">
472
 				<view class="MenuBtn5 MenuBtn1 FlexRow">
465
 				<view class="MenuBtn5 MenuBtn1 FlexRow">
473
 				<view class="panelLeft FlexRow">
466
 				<view class="panelLeft FlexRow">
474
 					<image src='../images/universalpic_bell_black_30x30.png' class="universalpic_bell_black_30x30_2" />
467
 					<image src='../images/universalpic_bell_black_30x30.png' class="universalpic_bell_black_30x30_2" />
@@ -496,9 +489,10 @@
496
       <view class="panelTitle20 panelTitle2 FlexColumn">
489
       <view class="panelTitle20 panelTitle2 FlexColumn">
497
 				<view class="panelTitle21">变更题卡所属「练习模式」</view>
490
 				<view class="panelTitle21">变更题卡所属「练习模式」</view>
498
 			</view>
491
 			</view>
499
-			<view class="{{CardTypeCss.NormalCss}} MenuBtn6 MenuBtn1 FlexRow" catchtap="selectCardType" data-cardtype="0">
500
-				<image wx:if="{{CardTypeTemp!=0}}" src='../images/richang_normal_b_60x60.png' class="richang_normal_b_60x60" />
501
-				<image wx:if="{{CardTypeTemp==0}}" src='../images/richang_normal_a_60x60.png' class="richang_normal_b_60x60" />
492
+			<view class="{{CardTypeCss.NormalCss}} MenuBtn6 MenuBtn1 FlexRow" catchtap="selectCardType" data-cardtype="0" data-disabled="{{CardTypeCss.NormalCss}}">
493
+				<image wx:if="{{CardTypeTemp!=0 && CardTypeCss.NormalCss!='MenuBtnDisabled'}}" src='../images/richang_normal_b_60x60.png' class="richang_normal_b_60x60" />
494
+				<image wx:if="{{CardTypeTemp==0 && CardTypeCss.NormalCss!='MenuBtnDisabled'}}" src='../images/richang_normal_a_60x60.png' class="richang_normal_b_60x60" />
495
+				<image wx:if="{{CardTypeCss.NormalCss=='MenuBtnDisabled'}}" src='../images/richang_disabled_60x60.png' class="richang_normal_b_60x60" />
502
 				<view class="MenuBtn61 FlexColumn">
496
 				<view class="MenuBtn61 FlexColumn">
503
 					<view>日常练习</view>
497
 					<view>日常练习</view>
504
 					<view class="panelTitle22{{CardTypeCss.NormalCss}} ">用于记牢——针对基础知识进行规律巩固达到长期记忆效果</view>
498
 					<view class="panelTitle22{{CardTypeCss.NormalCss}} ">用于记牢——针对基础知识进行规律巩固达到长期记忆效果</view>
@@ -512,7 +506,7 @@
512
 					<view>紧急练习</view>
506
 					<view>紧急练习</view>
513
 					<view class="panelTitle22{{CardTypeCss.UrgentCss}}">针对基础知识在短期内强化的临时措施</view>
507
 					<view class="panelTitle22{{CardTypeCss.UrgentCss}}">针对基础知识在短期内强化的临时措施</view>
514
 				</view>
508
 				</view>
515
-				<view class="disabled FlexRow" wx:if="{{CardTypeCss.UrgentCss=='MenuBtnDisabled'}}" >
509
+				<view class="disabled FlexRow" wx:if="{{CardNumberUrgent>=200}}" >
516
 					<image src='../images/universalpic_stop_black_20x20.png' class="universalpic_stop_black_20x20" />
510
 					<image src='../images/universalpic_stop_black_20x20.png' class="universalpic_stop_black_20x20" />
517
 					<view class="disabled1">容量已满请先移出一部分题卡</view>
511
 					<view class="disabled1">容量已满请先移出一部分题卡</view>
518
 				</view>
512
 				</view>
@@ -524,12 +518,11 @@
524
 				</view>
518
 				</view>
525
 				<switch class="switch" color="#5282FA" checked="{{CardTypeTemp==-1}}" bindchange="selectCardType"/>
519
 				<switch class="switch" color="#5282FA" checked="{{CardTypeTemp==-1}}" bindchange="selectCardType"/>
526
 			</view>
520
 			</view>
527
-			<view class="MenuBtn8 FlexRow" wx:if="{{CardTypeTemp!=1}}">
528
-			</view>
529
-			<view class="MenuBtn80 MenuBtn8 FlexRow" wx:if="{{CardTypeTemp==1}}">
521
+			<view class="MenuBtn80 MenuBtn8 FlexRow">
530
 				<image src='../images/universalpic_infor_green_40x40.png' class="universalpic_infor_green_40x40" />
522
 				<image src='../images/universalpic_infor_green_40x40.png' class="universalpic_infor_green_40x40" />
531
 				<view>模式更改后,原本的旧题卡会变成新题卡且无法撤销。</view>
523
 				<view>模式更改后,原本的旧题卡会变成新题卡且无法撤销。</view>
532
 			</view>
524
 			</view>
525
+			<view class="panelHeight100_green"></view>
533
     </view>
526
     </view>
534
   </view>
527
   </view>
535
 </view>
528
 </view>

+ 62 - 30
pages/main/add.wxss

@@ -1,5 +1,5 @@
1
 page{
1
 page{
2
-  background-color: #f0f0f0;
2
+  background-color: #f2f2f2;
3
 }
3
 }
4
 
4
 
5
 /* ******************* */
5
 /* ******************* */
@@ -54,6 +54,15 @@ page{
54
   height:10rpx;
54
   height:10rpx;
55
 }
55
 }
56
 
56
 
57
+.message_edit_01{
58
+  width:235rpx;
59
+  height:174rpx;
60
+  position: absolute;
61
+  top:70rpx;
62
+  right:45rpx;
63
+  z-index: 10;
64
+}
65
+
57
 /* 中间开始 */
66
 /* 中间开始 */
58
 
67
 
59
 .panelItemCircle{
68
 .panelItemCircle{
@@ -130,7 +139,8 @@ page{
130
 
139
 
131
 .panelTimePlan1{
140
 .panelTimePlan1{
132
   margin:30rpx 0 30rpx 30rpx;
141
   margin:30rpx 0 30rpx 30rpx;
133
-  
142
+  max-width: 554rpx;
143
+  line-height: 35rpx;
134
 }
144
 }
135
 
145
 
136
 .universalpic_practisemodel_black_30x28{
146
 .universalpic_practisemodel_black_30x28{
@@ -324,11 +334,6 @@ page{
324
   border:1rpx solid #9B9B9B;
334
   border:1rpx solid #9B9B9B;
325
 }
335
 }
326
 
336
 
327
-.panelItem .universalpic_voicerecorder_transmit_black_44x34{
328
-  width: 44rpx;
329
-  height: 34rpx;
330
-}
331
-
332
 .panelItem .imageFree{
337
 .panelItem .imageFree{
333
   width:100rpx;
338
   width:100rpx;
334
 }
339
 }
@@ -368,7 +373,7 @@ page{
368
   color:#1e1e1e;
373
   color:#1e1e1e;
369
 }
374
 }
370
 
375
 
371
-.panelSave .panelSave2 {
376
+.panelSave2 {
372
   width: 500rpx;
377
   width: 500rpx;
373
   background-color: #fff;
378
   background-color: #fff;
374
   color:#1E1E1E;
379
   color:#1E1E1E;
@@ -406,6 +411,7 @@ page{
406
   color: #1e1e1e;
411
   color: #1e1e1e;
407
   background-color: #f0f0f0;
412
   background-color: #f0f0f0;
408
   position: fixed;
413
   position: fixed;
414
+  z-index: 100;
409
 }
415
 }
410
 
416
 
411
 .left {
417
 .left {
@@ -499,8 +505,13 @@ page{
499
 }
505
 }
500
 
506
 
501
 .panelSaveTag31 {
507
 .panelSaveTag31 {
502
-  width: 90rpx;
503
-  margin-right:10rpx;
508
+  margin:0 10rpx 0 65rpx;
509
+  width: 150rpx;
510
+  justify-content: flex-end;
511
+}
512
+
513
+.panelSaveTag311 {
514
+  margin-right:17rpx;
504
 }
515
 }
505
 
516
 
506
 .line1 {
517
 .line1 {
@@ -527,7 +538,6 @@ page{
527
 .input {
538
 .input {
528
   margin: 30rpx 30rpx 0 30rpx;
539
   margin: 30rpx 30rpx 0 30rpx;
529
   width: 690rpx;
540
   width: 690rpx;
530
-
531
   height: 315rpx;
541
   height: 315rpx;
532
 }
542
 }
533
 
543
 
@@ -852,7 +862,7 @@ page{
852
 
862
 
853
 .RecorderPanel32{
863
 .RecorderPanel32{
854
   width:690rpx;
864
   width:690rpx;
855
-  height:500rpx;
865
+  height:1200rpx;
856
   font-size:36rpx;
866
   font-size:36rpx;
857
   font-weight: 400;
867
   font-weight: 400;
858
   margin-top:30rpx;
868
   margin-top:30rpx;
@@ -861,10 +871,16 @@ page{
861
 /* ****菜单********* */
871
 /* ****菜单********* */
862
 .panelMenu{
872
 .panelMenu{
863
   width: 100%;
873
   width: 100%;
874
+  background-color: rgba(0, 0, 0, 0.66);
875
+  z-index: 20;
876
+  position: fixed;
877
+  top: 0;
878
+}
879
+.panelMenu0{
864
   justify-content: flex-end;
880
   justify-content: flex-end;
865
   position: fixed;
881
   position: fixed;
866
   bottom: 0;
882
   bottom: 0;
867
-  background-color: rgba(0, 0, 0, 0.66);
883
+  width: 100%;
868
   z-index: 20;
884
   z-index: 20;
869
 }
885
 }
870
 
886
 
@@ -880,7 +896,7 @@ page{
880
   justify-content: space-between;
896
   justify-content: space-between;
881
 }
897
 }
882
 .panelMenu10{
898
 .panelMenu10{
883
-  margin-bottom: 70rpx;
899
+  margin-bottom: 50rpx;
884
 }
900
 }
885
 .panelMenu11{
901
 .panelMenu11{
886
   color:#FE6659;
902
   color:#FE6659;
@@ -906,6 +922,10 @@ page{
906
   width:100%;
922
   width:100%;
907
   height:200rpx;
923
   height:200rpx;
908
 }
924
 }
925
+.AndroidMenu{
926
+  width:100%;
927
+  height:100rpx;
928
+}
909
 
929
 
910
 .HelpContainer{
930
 .HelpContainer{
911
   background-color:rgba(0,0,0,0.16);
931
   background-color:rgba(0,0,0,0.16);
@@ -935,10 +955,11 @@ page{
935
   margin-left: 20rpx;
955
   margin-left: 20rpx;
936
 }
956
 }
937
 .HelpContainer .HelpPanel112{
957
 .HelpContainer .HelpPanel112{
938
-  min-width:80rpx;
958
+  min-width:120rpx;
939
   height:80rpx;
959
   height:80rpx;
940
   line-height: 80rpx;
960
   line-height: 80rpx;
941
-  margin-right: 20rpx;
961
+  text-align: center;
962
+  font-size:28rpx;
942
 }
963
 }
943
 
964
 
944
 .HelpPanel2{
965
 .HelpPanel2{
@@ -963,15 +984,15 @@ page{
963
   margin: 80rpx 0;
984
   margin: 80rpx 0;
964
 }
985
 }
965
 
986
 
966
-.help_board_tips_gengduo{
987
+.help_board_tips_diankaigengduo{
967
   width:630rpx;
988
   width:630rpx;
968
-  height:583rpx;
989
+  height:530rpx;
969
   margin: 80rpx 0;
990
   margin: 80rpx 0;
970
 }
991
 }
971
 
992
 
972
-.help_board_tips_qingchu{
993
+.help_board_tips_lianxvxinjian{
973
   width:630rpx;
994
   width:630rpx;
974
-  height:408rpx;
995
+  height:546rpx;
975
   margin: 80rpx 0;
996
   margin: 80rpx 0;
976
 }
997
 }
977
 
998
 
@@ -1043,15 +1064,9 @@ page{
1043
   font-size: 24rpx;
1064
   font-size: 24rpx;
1044
 }
1065
 }
1045
 
1066
 
1046
-.MenuBtnSelect{
1047
-  background-color: #5282FA;
1048
-  border:2rpx solid #5282FA;
1049
-  color:#fff;
1050
-  font-size:36rpx;
1051
-}
1052
 /* ************************** */
1067
 /* ************************** */
1053
 .HelpPanel4{
1068
 .HelpPanel4{
1054
-  height:805rpx;
1069
+  height:944rpx;
1055
   margin-bottom: 0;
1070
   margin-bottom: 0;
1056
   justify-content: flex-start;
1071
   justify-content: flex-start;
1057
 }
1072
 }
@@ -1080,21 +1095,22 @@ page{
1080
   justify-content: flex-start;
1095
   justify-content: flex-start;
1081
   margin-top:30rpx;
1096
   margin-top:30rpx;
1082
   overflow-y: auto;
1097
   overflow-y: auto;
1098
+  border-top:1rpx solid #D2D2D2;
1083
 }
1099
 }
1084
 
1100
 
1085
 .MenuItem{
1101
 .MenuItem{
1086
   width:710rpx;
1102
   width:710rpx;
1087
-  height:104rpx;
1088
   border:2rpx solid #E3E3E3;
1103
   border:2rpx solid #E3E3E3;
1089
   margin:0 0 20rpx 20rpx;
1104
   margin:0 0 20rpx 20rpx;
1090
   border-radius: 10rpx;
1105
   border-radius: 10rpx;
1106
+  font-size:28rpx;
1091
 }
1107
 }
1092
 
1108
 
1093
 .MenuItem1{
1109
 .MenuItem1{
1094
   width:650rpx;
1110
   width:650rpx;
1095
-  font-size:28rpx;
1096
   font-weight: 400;
1111
   font-weight: 400;
1097
   overflow: hidden;
1112
   overflow: hidden;
1113
+  margin:30rpx 0;
1098
 }
1114
 }
1099
 
1115
 
1100
 .panelMenuBottom {
1116
 .panelMenuBottom {
@@ -1175,6 +1191,9 @@ page{
1175
   width:100%;
1191
   width:100%;
1176
   height:100rpx;
1192
   height:100rpx;
1177
 }
1193
 }
1194
+.panelHeight100_white{
1195
+  background-color: #fff;
1196
+}
1178
 
1197
 
1179
 /* *************** */
1198
 /* *************** */
1180
 .HelpPanel6{
1199
 .HelpPanel6{
@@ -1228,7 +1247,12 @@ page{
1228
   font-size:20rpx;
1247
   font-size:20rpx;
1229
   justify-content: flex-start;
1248
   justify-content: flex-start;
1230
   background-color: #E3FCF3;
1249
   background-color: #E3FCF3;
1231
-  margin-bottom: 50rpx;
1250
+}
1251
+
1252
+.panelHeight100_green{
1253
+  width:100%;
1254
+  height:50rpx;
1255
+  background-color: #E3FCF3;
1232
 }
1256
 }
1233
 
1257
 
1234
 .universalpic_infor_green_40x40{
1258
 .universalpic_infor_green_40x40{
@@ -1258,4 +1282,12 @@ page{
1258
 }
1282
 }
1259
 .disabled1{
1283
 .disabled1{
1260
   line-height: normal;
1284
   line-height: normal;
1285
+}
1286
+
1287
+
1288
+.MenuBtnSelect{
1289
+  background-color: #5282FA;
1290
+  border:2rpx solid #5282FA;
1291
+  color:#fff;
1292
+  font-size:36rpx;
1261
 }
1293
 }

+ 166 - 120
pages/main/addInfomation.js

@@ -2,6 +2,7 @@ import common from '../../utils/util';
2
 import main from '../../utils/main';
2
 import main from '../../utils/main';
3
 
3
 
4
 const app = getApp();
4
 const app = getApp();
5
+const WORD_LENGTH=18;
5
 
6
 
6
 Page({
7
 Page({
7
   data: {
8
   data: {
@@ -36,6 +37,11 @@ Page({
36
           else
37
           else
37
             item.TypeName = "C";
38
             item.TypeName = "C";
38
         }
39
         }
40
+
41
+        if (item.Content && item.Content.length > WORD_LENGTH)
42
+              item.Content = item.Content.substr(0, WORD_LENGTH) + "...";
43
+
44
+
39
       }
45
       }
40
       that.setData({
46
       that.setData({
41
         SearchWord3: list,
47
         SearchWord3: list,
@@ -82,132 +88,167 @@ Page({
82
         SearchInfo:search,
88
         SearchInfo:search,
83
       });
89
       });
84
     }
90
     }
91
+    var searchtype=e.currentTarget.dataset.searchtype;
92
+    var author=e.currentTarget.dataset.author;
93
+    var shiciurl=e.currentTarget.dataset.shiciurl;
85
 
94
 
86
-    wx.showLoading({
87
-      title: '查询中',
88
-    });
89
-    setTimeout(function () {
90
-      wx.hideLoading();
91
-    }, 5000);
95
+    main.searchInfomation(search,searchtype,author,shiciurl,function(list,obj){
96
+      
97
+      if (obj){
98
+        main.updateSearchList(obj,function(){
99
+          wx.navigateTo({
100
+            url: './addInfomationDetail',
101
+          });
102
+        });
103
+      }
104
+      else{
105
+        wx.setNavigationBarTitle({
106
+          title: "搜索结果"
107
+        });
92
 
108
 
93
-    var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
94
-    url += "&Word=" + search;
95
-    if (e.currentTarget.dataset.searchtype)
96
-      url += "&SearchType=" + e.currentTarget.dataset.searchtype;
97
-    if (e.currentTarget.dataset.author)
98
-      url += "&Author=" + e.currentTarget.dataset.author;
99
-    if (e.currentTarget.dataset.shiciurl)
100
-      url += "&ShiciUrl=" + e.currentTarget.dataset.shiciurl;
109
+        that.setData({
110
+          SearchList: list,
111
+          IsStart: true,
112
+        });
101
 
113
 
102
-    main.getData(url, function (data) {
103
-      wx.hideLoading();
104
-      wx.setNavigationBarTitle({
105
-        title: "搜索结果"
106
-      });
107
-      if (data) {
108
-        //console.log(data);
114
+        that.getCardList();
109
 
115
 
110
-        if (data.List) {
111
-          var len = 26;
112
-          var list = data.List;
113
-          for (var i = 0; i < list.length; i++) {
114
-            var item = list[i];
115
-            if (item.TypeName == "字词") {
116
-              if (item.Key.length == 1)
117
-                item.TypeName = "Z";
118
-              else
119
-                item.TypeName = "C";
120
-            } else if (item.TypeName == "诗词") {
121
-              item.TypeName = "S";
122
-              item.Remark = item.Author + " " + item.Dynasty;
123
-            } else if (item.TypeName == "翻译") {
124
-              item.TypeName = "D";
116
+        setTimeout(function () {
117
+          var arr = that.data.SearchTextList;
118
+          for (var i = 0; i < arr.length; i++) {
119
+            if (arr[i] == search) {
120
+              arr.splice(i, 1);
121
+              break;
125
             }
122
             }
126
-
127
-            if (item.Content && item.Content.length > len)
128
-              item.Content = item.Content.substr(0, len) + "...";
129
-
130
           }
123
           }
124
+          arr.unshift(search);
125
+  
126
+          while (arr.length > 10) {
127
+            arr.pop();
128
+          }
129
+  
130
+          wx.setStorageSync("SearchTextList", arr);
131
           that.setData({
131
           that.setData({
132
-            SearchList: list,
133
-            IsStart: true,
132
+            SearchTextList: arr,
134
           });
133
           });
135
-        } else {
136
-          var obj = {};
137
-          obj.Key = search;
138
-          obj.Value = data;
139
-          if (data.CHN && data.CHN.Author)
140
-            obj.Author = data.CHN.Author;
141
-          if (data.CHN && data.CHN.Dynasty)
142
-            obj.Dynasty = data.CHN.Dynasty;
143
-          if (data.CHN && data.CHN.PeomContent) {
144
-            obj.Type = "shici";
145
-            obj.TypeName = "诗词";
146
-            obj.Content = data.CHN.PeomContent.join("").substr(0, 26);
147
-            obj.ShiciUrl = e.currentTarget.dataset.shiciurl;
148
-          } else if (data.CHN) {
149
-            obj.Type = "zici";
150
-            if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].pinyin)
151
-              obj.Remark = data.CHN.PinYin[0].pinyin;
152
-            if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].explain) {
153
-              obj.Content = data.CHN.PinYin[0].explain.substr(0, 26);
154
-              obj.Content = obj.Content.replace("<p>", "");
155
-              obj.Content = obj.Content.replace("</p>", "");
156
-              if (obj.Content.length >= 26)
157
-                obj.Content += "..."
158
-            }
159
-          }
160
-          if (data.ENG && !data.CHN) {
161
-            obj.Type = "eng";
162
-            obj.TypeName = "D";
163
-            if (data.ENG.Soundmark && data.ENG.Soundmark.Eng)
164
-              obj.Remark = data.ENG.Soundmark.Eng;
165
-            if (data.ENG.Paraphrase.length > 0) {
166
-              if (common.checkIsArray(data.ENG.Paraphrase) && data.ENG.Paraphrase[0].ParaphraseList)
167
-                obj.Content = data.ENG.Paraphrase[0].ParaphraseList.join("; ").substr(0, 26);
168
-              else
169
-                obj.Content = data.ENG.Paraphrase.substr(0, 26) + "...";
170
-            }
171
-          }
134
+        }, 2000);
135
+      }
172
 
136
 
173
-          main.updateSearchList(obj);
137
+      
138
+    });
174
 
139
 
175
-          app.globalData.TempSearchBackNumber = 2;
176
-          //app.globalData.CardList=[];
177
-          app.globalData.CardList2=[];
178
-          wx.navigateTo({
179
-            url: './addInfomationDetail',
180
-          });
181
-        }
182
-      } else {
183
-        that.setData({
184
-          SearchList: [],
185
-          IsStart: true,
186
-        });
187
-      }
140
+    // wx.showLoading({
141
+    //   title: '查询中',
142
+    // });
143
+    // var timeout=setTimeout(function () {
144
+    //   wx.hideLoading();
145
+    // }, 5000);
188
 
146
 
189
-      that.getCardList();
147
+    // var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
148
+    // url += "&Word=" + search;
149
+    // if (e.currentTarget.dataset.searchtype)
150
+    //   url += "&SearchType=" + e.currentTarget.dataset.searchtype;
151
+    // if (e.currentTarget.dataset.author)
152
+    //   url += "&Author=" + e.currentTarget.dataset.author;
153
+    // if (e.currentTarget.dataset.shiciurl)
154
+    //   url += "&ShiciUrl=" + e.currentTarget.dataset.shiciurl;
190
 
155
 
191
-      setTimeout(function () {
192
-        var arr = that.data.SearchTextList;
193
-        for (var i = 0; i < arr.length; i++) {
194
-          if (arr[i] == search) {
195
-            arr.splice(i, 1);
196
-            break;
197
-          }
198
-        }
199
-        arr.unshift(search);
156
+    // main.getData(url, function (data) {
157
+    //   wx.hideLoading();
158
+    //   clearTimeout(timeout);
159
+    //   wx.setNavigationBarTitle({
160
+    //     title: "搜索结果"
161
+    //   });
162
+    //   if (data) {
163
+    //     //console.log(data);
200
 
164
 
201
-        while (arr.length > 10) {
202
-          arr.pop();
203
-        }
165
+    //     if (data.List) {
166
+    //       var len = WORD_LENGTH;
167
+    //       var list = data.List;
168
+    //       for (var i = 0; i < list.length; i++) {
169
+    //         var item = list[i];
170
+    //         if (item.TypeName == "字词") {
171
+    //           if (item.Key.length == 1)
172
+    //             item.TypeName = "Z";
173
+    //           else
174
+    //             item.TypeName = "C";
175
+    //         } else if (item.TypeName == "诗词") {
176
+    //           item.TypeName = "S";
177
+    //           item.Remark = item.Author + " " + item.Dynasty;
178
+    //         } else if (item.TypeName == "翻译") {
179
+    //           item.TypeName = "D";
180
+    //         }
204
 
181
 
205
-        wx.setStorageSync("SearchTextList", arr);
206
-        that.setData({
207
-          SearchTextList: arr,
208
-        });
209
-      }, 2000);
210
-    });
182
+    //         if (item.Content && item.Content.length > len)
183
+    //           item.Content = item.Content.substr(0, len) + "...";
184
+
185
+    //       }
186
+    //       that.setData({
187
+    //         SearchList: list,
188
+    //         IsStart: true,
189
+    //       });
190
+    //     } else if (data.CHN || data.ENG) {
191
+    //       var obj = {};
192
+    //       obj.Key = search;
193
+    //       obj.Value = data;
194
+    //       if (data.CHN && data.CHN.Author)
195
+    //         obj.Author = data.CHN.Author;
196
+    //       if (data.CHN && data.CHN.Dynasty)
197
+    //         obj.Dynasty = data.CHN.Dynasty;
198
+    //       if (data.CHN && data.CHN.PeomContent) {
199
+    //         obj.Type = "shici";
200
+    //         obj.TypeName = "诗词";
201
+    //         obj.Content = data.CHN.PeomContent.join("").substr(0, WORD_LENGTH);
202
+    //         obj.ShiciUrl = e.currentTarget.dataset.shiciurl;
203
+    //       } else if (data.CHN) {
204
+    //         obj.Type = "zici";
205
+    //         if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].pinyin)
206
+    //           obj.Remark = data.CHN.PinYin[0].pinyin;
207
+    //         if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].explain) {
208
+    //           obj.Content = data.CHN.PinYin[0].explain.substr(0, WORD_LENGTH);
209
+    //           obj.Content = obj.Content.replace("<p>", "");
210
+    //           obj.Content = obj.Content.replace("</p>", "");
211
+    //           if (obj.Content.length >= WORD_LENGTH)
212
+    //             obj.Content += "..."
213
+    //         }
214
+    //       }
215
+    //       if (data.ENG && !data.CHN) {
216
+    //         obj.Type = "eng";
217
+    //         obj.TypeName = "D";
218
+    //         if (data.ENG.Soundmark && data.ENG.Soundmark.Eng)
219
+    //           obj.Remark = data.ENG.Soundmark.Eng;
220
+    //         if (data.ENG.Paraphrase.length > 0) {
221
+    //           if (common.checkIsArray(data.ENG.Paraphrase) && data.ENG.Paraphrase[0].ParaphraseList)
222
+    //             obj.Content = data.ENG.Paraphrase[0].ParaphraseList.join("; ").substr(0, WORD_LENGTH);
223
+    //           else
224
+    //             obj.Content = data.ENG.Paraphrase.substr(0, WORD_LENGTH) + "...";
225
+    //         }
226
+    //       }
227
+
228
+    //       main.updateSearchList(obj);
229
+
230
+    //       app.globalData.TempSearchBackNumber = 2;
231
+    //       //app.globalData.CardList=[];
232
+    //       app.globalData.CardList2=[];
233
+    //       wx.navigateTo({
234
+    //         url: './addInfomationDetail',
235
+    //       });
236
+    //     }
237
+    //     else{
238
+    //       that.setData({
239
+    //         SearchList: [],
240
+    //         IsStart: true,
241
+    //       });
242
+    //     }
243
+    //   } else {
244
+    //     that.setData({
245
+    //       SearchList: [],
246
+    //       IsStart: true,
247
+    //     });
248
+    //   }
249
+
250
+      
251
+    // });
211
   },
252
   },
212
   getCardList: function () {
253
   getCardList: function () {
213
     var that = this;
254
     var that = this;
@@ -217,22 +258,21 @@ Page({
217
       Searching: true,
258
       Searching: true,
218
     });
259
     });
219
     main.getData(url, function (data) {
260
     main.getData(url, function (data) {
261
+      that.setData({
262
+        Searching: false,
263
+      });
220
       if (data) {
264
       if (data) {
221
-        that.setData({
222
-          Searching: false,
223
-        });
224
         if (data.List.length > 0) {
265
         if (data.List.length > 0) {
225
-          var len = 16;
226
           var list=data.List;
266
           var list=data.List;
227
           for (var i = 0; i < list.length; i++) {
267
           for (var i = 0; i < list.length; i++) {
228
             var item = list[i];
268
             var item = list[i];
229
             item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].Content);
269
             item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].Content);
230
-            if (item.Content[1].ContentStr.length > len)
231
-              item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].ContentStr.substr(0, len)) + "...";
270
+            if (item.Content[1].ContentStr.length > WORD_LENGTH)
271
+              item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].ContentStr.substr(0, WORD_LENGTH)) + "...";
232
       
272
       
233
             item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
273
             item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
234
-            if (item.Content[2].ContentStr.length > len)
235
-              item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].ContentStr.substr(0, len)) + "...";
274
+            if (item.Content[2].ContentStr.length > WORD_LENGTH)
275
+              item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].ContentStr.substr(0, WORD_LENGTH)) + "...";
236
       
276
       
237
             var imageUrl = getImage(item.Content[1].Content);
277
             var imageUrl = getImage(item.Content[1].Content);
238
             if (imageUrl.length == 0 && item.Content[2].Content)
278
             if (imageUrl.length == 0 && item.Content[2].Content)
@@ -250,6 +290,11 @@ Page({
250
           });
290
           });
251
           app.globalData.CardList2=list;
291
           app.globalData.CardList2=list;
252
         }
292
         }
293
+        else{
294
+          that.setData({
295
+            SearchCardList:[],
296
+          });
297
+        }
253
       }
298
       }
254
     });
299
     });
255
 
300
 
@@ -269,6 +314,7 @@ Page({
269
       IsStart: false,
314
       IsStart: false,
270
       Searching: false,
315
       Searching: false,
271
       SearchInfo: "",
316
       SearchInfo: "",
317
+      Focus:true,
272
     });
318
     });
273
   },
319
   },
274
   close: function (e) {
320
   close: function (e) {

+ 1 - 2
pages/main/addInfomation.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "搜资料",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "搜资料"
4
 }
3
 }

+ 10 - 12
pages/main/addInfomation.wxml

@@ -3,9 +3,9 @@
3
     <view class="panelLeft FlexRow">
3
     <view class="panelLeft FlexRow">
4
       <view class="panelTopSearch FlexRow">
4
       <view class="panelTopSearch FlexRow">
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
6
-        <input class='input' maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
7
-          placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" bindfocus="onFocus" />
8
-        <view class="clearData FlexRow" catchtap="clearInput">
6
+        <input class='input'  always-embed="true"  maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
7
+          placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" />
8
+        <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9
           <view class="clearData0 FlexRow">
9
           <view class="clearData0 FlexRow">
10
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
10
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11
           </view>
11
           </view>
@@ -19,6 +19,7 @@
19
       </view>
19
       </view>
20
     </view>
20
     </view>
21
   </view>
21
   </view>
22
+  <view class="panelTopNull"></view>
22
 
23
 
23
   <block wx:if="{{!IsStart}}">
24
   <block wx:if="{{!IsStart}}">
24
     <view class="panel1 FlexColumn">
25
     <view class="panel1 FlexColumn">
@@ -49,7 +50,7 @@
49
       <view class="panel10 panel1 FlexColumn">
50
       <view class="panel10 panel1 FlexColumn">
50
         <view class="panel11 FlexRow">
51
         <view class="panel11 FlexRow">
51
           <view class="panel11Left">
52
           <view class="panel11Left">
52
-            看过的关键词
53
+            看过的资料
53
           </view>
54
           </view>
54
           <view>
55
           <view>
55
           </view>
56
           </view>
@@ -88,10 +89,10 @@
88
       <image class="universalpic_dictionary_gray_90x84" src='../images/universalpic_dictionary_gray_90x84.png' />
89
       <image class="universalpic_dictionary_gray_90x84" src='../images/universalpic_dictionary_gray_90x84.png' />
89
       <view class="panelNullText">没有资料</view>
90
       <view class="panelNullText">没有资料</view>
90
     </view>
91
     </view>
91
-
92
-    <view class="panelSearchData0 FlexColumn">
93
-      <view class="panelSearchData01 FlexColumn">
94
-        <view class="panelSearchData FlexRow" wx:if="{{SearchList.length>0}}" wx:for="{{SearchList}}" wx:key="index"
92
+    <view class="panelNullLine" wx:if="{{SearchList.length==0}}"></view>
93
+    <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
94
+      <view class="panelSearchDataOther FlexColumn">
95
+        <view class="panelSearchDataOther2 FlexRow"  wx:for="{{SearchList}}" wx:key="index"
95
           bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}"
96
           bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}"
96
           data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}">
97
           data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}">
97
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
98
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
@@ -104,7 +105,7 @@
104
             <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
105
             <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
105
               src='../images/universalpic_dictionary_danci_black_53x28.png' />
106
               src='../images/universalpic_dictionary_danci_black_53x28.png' />
106
           </view>
107
           </view>
107
-          <view class="panelSearchData1 FlexColumn">
108
+          <view class="panelSearchDataOther21 FlexColumn">
108
             <view class="panelSearchDataText1">{{item.Key}}</view>
109
             <view class="panelSearchDataText1">{{item.Key}}</view>
109
             <view class="panelSearchDataText2">{{item.Remark}}</view>
110
             <view class="panelSearchDataText2">{{item.Remark}}</view>
110
             <view class="panelSearchDataText3">{{item.Content}}</view>
111
             <view class="panelSearchDataText3">{{item.Content}}</view>
@@ -115,9 +116,6 @@
115
       </view>
116
       </view>
116
     </view>
117
     </view>
117
 
118
 
118
-
119
-
120
-
121
     <view class="panelSearchNull FlexColumn">
119
     <view class="panelSearchNull FlexColumn">
122
       <view class="panelSearchNull1">相关题卡</view>
120
       <view class="panelSearchNull1">相关题卡</view>
123
       <view class="panelSearchNull2">为避免用资料重复新建题卡,可检查清单加以判断</view>
121
       <view class="panelSearchNull2">为避免用资料重复新建题卡,可检查清单加以判断</view>

+ 41 - 1
pages/main/addInfomation.wxss

@@ -6,6 +6,13 @@
6
   height:100rpx;
6
   height:100rpx;
7
   background-color: #fff;
7
   background-color: #fff;
8
   justify-content: space-between;
8
   justify-content: space-between;
9
+  position: fixed;
10
+  top:0;
11
+  z-index: 50;
12
+}
13
+.panelTopNull {
14
+  width: 100%;
15
+  height:100rpx;
9
 }
16
 }
10
 
17
 
11
 .panelLeft {
18
 .panelLeft {
@@ -166,6 +173,8 @@
166
 .panelSearchData0{
173
 .panelSearchData0{
167
   width:100%;
174
   width:100%;
168
   background-color: #F2F2F2;
175
   background-color: #F2F2F2;
176
+
177
+  border-top:1rpx solid #d2d2d2;
169
 }
178
 }
170
 
179
 
171
 .panelSearchData01{
180
 .panelSearchData01{
@@ -182,6 +191,30 @@
182
   position: relative;
191
   position: relative;
183
 }
192
 }
184
 
193
 
194
+.panelSearchDataOther{
195
+  width:710rpx;
196
+  margin-bottom: 30rpx;
197
+  margin-top:10rpx;
198
+}
199
+.panelSearchDataOther2{
200
+  width:710rpx;
201
+  justify-content: flex-start;
202
+  align-items: flex-start;
203
+  margin-top: 20rpx;
204
+  position: relative;
205
+  background-color: #fff;
206
+  border-radius: 10rpx;
207
+  padding-top:30rpx;
208
+}
209
+
210
+
211
+.panelSearchDataOther21{
212
+  align-items: flex-start;
213
+  margin-left: 30rpx;
214
+  overflow-x: hidden;
215
+  width:540rpx;
216
+}
217
+
185
 .panelSearchDataImage{
218
 .panelSearchDataImage{
186
   width:100rpx;
219
   width:100rpx;
187
   height:116rpx;
220
   height:116rpx;
@@ -228,6 +261,7 @@
228
   border-bottom: 1rpx solid #E3E3E3;
261
   border-bottom: 1rpx solid #E3E3E3;
229
   overflow-x: hidden;
262
   overflow-x: hidden;
230
   width:540rpx;
263
   width:540rpx;
264
+  height:147rpx;
231
 }
265
 }
232
 
266
 
233
 .panelSearchDataText1{
267
 .panelSearchDataText1{
@@ -290,7 +324,7 @@
290
 .panelSearchNull1{
324
 .panelSearchNull1{
291
   font-size:28rpx;
325
   font-size:28rpx;
292
   color:#4D4D4D;
326
   color:#4D4D4D;
293
-  margin: 60rpx 0 0 30rpx;
327
+  margin: 30rpx 0 0 30rpx;
294
 }
328
 }
295
 .panelSearchNull10{
329
 .panelSearchNull10{
296
   margin: 30rpx 0 0 30rpx;
330
   margin: 30rpx 0 0 30rpx;
@@ -301,6 +335,12 @@
301
   margin: 4rpx 0 0 30rpx;
335
   margin: 4rpx 0 0 30rpx;
302
 }
336
 }
303
 
337
 
338
+.panelNullLine{
339
+  width:690rpx;
340
+  height:1rpx;
341
+  background-color: #E3E3E3;
342
+}
343
+
304
 .panelSearching{
344
 .panelSearching{
305
   width:100%;
345
   width:100%;
306
   justify-content: flex-start;
346
   justify-content: flex-start;

+ 17 - 1
pages/main/addInfomationDetail.js

@@ -32,6 +32,17 @@ Page({
32
   },
32
   },
33
   getListFinished: function (data) {
33
   getListFinished: function (data) {
34
     var that = this;
34
     var that = this;
35
+
36
+    if (data.CHN) {
37
+      if (data.CHN.PeomContent)
38
+        data.TypeName = "S";
39
+      else if (data.CHN.HanZi.length == 1)
40
+        data.TypeName = "Z";
41
+      else
42
+        data.TypeName = "C";
43
+    } else if (data.ENG) {
44
+      data.TypeName = "D";
45
+    }    
35
     
46
     
36
     if (data.CHN && data.CHN.KaitiArr) {
47
     if (data.CHN && data.CHN.KaitiArr) {
37
       if (data.CHN.KaitiArr.length==1){
48
       if (data.CHN.KaitiArr.length==1){
@@ -47,7 +58,6 @@ Page({
47
       else{
58
       else{
48
         data.CHN.BiShunWidth="panelItemSmall";
59
         data.CHN.BiShunWidth="panelItemSmall";
49
       }
60
       }
50
-
51
     }
61
     }
52
 
62
 
53
     if (data.ENG && data.ENG.Paraphrase && common.checkIsArray(data.ENG.Paraphrase)) {
63
     if (data.ENG && data.ENG.Paraphrase && common.checkIsArray(data.ENG.Paraphrase)) {
@@ -289,8 +299,14 @@ Page({
289
   },
299
   },
290
   changeRead: function (e) {
300
   changeRead: function (e) {
291
     var id = e.currentTarget.dataset.id;
301
     var id = e.currentTarget.dataset.id;
302
+    var count=Object.getOwnPropertyNames(this.data.CSS).length;
303
+    for (var i=0;i<count;i++) {
304
+      delete this.data.CSS["CHN_PeomContent_" + i];
305
+    }
306
+    delete this.data.CSS["CHN_PeomContent"];
292
     this.setData({
307
     this.setData({
293
       IsPoemRead: id,
308
       IsPoemRead: id,
309
+      CSS:this.data.CSS,
294
     });
310
     });
295
   },
311
   },
296
   changeInfomation:function(e){
312
   changeInfomation:function(e){

+ 1 - 2
pages/main/addInfomationDetail.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "资料",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "资料"
4
 }
3
 }

+ 6 - 5
pages/main/addInfomationDetail.wxml

@@ -1,11 +1,7 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panelTop FlexRow">
2
   <view class="panelTop FlexRow">
3
     <view class="panelLeft FlexRow">
3
     <view class="panelLeft FlexRow">
4
-      <view class='panelTop1 FlexRow' catchtap='showHelp'>
5
-        <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
6
-      </view>
7
-    </view>
8
-    <image wx:if="{{Result.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
4
+      <image wx:if="{{Result.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
9
       src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
5
       src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
10
     <image wx:if="{{Result.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
6
     <image wx:if="{{Result.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
11
       src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
7
       src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
@@ -13,7 +9,12 @@
13
       src='../images/universalpic_dictionary_shici_black_53x27.png' />
9
       src='../images/universalpic_dictionary_shici_black_53x27.png' />
14
     <image wx:if="{{Result.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
10
     <image wx:if="{{Result.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
15
       src='../images/universalpic_dictionary_danci_black_53x28.png' />
11
       src='../images/universalpic_dictionary_danci_black_53x28.png' />
12
+      
13
+    </view>
16
     <view class="panelRight FlexRow">
14
     <view class="panelRight FlexRow">
15
+      <view class='panelTop1 FlexRow' catchtap='showHelp'>
16
+        <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
17
+      </view>
17
       <view class='panelTop1 FlexRow' catchtap="addData">
18
       <view class='panelTop1 FlexRow' catchtap="addData">
18
         <view class="panelTop3">添加</view>
19
         <view class="panelTop3">添加</view>
19
       </view>
20
       </view>

+ 2 - 1
pages/main/addInfomationDetail.wxss

@@ -9,7 +9,7 @@
9
 }
9
 }
10
 
10
 
11
 .panelLeft {
11
 .panelLeft {
12
-  margin-left: 20rpx;
12
+  margin-left: 30rpx;
13
   justify-content: flex-start;
13
   justify-content: flex-start;
14
 }
14
 }
15
 .panelRight {
15
 .panelRight {
@@ -186,6 +186,7 @@
186
   height:97rpx;
186
   height:97rpx;
187
   font-size:24rpx;
187
   font-size:24rpx;
188
   color:#4D4D4D;
188
   color:#4D4D4D;
189
+  border-bottom:1rpx solid #d2d2d2;
189
 }
190
 }
190
 
191
 
191
 .Select1 {
192
 .Select1 {

+ 42 - 36
pages/main/cardmain.js

@@ -31,6 +31,12 @@ Page({
31
   },
31
   },
32
   onShow:function(){
32
   onShow:function(){
33
     this.init();
33
     this.init();
34
+
35
+    if (wx.getStorageSync("TempCardNoSaved")) {
36
+      wx.navigateTo({
37
+        url: '../other/recover',
38
+      });
39
+    }
34
   },
40
   },
35
   init:function(){
41
   init:function(){
36
     var that=this;
42
     var that=this;
@@ -54,29 +60,40 @@ Page({
54
   },
60
   },
55
   getFolderList:function(e){
61
   getFolderList:function(e){
56
     var that=this;
62
     var that=this;
57
-    var order=["","","PanelBtnSelect","","",""];
58
-    var url="GetUserFolderList?UserID="+app.globalData.userInfo.UserID;
59
-    if (e){
60
-      url+="&OrderType="+e.currentTarget.dataset.order;
61
-      order[2]="";
62
-      order[e.currentTarget.dataset.index]="PanelBtnSelect";
63
-    }
64
-    
65
-    main.getData(url, function (data) {
66
-      if (data) {
67
-        var arr=data;
68
-        var item;
69
-        for(var i=0;i<arr.length;i++){
70
-          item=arr[i];
71
-          item.Width=item.IconName.substring(item.IconName.lastIndexOf("_")+1,item.IconName.lastIndexOf("x"));
72
-          item.Height=item.IconName.substring(item.IconName.lastIndexOf("x")+1);
63
+    var list=app.globalData.FolderList;
64
+    common.getStorageValue(that, "FolderOrder", ["","","PanelBtnSelect","","",""], function () {
65
+      if (list.length==0 || e){
66
+        var order=that.data.FolderOrder;
67
+        var url="GetUserFolderList?UserID="+app.globalData.userInfo.UserID;
68
+        if (e){
69
+          url+="&OrderType="+e.currentTarget.dataset.order;
70
+          order=["","","","","",""];
71
+          order[e.currentTarget.dataset.index]="PanelBtnSelect";
73
         }
72
         }
73
+        
74
+        main.getData(url, function (data) {
75
+          if (data) {
76
+            var arr=data;
77
+            var item;
78
+            for(var i=0;i<arr.length;i++){
79
+              item=arr[i];
80
+              item.Width=item.IconName.substring(item.IconName.lastIndexOf("_")+1,item.IconName.lastIndexOf("x"));
81
+              item.Height=item.IconName.substring(item.IconName.lastIndexOf("x")+1);
82
+            }
83
+            that.setData({
84
+              FolderArr:data,
85
+              IsShowOrder:false,
86
+              FolderOrder:order,
87
+            });
88
+            app.globalData.FolderList=data;
89
+            wx.setStorageSync('FolderOrder', order);
90
+          }
91
+        });
92
+      }
93
+      else{
74
         that.setData({
94
         that.setData({
75
-          FolderArr:data,
76
-          IsShowOrder:false,
77
-          Order:order,
95
+          FolderArr:app.globalData.FolderList,
78
         });
96
         });
79
-        app.globalData.FolderList=data;
80
       }
97
       }
81
     });
98
     });
82
   },
99
   },
@@ -91,21 +108,6 @@ Page({
91
       url: './' + url,
108
       url: './' + url,
92
     })
109
     })
93
   },
110
   },
94
-  onSearch: function (e) {
95
-    wx.navigateTo({
96
-      url: './searchCard',
97
-    })
98
-  },
99
-  gotoUserbook: function (e) {
100
-    wx.navigateTo({
101
-      url: '../other/userbook',
102
-    })
103
-  },
104
-  gotoAnnualReport: function (e) {
105
-    wx.navigateTo({
106
-      url: '../other/annualreport',
107
-    })
108
-  },
109
   getList: function (e) {
111
   getList: function (e) {
110
     wx.showLoading({
112
     wx.showLoading({
111
       title: '请稍候',
113
       title: '请稍候',
@@ -180,10 +182,14 @@ Page({
180
             app.globalData.CardList= data.List;
182
             app.globalData.CardList= data.List;
181
             url2='./mainlist?type=0&Count=' + data.Count+'&IsCollect='+isCollect+'&CardType='+cardType;
183
             url2='./mainlist?type=0&Count=' + data.Count+'&IsCollect='+isCollect+'&CardType='+cardType;
182
             if (folderid){
184
             if (folderid){
185
+              var name=e.currentTarget.dataset.name;
186
+              if (name.indexOf("????")>=0){
187
+                name=name.replace("????","");
188
+              }
183
               url2='./mainlist?type=0&Count=' + data.Count+'&FolderID='+folderid;
189
               url2='./mainlist?type=0&Count=' + data.Count+'&FolderID='+folderid;
184
               url2+='&ColorName='+e.currentTarget.dataset.color;
190
               url2+='&ColorName='+e.currentTarget.dataset.color;
185
               url2+='&IconName='+e.currentTarget.dataset.icon;
191
               url2+='&IconName='+e.currentTarget.dataset.icon;
186
-              url2+='&Name='+e.currentTarget.dataset.name;
192
+              url2+='&Name='+name;
187
             }
193
             }
188
             wx.navigateTo({
194
             wx.navigateTo({
189
               url: url2,
195
               url: url2,

+ 1 - 2
pages/main/cardmain.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "题卡",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "题卡"
4
 }
3
 }

+ 10 - 10
pages/main/cardmain.wxml

@@ -1,7 +1,7 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
 
2
 
3
   <view class="panelSearch FlexRow">
3
   <view class="panelSearch FlexRow">
4
-    <view class="panelSearch1 FlexRow" bindtap="onSearch">
4
+    <view class="panelSearch1 FlexRow" bindtap="goto" data-url="./searchCard">
5
       <image class="universalpic_magnifier_black_30x30" src='../images/universalpic_magnifier_black_30x30.png' />
5
       <image class="universalpic_magnifier_black_30x30" src='../images/universalpic_magnifier_black_30x30.png' />
6
       <view>搜题卡</view>
6
       <view>搜题卡</view>
7
     </view>
7
     </view>
@@ -70,7 +70,7 @@
70
 
70
 
71
 
71
 
72
   <block wx:if="{{IsYearReport}}">
72
   <block wx:if="{{IsYearReport}}">
73
-    <view class="panelItem5 FlexRow" bindtap="gotoAnnualReport">
73
+    <view class="panelItem5 FlexRow" bindtap="goto" data-url="../other/annualreport">
74
       <view class="panelItem51 FlexColumn">
74
       <view class="panelItem51 FlexColumn">
75
         2020年度秒过用户年报
75
         2020年度秒过用户年报
76
       </view>
76
       </view>
@@ -94,8 +94,8 @@
94
     </view>
94
     </view>
95
   </view>
95
   </view>
96
   <view class="panelItem7 FlexRow" wx:if="{{FolderArr.length==0}}">
96
   <view class="panelItem7 FlexRow" wx:if="{{FolderArr.length==0}}">
97
-    <view class="panelFolder FlexColumn" bindtap="goto" data-url="./folderEdit?type=add">
98
-      <image class="universalpic_add_black_22x22" src='../images/universalpic_add_black_22x22.png' />
97
+    <view class="panelFolder2 panelFolder FlexColumn" bindtap="goto" data-url="./folderEdit?type=add">
98
+      <image class="universalpic_add_black_34x34" src='../images/universalpic_add_black_34x34.png' />
99
       <view class="panelItem71">新建卡单</view>
99
       <view class="panelItem71">新建卡单</view>
100
     </view>
100
     </view>
101
   </view>
101
   </view>
@@ -159,17 +159,17 @@
159
         <view class="PanelOrder32 PanelOrder31">按题卡清单更新时间</view>
159
         <view class="PanelOrder32 PanelOrder31">按题卡清单更新时间</view>
160
       </view>
160
       </view>
161
       <view class="PanelOrder2 FlexRow">
161
       <view class="PanelOrder2 FlexRow">
162
-        <view class="{{Order[0]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime desc" data-index='0'>最近</view>
163
-        <view class="{{Order[1]}} PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime asc" data-index='1'>最早</view>
164
-        <view class="{{Order[2]}} PanelOrderBtn" catchtap="getFolderList" data-order="UpdateTime desc" data-index='2'>最近</view>
165
-        <view class="{{Order[3]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="Update asc" data-index='3'>最早</view>
162
+        <view class="{{FolderOrder[1]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime asc" data-index='1'>最早</view>
163
+        <view class="{{FolderOrder[0]}} PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime desc" data-index='0'>最近</view>
164
+        <view class="{{FolderOrder[3]}} PanelOrderBtn" catchtap="getFolderList" data-order="Update asc" data-index='3'>最早</view>
165
+        <view class="{{FolderOrder[2]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="UpdateTime desc" data-index='2'>最近</view>
166
       </view>
166
       </view>
167
       <view class="PanelOrder1 FlexRow">
167
       <view class="PanelOrder1 FlexRow">
168
         <view class="PanelOrder31">按题卡数量</view>
168
         <view class="PanelOrder31">按题卡数量</view>
169
       </view>
169
       </view>
170
       <view class="PanelOrder2 FlexRow">
170
       <view class="PanelOrder2 FlexRow">
171
-        <view class="{{Order[4]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="Total asc" data-index='4'>较少</view>
172
-        <view class="{{Order[5]}} PanelOrderBtn"  catchtap="getFolderList" data-order="Total desc" data-index='5'>较多</view>
171
+        <view class="{{FolderOrder[4]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="Total asc" data-index='4'>较少</view>
172
+        <view class="{{FolderOrder[5]}} PanelOrderBtn"  catchtap="getFolderList" data-order="Total desc" data-index='5'>较多</view>
173
         <view class="PanelOrderBtn0"></view>
173
         <view class="PanelOrderBtn0"></view>
174
       </view>
174
       </view>
175
       <view class="PanelOrderLine60"></view>
175
       <view class="PanelOrderLine60"></view>

+ 9 - 2
pages/main/cardmain.wxss

@@ -130,7 +130,7 @@
130
   background-color: #fff;
130
   background-color: #fff;
131
   border-radius: 20rpx;
131
   border-radius: 20rpx;
132
   justify-content: space-between;
132
   justify-content: space-between;
133
-  margin: 30rpx 0;
133
+  margin: 30rpx 0 0 0;
134
 }
134
 }
135
 
135
 
136
 .panelItem51{
136
 .panelItem51{
@@ -177,6 +177,11 @@
177
   margin: 0 0 0 10rpx;
177
   margin: 0 0 0 10rpx;
178
 }
178
 }
179
 
179
 
180
+.universalpic_add_black_34x34{
181
+  width:34rpx;
182
+  height:34rpx;
183
+  margin-bottom: 10rpx;
184
+}
180
 .universalpic_add_black_22x22{
185
 .universalpic_add_black_22x22{
181
   width:22rpx;
186
   width:22rpx;
182
   height:22rpx;
187
   height:22rpx;
@@ -199,7 +204,6 @@
199
   width:345rpx;
204
   width:345rpx;
200
   height:210rpx;
205
   height:210rpx;
201
   border-radius: 10rpx;
206
   border-radius: 10rpx;
202
-  border:2rpx solid #E3E3E3;
203
   margin:20rpx 0 0 20rpx;
207
   margin:20rpx 0 0 20rpx;
204
 }
208
 }
205
 .universalpic_add_black_34x34{
209
 .universalpic_add_black_34x34{
@@ -221,6 +225,9 @@
221
   border-top-left-radius: 10rpx;
225
   border-top-left-radius: 10rpx;
222
   border-top-right-radius: 10rpx;
226
   border-top-right-radius: 10rpx;
223
 }
227
 }
228
+.panelFolder2{
229
+  border:2rpx solid #e3e3e3;
230
+}
224
 .panelItem72{
231
 .panelItem72{
225
   width: 305rpx;
232
   width: 305rpx;
226
   height:80rpx;
233
   height:80rpx;

+ 7 - 19
pages/main/default.js

@@ -250,6 +250,9 @@ Page({
250
                   AwardDayNumber:award,
250
                   AwardDayNumber:award,
251
                 });
251
                 });
252
               });
252
               });
253
+
254
+              //判断每30天是否是高级模式
255
+              wx.removeStorageSync('IsShowPatternMenu');
253
             }
256
             }
254
           });
257
           });
255
         }
258
         }
@@ -258,7 +261,7 @@ Page({
258
   },
261
   },
259
   isNoSavedCard: function () {
262
   isNoSavedCard: function () {
260
     var that = this;
263
     var that = this;
261
-    //判断是否有未保存的卡
264
+    //判断是否有系统故障
262
     if (app.globalData.userInfo.IsMaintain == 1) {
265
     if (app.globalData.userInfo.IsMaintain == 1) {
263
       that.setData({
266
       that.setData({
264
         IsMaintain: app.globalData.userInfo.IsMaintain,
267
         IsMaintain: app.globalData.userInfo.IsMaintain,
@@ -270,13 +273,9 @@ Page({
270
     }
273
     }
271
     //判断是否有未保存的卡
274
     //判断是否有未保存的卡
272
     else if (wx.getStorageSync("TempCardNoSaved")) {
275
     else if (wx.getStorageSync("TempCardNoSaved")) {
273
-      that.setData({
274
-        IsTempCardNoSaved: true,
276
+      wx.navigateTo({
277
+        url: '../other/recover',
275
       });
278
       });
276
-      wx.setNavigationBarColor({
277
-        frontColor: "#ffffff",
278
-        backgroundColor: "#0B8457",
279
-      })
280
     }
279
     }
281
     else {
280
     else {
282
       that.setData({
281
       that.setData({
@@ -288,18 +287,7 @@ Page({
288
       });
287
       });
289
     }
288
     }
290
   },
289
   },
291
-  onOpenTempCard: function () {
292
-    var card = wx.getStorageSync("TempCardNoSaved");
293
-    app.globalData.CardList = [card];
294
-    wx.navigateTo({
295
-      url: './add?type=add2&id=' + card.MiaoguoCardID,
296
-    });
297
-  },
298
-  onGiveupTempCard: function () {
299
-    var that = this;
300
-    wx.removeStorageSync("TempCardNoSaved");
301
-    that.isNoSavedCard();
302
-  },
290
+  
303
   gotoCardmain: function () {
291
   gotoCardmain: function () {
304
     wx.reLaunch({
292
     wx.reLaunch({
305
       url: './cardmain',
293
       url: './cardmain',

+ 4 - 10
pages/main/default.wxml

@@ -41,12 +41,6 @@
41
   <view class="ChangeUser" bindtap="showUserID"></view>
41
   <view class="ChangeUser" bindtap="showUserID"></view>
42
 </view>
42
 </view>
43
 
43
 
44
-<view wx:if="{{IsTempCardNoSaved}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
45
-  <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
46
-  <text class='RemindText'>新消息\n刚刚救回了一张尚未\n保存的题卡</text>
47
-  <view class='btn1' catchtap="onOpenTempCard">打开</view>
48
-  <view class='btn1' catchtap="onGiveupTempCard">丢弃</view>
49
-</view>
50
 
44
 
51
 <view wx:if="{{IsMaintain}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
45
 <view wx:if="{{IsMaintain}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
52
   <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
46
   <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
@@ -62,7 +56,7 @@
62
 
56
 
63
 <view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
57
 <view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
64
     <view class="panel2 FlexRow">
58
     <view class="panel2 FlexRow">
65
-    <input class='input2 input' type="number" value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
59
+    <input class='input2 input' type="number"  always-embed="true"  value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
66
     <button class="btn2" bindtap="setSelectUser">查看用户</button>
60
     <button class="btn2" bindtap="setSelectUser">查看用户</button>
67
     </view>
61
     </view>
68
     <view style="height:50rpx;"></view>
62
     <view style="height:50rpx;"></view>
@@ -74,7 +68,7 @@
74
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
68
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
75
     <view style="height:50rpx;"></view>
69
     <view style="height:50rpx;"></view>
76
     <view class="panel2 FlexRow">
70
     <view class="panel2 FlexRow">
77
-      <input class='input2 input' type="number" placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
71
+      <input class='input2 input' type="number"  always-embed="true"  placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
78
       <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeNewUserID}}" data-type="0">查看</button>
72
       <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeNewUserID}}" data-type="0">查看</button>
79
     </view>
73
     </view>
80
     <view class="panel2 FlexRow" wx:if="{{NewUserAvatar}}">
74
     <view class="panel2 FlexRow" wx:if="{{NewUserAvatar}}">
@@ -82,7 +76,7 @@
82
       <view class="NickName2">{{NewUserNickName}}</view>
76
       <view class="NickName2">{{NewUserNickName}}</view>
83
     </view>
77
     </view>
84
     <view class="panel2 FlexRow">
78
     <view class="panel2 FlexRow">
85
-      <input class='input2 input' type="number" placeholder="介绍人ID" value="{{ChangeIntroducerUserID}}" bindinput="onKeyInput" data-type="introduceruserid"/>
79
+      <input class='input2 input' type="number"  always-embed="true"  placeholder="介绍人ID" value="{{ChangeIntroducerUserID}}" bindinput="onKeyInput" data-type="introduceruserid"/>
86
       <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeIntroducerUserID}}" data-type="1">查看</button>
80
       <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeIntroducerUserID}}" data-type="1">查看</button>
87
     </view>
81
     </view>
88
     <view class="panel2 FlexRow" wx:if="{{IntroducerAvatar}}">
82
     <view class="panel2 FlexRow" wx:if="{{IntroducerAvatar}}">
@@ -92,7 +86,7 @@
92
     <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
86
     <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
93
     <view style="height:50rpx;"></view>
87
     <view style="height:50rpx;"></view>
94
     <view class="panel2 FlexRow">
88
     <view class="panel2 FlexRow">
95
-      <input class='input2 input' type="number" placeholder="版本号" value="{{VersionID}}" bindinput="onKeyInput" data-type="versionid"/>
89
+      <input class='input2 input' type="number"  always-embed="true"  placeholder="版本号" value="{{VersionID}}" bindinput="onKeyInput" data-type="versionid"/>
96
       <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="1">开通</button>
90
       <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="1">开通</button>
97
       <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="-1">关闭</button>
91
       <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="-1">关闭</button>
98
     </view>
92
     </view>

+ 33 - 14
pages/main/detail.js

@@ -416,9 +416,10 @@ Page({
416
     list.push(TaskList[0]);
416
     list.push(TaskList[0]);
417
     app.globalData.CardList = list;
417
     app.globalData.CardList = list;
418
     wx.navigateTo({
418
     wx.navigateTo({
419
-      url: './add?type=edit&id=' + TaskList[0].MiaoguoCardID,
419
+      url: './add?type=edit1&id=' + TaskList[0].MiaoguoCardID,
420
     });
420
     });
421
     isExit = false;
421
     isExit = false;
422
+    clearTimeout(timeoutEveryCard);
422
   },
423
   },
423
   onFontSize: function (e) {
424
   onFontSize: function (e) {
424
     var value = e.currentTarget.dataset.value;
425
     var value = e.currentTarget.dataset.value;
@@ -667,7 +668,6 @@ Page({
667
           IsMore: false,
668
           IsMore: false,
668
         });
669
         });
669
         clearTimeout(timeoutEveryCard);
670
         clearTimeout(timeoutEveryCard);
670
-
671
         that.setSoundFile(1);
671
         that.setSoundFile(1);
672
         main.UpdateMiaoguoCardTodayAll(true, function () {
672
         main.UpdateMiaoguoCardTodayAll(true, function () {
673
           listTaskFinished = [];
673
           listTaskFinished = [];
@@ -720,18 +720,24 @@ Page({
720
       //计算暂停时已经用掉的时长
720
       //计算暂停时已经用掉的时长
721
       timeHistory += common.diffDate("s", timeStart, new Date());
721
       timeHistory += common.diffDate("s", timeStart, new Date());
722
       console.log("timeHistory:" + timeHistory);
722
       console.log("timeHistory:" + timeHistory);
723
-      wx.showModal({
724
-        title: '提醒',
725
-        content: '您已等待了' + app.globalData.CardWaitTimeMax + '分钟',
726
-        showCancel: false,
727
-        confirmText: "知道了",
728
-        success(res) {
729
-          clearTimeout(timeoutEveryCard);
730
-          if (res.confirm) {
731
-            that.timeCompute();
732
-          }
733
-        },
734
-      })
723
+
724
+      if (!(that.data.NumberNew == 0 &&
725
+        that.data.NumberReview == 0 &&
726
+        that.data.NumberHistory == 0)){
727
+          wx.showModal({
728
+            title: '提醒',
729
+            content: '您已等待了' + app.globalData.CardWaitTimeMax + '分钟',
730
+            showCancel: false,
731
+            confirmText: "知道了",
732
+            success(res) {
733
+              clearTimeout(timeoutEveryCard);
734
+              if (res.confirm) {
735
+                that.timeCompute();
736
+              }
737
+            },
738
+          });
739
+        }
740
+      
735
     }, app.globalData.CardWaitTimeMax * 60 * 1000);
741
     }, app.globalData.CardWaitTimeMax * 60 * 1000);
736
   },
742
   },
737
   gotoCollect: function () {
743
   gotoCollect: function () {
@@ -1057,6 +1063,19 @@ Page({
1057
       }
1063
       }
1058
     });
1064
     });
1059
   },
1065
   },
1066
+  saveCardType:function(){
1067
+    var that=this;
1068
+    var url = 'UpdateMiaoguoCardType?UserID=' + app.globalData.userInfo.UserID;
1069
+    url += "&CardType=-1";
1070
+    url += "&ID=" + TaskList[0].MiaoguoCardID;
1071
+    main.getData(url, function (data) {
1072
+      TaskList.splice(0, 1);
1073
+      that.setData({
1074
+        TaskInfo: TaskList[0],
1075
+      });
1076
+      that.closeNumberContainner();
1077
+    });
1078
+  },
1060
   goto: function (e) {
1079
   goto: function (e) {
1061
     var url = e.currentTarget.dataset.url;
1080
     var url = e.currentTarget.dataset.url;
1062
     wx.navigateTo({
1081
     wx.navigateTo({

+ 8 - 7
pages/main/detail.wxml

@@ -13,8 +13,8 @@
13
     <view class='panelTop FlexRow' style='background-color:{{Color.BackColor}};'>
13
     <view class='panelTop FlexRow' style='background-color:{{Color.BackColor}};'>
14
       <view class='panelCancel FlexRow' catchtap='gotoCollect'>
14
       <view class='panelCancel FlexRow' catchtap='gotoCollect'>
15
         <view class='panelCancel0 FlexRow'>
15
         <view class='panelCancel0 FlexRow'>
16
-          <image hidden='{{TaskInfo.IsCollect}}' src="../images/universalpic_fav_default_gray_26x24.png" class='universalpic_fav_default_gray_26x24' />
17
-          <image hidden='{{!TaskInfo.IsCollect}}' src="../images/universalpic_fav_enable_tc0{{Color.ID}}_26x24.png" class='universalpic_fav_default_gray_26x24' />
16
+          <image hidden='{{TaskInfo.IsCollect}}' src="../images/universalpic_star_gray_34x34.png" class='universalpic_star_gray_34x34' />
17
+          <image hidden='{{!TaskInfo.IsCollect}}' src="../images/universalpic_star_tc0{{Color.ID}}_34x34.png" class='universalpic_star_gray_34x34' />
18
         </view>
18
         </view>
19
       </view>
19
       </view>
20
       <view class='panelCancel FlexRow' catchtap='onMore'>
20
       <view class='panelCancel FlexRow' catchtap='onMore'>
@@ -64,9 +64,10 @@
64
     <view class='footer0'></view>
64
     <view class='footer0'></view>
65
 
65
 
66
     <!-- 下方按钮 -->
66
     <!-- 下方按钮 -->
67
-    <image class="footerShade" src="../images/study_learning_bgimage_tc0{{Color.ID}}.png" />
67
+    <image wx:if="{{!IsIPad}}" class="footerShade" src="../images/study_learning_bgimage_tc0{{Color.ID}}.png" />
68
     <view class='footer FlexColumn'>
68
     <view class='footer FlexColumn'>
69
-      <image class="footerImage" src="../images/study_learning_maskimage_tc0{{Color.ID}}.png" />
69
+      <image wx:if="{{!IsIPad}}" class="footerImage" src="../images/study_learning_maskimage_tc0{{Color.ID}}.png" />
70
+      <view wx:if="{{IsIPad}}" class="footerImage" style="background-color:{{Color.BackColor}}"></view>
70
       <view class="panelFooter FlexColumn" wx:if="{{!IsShowAnswer[0] && !IsShowAnswer[1] && ClickType!=1}}" catchtap="onShowAnswer">
71
       <view class="panelFooter FlexColumn" wx:if="{{!IsShowAnswer[0] && !IsShowAnswer[1] && ClickType!=1}}" catchtap="onShowAnswer">
71
         看答案
72
         看答案
72
       </view>
73
       </view>
@@ -204,9 +205,9 @@
204
       </view>
205
       </view>
205
       <view class='lineFooter'></view>
206
       <view class='lineFooter'></view>
206
 
207
 
207
-      <view class='numberContainerFooter102 FlexRow' catchtap='goto' data-url="{{ './previewMenu?IsSave=1&CardType='+TaskInfo.CardType+'&ID='+TaskInfo.MiaoguoCardID}}">
208
-        <image src="../images/universalpic_plan_6dots_gray_30x32.png" class='universalpic_plan_6dots_gray_30x32' />
209
-        <view class='numberContainerFooter111'>更改学习计划(该题卡属于{{StudyPlanArray[TaskInfo.CardType]}}练习)</view>
208
+      <view class='numberContainerFooter102 FlexRow' catchtap='saveCardType'>
209
+        <image src="../images/universalpic_practisemodel_gray_30x28.png" class='universalpic_practisemodel_gray_30x28' />
210
+        <view class='numberContainerFooter111'>把这张题卡归档</view>
210
       </view>      
211
       </view>      
211
       <view class='lineFooter'></view>
212
       <view class='lineFooter'></view>
212
     </view>
213
     </view>

+ 6 - 10
pages/main/detail.wxss

@@ -50,9 +50,9 @@ page{
50
   height: 25rpx;
50
   height: 25rpx;
51
 }
51
 }
52
 
52
 
53
-.universalpic_fav_default_gray_26x24 {
54
-  width: 26rpx;
55
-  height: 24rpx;
53
+.universalpic_star_gray_34x34 {
54
+  width: 34rpx;
55
+  height: 34rpx;
56
 }
56
 }
57
 
57
 
58
 .panelNumber {
58
 .panelNumber {
@@ -254,6 +254,7 @@ page{
254
 .panelItem .textNormal {
254
 .panelItem .textNormal {
255
   min-height: 50rpx;
255
   min-height: 50rpx;
256
   overflow:hidden; 
256
   overflow:hidden; 
257
+  color:#fff;
257
 }
258
 }
258
 
259
 
259
 .panelItem .textNormal2 {
260
 .panelItem .textNormal2 {
@@ -277,10 +278,6 @@ page{
277
   border-radius: 10rpx;
278
   border-radius: 10rpx;
278
 }
279
 }
279
 
280
 
280
-.panelItem .universalpic_voicerecorder_transmit_black_44x34{
281
-  width: 44rpx;
282
-  height: 34rpx;
283
-}
284
 
281
 
285
 .panelItem .imageContainer {
282
 .panelItem .imageContainer {
286
   width: 650rpx;
283
   width: 650rpx;
@@ -339,7 +336,6 @@ page{
339
   height:80rpx;
336
   height:80rpx;
340
   z-index: 10;
337
   z-index: 10;
341
 }
338
 }
342
-
343
 .panelFooter {
339
 .panelFooter {
344
   width: 710rpx;
340
   width: 710rpx;
345
   margin-bottom: 20rpx;
341
   margin-bottom: 20rpx;
@@ -666,9 +662,9 @@ page{
666
   margin: 0 30rpx;
662
   margin: 0 30rpx;
667
 }
663
 }
668
 
664
 
669
-.universalpic_plan_6dots_gray_30x32{
665
+.universalpic_practisemodel_gray_30x28{
670
   width: 30rpx; 
666
   width: 30rpx; 
671
-  height: 32rpx;
667
+  height: 28rpx;
672
   margin: 0 30rpx;
668
   margin: 0 30rpx;
673
 }
669
 }
674
 
670
 

+ 17 - 4
pages/main/folderEdit.js

@@ -91,10 +91,20 @@ Page({
91
       });
91
       });
92
     }
92
     }
93
     else{
93
     else{
94
-      wx.showLoading();
94
+      wx.showLoading({
95
+        title: '保存中',
96
+      });
97
+
98
+      var name=that.data.FolderName;
99
+      if (name.length>0){
100
+        name=name.replace("\r","");
101
+        name=name.replace("\n","");
102
+      }
95
       var url="UpdateFolderInfo?UserID=" + app.globalData.userInfo.UserID;
103
       var url="UpdateFolderInfo?UserID=" + app.globalData.userInfo.UserID;
96
       url+="&FolderID="+that.data.FolderID;
104
       url+="&FolderID="+that.data.FolderID;
97
-      url+="&Name="+that.data.FolderName;
105
+      url+="&Name="+name;
106
+      if (!that.data.FolderColor)
107
+        that.data.FolderColor="#6B727C";
98
       url+="&ColorName="+that.data.FolderColor.substr(1);
108
       url+="&ColorName="+that.data.FolderColor.substr(1);
99
       url+="&IconName="+that.data.FolderIcon.ImageUrl;
109
       url+="&IconName="+that.data.FolderIcon.ImageUrl;
100
       main.getData(url, function (data) {
110
       main.getData(url, function (data) {
@@ -125,19 +135,22 @@ Page({
125
     wx.showModal({
135
     wx.showModal({
126
       title: '提醒',
136
       title: '提醒',
127
       showCancel: true,
137
       showCancel: true,
128
-      content: "卡单删除后不能恢复,确定删除吗?",
138
+      content: "删除卡单不能恢复。删除后原卡单里的题卡将不属于任何卡单。您确定删除吗?",
129
       cancelText:"确定",
139
       cancelText:"确定",
130
       confirmText: "取消",
140
       confirmText: "取消",
131
       confirmColor:"#000000",
141
       confirmColor:"#000000",
132
       success(res) {
142
       success(res) {
133
         if (!res.confirm) { 
143
         if (!res.confirm) { 
134
-          wx.showLoading();
144
+          wx.showLoading({
145
+            title: '删除中',
146
+          });
135
           var url="UpdateFolderInfo?UserID=" + app.globalData.userInfo.UserID;
147
           var url="UpdateFolderInfo?UserID=" + app.globalData.userInfo.UserID;
136
           url+="&FolderID="+that.data.FolderID;
148
           url+="&FolderID="+that.data.FolderID;
137
           url+="&Flag=-1";
149
           url+="&Flag=-1";
138
           main.getData(url, function (data) {
150
           main.getData(url, function (data) {
139
             setTimeout(function(){
151
             setTimeout(function(){
140
               wx.hideLoading();
152
               wx.hideLoading();
153
+              app.globalData.FolderList=[];
141
               that.close(2);
154
               that.close(2);
142
             },2000);
155
             },2000);
143
           }); 
156
           }); 

+ 1 - 1
pages/main/folderEdit.wxml

@@ -16,7 +16,7 @@
16
     <view class="panel12">还可以输入{{FolderNameCount}}个字</view>
16
     <view class="panel12">还可以输入{{FolderNameCount}}个字</view>
17
   </view>
17
   </view>
18
   <view class="panel2 FlexRow">
18
   <view class="panel2 FlexRow">
19
-    <input class='input' bindinput="onKeyInput" value="{{FolderName}}"
19
+    <input class='input' bindinput="onKeyInput" value="{{FolderName}}"  always-embed="true" 
20
           placeholder="输入卡单名称" confirm-type="done" />
20
           placeholder="输入卡单名称" confirm-type="done" />
21
         
21
         
22
   </view>
22
   </view>

+ 2 - 0
pages/main/folderEdit.wxss

@@ -61,6 +61,7 @@
61
   background-color: #fff;
61
   background-color: #fff;
62
   border-radius: 10rpx;
62
   border-radius: 10rpx;
63
   margin-top:33rpx;
63
   margin-top:33rpx;
64
+  justify-content: flex-start;
64
 }
65
 }
65
 
66
 
66
 .input{
67
 .input{
@@ -124,6 +125,7 @@
124
   margin-top:100rpx;
125
   margin-top:100rpx;
125
   font-size:28rpx;
126
   font-size:28rpx;
126
   color:#FE6659;
127
   color:#FE6659;
128
+  justify-content: center;
127
 }
129
 }
128
 
130
 
129
 .panel7{
131
 .panel7{

+ 10 - 3
pages/main/folderIcon.js

@@ -61,13 +61,20 @@ Page({
61
     var that=this;
61
     var that=this;
62
     var index=e.currentTarget.dataset.index;
62
     var index=e.currentTarget.dataset.index;
63
     var arr=that.data.ColorArr;
63
     var arr=that.data.ColorArr;
64
+    var color="";
64
     for(var i=0;i<arr.length;i++){
65
     for(var i=0;i<arr.length;i++){
65
       arr[i].SelectColor=false;
66
       arr[i].SelectColor=false;
66
-      if (index==i)
67
+      if (index==i){
67
         arr[i].SelectColor=true;
68
         arr[i].SelectColor=true;
69
+        color=arr[i].Color;
70
+      }
68
     }
71
     }
69
     that.setData({
72
     that.setData({
70
-      ColorArr:arr
73
+      ColorArr:arr,
74
+      BackColor:color,
75
+    });
76
+    wx.setBackgroundColor({
77
+      backgroundColorBottom: color,
71
     });
78
     });
72
   },
79
   },
73
   selectIcon:function(e){
80
   selectIcon:function(e){
@@ -80,7 +87,7 @@ Page({
80
         arr[i].SelectIcon="panelIconSelect";
87
         arr[i].SelectIcon="panelIconSelect";
81
     }
88
     }
82
     that.setData({
89
     that.setData({
83
-      IconArr:arr
90
+      IconArr:arr,
84
     });
91
     });
85
   },
92
   },
86
   save:function(){
93
   save:function(){

+ 2 - 1
pages/main/folderIcon.json

@@ -1,4 +1,5 @@
1
 {
1
 {
2
   "navigationBarTitleText": "图标封面",
2
   "navigationBarTitleText": "图标封面",
3
-  "backgroundColor": "#F2F2F2"
3
+  "backgroundColor": "#F2F2F2",
4
+  "backgroundColorBottom":"#F2F2F2"
4
 }
5
 }

+ 1 - 1
pages/main/folderIcon.wxml

@@ -28,7 +28,7 @@
28
     <view class="panel11">选择图标</view>
28
     <view class="panel11">选择图标</view>
29
   </view>
29
   </view>
30
 
30
 
31
-  <view class="panel3 FlexRow">
31
+  <view class="panel3 FlexRow" style="background-color:{{BackColor}}">
32
     <view class="{{item.SelectIcon}} panel31 FlexRow" wx:for="{{IconArr}}" wx:key="index" bindtap="selectIcon" data-index="{{index}}">
32
     <view class="{{item.SelectIcon}} panel31 FlexRow" wx:for="{{IconArr}}" wx:key="index" bindtap="selectIcon" data-index="{{index}}">
33
       <image src='{{ImagePath}}web/{{item.ImageUrl}}.png' style="width:{{item.Width}}rpx;height:{{item.Height}}rpx;"/>
33
       <image src='{{ImagePath}}web/{{item.ImageUrl}}.png' style="width:{{item.Width}}rpx;height:{{item.Height}}rpx;"/>
34
     </view>
34
     </view>

+ 57 - 51
pages/main/mainlist.js

@@ -84,16 +84,8 @@ Page({
84
       });
84
       });
85
     } else if (options.type == 1) { //未练完的情况
85
     } else if (options.type == 1) { //未练完的情况
86
       IsToday = 1;
86
       IsToday = 1;
87
-      var od=5;
88
-      for(var k=0;k<arrOrder.length;k++){
89
-        if (k==od)
90
-          arrOrder[k].CSS = "PanelBtnSelect2";
91
-        else
92
-          arrOrder[k].CSS = "";
93
-      }
87
+      that.setOrderSelect(5);
94
       that.setData({
88
       that.setData({
95
-        ArrOrder: arrOrder,
96
-        OrderType:od,
97
         CardShowDetail: 2,
89
         CardShowDetail: 2,
98
       });
90
       });
99
       wx.setNavigationBarTitle({
91
       wx.setNavigationBarTitle({
@@ -101,16 +93,8 @@ Page({
101
       });
93
       });
102
     } else if (options.type == 2) { //练完的情况
94
     } else if (options.type == 2) { //练完的情况
103
       IsToday = 2;
95
       IsToday = 2;
104
-      var od=1;
105
-      for(var k=0;k<arrOrder.length;k++){
106
-        if (k==od)
107
-          arrOrder[k].CSS = "PanelBtnSelect2";
108
-        else
109
-          arrOrder[k].CSS = "";
110
-      }
96
+      that.setOrderSelect(1);
111
       that.setData({
97
       that.setData({
112
-        ArrOrder: arrOrder,
113
-        OrderType:od,
114
         CardShowDetail: 3,
98
         CardShowDetail: 3,
115
       });
99
       });
116
       wx.setNavigationBarTitle({
100
       wx.setNavigationBarTitle({
@@ -147,19 +131,15 @@ Page({
147
       } else if (options.CardType == -1) {
131
       } else if (options.CardType == -1) {
148
         title = "归档"; 
132
         title = "归档"; 
149
 
133
 
150
-        delete arrOrder[4].CSS;
151
-        arrOrder[10].CSS = "PanelBtnSelect2";
134
+        that.setOrderSelect(10);
152
         that.setData({
135
         that.setData({
153
-          ArrOrder: arrOrder,
154
           CardShowDetail: 2,
136
           CardShowDetail: 2,
155
         });
137
         });
156
       } else if (options.CardType == -2) {
138
       } else if (options.CardType == -2) {
157
-        title = "回收";
139
+        title = "回收";
158
 
140
 
159
-        delete arrOrder[4].CSS;
160
-        arrOrder[10].CSS = "PanelBtnSelect2";
141
+        that.setOrderSelect(10);
161
         that.setData({
142
         that.setData({
162
-          ArrOrder: arrOrder,
163
           CardShowDetail: 2,
143
           CardShowDetail: 2,
164
         });
144
         });
165
       }
145
       }
@@ -180,7 +160,6 @@ Page({
180
       PageType: options.type, //列表类型,1 今天未练完 2 今天已经练完
160
       PageType: options.type, //列表类型,1 今天未练完 2 今天已经练完
181
       IsNew: options.IsNew, //
161
       IsNew: options.IsNew, //
182
     });
162
     });
183
-
184
   },
163
   },
185
   onShow: function () {
164
   onShow: function () {
186
     var that = this;
165
     var that = this;
@@ -216,24 +195,12 @@ Page({
216
       });
195
       });
217
       app.globalData.TempStr="";
196
       app.globalData.TempStr="";
218
     }
197
     }
219
-  },
220
-  onPullDownRefresh: function () {
221
-    var that = this;
222
-    if (that.data.PrintID) {
223
-      that.getPrintList();
224
-    } else {
225
-      if (!that.data.FolderID && !that.data.IsCollect && !that.data.IsToday) {
226
-        app.globalData.CardList = [];
227
-        that.gotoNextPage({
228
-          currentTarget: {
229
-            dataset: {
230
-              id: 0
231
-            }
232
-          }
233
-        });
234
-      }
198
+
199
+    if (wx.getStorageSync("TempCardNoSaved")) {
200
+      wx.navigateTo({
201
+        url: '../other/recover',
202
+      });
235
     }
203
     }
236
-    wx.stopPullDownRefresh();
237
   },
204
   },
238
   getList: function () {
205
   getList: function () {
239
     var that = this;
206
     var that = this;
@@ -327,7 +294,7 @@ Page({
327
           }
294
           }
328
         }
295
         }
329
       });
296
       });
330
-    } else if (that.data.Search) {
297
+    } else if (that.data.Search || that.data.FolderID > 0) {
331
       var hasPage = false;
298
       var hasPage = false;
332
       if (list.length < that.data.Count)
299
       if (list.length < that.data.Count)
333
         hasPage = true;
300
         hasPage = true;
@@ -381,8 +348,11 @@ Page({
381
   },
348
   },
382
   onPreview: function (e) {
349
   onPreview: function (e) {
383
     var id = e.currentTarget.dataset.id;
350
     var id = e.currentTarget.dataset.id;
351
+    var url='./preview?type=show&id=' + id;
352
+    if (this.data.PrintID)
353
+      url+="&PrintID="+this.data.PrintID;
384
     wx.navigateTo({
354
     wx.navigateTo({
385
-      url: './preview?type=show&id=' + id,
355
+      url: url,
386
     })
356
     })
387
   },
357
   },
388
   onBindError: function (e) {
358
   onBindError: function (e) {
@@ -413,6 +383,10 @@ Page({
413
     if (id && id > 0)
383
     if (id && id > 0)
414
       url += "&PageID=" + id;
384
       url += "&PageID=" + id;
415
 
385
 
386
+    if (e.currentTarget.dataset.IsToday)
387
+      url += "&IsToday="+e.currentTarget.dataset.IsToday;
388
+
389
+
416
     var cardtype = e.currentTarget.dataset.cardtype;
390
     var cardtype = e.currentTarget.dataset.cardtype;
417
     if (cardtype || cardtype == "0") {
391
     if (cardtype || cardtype == "0") {
418
 
392
 
@@ -442,7 +416,8 @@ Page({
442
     
416
     
443
     if (e.currentTarget.dataset.folderid)
417
     if (e.currentTarget.dataset.folderid)
444
       url += "&FolderID="+e.currentTarget.dataset.folderid;
418
       url += "&FolderID="+e.currentTarget.dataset.folderid;
445
-
419
+    
420
+    
446
 
421
 
447
     main.getData(url, function (data) {
422
     main.getData(url, function (data) {
448
       if (data) {
423
       if (data) {
@@ -566,13 +541,27 @@ Page({
566
     }
541
     }
567
   },
542
   },
568
   addCard: function () {
543
   addCard: function () {
544
+    var url='./add?type=add&id=0';
545
+    if (this.data.FolderID){
546
+      url+="&FolderID="+this.data.FolderID+"&FolderName="+this.data.FolderName;
547
+    }
548
+    else{
549
+      var cardtype=this.data.CardType;
550
+      if (cardtype==1 || cardtype==-1){
551
+        url+="&CardType="+cardtype;
552
+      }
553
+    }
554
+    
569
     wx.redirectTo({
555
     wx.redirectTo({
570
-      url: './add?type=add&id=0',
556
+      url: url,
571
     });
557
     });
572
   },
558
   },
573
-  onSearch: function () {
559
+  onSearch: function (e) {
560
+    var id=1;
561
+    if (e.currentTarget.dataset.id)
562
+      id=Number(e.currentTarget.dataset.id);
574
     wx.navigateBack({
563
     wx.navigateBack({
575
-      delta: 1,
564
+      delta: id,
576
     });
565
     });
577
   },
566
   },
578
   onOrder: function (e) {
567
   onOrder: function (e) {
@@ -615,12 +604,13 @@ Page({
615
       CardShowDetail: that.data.CardShowDetail,
604
       CardShowDetail: that.data.CardShowDetail,
616
     });
605
     });
617
 
606
 
618
-    if (!that.data.IsToday) {
607
+    if (that.data.IsToday!=1) {
619
       app.globalData.CardList = [];
608
       app.globalData.CardList = [];
620
       that.gotoNextPage({
609
       that.gotoNextPage({
621
         currentTarget: {
610
         currentTarget: {
622
           dataset: {
611
           dataset: {
623
             id: 0,
612
             id: 0,
613
+            IsToday:that.data.IsToday,
624
             OrderType: value,
614
             OrderType: value,
625
             cardtype: that.data.CardType,
615
             cardtype: that.data.CardType,
626
             iscollect: that.data.IsCollect,
616
             iscollect: that.data.IsCollect,
@@ -801,7 +791,10 @@ Page({
801
         var list = app.globalData.CardList;
791
         var list = app.globalData.CardList;
802
         for (var i = 0; i < list.length; i++) {
792
         for (var i = 0; i < list.length; i++) {
803
           if (id == list[i].MiaoguoCardID) {
793
           if (id == list[i].MiaoguoCardID) {
804
-            list[i].IsCollect = collect;
794
+            if (collect==0)
795
+              list.splice(i, 1);
796
+            else
797
+              list[i].IsCollect = collect;
805
             break;
798
             break;
806
           }
799
           }
807
         }
800
         }
@@ -840,6 +833,19 @@ Page({
840
       });
833
       });
841
     });
834
     });
842
   },
835
   },
836
+  setOrderSelect:function(od){
837
+    var that=this;
838
+    for(var k=0;k<arrOrder.length;k++){
839
+      if (k==od)
840
+        arrOrder[k].CSS = "PanelBtnSelect2";
841
+      else
842
+        arrOrder[k].CSS = "";
843
+    }
844
+    that.setData({
845
+      ArrOrder: arrOrder,
846
+      OrderType:od,
847
+    });
848
+  },
843
   goto: function (e) {
849
   goto: function (e) {
844
     var url = e.currentTarget.dataset.url;
850
     var url = e.currentTarget.dataset.url;
845
     wx.navigateTo({
851
     wx.navigateTo({

+ 2 - 1
pages/main/mainlist.json

@@ -1,4 +1,5 @@
1
 {
1
 {
2
   "navigationBarTitleText": "全部题卡",
2
   "navigationBarTitleText": "全部题卡",
3
-  "enablePullDownRefresh": true
3
+  "backgroundColorTop":"#F2F2F2",
4
+  "backgroundColorBottom":"#F2F2F2"
4
 }
5
 }

+ 8 - 8
pages/main/mainlist.wxml

@@ -1,7 +1,7 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panelTopPanel FlexColumn">
2
   <view class="panelTopPanel FlexColumn">
3
     <view wx:if="{{Search}}" class="panelTop FlexRow">
3
     <view wx:if="{{Search}}" class="panelTop FlexRow">
4
-      <view class="panelLeft FlexRow" bindtap='onSearch'>
4
+      <view class="panelLeft FlexRow">
5
         <view class="panelTopSearch FlexRow">
5
         <view class="panelTopSearch FlexRow">
6
           <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
6
           <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
7
           <text class="panelTopSearchText">{{Search}}</text>
7
           <text class="panelTopSearchText">{{Search}}</text>
@@ -9,7 +9,7 @@
9
       </view>
9
       </view>
10
 
10
 
11
       <view class="panelRight FlexRow">
11
       <view class="panelRight FlexRow">
12
-        <view class='panelTop1 FlexRow' bindtap='onSearch'>
12
+        <view class='panelTop1 FlexRow' bindtap='onSearch' data-id="2">
13
           <view class="panelTop3">取消</view>
13
           <view class="panelTop3">取消</view>
14
         </view>
14
         </view>
15
       </view>
15
       </view>
@@ -41,7 +41,7 @@
41
           bindtap='showHelp'>
41
           bindtap='showHelp'>
42
           <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
42
           <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
43
         </view>
43
         </view>
44
-        <view class='panelTop1 FlexRow' bindtap='showOrder' wx:if="{{CardType!=-2 && !PrintID}}">
44
+        <view class='panelTop1 FlexRow' bindtap='showOrder' wx:if="{{CardType!=-2 && !PrintID && IsToday!=1}}">
45
           <image class="universalpic_arrow_updown_black_26x22"
45
           <image class="universalpic_arrow_updown_black_26x22"
46
             src='../images/universalpic_arrow_updown_black_26x22.png' />
46
             src='../images/universalpic_arrow_updown_black_26x22.png' />
47
         </view>
47
         </view>
@@ -66,7 +66,7 @@
66
     </view>
66
     </view>
67
   </block>
67
   </block>
68
 
68
 
69
-  <view class="panelHelp FlexRow" wx:if="{{OrderType==5 || OrderType==6}}">
69
+  <view class="panelHelp FlexRow" wx:if="{{(OrderType==5 || OrderType==6) && PageType!=1 && PageType!=2 }}">
70
     <image class="universalpic_exclamation_orange_40x40" src='../images/universalpic_exclamation_orange_40x40.png' />
70
     <image class="universalpic_exclamation_orange_40x40" src='../images/universalpic_exclamation_orange_40x40.png' />
71
     <text
71
     <text
72
       class="panelHelpText">在本清单中用「到期时间」排序时,您的题卡数量可能变少。由于题卡归档后不被练习没有到期时间概念,所以不能以到期时间排序,去除归档题卡总数就减少了。日常和紧急题卡不受影响,可以正常排序。</text>
72
       class="panelHelpText">在本清单中用「到期时间」排序时,您的题卡数量可能变少。由于题卡归档后不被练习没有到期时间概念,所以不能以到期时间排序,去除归档题卡总数就减少了。日常和紧急题卡不受影响,可以正常排序。</text>
@@ -80,7 +80,7 @@
80
     <text class="panelHelpText">题卡自删除之日起3个月后会自动清理,也可手动放回原处。\n小建议:不练的题卡请归档,彻底不要的再删除。</text>
80
     <text class="panelHelpText">题卡自删除之日起3个月后会自动清理,也可手动放回原处。\n小建议:不练的题卡请归档,彻底不要的再删除。</text>
81
   </view>
81
   </view>
82
 
82
 
83
-  <view wx:if="{{true}}" class="panelList FlexColumn">
83
+  <view class="panelList FlexColumn">
84
 
84
 
85
     <block wx:if="{{List.length>0}}" wx:for="{{List}}" wx:key="index">
85
     <block wx:if="{{List.length>0}}" wx:for="{{List}}" wx:key="index">
86
       <!-- <view class="panelListCategory FlexRow" wx:if="{{item.TimeCategory}}">
86
       <!-- <view class="panelListCategory FlexRow" wx:if="{{item.TimeCategory}}">
@@ -136,7 +136,7 @@
136
 
136
 
137
           </view>
137
           </view>
138
         </view>
138
         </view>
139
-        <view class='{{FolderListCss}} CellHide' wx:if="{{CardType!=-2}}">
139
+        <view class='{{FolderListCss}} CellHide' wx:if="{{CardType!=-2 && !PrintID}}">
140
           <view class="CellHide1 FlexRow">
140
           <view class="CellHide1 FlexRow">
141
             <view wx:if="{{item.DeleteType==0}}" class="CellHide112 CellHide111 FlexRow" bindtap="DeleteItem" data-id="{{item.MiaoguoCardID}}"><text>删除</text></view>
141
             <view wx:if="{{item.DeleteType==0}}" class="CellHide112 CellHide111 FlexRow" bindtap="DeleteItem" data-id="{{item.MiaoguoCardID}}"><text>删除</text></view>
142
             <view wx:if="{{item.DeleteType==1}}" class="CellHide113 CellHide111 FlexRow" bindtap="DeleteItem" data-id="{{item.MiaoguoCardID}}"><text>确定\n删除</text></view>
142
             <view wx:if="{{item.DeleteType==1}}" class="CellHide113 CellHide111 FlexRow" bindtap="DeleteItem" data-id="{{item.MiaoguoCardID}}"><text>确定\n删除</text></view>
@@ -160,7 +160,7 @@
160
 
160
 
161
     </block>
161
     </block>
162
     <view class="panelMore" wx:if="{{HasPage}}" bindtap='gotoNextPage' data-id="{{List[List.length-1].MiaoguoCardID}}"
162
     <view class="panelMore" wx:if="{{HasPage}}" bindtap='gotoNextPage' data-id="{{List[List.length-1].MiaoguoCardID}}"
163
-      data-iscollect="{{IsCollect}}">更多</view>
163
+      data-iscollect="{{IsCollect}}" data-folderid="{{FolderID}}">更多</view>
164
     <view class="panelEnd" wx:if="{{!HasPage && List.length>0}}">到底了</view>
164
     <view class="panelEnd" wx:if="{{!HasPage && List.length>0}}">到底了</view>
165
   </view>
165
   </view>
166
 
166
 
@@ -171,7 +171,7 @@
171
     <text wx:if="{{IsCollect==0 && CardType==1 && IsToday==0}}" class="panelNullText">没有题卡\n新建一张紧急题卡吧</text>
171
     <text wx:if="{{IsCollect==0 && CardType==1 && IsToday==0}}" class="panelNullText">没有题卡\n新建一张紧急题卡吧</text>
172
     <text wx:if="{{IsCollect==1 && IsToday==0}}" class="panelNullText">没有题卡\n试试给题卡加注星标吧</text>
172
     <text wx:if="{{IsCollect==1 && IsToday==0}}" class="panelNullText">没有题卡\n试试给题卡加注星标吧</text>
173
     <text wx:if="{{IsCollect==0 && CardType==-1 && IsToday==0}}" class="panelNullText">没有题卡\n把不需要练习的题卡归档吧</text>
173
     <text wx:if="{{IsCollect==0 && CardType==-1 && IsToday==0}}" class="panelNullText">没有题卡\n把不需要练习的题卡归档吧</text>
174
-    <text wx:if="{{false}}" class="panelNullText">没有题卡\n不再需要的知识就删除吧</text>
174
+    <text wx:if="{{CardType==-2}}" class="panelNullText">没有题卡\n不再需要的知识就删除吧</text>
175
     <text wx:if="{{IsToday==1}}" class="panelNullText">没有题卡\n很棒啊!今天的任务量已经完成了</text>
175
     <text wx:if="{{IsToday==1}}" class="panelNullText">没有题卡\n很棒啊!今天的任务量已经完成了</text>
176
     <text wx:if="{{IsToday==2}}" class="panelNullText">没有题卡\n今天的练习还没开始呢</text>
176
     <text wx:if="{{IsToday==2}}" class="panelNullText">没有题卡\n今天的练习还没开始呢</text>
177
   </view>
177
   </view>

+ 60 - 38
pages/main/preview.js

@@ -19,7 +19,9 @@ Page({
19
     Containnerheight:1440,
19
     Containnerheight:1440,
20
     IsShowMenu:false,
20
     IsShowMenu:false,
21
     TextSpace:"ensp",
21
     TextSpace:"ensp",
22
-    IsCloseMenu:true,
22
+    IsCardInfoCloseMenu:1,
23
+    IsClickShowAnswer:false,
24
+    Flag:0,
23
   },
25
   },
24
   onReady: function () {
26
   onReady: function () {
25
     var that=this;
27
     var that=this;
@@ -114,6 +116,23 @@ Page({
114
       });
116
       });
115
     }
117
     }
116
 
118
 
119
+    
120
+
121
+    if (options.PrintID){
122
+      that.setData({
123
+        PrintID:options.PrintID,
124
+      });
125
+    }
126
+    else{
127
+      common.getStorageValue(that, "IsCardInfoCloseMenu", 1, function () {
128
+        if (options.type == "preview"){
129
+          that.setData({
130
+            IsCardInfoCloseMenu:1,
131
+          });
132
+        }
133
+      });
134
+    }
135
+
117
   },
136
   },
118
   onShow: function () {
137
   onShow: function () {
119
     var that = this;
138
     var that = this;
@@ -153,7 +172,7 @@ Page({
153
   },
172
   },
154
   onPullDownRefresh: function () {
173
   onPullDownRefresh: function () {
155
     var that = this;
174
     var that = this;
156
-    if (that.data.ShowType == "play") {
175
+    if (that.data.IsClickShowAnswer) {
157
       that.onHideAnswer();
176
       that.onHideAnswer();
158
     }
177
     }
159
     wx.stopPullDownRefresh();
178
     wx.stopPullDownRefresh();
@@ -186,11 +205,12 @@ Page({
186
         card.IsCollect = list[i].IsCollect;
205
         card.IsCollect = list[i].IsCollect;
187
         card.CardType = list[i].CardType;
206
         card.CardType = list[i].CardType;
188
         card.FolderName=list[i].FolderName;
207
         card.FolderName=list[i].FolderName;
208
+        card.Flag=list[i].Flag;
189
         break;
209
         break;
190
       }
210
       }
191
     }
211
     }
192
     if (!card.FontSize)
212
     if (!card.FontSize)
193
-      card.FontSize = 46;
213
+      card.FontSize = 48;
194
 
214
 
195
     arrImage = card.Images;
215
     arrImage = card.Images;
196
 
216
 
@@ -231,30 +251,19 @@ Page({
231
       }
251
       }
232
     }
252
     }
233
 
253
 
234
-    var IsShowAnswer = [1, 1];
235
-    if (that.data.ShowType == "show"){
236
-      if (that.data.IsShowAnswer)
237
-        IsShowAnswer = that.data.IsShowAnswer;
254
+    if (that.data.IsClickShowAnswer) {
255
+      that.onHideAnswer();
238
     }
256
     }
239
-    else if (that.data.ShowType == "play") {
240
-      IsShowAnswer = [0, 0];
241
-      if (this.data.CurrentIndex <= 0) {
242
-        prevId = 0;
243
-      }
244
-      else
245
-        prevId = 1;
246
-
247
-      if (this.data.CurrentIndex >= playList.length - 1) {
248
-        nextId = 0;
249
-      }
250
-      else
251
-        nextId = 1;
257
+    else{
258
+      that.onShowAnswer();
252
     }
259
     }
260
+    
253
     this.setData({
261
     this.setData({
254
       ID: card.MiaoguoCardID,
262
       ID: card.MiaoguoCardID,
255
       CardType:card.CardType,
263
       CardType:card.CardType,
256
       Field: card.Field,
264
       Field: card.Field,
257
       Tags: card.Tags,
265
       Tags: card.Tags,
266
+      FontSize:card.FontSize,
258
       TagWidth: TagWidth,
267
       TagWidth: TagWidth,
259
       PrevID: prevId,
268
       PrevID: prevId,
260
       NextID: nextId,
269
       NextID: nextId,
@@ -263,8 +272,8 @@ Page({
263
       LimitTimeStr: limitTimeStr,
272
       LimitTimeStr: limitTimeStr,
264
       IsTodayPractice: isTodayPractice,
273
       IsTodayPractice: isTodayPractice,
265
       IsCollect: card.IsCollect,
274
       IsCollect: card.IsCollect,
266
-      IsShowAnswer: IsShowAnswer,
267
       FolderName:card.FolderName,
275
       FolderName:card.FolderName,
276
+      Flag:card.Flag,
268
     });
277
     });
269
 
278
 
270
     wx.pageScrollTo({
279
     wx.pageScrollTo({
@@ -278,12 +287,6 @@ Page({
278
       app.globalData.TempStr="";
287
       app.globalData.TempStr="";
279
     }
288
     }
280
   },
289
   },
281
-  showMenu:function(e){
282
-    var limitTime=e.currentTarget.dataset.limittime;
283
-    wx.navigateTo({
284
-      url: './previewMenu?IsSave=1&ID='+this.data.MiaoguoCardID+'&CardType=' + this.data.CardType+'&LimitTime='+limitTime,
285
-    });
286
-  },
287
   copyCard: function () {
290
   copyCard: function () {
288
     if (!isCopying) {
291
     if (!isCopying) {
289
       isCopying = true;
292
       isCopying = true;
@@ -466,7 +469,6 @@ Page({
466
       MiaoguoCardID: id,
469
       MiaoguoCardID: id,
467
     });
470
     });
468
     that.init();
471
     that.init();
469
-    that.closeIsCloseMenu();
470
   },
472
   },
471
 
473
 
472
   close: function () {
474
   close: function () {
@@ -477,8 +479,12 @@ Page({
477
   editField: function (e) {
479
   editField: function (e) {
478
     if (this.data.ShowType == "show") {
480
     if (this.data.ShowType == "show") {
479
       var that = this;
481
       var that = this;
482
+      var strType="edit";
483
+      if (e.currentTarget.dataset.type)
484
+        strType="edit1";
485
+      var url='./add?type='+strType+'&id=' + that.data.MiaoguoCardID+"&opentype="+e.currentTarget.dataset.type;
480
       wx.navigateTo({
486
       wx.navigateTo({
481
-        url: './add?type=edit&id=' + that.data.MiaoguoCardID+"&opentype="+e.currentTarget.dataset.type,
487
+        url: url,
482
       });
488
       });
483
     }
489
     }
484
   },
490
   },
@@ -510,18 +516,30 @@ Page({
510
       });
516
       });
511
     }
517
     }
512
   },  
518
   },  
513
-  onHideAnswer: function () {
519
+  setClickShowAnswer: function () {
514
     this.setData({
520
     this.setData({
521
+      IsClickShowAnswer:true,
515
       IsShowAnswer: [0, 0],
522
       IsShowAnswer: [0, 0],
516
       IsShowMenu:false,
523
       IsShowMenu:false,
517
     });
524
     });
518
   },
525
   },
519
-  onShowAnswer: function () {
526
+  setAlwaysShowAnswer: function () {
520
     this.setData({
527
     this.setData({
528
+      IsClickShowAnswer:false,
521
       IsShowAnswer: [1, 1],
529
       IsShowAnswer: [1, 1],
522
       IsShowMenu:false,
530
       IsShowMenu:false,
523
     });
531
     });
524
   },
532
   },
533
+  onHideAnswer: function () {
534
+    this.setData({
535
+      IsShowAnswer: [0, 0],
536
+    });
537
+  },
538
+  onShowAnswer: function () {
539
+    this.setData({
540
+      IsShowAnswer: [1, 1],
541
+    });
542
+  },
525
   onPlayAgain: function () {
543
   onPlayAgain: function () {
526
     playList.push(this.data.MiaoguoCardID);
544
     playList.push(this.data.MiaoguoCardID);
527
     this.setData({
545
     this.setData({
@@ -554,7 +572,6 @@ Page({
554
       PlayListCount: playList.length,
572
       PlayListCount: playList.length,
555
     });
573
     });
556
     that.init();
574
     that.init();
557
-    that.closeIsCloseMenu();
558
   },
575
   },
559
   showImage: function (e) {
576
   showImage: function (e) {
560
     var name = e.currentTarget.dataset.name;
577
     var name = e.currentTarget.dataset.name;
@@ -607,20 +624,23 @@ Page({
607
       IsShowMenu: false,
624
       IsShowMenu: false,
608
     });
625
     });
609
   },
626
   },
610
-  closeIsCloseMenu:function(){
627
+  closeIsCardInfoCloseMenu:function(){
611
     this.setData({
628
     this.setData({
612
-      IsCloseMenu: true,
629
+      IsCardInfoCloseMenu: 1,
613
     });
630
     });
631
+    wx.setStorageSync('IsCardInfoCloseMenu', 1);
614
   },
632
   },
615
-  openIsCloseMenu:function(){
633
+  openIsCardInfoCloseMenu:function(){
616
     this.setData({
634
     this.setData({
617
-      IsCloseMenu: false,
635
+      IsCardInfoCloseMenu: 0,
618
     });
636
     });
637
+    wx.setStorageSync('IsCardInfoCloseMenu', 0);
619
   },
638
   },
620
   onShareAppMessage: function () {
639
   onShareAppMessage: function () {
621
     var that = this;
640
     var that = this;
622
     this.setData({
641
     this.setData({
623
-      ShowType: 'sharepreview'
642
+      ShowType: 'sharepreview',
643
+      IsCardInfoCloseMenu: 1,
624
     });
644
     });
625
 
645
 
626
     var url = 'ShareMiaoguoCard?UserID=' + app.globalData.userInfo.UserID;
646
     var url = 'ShareMiaoguoCard?UserID=' + app.globalData.userInfo.UserID;
@@ -629,8 +649,10 @@ Page({
629
 
649
 
630
     setTimeout(function () {
650
     setTimeout(function () {
631
       that.setData({
651
       that.setData({
632
-        ShowType: 'show'
652
+        ShowType: 'show',
633
       });
653
       });
654
+      common.getStorageValue(that, "IsCardInfoCloseMenu", 1, function () {});
655
+
634
     }, 1000);
656
     }, 1000);
635
     return {
657
     return {
636
       title: '我的分享',
658
       title: '我的分享',

+ 32 - 26
pages/main/preview.wxml

@@ -2,39 +2,42 @@
2
 
2
 
3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}}'>
3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}}'>
4
   <!-- 顶端工具栏 -->
4
   <!-- 顶端工具栏 -->
5
-  <block wx:if="{{ShowType=='show'}}">
5
+  <block wx:if="{{ShowType=='show' &&  Flag!=-1}}">
6
     <view class="panelTop FlexRow">
6
     <view class="panelTop FlexRow">
7
-      <view class='left FlexRow' bindtap='showMenu' data-limittime="{{LimitTime}}">
8
-        <view class="panelTopBtn FlexRow" bindtap='editField' data-type="">
7
+      <view class='left FlexRow'>
8
+        <view class="panelTopBtn FlexRow" catchtap='editField' data-type="{{PrintID}}">
9
           编辑
9
           编辑
10
         </view>
10
         </view>
11
         <view class="panelTopBtn">
11
         <view class="panelTopBtn">
12
         </view>
12
         </view>
13
       </view>
13
       </view>
14
-      <view class="FlexRow" wx:if="{{IsCloseMenu}}" bindtap="openIsCloseMenu" >
15
-        <view>题卡信息</view>
14
+      <block wx:if="{{!PrintID}}">
15
+        <view class="FlexRow" wx:if="{{IsCardInfoCloseMenu}}" catchtap="openIsCardInfoCloseMenu" >
16
+        <view>快捷操作</view>
16
         <image class="universalpic_arrow_up_black_14x10" src='../images/universalpic_arrow_down_black_14x10.png' wx:if="{{true}}" />
17
         <image class="universalpic_arrow_up_black_14x10" src='../images/universalpic_arrow_down_black_14x10.png' wx:if="{{true}}" />
17
       </view>
18
       </view>
18
-      <view class="FlexRow" wx:if="{{!IsCloseMenu}}" bindtap="closeIsCloseMenu">
19
+      <view class="FlexRow" wx:if="{{!IsCardInfoCloseMenu}}" catchtap="closeIsCardInfoCloseMenu">
19
         <view>信息收起</view>
20
         <view>信息收起</view>
20
         <image class="universalpic_arrow_up_black_14x10" src='../images/universalpic_arrow_up_black_14x10.png' wx:if="{{true}}" />
21
         <image class="universalpic_arrow_up_black_14x10" src='../images/universalpic_arrow_up_black_14x10.png' wx:if="{{true}}" />
21
       </view>
22
       </view>
23
+      </block>
24
+      
22
       
25
       
23
       <view class='right FlexRow'>
26
       <view class='right FlexRow'>
24
-       <view class="panelTopBtn FlexRow" bindtap='gotoCollect'>
27
+       <view class="panelTopBtn FlexRow" catchtap='gotoCollect'>
25
           <image class="universalpic_star_black_34x34" src='../images/universalpic_star_black_34x34.png' wx:if="{{!IsCollect}}" />
28
           <image class="universalpic_star_black_34x34" src='../images/universalpic_star_black_34x34.png' wx:if="{{!IsCollect}}" />
26
           <image class="universalpic_star_black_34x34" src='../images/universalpic_star_yellow_34x34.png' wx:if="{{IsCollect}}" />
29
           <image class="universalpic_star_black_34x34" src='../images/universalpic_star_yellow_34x34.png' wx:if="{{IsCollect}}" />
27
         </view>
30
         </view>
28
-        <view class="panelTopBtn2 panelTopBtn FlexRow" bindtap='btnMore'>
31
+        <view wx:if="{{!PrintID}}" class="panelTopBtn2 panelTopBtn FlexRow" catchtap='btnMore'>
29
           <image class="universalpic_omit_black_36x10" src='../images/universalpic_omit_black_36x10.png' />
32
           <image class="universalpic_omit_black_36x10" src='../images/universalpic_omit_black_36x10.png' />
30
         </view>
33
         </view>
31
       </view>
34
       </view>
32
     </view>
35
     </view>
33
     <view class="panelTop1" style='background-color:{{Color.BackColor}};'></view>
36
     <view class="panelTop1" style='background-color:{{Color.BackColor}};'></view>
34
   </block>
37
   </block>
35
-  <block wx:if="{{!IsCloseMenu}}">
38
+  <block wx:if="{{!IsCardInfoCloseMenu && !PrintID}}">
36
     <view class="panelTop2 FlexColumn">
39
     <view class="panelTop2 FlexColumn">
37
-      <view class="panelTop2Item FlexRow" bindtap='editField' data-type="cardtype">
40
+      <view class="panelTop2Item FlexRow" catchtap='editField' data-type="cardtype">
38
         <view class="left FlexRow">
41
         <view class="left FlexRow">
39
           <image class="universalpic_diagram_black_30x28" src='../images/universalpic_diagram_black_30x28.png' />
42
           <image class="universalpic_diagram_black_30x28" src='../images/universalpic_diagram_black_30x28.png' />
40
           <view class="panelTop2Item1"><block wx:if="{{CardType==1}}">紧急</block><block wx:if="{{CardType==0}}">日常</block><block wx:if="{{CardType==-1}}">归档</block>练习</view>
43
           <view class="panelTop2Item1"><block wx:if="{{CardType==1}}">紧急</block><block wx:if="{{CardType==0}}">日常</block><block wx:if="{{CardType==-1}}">归档</block>练习</view>
@@ -45,7 +48,7 @@
45
       <view class="lineWidthAll FlexRow">
48
       <view class="lineWidthAll FlexRow">
46
         <view class="lineWidth660"></view>
49
         <view class="lineWidth660"></view>
47
       </view>
50
       </view>
48
-      <view class="panelTop2Item FlexRow" bindtap='editField' data-type="folder">
51
+      <view class="panelTop2Item FlexRow" catchtap='editField' data-type="folder">
49
         <view class="left FlexRow">
52
         <view class="left FlexRow">
50
           <image class="universalpic_diagram_black_30x28" src='../images/universalpic_cardlist_black_30x28.png' />
53
           <image class="universalpic_diagram_black_30x28" src='../images/universalpic_cardlist_black_30x28.png' />
51
           <view class="panelTop2Item1">{{FolderName}}</view>
54
           <view class="panelTop2Item1">{{FolderName}}</view>
@@ -53,28 +56,31 @@
53
         <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
56
         <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
54
       </view>
57
       </view>
55
       </block>
58
       </block>
56
-      <view class="lineWidthAll FlexRow">
57
-        <view class="lineWidth660"></view>
58
-      </view>
59
-      <view class="panelTop2Item FlexRow" bindtap='editField' data-type="limittime">
60
-        <view class="left FlexRow">
61
-          <image class="universalpic_calendar_black_30x32" src='../images/universalpic_calendar_black_30x32.png' />
62
-          <view class="panelTop2Item1">{{LimitTimeStr}}</view>
59
+      <block wx:if="{{CardType!=-1}}">
60
+        <view class="lineWidthAll FlexRow">
61
+          <view class="lineWidth660"></view>
63
         </view>
62
         </view>
64
-        <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
65
-      </view>
63
+        <view class="panelTop2Item FlexRow" catchtap='editField' data-type="limittime">
64
+          <view class="left FlexRow">
65
+            <image class="universalpic_calendar_black_30x32" src='../images/universalpic_calendar_black_30x32.png' />
66
+            <view class="panelTop2Item1">{{LimitTimeStr}}</view>
67
+          </view>
68
+          <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
69
+        </view>
70
+      </block>
71
+      
66
       <view class="lineWidthAll FlexRow">
72
       <view class="lineWidthAll FlexRow">
67
         <view class="lineWidth720"></view>
73
         <view class="lineWidth720"></view>
68
       </view>
74
       </view>
69
-      <view class="panelTop2Item FlexRow" bindtap="goto" data-url="./cardInfo?id={{MiaoguoCardID}}">
75
+      <view class="panelTop2Item FlexRow" catchtap="goto" data-url="./cardInfo?id={{MiaoguoCardID}}">
70
         <view class="panelTop2Item1">题卡详细信息</view>
76
         <view class="panelTop2Item1">题卡详细信息</view>
71
         <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
77
         <image class="Arrow" src='../images/universalpic_indicator_right_gray.png' />
72
       </view>
78
       </view>
73
     </view>
79
     </view>
74
   </block>
80
   </block>
75
-
81
+  <view style="width:100%;min-height:{{Containnerheight-250}}rpx;" bindtap="onShowAnswer">
76
   <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,ShowType:ShowType,TextSpace:TextSpace}}" />
82
   <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,ShowType:ShowType,TextSpace:TextSpace}}" />
77
-
83
+  </view>
78
   <view style='height:150rpx'></view>
84
   <view style='height:150rpx'></view>
79
 
85
 
80
   <view class='footer FlexColumn' style='background-color:{{Color.BackColor}}'>
86
   <view class='footer FlexColumn' style='background-color:{{Color.BackColor}}'>
@@ -82,7 +88,7 @@
82
       退出预览
88
       退出预览
83
     </view>
89
     </view>
84
 
90
 
85
-    <view class="panelFooter FlexRow" wx:if="{{ShowType=='show'}}">
91
+    <view class="panelFooter FlexRow" wx:if="{{ShowType=='show' && !PrintID}}">
86
       <view class='btn1' wx:if="{{PrevID==0}}"></view>
92
       <view class='btn1' wx:if="{{PrevID==0}}"></view>
87
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
93
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
88
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_prev_gray_30x30.png' />
94
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_prev_gray_30x30.png' />
@@ -109,8 +115,8 @@
109
 <!-- 菜单 -->
115
 <!-- 菜单 -->
110
 <view wx:if="{{IsShowMenu}}" class="panelMenu container FlexColumn" style='height:{{Containnerheight}}rpx; top:{{topBarHeight}}rpx;'>
116
 <view wx:if="{{IsShowMenu}}" class="panelMenu container FlexColumn" style='height:{{Containnerheight}}rpx; top:{{topBarHeight}}rpx;'>
111
 	
117
 	
112
-	<view class="panelMenu12 panelMenu1" wx:if="{{IsShowAnswer[0]==1}}" catchtap="onHideAnswer">点击卡面单独显示段落2、3</view>
113
-	<view class="panelMenu12 panelMenu1" wx:if="{{IsShowAnswer[0]==0}}" catchtap="onShowAnswer">同时显示段落1、2、3</view>
118
+	<view class="panelMenu12 panelMenu1" wx:if="{{!IsClickShowAnswer}}" catchtap="setClickShowAnswer">点击卡面显示段落2、3</view>
119
+	<view class="panelMenu12 panelMenu1" wx:if="{{IsClickShowAnswer}}" catchtap="setAlwaysShowAnswer">同时显示段落1、2、3</view>
114
 	<view class="panelMenu11 panelMenu1" catchtap="deleteCard">删除题卡</view>
120
 	<view class="panelMenu11 panelMenu1" catchtap="deleteCard">删除题卡</view>
115
 	<view class="panelMenu10 panelMenu1" catchtap='closeMenu'>取消</view>
121
 	<view class="panelMenu10 panelMenu1" catchtap='closeMenu'>取消</view>
116
 	<view class="iphone10plusMenu" wx:if="{{IsIPhoneX}}"></view>
122
 	<view class="iphone10plusMenu" wx:if="{{IsIPhoneX}}"></view>

+ 0 - 5
pages/main/preview.wxss

@@ -242,11 +242,6 @@
242
   border-radius: 10rpx;
242
   border-radius: 10rpx;
243
 }
243
 }
244
 
244
 
245
-.panelItem .universalpic_voicerecorder_transmit_black_44x34{
246
-  width: 44rpx;
247
-  height: 34rpx;
248
-}
249
-
250
 .panelItem .textProblem{
245
 .panelItem .textProblem{
251
   padding: 3rpx 20rpx;
246
   padding: 3rpx 20rpx;
252
   background-color: #F1AB1E;
247
   background-color: #F1AB1E;

+ 0 - 175
pages/main/previewMenu.js

@@ -1,175 +0,0 @@
1
-import common from '../../utils/util';
2
-import main from '../../utils/main';
3
-import constant from '../../utils/constant';
4
-
5
-const app = getApp();
6
-
7
-var historyLimitTime;
8
-
9
-Page({
10
-  data: {
11
-    MenuArr: constant.arrStudyPlay,
12
-    IsSelected:"",
13
-    LimitTimeArr:[
14
-      {Name:"今天",DayNumber:0},
15
-      {Name:"明天",DayNumber:1},
16
-      {Name:"3天后",DayNumber:3},
17
-      {Name:"1周后",DayNumber:7},
18
-      {Name:"1个月后",DayNumber:30},
19
-    ],
20
-  },
21
-  onLoad: function (options) {
22
-    var that = this;
23
-    var today=common.formatTime(new Date(),"-",true);
24
-    var limitTime=today;
25
-    if (options.LimitTime){
26
-      limitTime=options.LimitTime; 
27
-    }
28
-    historyLimitTime=limitTime;
29
-    
30
-    that.setData({
31
-      Containnerheight: main.getWindowHeight(),
32
-      CardType:options.CardType,
33
-      CardTypeHistory:options.CardType,
34
-      MiaoguoCardID:options.ID,
35
-      IsSave:options.IsSave || 0,
36
-      Today:today,
37
-      LimitTime:limitTime,
38
-      LimitTimeStr: common.formatDateCHS(limitTime),
39
-      CardNumberUrgent: app.globalData.TaskToday.CardNumberUrgent,
40
-    });
41
-    if (app.globalData.IsIPhoneX) {
42
-      that.setData({
43
-        IsIPhoneX: "_IsIPhoneX",
44
-      });
45
-    }
46
-  },
47
-  changeCardType:function(e){
48
-    var that = this;
49
-    var cardType=e.currentTarget.dataset.cardtype;
50
-    if (cardType!=that.data.CardType){
51
-      if (cardType==1 || (that.data.CardTypeHistory==-1 && cardType==0)){
52
-        var limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
53
-        that.setData({
54
-          LimitTime: limitTime,
55
-          LimitTimeStr: common.formatDateCHS(limitTime),
56
-          IsSelected:"_Selected"
57
-        });
58
-      }
59
-      else{
60
-        var limitTime=historyLimitTime;
61
-        if (that.data.CardTypeHistory==-1)
62
-          limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
63
-        that.setData({
64
-          LimitTime: limitTime,
65
-          LimitTimeStr: common.formatDateCHS(limitTime),
66
-          IsSelected:"",
67
-        });
68
-      }
69
-
70
-      if (cardType == 1 && that.data.CardNumberUrgent>=200){
71
-        wx.showToast({
72
-          title: '紧急练习容量已满',
73
-        })
74
-      }
75
-      else{
76
-        that.setData({
77
-          CardType: cardType,
78
-        });
79
-      }
80
-    }
81
-  },
82
-  close:function(){
83
-    wx.navigateBack({
84
-      delta: 1,
85
-    });
86
-  },
87
-  save:function(){
88
-    var that = this;
89
-
90
-    if (that.data.IsSave==0){
91
-      finish(that);
92
-    }
93
-    else{
94
-      var url = 'UpdateMiaoguoCardType?UserID=' + app.globalData.userInfo.UserID;
95
-      url += "&CardType=" + that.data.CardType;
96
-      url += "&ID=" + that.data.MiaoguoCardID;
97
-  
98
-      if (that.data.CardType>=0){
99
-        if (historyLimitTime!=that.data.LimitTime){
100
-          url+="&LimitTime="+that.data.LimitTime;
101
-        }
102
-      }
103
-  
104
-      main.getData(url, function (data) {
105
-        finish(that);
106
-        app.globalData.TempIsEditCardType=0;
107
-      });
108
-    }
109
-
110
-    function finish(that){
111
-      var list = app.globalData.CardList;
112
-      for (var i = 0; i < list.length; i++) {
113
-        if (list[i].MiaoguoCardID == that.data.MiaoguoCardID){
114
-          list[i].CardType = that.data.CardType;
115
-          list[i].LimitTime=that.data.LimitTime;
116
-          list[i].LimitTimeStr=common.formatDateCHS(that.data.LimitTime);
117
-        }
118
-      }
119
-      app.globalData.CardList = list;
120
-      app.globalData.IsUpdateStudyPlan = 1;
121
-      
122
-      if (that.data.CardType==1){
123
-        app.globalData.TaskToday.CardNumberUrgent++;
124
-      }
125
-      app.globalData.TempIsEditCardType=1;
126
-      that.close();
127
-
128
-      if (that.data.CardType==1 && app.globalData.TaskToday.CardNumberUrgent==1){
129
-        wx.navigateTo({
130
-          url: "../other/menu?Type=0",
131
-        });
132
-      }
133
-    }
134
-  },
135
-  setLimitTime:function(e){
136
-    var that=this;
137
-    var limitTime="";
138
-    var IsSelected="";
139
-    if (e.detail.value){
140
-      limitTime=e.detail.value;
141
-      IsSelected="_Selected";
142
-    }
143
-    else{
144
-      var DayNumber=e.currentTarget.dataset.daynumber;
145
-      if (DayNumber==-1){
146
-        limitTime=historyLimitTime;
147
-        if (that.data.CardTypeHistory==-1)
148
-          limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
149
-        
150
-        wx.showToast({
151
-          title: '日期已还原',
152
-          mask: true,
153
-          image: "../images/universalpic_restore_white_120x120.png",
154
-        });
155
-        IsSelected="";
156
-      }
157
-      else{
158
-        limitTime=common.formatTime(common.addDate("d",DayNumber,new Date()),"-",true);
159
-        IsSelected="_Selected";
160
-      }
161
-    }
162
-    that.setData({
163
-      LimitTime: limitTime,
164
-      LimitTimeStr: common.formatDateCHS(limitTime),
165
-      IsSelected:IsSelected,
166
-    });
167
-  },
168
-  onShareAppMessage: function () {
169
-    return {
170
-      title: app.globalData.ShareTitle,
171
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
172
-      imageUrl: app.globalData.ShareImage,
173
-    }
174
-  },
175
-})

+ 0 - 5
pages/main/previewMenu.json

@@ -1,5 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "练习模式",
3
-  "backgroundColorTop":"#f0f0f0",
4
-  "backgroundColorBottom":"#f0f0f0"
5
-}

+ 0 - 70
pages/main/previewMenu.wxml

@@ -1,70 +0,0 @@
1
-<view class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panelTop FlexRow">
3
-		<view class="panelTopLeft FlexRow" catchtap="close">
4
-			<view class="panelText1 panelText">放弃</view>
5
-		</view>
6
-		<view class='panelTopLeft FlexRow' catchtap='save' data-type="{{IsSave}}">
7
-			<view class="panelText2 panelText" wx:if="{{IsSave==0}}">确定</view>
8
-			<view class="panelText2 panelText" wx:if="{{IsSave==1}}">保存</view>
9
-		</view>
10
-	</view>
11
-  <view class="line"></view>
12
-
13
-  <view class="panelItemCircleTop panelItemCircleBottom panelStudyPlan FlexColumn">
14
-    <block wx:for="{{MenuArr}}" wx:key="index">
15
-      <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
16
-        <view class="lineWidth610"></view>
17
-      </view>
18
-      <view class="panelItemCircleTop panelItemCircleBottom panelStudyPlan1 FlexRow" bindtap="changeCardType" data-cardtype="{{item.CardType}}">
19
-        <view class="imgTrue FlexRow">
20
-          <block wx:if="{{CardType==item.CardType}}">
21
-            <image class="universalpic_checked_blue_40x40" src='../images/universalpic_checked_blue_40x40.png' />
22
-          </block>
23
-        </view>
24
-        <view class="panelStudyPlan10 FlexColumn">
25
-          <view class="text7">{{item.Name}}</view> 
26
-          <view class="text6">{{item.Remark}}</view>
27
-        </view>
28
-        <view class="text71" wx:if="{{item.CardType==1 && CardNumberUrgent>=200}}">容量已满请先整理</view>
29
-      </view>
30
-    </block>
31
-  </view>
32
-
33
-  <view class="panelItemCircleTop panelItemCircleBottom panelStudyPlan FlexColumn" wx:if="{{CardType>=0}}">
34
-      <view class="panelItemCircleTop panelStudyPlan1 FlexRow">
35
-        <view class="panelStudyPlan11 FlexColumn">
36
-          <view class="text7">到期时间</view> 
37
-          <view class="text6">下次练习的时间</view>
38
-        </view>
39
-        <view class="panelStudyPlan12 FlexRow">
40
-          <view class="text7{{IsSelected}}">{{LimitTimeStr}}</view> 
41
-          <view class="line1"></view>
42
-          <view class="text11" bindtap="setLimitTime" data-daynumber="-1">还原</view>
43
-        </view>
44
-      </view>
45
-      <view class="lineWidthAll FlexRow">
46
-        <view class="lineWidth680"></view>
47
-      </view>
48
-      <view class="panelStudyPlan1 FlexRow">
49
-        <view class="panelStudyPlan11 FlexColumn">
50
-          <view class="text7">更改时间</view> 
51
-          <view class="text6">只能改成今天或未来某日</view>
52
-        </view>
53
-      </view>
54
-      <view class="panelStudyPlan2 FlexRow">
55
-          <view class="text10" wx:for="{{LimitTimeArr}}" wx:key="index" bindtap="setLimitTime" data-daynumber="{{item.DayNumber}}">{{item.Name}}</view> 
56
-      </view>
57
-      <picker class="panelItemCircleBottom panelStudyPlan3 FlexRow" mode="date" value="{{Today}}" start="{{Today}}" end="2050-01-01" bindchange="setLimitTime">
58
-        <view class="FlexRow">
59
-        <image class="universalpic_bell_black_30x30" src='../images/universalpic_bell_black_30x30.png' />
60
-        <view class="text9">指定具体日期</view> 
61
-        </view>
62
-      </picker>
63
-  </view>
64
-
65
-  <view class="panelHelp FlexRow">
66
-    <image class="universalpic_exmark_deepyellow_70x70" src='../images/universalpic_exmark_deepyellow_26x26.png' />
67
-    <text class="text8">学习计划保存后不能撤销,务请谨慎。\n\n特别注意:从日常转入紧急练习模式的题卡,以及从归档转入日常练习或紧急练习模式的题卡,将在操作当天以新题卡形式被重新练习。如实际没有练习到,则需适当调高所属练习模式的任务限量。\n\n不想练习的题卡,请转入归档。</text>
68
-  </view>
69
-  <view class="footerHeight"></view>
70
-</view>

+ 0 - 222
pages/main/previewMenu.wxss

@@ -1,222 +0,0 @@
1
-/* 菜单 */
2
-
3
-.container2 {
4
-  background-color: #f0f0f0;
5
-}
6
-
7
-.panelTop{
8
-  width: 100%;
9
-  justify-content: space-between;
10
-  font-size: 28rpx;
11
-  background-color: #fff;
12
-  position: fixed;
13
-  top:0;
14
-  z-index: 10;
15
-  border-bottom: 1rpx solid #d2d2d2;
16
-}
17
-
18
-.panelTop .panelTopLeft {
19
-  width: 374rpx;
20
-  background-color: #fff;
21
-  height:100rpx;
22
-  font-size:28rpx;
23
-}
24
-
25
-
26
-.panelText1 {
27
-  width:344rpx;
28
-  height:100rpx;
29
-  color:#FE6659;
30
-  text-align: left;
31
-  line-height: 100rpx;
32
-  margin: 0 30rpx;
33
-}
34
-
35
-.panelText2 {
36
-  width:344rpx;
37
-  height:100rpx;
38
-  color:#0071EF;
39
-  text-align: right;
40
-  line-height: 100rpx;
41
-  margin: 0 30rpx;
42
-}
43
-
44
-.line {
45
-  width:100%;
46
-  height:100rpx;
47
-  background-color: #f0f0f0;
48
-}
49
-
50
-.panelStudyPlan {
51
-  width: 710rpx;
52
-  background-color: #fff;
53
-  margin-top: 20rpx;
54
-  border-radius: 20rpx;
55
-}
56
-
57
-.panelStudyPlan1 {
58
-  width: 100%;
59
-  height: 133rpx;
60
-  justify-content: flex-start;
61
-  position: relative;
62
-}
63
-
64
-.panelStudyPlan2 {
65
-  width: 100%;
66
-  height: 73rpx;
67
-  justify-content: flex-start;
68
-  position: relative;
69
-}
70
-.panelStudyPlan3 {
71
-  width: 100%;
72
-  height: 100rpx;
73
-}
74
-
75
-.lineWidth610{
76
-  width: 610rpx;
77
-  height: 1rpx;
78
-  background-color: #E3E3E3; 
79
-}
80
-
81
-.imgTrue {
82
-  width: 100rpx;
83
-  height: 134rpx;
84
-}
85
-
86
-.universalpic_checked_blue_40x40 {
87
-  width: 40rpx;
88
-  height: 40rpx;
89
-}
90
-
91
-.panelStudyPlan10 {
92
-  align-items: flex-start;
93
-}
94
-
95
-.panelStudyPlan11 {
96
-  align-items: flex-start;
97
-  margin-left: 30rpx;
98
-}
99
-
100
-.panelStudyPlan12 {
101
-  margin-left: 178rpx;
102
-  
103
-}
104
-
105
-.text7 {
106
-  font-size: 28rpx;
107
-  margin-bottom: 4rpx;
108
-  font-weight: 400;
109
-  color:#4d4d4d;
110
-}
111
-
112
-.text7_Selected{
113
-  font-size: 28rpx;
114
-  margin-bottom: 4rpx;
115
-  font-weight: 500;
116
-  color:#0071EF;
117
-}
118
-
119
-.text6 {
120
-  font-size: 20rpx;
121
-  color: #787878;
122
-}
123
-.text11 {
124
-  font-size: 28rpx;
125
-  width:110rpx;
126
-  height:80rpx;
127
-  line-height: 80rpx;
128
-  text-align: center;
129
-}
130
-.text9 {
131
-  font-size: 28rpx;
132
-}
133
-
134
-.text10 {
135
-  height:73rpx;
136
-  font-size: 24rpx;
137
-  color:#1e1e1e;
138
-  padding: 0 20rpx;
139
-  margin:0 0 0 20rpx;
140
-  text-align: center;
141
-  line-height: 73rpx;
142
-}
143
-
144
-.text71 {
145
-  color: #694405;
146
-  font-size: 20rpx;
147
-  text-align: center;
148
-  width:200rpx;
149
-  height:40rpx;
150
-  line-height: 40rpx;
151
-  border-radius: 20rpx;
152
-  background-color: #FCE8C5;
153
-  border:1rpx solid #979797;
154
-  position: absolute;
155
-  right:30rpx;
156
-  top:47rpx;
157
-}
158
-
159
-
160
-.panelHelp {
161
-  width: 710rpx;
162
-  background-color: #FCE8C5;
163
-  border-radius: 20rpx;
164
-  margin-top: 20rpx;
165
-  align-items: flex-start;
166
-  padding: 30rpx 0;
167
-  color:#694405;
168
-}
169
-
170
-.universalpic_exmark_deepyellow_70x70 {
171
-  width: 70rpx;
172
-  height: 70rpx;
173
-  margin-right: 30rpx;
174
-}
175
-
176
-.text8 {
177
-  width: 550rpx;
178
-  font-size: 20rpx;
179
-}
180
-
181
-.panelFooter {
182
-  width: 100%;
183
-  position: fixed;
184
-  bottom: 0;
185
-  border-top: 1rpx solid #d2d2d2;
186
-  background-color: #fff;
187
-}
188
-
189
-.panelFooter_IsIPhoneX {
190
-  width: 100%;
191
-  position: fixed;
192
-  bottom: 30rpx;
193
-  border-top: 1rpx solid #d2d2d2;
194
-  background-color: #fff;
195
-}
196
-
197
-.btn {
198
-  width: 50%;
199
-  height: 121rpx;
200
-  text-align: center;
201
-  line-height: 121rpx;
202
-  color: #fe6659;
203
-  font-size: 28rpx;
204
-  background-color: #fff;
205
-}
206
-
207
-.btn2 {
208
-  color: #0071ef;
209
-}
210
-
211
-.line1 {
212
-  width: 2rpx;
213
-  height: 30rpx;
214
-  background-color: #d2d2d2;
215
-  margin:0 0 0 30rpx;
216
-}
217
-
218
-.universalpic_bell_black_30x30{
219
-  width:30rpx;
220
-  height:30rpx;
221
-  margin-right: 20rpx;
222
-}

+ 28 - 95
pages/main/searchCard.js

@@ -108,112 +108,45 @@ Page({
108
   },
108
   },
109
   getSearchData:function(){
109
   getSearchData:function(){
110
     var that=this;
110
     var that=this;
111
-    var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
112
-    url += "&Word=" + that.data.SearchInfo;
113
-    main.getData(url, function (data) {
114
-      if (data) {
115
-        var len = 26;
116
-        var list = [];
117
-        if (!data.List){
118
-          list=[];
119
-          var obj={};
120
-          obj.Value = data;
121
-          
122
-          if (data.CHN){
123
-            obj.Key=data.CHN.HanZi;
124
-            obj.Content=data.CHN.PinYin[0].explain;
125
-
126
-            if (obj.Key.length==1)
127
-              obj.TypeName="Z";
128
-            else
129
-              obj.TypeName="C";
130
-            
131
-            obj.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+obj.Key;
132
-          
133
-          }
134
-          else if (data.ENG){
135
-            obj.Key=data.ENG.Word;
136
-            obj.TypeName="D";
137
-            obj.Remark=data.ENG.Soundmark.Eng;
138
-            obj.Content=data.ENG.Paraphrase[0].ParaphraseList;
139
-
140
-            obj.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+obj.Key;
141
-          
142
-          }
143
-            
144
-          
145
-          if (data.CHN && data.CHN.PinYin && data.CHN.PinYin.length>0){
146
-            obj.Remark=data.CHN.PinYin[0].pinyin;
147
-          }
148
-
149
-          if (obj.Content && obj.Content.length > len)
150
-              obj.Content = obj.Content.substr(0, len) + "...";
151
-
152
-
153
-          list.push(obj);
154
-        }
155
-        else {
156
-          list=data.List;
157
-          for (var i = 0; i < list.length; i++) {
158
-            var item = list[i];
159
-            if (item.TypeName=="字词"){
160
-              if (item.Key.length==1)
161
-                item.TypeName="Z";
162
-              else
163
-                item.TypeName="C";
164
-            }
165
-            else if (item.TypeName=="诗词"){
166
-              item.TypeName="S";
167
-              item.Remark=item.Author+" ["+item.Dynasty+"]";
168
-            }
169
-            else if (item.TypeName=="翻译"){
170
-              item.TypeName="D";
171
-            }
172
-
173
-            if (item.Type=="shici")
174
-              item.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+item.Key+"&Author="+item.Author+"&SearchType="+item.Type+"&Url="+item.Url;
175
-            else
176
-              item.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+item.Key;
177
-            
178
-            if (item.Content && item.Content.length > len)
179
-              item.Content = item.Content.substr(0, len) + "...";
180
-            
181
-          }
182
-        }
183
-        that.setData({
184
-          SearchList:list,
185
-          Searching:false,
186
-        });
187
-      }
188
-      else{
189
-        that.setData({
190
-          Searching:false,
191
-          SearchList:[],
192
-        });
193
-      }
111
+    main.searchInfomation(that.data.SearchInfo,null,null,null,function(list,isList){
112
+      that.setData({
113
+        SearchList:list,
114
+        Searching:false,
115
+      });
194
     });
116
     });
195
   },
117
   },
196
   goto: function (e) {
118
   goto: function (e) {
197
     var url = e.currentTarget.dataset.url;
119
     var url = e.currentTarget.dataset.url;
198
-    var url2 = e.currentTarget.dataset.url2;
199
-    
200
-    if (url2){
201
-      url+=url2;
202
-      if (url2.indexOf("&Url=")>0){
203
-        var url3=url2.substr(url2.indexOf("&Url=")+5);
204
-        app.globalData.TempStr=url3;
205
-        url+=url.substr(0,url2.indexOf("&Url="));
206
-      }
120
+    var search=e.currentTarget.dataset.word;
121
+      
122
+    if (search){
123
+      app.globalData.TempStr=e.currentTarget.dataset.url2;
124
+      var search=e.currentTarget.dataset.word;
125
+      var author=e.currentTarget.dataset.author;
126
+      var searchtype=e.currentTarget.dataset.searchtype;
127
+      url+="&Word="+search;
128
+      if (author)
129
+        url+="&Author="+author;
130
+      if (searchtype)
131
+        url+="&SearchType="+searchtype;
132
+        
133
+      wx.navigateTo({
134
+        url: url,
135
+      });
207
     }
136
     }
208
-    wx.navigateTo({
209
-      url: url,
210
-    });
137
+    else{
138
+      wx.navigateTo({
139
+        url: url,
140
+      });
141
+    }
142
+    
211
   },
143
   },
212
   clearInput:function(){
144
   clearInput:function(){
213
     this.setData({
145
     this.setData({
214
       SearchInfo:"",
146
       SearchInfo:"",
215
       IsNull:false,
147
       IsNull:false,
216
       SearchList:[],
148
       SearchList:[],
149
+      Focus:true,
217
     });
150
     });
218
   },
151
   },
219
   close: function (e) {
152
   close: function (e) {

+ 6 - 7
pages/main/searchCard.wxml

@@ -3,9 +3,10 @@
3
     <view class="panelLeft FlexRow">
3
     <view class="panelLeft FlexRow">
4
       <view class="panelTopSearch FlexRow">
4
       <view class="panelTopSearch FlexRow">
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
6
-        <input class='input' maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
6
+        <input class='input'  always-embed="true"  maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
7
           placeholder="搜索我的题卡" confirm-type="search" bindconfirm="onSearch" bindfocus="onFocus" />
7
           placeholder="搜索我的题卡" confirm-type="search" bindconfirm="onSearch" bindfocus="onFocus" />
8
-        <view class="clearData FlexRow" catchtap="clearInput">
8
+        
9
+        <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9
           <view class="clearData0 FlexRow">
10
           <view class="clearData0 FlexRow">
10
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11
           </view>
12
           </view>
@@ -19,19 +20,17 @@
19
       </view>
20
       </view>
20
     </view>
21
     </view>
21
   </view>
22
   </view>
22
-
23
+  <view class="panelTopNull"></view>
23
   <block wx:if="{{IsNull}}">
24
   <block wx:if="{{IsNull}}">
24
     <view class="panelNull FlexColumn">
25
     <view class="panelNull FlexColumn">
25
       <image class="universalpic_card_none_gray_90x84" src='../images/universalpic_card_none_gray_90x84.png' />
26
       <image class="universalpic_card_none_gray_90x84" src='../images/universalpic_card_none_gray_90x84.png' />
26
       <view class="panelNullText">没有题卡</view>
27
       <view class="panelNullText">没有题卡</view>
27
     </view>
28
     </view>
28
     <view class="panelAdd FlexRow" bindtap="goto" data-url="./add?type=add&id=0">
29
     <view class="panelAdd FlexRow" bindtap="goto" data-url="./add?type=add&id=0">
29
-      <view class="panelLeft FlexRow">
30
         <image class="universalpic_add_black_30x30" src='../images/universalpic_add_black_30x30.png' />
30
         <image class="universalpic_add_black_30x30" src='../images/universalpic_add_black_30x30.png' />
31
         <view class="panelAddText">新建题卡</view>
31
         <view class="panelAddText">新建题卡</view>
32
-      </view>
33
-      <image class="universalpic_indicator_right_gray" src='../images/universalpic_indicator_right_gray.png' />
34
     </view>
32
     </view>
33
+    <view class="lineWidth690"></view>
35
     <view class="panel1 FlexColumn">
34
     <view class="panel1 FlexColumn">
36
       <view class="panel11 FlexRow">
35
       <view class="panel11 FlexRow">
37
         <view class="panel11Left">
36
         <view class="panel11Left">
@@ -54,7 +53,7 @@
54
       <view class="panelSearchNull FlexColumn" wx:if="{{SearchList.length>0}}">
53
       <view class="panelSearchNull FlexColumn" wx:if="{{SearchList.length>0}}">
55
         <view class="panelSearchNull1">有 {{SearchList.length}} 条资料与“{{SearchInfo}}”相符</view>
54
         <view class="panelSearchNull1">有 {{SearchList.length}} 条资料与“{{SearchInfo}}”相符</view>
56
         <view class="panelSearchNull2">可用以下资料直接创建新题卡</view>
55
         <view class="panelSearchNull2">可用以下资料直接创建新题卡</view>
57
-        <view class="panelSearchData FlexRow" wx:for="{{SearchList}}" wx:key="index" bindtap="goto" data-url="./add?type=add3&id=0" data-url2="{{item.Url}}">
56
+        <view class="panelSearchData FlexRow" wx:for="{{SearchList}}" wx:key="index" bindtap="goto" data-url="./add?type=add3&id=0" data-author="{{item.Author}}" data-word="{{item.Key}}" data-searchtype="{{item.Type}}" data-url2="{{item.Url}}">
58
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
57
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
59
             <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
58
             <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
60
             <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
59
             <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />

+ 13 - 6
pages/main/searchCard.wxss

@@ -6,8 +6,17 @@
6
   height:100rpx;
6
   height:100rpx;
7
   background-color: #fff;
7
   background-color: #fff;
8
   justify-content: space-between;
8
   justify-content: space-between;
9
+  position: fixed;
10
+  top:0;
11
+
12
+  border-bottom: 1rpx solid #D2D2D2;
13
+}
14
+.panelTopNull {
15
+  width: 100%;
16
+  height:100rpx;
9
 }
17
 }
10
 
18
 
19
+
11
 .panelLeft {
20
 .panelLeft {
12
   margin-left: 20rpx;
21
   margin-left: 20rpx;
13
   justify-content: flex-start;
22
   justify-content: flex-start;
@@ -84,7 +93,7 @@
84
 
93
 
85
 .panel1{
94
 .panel1{
86
   width:100%;
95
   width:100%;
87
-  margin-top: 20rpx;
96
+  margin-top: 60rpx;
88
   background-color: #fff;
97
   background-color: #fff;
89
 }
98
 }
90
 
99
 
@@ -160,8 +169,7 @@
160
 
169
 
161
 .panelNull{
170
 .panelNull{
162
   width: 100%;
171
   width: 100%;
163
-  height:559rpx;
164
-  border-top: 1rpx solid #D2D2D2;
172
+  margin-top:180rpx;
165
 }
173
 }
166
 
174
 
167
 .universalpic_card_none_gray_90x84{
175
 .universalpic_card_none_gray_90x84{
@@ -176,12 +184,11 @@
176
 }
184
 }
177
 
185
 
178
 .panelAdd{
186
 .panelAdd{
179
-  width:686rpx;
187
+  width:360rpx;
180
   height:100rpx;
188
   height:100rpx;
181
   border:2rpx solid #E3E3E3;
189
   border:2rpx solid #E3E3E3;
182
   border-radius: 10rpx;
190
   border-radius: 10rpx;
183
-  justify-content: space-between;
184
-  margin-bottom: 80rpx;
191
+  margin: 60rpx 0 180rpx 0;
185
 }
192
 }
186
 
193
 
187
 .universalpic_add_black_30x30{
194
 .universalpic_add_black_30x30{

+ 0 - 1
pages/main/systemsetting.json

@@ -1,6 +1,5 @@
1
 {
1
 {
2
   "navigationBarTitleText": "设置",
2
   "navigationBarTitleText": "设置",
3
-  "backgroundColor": "#F0F0F0",
4
   "backgroundTextStyle": "dark",
3
   "backgroundTextStyle": "dark",
5
   "enablePullDownRefresh": true
4
   "enablePullDownRefresh": true
6
 }
5
 }

+ 2 - 2
pages/other/annualreport.wxml

@@ -2,8 +2,8 @@
2
 	<image src="{{ImagePath}}web/report_20201231_01.png" class="panelTop" />
2
 	<image src="{{ImagePath}}web/report_20201231_01.png" class="panelTop" />
3
 	<view class="panelMain FlexColumn">
3
 	<view class="panelMain FlexColumn">
4
 		<view class="Remark FlexColumn">
4
 		<view class="Remark FlexColumn">
5
-			<text>2020年度练习奖励、期末备考有奖练习活动结果,于1月10日在秒过学习小组公布。</text>
6
-			<text>2020是不同凡响的一年,我们一起经历了疫情期间的远程上课,和重返校园后的奋起直追。突如其来的生活变化,家长们孩子们大家都辛苦了。祝我们在2021年过地更加顺利平安和谐进步。给彼此加油,给中国加油!</text>
5
+			<text>  2020是不同凡响的一年,我们一起经历了疫情期间的远程上课,和重返校园后的奋起直追。突如其来的生活变化,家长们孩子们大家都辛苦了。祝我们在2021年过地更加顺利平安和谐进步。给彼此加油,为祖国加油!\n
6
+			  2020年度练习奖励、期末备考有奖练习活动结果,将于1月10日在秒过学习小组公布。</text>
7
 		</view>
7
 		</view>
8
 		<view class="text1">自{{Data.StartDate}}以来</view>
8
 		<view class="text1">自{{Data.StartDate}}以来</view>
9
 		<view class="text2">年度报告的数据统计截止于{{Data.EndDate}}</view>
9
 		<view class="text2">年度报告的数据统计截止于{{Data.EndDate}}</view>

+ 1 - 2
pages/other/binding.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "帐号绑定",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "帐号绑定"
4
 }
3
 }

+ 1 - 2
pages/other/coupon.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "优惠券",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "优惠券"
4
 }
3
 }

+ 0 - 1
pages/other/homework.json

@@ -2,6 +2,5 @@
2
   "navigationBarTitleText": "作业清单",
2
   "navigationBarTitleText": "作业清单",
3
   "navigationBarBackgroundColor": "#1D6FC7",
3
   "navigationBarBackgroundColor": "#1D6FC7",
4
   "navigationBarTextStyle": "white",
4
   "navigationBarTextStyle": "white",
5
-  "backgroundColor": "#F0F0F0",
6
   "enablePullDownRefresh": true
5
   "enablePullDownRefresh": true
7
 }
6
 }

+ 1 - 2
pages/other/lesson.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "秒过学习法",
3
-  "backgroundColorBottom":"#f0f0f0"
2
+  "navigationBarTitleText": "秒过学习法"
4
 }
3
 }

+ 1 - 2
pages/other/lessonlist.json

@@ -2,6 +2,5 @@
2
   "navigationBarTitleText": "课程",
2
   "navigationBarTitleText": "课程",
3
   "navigationBarBackgroundColor": "#009942",
3
   "navigationBarBackgroundColor": "#009942",
4
   "navigationBarTextStyle": "white",
4
   "navigationBarTextStyle": "white",
5
-  "backgroundColorTop": "#009942",
6
-  "backgroundColor": "#F0F0F0"
5
+  "backgroundColorTop": "#009942"
7
 }
6
 }

+ 3 - 3
pages/other/paycustom.wxml

@@ -4,7 +4,7 @@
4
     <view class="panelTitle2"></view>
4
     <view class="panelTitle2"></view>
5
   </view>
5
   </view>
6
   <view class="panelItem FlexRow">
6
   <view class="panelItem FlexRow">
7
-    <input class='input' type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="SearchUserID" value="{{SearchUserID}}" />
7
+    <input class='input'  always-embed="true"  type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="SearchUserID" value="{{SearchUserID}}" />
8
   </view>
8
   </view>
9
   <view class="panelTitle3 FlexRow">
9
   <view class="panelTitle3 FlexRow">
10
     <image src="{{UserInfo.AvatarUrl}}" class="avatar" />
10
     <image src="{{UserInfo.AvatarUrl}}" class="avatar" />
@@ -15,7 +15,7 @@
15
     <view class="panelTitle2"></view>
15
     <view class="panelTitle2"></view>
16
   </view>
16
   </view>
17
   <view class="panelItem FlexRow">
17
   <view class="panelItem FlexRow">
18
-    <input class='input' type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="DayNumber" value="{{DayNumber}}" />
18
+    <input class='input'  always-embed="true"  type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="DayNumber" value="{{DayNumber}}" />
19
   </view>
19
   </view>
20
   <view class='lineFooter'></view>
20
   <view class='lineFooter'></view>
21
   <view class="panelTitle FlexRow">
21
   <view class="panelTitle FlexRow">
@@ -23,7 +23,7 @@
23
     <view class="panelTitle2"></view>
23
     <view class="panelTitle2"></view>
24
   </view>
24
   </view>
25
   <view class="panelItem FlexRow">
25
   <view class="panelItem FlexRow">
26
-    <input class='input' type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="Price" value="{{Price}}" />
26
+    <input class='input'  always-embed="true"  type="number" maxlength='10' auto-focus bindinput="onKeyInput" data-type="Price" value="{{Price}}" />
27
   </view>
27
   </view>
28
   <view class='lineFooter'></view>
28
   <view class='lineFooter'></view>
29
     <view class="panelTitle FlexRow">
29
     <view class="panelTitle FlexRow">

+ 31 - 0
pages/other/recover.js

@@ -0,0 +1,31 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+  },
9
+  onLoad: function (options) {
10
+    this.setData({
11
+      Containnerheight: main.getWindowHeight(),
12
+    });
13
+  },
14
+  onOpenTempCard: function () {
15
+    var card = wx.getStorageSync("TempCardNoSaved");
16
+    app.globalData.CardList = [card];
17
+    wx.redirectTo({
18
+      url: '../main/add?type=add2&id=' + card.MiaoguoCardID,
19
+    });
20
+  },
21
+  onGiveupTempCard: function () {
22
+    var that = this;
23
+    wx.removeStorageSync("TempCardNoSaved");
24
+    that.callback();
25
+  },
26
+  callback:function(){
27
+    wx.navigateBack({
28
+      delta: 1,
29
+    });
30
+  },
31
+});

+ 6 - 0
pages/other/recover.json

@@ -0,0 +1,6 @@
1
+{
2
+  "navigationBarBackgroundColor": "#0B8457",
3
+  "navigationBarTextStyle": "white",
4
+  "navigationBarTitleText": "秒过",
5
+  "backgroundColor": "#0B8457"
6
+}

+ 6 - 0
pages/other/recover.wxml

@@ -0,0 +1,6 @@
1
+<view class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
2
+  <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
3
+  <text class='RemindText'>新消息\n刚刚救回了一张尚未\n保存的题卡</text>
4
+  <view class='btn1' catchtap="onOpenTempCard">打开</view>
5
+  <view class='btn1' catchtap="onGiveupTempCard">丢弃</view>
6
+</view>

+ 35 - 0
pages/other/recover.wxss

@@ -0,0 +1,35 @@
1
+
2
+.TempCardNoSaved{
3
+  background-color: #0B8457;
4
+  position: fixed;
5
+  top:0;
6
+}
7
+.TempCardNoSaved .Avatar{
8
+  width:200rpx;
9
+  height:200rpx;
10
+  margin-top: 150rpx;
11
+  z-index: 10;
12
+  border-radius: 50%;
13
+}
14
+.TempCardNoSaved .RemindText{
15
+  font-size:54rpx;
16
+  color:#fff;
17
+  margin-top: 170rpx;
18
+  text-align: center;
19
+}
20
+.TempCardNoSaved .RemindText2{
21
+  font-size:32rpx;
22
+  color:#fff;
23
+  margin-top: 105rpx;
24
+  text-align: center;
25
+}
26
+.TempCardNoSaved .btn1{
27
+  font-size:36rpx;
28
+  color:#fff;
29
+  margin-top: 40rpx;
30
+  border:2rpx solid #fff;
31
+  text-align: center;
32
+  width:600rpx;
33
+  line-height: 90rpx;
34
+  border-radius: 14rpx;
35
+}

+ 1 - 2
pages/other/tips.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "小贴士",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "小贴士"
4
 }
3
 }

+ 1 - 1
pages/other/userlist.wxml

@@ -2,7 +2,7 @@
2
   <view class="panelSearch FlexRow">
2
   <view class="panelSearch FlexRow">
3
     <view class="panelSearch1 FlexRow">
3
     <view class="panelSearch1 FlexRow">
4
       <image class="universalpic_search_gray_30x30" src='../images/universalpic_search_gray_30x30.png' />
4
       <image class="universalpic_search_gray_30x30" src='../images/universalpic_search_gray_30x30.png' />
5
-      <input class='input' maxlength='50' bindinput="onKeyInput" value="{{SearchInfo}}" />
5
+      <input  always-embed="true" class='input' maxlength='50' bindinput="onKeyInput" value="{{SearchInfo}}" />
6
       <view class='btnSearch' bindtap='search'>搜索</view>
6
       <view class='btnSearch' bindtap='search'>搜索</view>
7
     </view>
7
     </view>
8
   </view>
8
   </view>

+ 1 - 2
pages/plan/pattern.json

@@ -1,4 +1,3 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "记忆评价",
3
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "记忆评价"
4
 }
3
 }

+ 0 - 1
pages/plan/setting.json

@@ -1,6 +1,5 @@
1
 {
1
 {
2
   "navigationBarTitleText": "模式设置",
2
   "navigationBarTitleText": "模式设置",
3
-  "backgroundColor": "#F0F0F0",
4
   "backgroundTextStyle":"dark",
3
   "backgroundTextStyle":"dark",
5
   "enablePullDownRefresh": true
4
   "enablePullDownRefresh": true
6
 }
5
 }

+ 2 - 2
pages/plan/studyplan.js

@@ -211,7 +211,7 @@ Page({
211
         });
211
         });
212
       });
212
       });
213
     } else {
213
     } else {
214
-      var url = 'GetMiaoguoCardList2?UserID=' + app.globalData.userInfo.UserID + "&IsToday=2&CardType=" + that.data.CardType;
214
+      var url = 'GetMiaoguoCardList2?UserID=' + app.globalData.userInfo.UserID + "&IsToday=2&CardType=" + that.data.CardType+"&OrderType=ac.LastTime desc";
215
       main.getData(url, function (data) {
215
       main.getData(url, function (data) {
216
         if (data) {
216
         if (data) {
217
           var list = [];
217
           var list = [];
@@ -223,7 +223,7 @@ Page({
223
           }
223
           }
224
           app.globalData.CardList = list;
224
           app.globalData.CardList = list;
225
           wx.navigateTo({
225
           wx.navigateTo({
226
-            url: '../main/mainlist?type=2&Count=' + list.length,
226
+            url: '../main/mainlist?type=2&Count=' + data.length,
227
           });
227
           });
228
         }
228
         }
229
       });
229
       });

+ 1 - 1
pages/plan/studyplan.json

@@ -3,6 +3,6 @@
3
   "navigationBarBackgroundColor": "#3157BA",
3
   "navigationBarBackgroundColor": "#3157BA",
4
   "navigationBarTextStyle": "white",
4
   "navigationBarTextStyle": "white",
5
   "backgroundColorTop": "#3157BA",
5
   "backgroundColorTop": "#3157BA",
6
-  "backgroundColorBottom": "#f0f0f0",
6
+  "backgroundColorBottom": "#f2f2f2",
7
   "enablePullDownRefresh": true
7
   "enablePullDownRefresh": true
8
 }
8
 }

+ 1 - 1
pages/plan/studyplandetail.wxml

@@ -55,7 +55,7 @@
55
 			<view class="panelItemSquare2 FlexColumn">
55
 			<view class="panelItemSquare2 FlexColumn">
56
 				<view class="panelItemSquare23 FlexRow">
56
 				<view class="panelItemSquare23 FlexRow">
57
 					<view class="panelItemSquare221">今日新建</view>
57
 					<view class="panelItemSquare221">今日新建</view>
58
-					<view class="panelItemSquare222">{{NewToday}}</view>
58
+					<view class="Number62">{{NewToday}}</view>
59
 				</view>
59
 				</view>
60
 			</view>
60
 			</view>
61
 		</view>
61
 		</view>

+ 0 - 1
pages/plan/studyplandetail.wxss

@@ -160,7 +160,6 @@
160
   color:#787878;
160
   color:#787878;
161
   margin-right:10rpx;
161
   margin-right:10rpx;
162
 }
162
 }
163
-
164
 .Number62{
163
 .Number62{
165
   font-size: 24rpx;
164
   font-size: 24rpx;
166
   font-family: Roboto-Black;
165
   font-family: Roboto-Black;

+ 2 - 2
pages/template/cardShow.wxml

@@ -26,7 +26,7 @@
26
 
26
 
27
       <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
27
       <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
28
         <view class="panelRecorder0 FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" catchtap="playSound" data-content="recorder" data-soundmark="{{item.SoundMark}}" data-fieldid="1">
28
         <view class="panelRecorder0 FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" catchtap="playSound" data-content="recorder" data-soundmark="{{item.SoundMark}}" data-fieldid="1">
29
-          <image class="universalpic_voicerecorder_transmit_black_44x34" src='../images/universalpic_voicerecorder_transmit_black_44x34.png' />
29
+          <image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
30
         </view>
30
         </view>
31
       </view>
31
       </view>
32
 
32
 
@@ -80,7 +80,7 @@
80
 
80
 
81
           <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
81
           <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
82
             <view class="panelRecorder0 FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" catchtap="playSound" data-content="recorder" data-soundmark="{{item.SoundMark}}" data-fieldid="{{itemParent}}">
82
             <view class="panelRecorder0 FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" catchtap="playSound" data-content="recorder" data-soundmark="{{item.SoundMark}}" data-fieldid="{{itemParent}}">
83
-              <image class="universalpic_voicerecorder_transmit_black_44x34" src='../images/universalpic_voicerecorder_transmit_black_44x34.png' />
83
+              <image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
84
             </view>
84
             </view>
85
           </view>
85
           </view>
86
           <view class="imageContainer2 FlexColumn" wx:if="{{item.Type=='image'}}" style='width:{{item.Width}}rpx;height:{{item.Height}}rpx;'>
86
           <view class="imageContainer2 FlexColumn" wx:if="{{item.Type=='image'}}" style='width:{{item.Width}}rpx;height:{{item.Height}}rpx;'>

+ 1 - 1
pages/test/index.json

@@ -1,6 +1,6 @@
1
 {
1
 {
2
   "navigationBarTitleText": "知识检验",
2
   "navigationBarTitleText": "知识检验",
3
   "backgroundColor": "#ffffff",
3
   "backgroundColor": "#ffffff",
4
-  "backgroundColorTop": "#f0f0f0",
4
+  "backgroundColorTop": "#f2f2f2",
5
   "backgroundColorBottom": "#ffffff"
5
   "backgroundColorBottom": "#ffffff"
6
 }
6
 }

+ 0 - 5
pages/test/item.wxss

@@ -226,11 +226,6 @@ page{
226
   border-radius: 10rpx;
226
   border-radius: 10rpx;
227
 }
227
 }
228
 
228
 
229
-.panelItem .universalpic_voicerecorder_transmit_black_44x34{
230
-  width: 44rpx;
231
-  height: 34rpx;
232
-}
233
-
234
 .panelItem .textProblem{
229
 .panelItem .textProblem{
235
   padding: 3rpx 20rpx;
230
   padding: 3rpx 20rpx;
236
   background-color: #F1AB1E;
231
   background-color: #F1AB1E;

+ 2 - 2
pages/test/list.json

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

+ 4 - 3
project.config.json

@@ -18,7 +18,7 @@
18
     "checkSiteMap": true,
18
     "checkSiteMap": true,
19
     "uploadWithSourceMap": true,
19
     "uploadWithSourceMap": true,
20
     "compileHotReLoad": true,
20
     "compileHotReLoad": true,
21
-    "useMultiFrameRuntime": false,
21
+    "useMultiFrameRuntime": true,
22
     "useApiHook": true,
22
     "useApiHook": true,
23
     "babelSetting": {
23
     "babelSetting": {
24
       "ignore": [],
24
       "ignore": [],
@@ -32,7 +32,8 @@
32
     "userConfirmedBundleSwitch": false,
32
     "userConfirmedBundleSwitch": false,
33
     "packNpmManually": false,
33
     "packNpmManually": false,
34
     "packNpmRelationList": [],
34
     "packNpmRelationList": [],
35
-    "minifyWXSS": true
35
+    "minifyWXSS": true,
36
+    "useApiHostProcess": false
36
   },
37
   },
37
   "compileType": "miniprogram",
38
   "compileType": "miniprogram",
38
   "libVersion": "2.11.3",
39
   "libVersion": "2.11.3",
@@ -115,7 +116,7 @@
115
         {
116
         {
116
           "name": "pages/index/index",
117
           "name": "pages/index/index",
117
           "pathName": "pages/index/index",
118
           "pathName": "pages/index/index",
118
-          "query": "type=print&P=306&U=1",
119
+          "query": "type=print&P=184&U=1",
119
           "scene": 1047
120
           "scene": 1047
120
         },
121
         },
121
         {
122
         {

File diff suppressed because it is too large
+ 1 - 1
utils/constant.js


+ 111 - 5
utils/main.js

@@ -644,7 +644,7 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
644
   }
644
   }
645
 }
645
 }
646
 
646
 
647
-function updateSearchList(obj) {
647
+function updateSearchList(obj,callback) {
648
   var arr = wx.getStorageSync("SearchWord3");
648
   var arr = wx.getStorageSync("SearchWord3");
649
   if (!arr)
649
   if (!arr)
650
     arr = [];
650
     arr = [];
@@ -683,7 +683,7 @@ function updateSearchList(obj) {
683
   if (obj.Key)
683
   if (obj.Key)
684
     arr.unshift(obj);
684
     arr.unshift(obj);
685
 
685
 
686
-  if (arr.length > 100) {
686
+  if (arr.length > 30) {
687
     arr.pop();
687
     arr.pop();
688
   }
688
   }
689
   wx.setStorageSync("SearchWord3", arr);
689
   wx.setStorageSync("SearchWord3", arr);
@@ -692,6 +692,8 @@ function updateSearchList(obj) {
692
   if (obj.TypeName)
692
   if (obj.TypeName)
693
     app.globalData.SearchItem.TypeName = obj.TypeName;
693
     app.globalData.SearchItem.TypeName = obj.TypeName;
694
   
694
   
695
+  if (callback)
696
+    callback();
695
 }
697
 }
696
 
698
 
697
 function checkIsIPhoneX() {
699
 function checkIsIPhoneX() {
@@ -1113,9 +1115,11 @@ function getUserConfig() {
1113
     } else {
1115
     } else {
1114
       symbol1 = app.globalData.SymbolMain;
1116
       symbol1 = app.globalData.SymbolMain;
1115
     }
1117
     }
1116
-    wx.setStorageSync("SymboMain", symbol1);
1117
-    app.globalData.SymbolMain = symbol1;
1118
-
1118
+    if (symbol1.length>0){
1119
+      wx.setStorageSync("SymboMain", symbol1);
1120
+      app.globalData.SymbolMain = symbol1;
1121
+    }
1122
+    
1119
   });
1123
   });
1120
 }
1124
 }
1121
 
1125
 
@@ -1158,6 +1162,107 @@ function replaceCardInfoString(str) {
1158
   return str;
1162
   return str;
1159
 }
1163
 }
1160
 
1164
 
1165
+function searchInfomation(search,searchtype,author,shiciurl,callback){
1166
+  var WORD_LENGTH=18;
1167
+  wx.showLoading({
1168
+    title: '查询中',
1169
+  });
1170
+  var timeout=setTimeout(function () {
1171
+    wx.hideLoading();
1172
+  }, 5000);
1173
+
1174
+  var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
1175
+  url += "&Word=" + search;
1176
+  if (searchtype)
1177
+    url += "&SearchType=" + searchtype;
1178
+  if (author)
1179
+    url += "&Author=" + author;
1180
+  if (shiciurl)
1181
+    url += "&ShiciUrl=" + shiciurl;
1182
+
1183
+  getData(url, function (data) {
1184
+    wx.hideLoading();
1185
+    clearTimeout(timeout);
1186
+    
1187
+    if (data) {
1188
+      //console.log(data);
1189
+
1190
+      if (data.List) {
1191
+        var len = WORD_LENGTH;
1192
+        var list = data.List;
1193
+        for (var i = 0; i < list.length; i++) {
1194
+          var item = list[i];
1195
+          if (item.TypeName == "字词") {
1196
+            if (item.Key.length == 1)
1197
+              item.TypeName = "Z";
1198
+            else
1199
+              item.TypeName = "C";
1200
+          } else if (item.TypeName == "诗词") {
1201
+            item.TypeName = "S";
1202
+            item.Remark = item.Author + " " + item.Dynasty;
1203
+          } else if (item.TypeName == "翻译") {
1204
+            item.TypeName = "D";
1205
+          }
1206
+
1207
+          if (item.Content && item.Content.length > len)
1208
+            item.Content = item.Content.substr(0, len) + "...";
1209
+
1210
+        }
1211
+        callback(list);
1212
+
1213
+      } else if (data.CHN || data.ENG) {
1214
+        var obj = {};
1215
+        obj.Key = search;
1216
+        obj.Value = data;
1217
+        if (data.CHN && data.CHN.Author)
1218
+          obj.Author = data.CHN.Author;
1219
+        if (data.CHN && data.CHN.Dynasty)
1220
+          obj.Dynasty = data.CHN.Dynasty;
1221
+        if (data.CHN && data.CHN.PeomContent) {
1222
+          obj.Type = "shici";
1223
+          obj.TypeName = "诗词";
1224
+          obj.Content = data.CHN.PeomContent.join("").substr(0, WORD_LENGTH);
1225
+          obj.ShiciUrl = shiciurl;
1226
+        } else if (data.CHN) {
1227
+          obj.Type = "zici";
1228
+          if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].pinyin)
1229
+            obj.Remark = data.CHN.PinYin[0].pinyin;
1230
+          if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].explain) {
1231
+            obj.Content = data.CHN.PinYin[0].explain.substr(0, WORD_LENGTH);
1232
+            obj.Content = obj.Content.replace("<p>", "");
1233
+            obj.Content = obj.Content.replace("</p>", "");
1234
+            if (obj.Content.length >= WORD_LENGTH)
1235
+              obj.Content += "..."
1236
+          }
1237
+        }
1238
+        if (data.ENG && !data.CHN) {
1239
+          obj.Type = "eng";
1240
+          obj.TypeName = "D";
1241
+          if (data.ENG.Soundmark && data.ENG.Soundmark.Eng)
1242
+            obj.Remark = data.ENG.Soundmark.Eng;
1243
+          if (data.ENG.Paraphrase.length > 0) {
1244
+            if (common.checkIsArray(data.ENG.Paraphrase) && data.ENG.Paraphrase[0].ParaphraseList)
1245
+              obj.Content = data.ENG.Paraphrase[0].ParaphraseList.join("; ").substr(0, WORD_LENGTH);
1246
+            else
1247
+              obj.Content = data.ENG.Paraphrase.substr(0, WORD_LENGTH) + "...";
1248
+          }
1249
+        }
1250
+        app.globalData.TempSearchBackNumber = 2;
1251
+        //app.globalData.CardList=[];
1252
+        app.globalData.CardList2=[];
1253
+        
1254
+        callback([],obj);
1255
+      }
1256
+      else{
1257
+        callback([]);
1258
+
1259
+      }
1260
+    } else {
1261
+      callback([]);
1262
+    }
1263
+  });
1264
+}
1265
+
1161
 module.exports = {
1266
 module.exports = {
1162
   getData: getData,
1267
   getData: getData,
1163
   postData: postData,
1268
   postData: postData,
@@ -1194,4 +1299,5 @@ module.exports = {
1194
   getUserConfig: getUserConfig,
1299
   getUserConfig: getUserConfig,
1195
   getAwardData: getAwardData,
1300
   getAwardData: getAwardData,
1196
   replaceCardInfoString: replaceCardInfoString,
1301
   replaceCardInfoString: replaceCardInfoString,
1302
+  searchInfomation:searchInfomation,
1197
 }
1303
 }