chengjie 5 lat temu
rodzic
commit
513dee9fd4
100 zmienionych plików z 1484 dodań i 802 usunięć
  1. 5 3
      app.js
  2. 1 0
      app.json
  3. 7 1
      app.wxss
  4. 1 1
      components/navigation-bar/navigation-bar.wxss
  5. BIN
      pages/images/CombinedShape.png
  6. BIN
      pages/images/study_finish_footer.png
  7. BIN
      pages/images/study_index_banner.png
  8. BIN
      pages/images/study_index_banner_close.png
  9. BIN
      pages/images/study_report_footer.png
  10. BIN
      pages/images/study_report_header.png
  11. BIN
      pages/images/universalpic_add_gray_22x22.png
  12. BIN
      pages/images/universalpic_bell_black_30x30.png
  13. BIN
      pages/images/universalpic_bell_gray_30x30.png
  14. BIN
      pages/images/universalpic_bell_green_30x30.png
  15. BIN
      pages/images/universalpic_card_gray_26x26.png
  16. BIN
      pages/images/universalpic_clock_gray_24x24.png
  17. BIN
      pages/images/universalpic_clock_white_24x24.png
  18. BIN
      pages/images/universalpic_data_black_30x32.png
  19. BIN
      pages/images/universalpic_del_white_14x14.png
  20. BIN
      pages/images/universalpic_edit_black_25x25.png
  21. BIN
      pages/images/universalpic_editbar_brackets_gray.png
  22. BIN
      pages/images/universalpic_editbar_cube_gray.png
  23. BIN
      pages/images/universalpic_editbar_div_gray.png
  24. BIN
      pages/images/universalpic_editbar_equal_gray.png
  25. BIN
      pages/images/universalpic_editbar_greaterthan_gray.png
  26. BIN
      pages/images/universalpic_editbar_lessthan_gray copy.png
  27. BIN
      pages/images/universalpic_editbar_mul_gray.png
  28. BIN
      pages/images/universalpic_editbar_plus_gray.png
  29. BIN
      pages/images/universalpic_editbar_sqr_gray.png
  30. BIN
      pages/images/universalpic_editbar_sub_gray.png
  31. BIN
      pages/images/universalpic_editbar_underline_gray.png
  32. BIN
      pages/images/universalpic_examine_black_30x32.png
  33. BIN
      pages/images/universalpic_fav_default_black_26x24.png
  34. BIN
      pages/images/universalpic_fav_enable_blue_26x24.png
  35. BIN
      pages/images/universalpic_fav_enable_red_26x24.png
  36. BIN
      pages/images/universalpic_file_green_30x30.png
  37. BIN
      pages/images/universalpic_help_black_26x26.png
  38. BIN
      pages/images/universalpic_help_green_26x26.png
  39. BIN
      pages/images/universalpic_highlighter_begin_black_30x25.png
  40. BIN
      pages/images/universalpic_highlighter_begin_gray_24x20.png
  41. BIN
      pages/images/universalpic_highlighter_end_white_24x20.png
  42. BIN
      pages/images/universalpic_highlighter_end_white_49x25.png
  43. BIN
      pages/images/universalpic_info_black_26x26.png
  44. BIN
      pages/images/universalpic_info_black_30x30.png
  45. BIN
      pages/images/universalpic_more_black_32x8.png
  46. BIN
      pages/images/universalpic_part_black_30x30.png
  47. BIN
      pages/images/universalpic_picture_black_30x28.png
  48. BIN
      pages/images/universalpic_picture_gray_26x26.png
  49. BIN
      pages/images/universalpic_plan_6dots_black_30x32.png
  50. BIN
      pages/images/universalpic_read_begin_black_26x26.png
  51. BIN
      pages/images/universalpic_read_end_white_38x22.png
  52. BIN
      pages/images/universalpic_read_end_white_44x26.png
  53. BIN
      pages/images/universalpic_restore_white_120x120.png
  54. BIN
      pages/images/universalpic_saved_white_120x120.png
  55. BIN
      pages/images/universalpic_tag_black_30x30.png
  56. BIN
      pages/images/universalpic_underline_begin_black_16x24.png
  57. BIN
      pages/images/universalpic_underline_begin_gray_14x20.png
  58. BIN
      pages/images/universalpic_underline_end_white_30x22.png
  59. BIN
      pages/images/universalpic_underline_end_white_34x24.png
  60. BIN
      pages/images/universalpic_upload_white_120x120.png
  61. BIN
      pages/images/universalpic_voicerecorder_black_20x26.png
  62. BIN
      pages/images/universalpic_voicerecorder_black_30x30.png
  63. BIN
      pages/images/universalpic_voicerecorder_normal_gray_21x26.png
  64. BIN
      pages/images/universalpic_warning_white_126x120.png
  65. 9 0
      pages/index/index.js
  66. 230 154
      pages/main/add.js
  67. 5 1
      pages/main/add.json
  68. 214 186
      pages/main/add.wxml
  69. 268 178
      pages/main/add.wxss
  70. 11 0
      pages/main/cardInfo.js
  71. 1 1
      pages/main/cardInfo.json
  72. 27 25
      pages/main/cardInfo.wxml
  73. 45 13
      pages/main/cardInfo.wxss
  74. 30 0
      pages/main/cardInfoDetail.js
  75. 3 0
      pages/main/cardInfoDetail.json
  76. 57 0
      pages/main/cardInfoDetail.wxml
  77. 99 0
      pages/main/cardInfoDetail.wxss
  78. 7 2
      pages/main/default.js
  79. 1 2
      pages/main/default.wxml
  80. 0 19
      pages/main/default.wxss
  81. 15 12
      pages/main/detail.js
  82. 6 6
      pages/main/detail.wxml
  83. 0 7
      pages/main/detail.wxss
  84. 24 99
      pages/main/preview.js
  85. 42 14
      pages/main/preview.wxml
  86. 82 30
      pages/main/preview.wxss
  87. 77 18
      pages/main/previewMenu.js
  88. 3 1
      pages/main/previewMenu.json
  89. 52 13
      pages/main/previewMenu.wxml
  90. 124 5
      pages/main/previewMenu.wxss
  91. 4 0
      pages/main/searchCard.js
  92. 2 0
      pages/main/searchCardList.wxml
  93. 0 5
      pages/main/searchCardList.wxss
  94. 1 1
      pages/main/searchWeb.wxml
  95. 12 1
      pages/main/searchWeb2.js
  96. 4 2
      pages/main/searchWeb2.wxml
  97. 14 0
      pages/marketing/award.wxml
  98. 0 1
      pages/marketing/award.wxss
  99. 1 1
      pages/other/help.js
  100. 0 0
      pages/other/lesson.js

Plik diff jest za duży
+ 5 - 3
app.js


+ 1 - 0
app.json

@@ -15,6 +15,7 @@
15 15
 
16 16
     "pages/main/default",
17 17
     "pages/main/cardInfo",
18
+    "pages/main/cardInfoDetail",
18 19
     "pages/main/searchCardList",
19 20
     "pages/main/searchCard1",
20 21
     "pages/main/searchCard",

+ 7 - 1
app.wxss

@@ -28,7 +28,7 @@
28 28
 } 
29 29
 .footerHeight{
30 30
   width: 100%;
31
-  height: 100rpx;
31
+  height: 20rpx;
32 32
 }
33 33
 .lineFooter{
34 34
   width: 100%;
@@ -82,6 +82,12 @@
82 82
   background-color: #E3E3E3; 
83 83
 }
84 84
 
85
+.lineWidth600{
86
+  width: 600rpx;
87
+  height: 1rpx;
88
+  background-color: #E3E3E3; 
89
+}
90
+
85 91
 
86 92
 @font-face {
87 93
     font-family: 'Roboto-Black';

+ 1 - 1
components/navigation-bar/navigation-bar.wxss

@@ -27,7 +27,7 @@ page{--height:44px;--right:190rpx;}
27 27
   font-size:17px;text-align:center;position:relative;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;
28 28
   align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow: hidden;
29 29
 }
30
-.weui-navigation-bar__center text{ overflow: hidden;text-overflow:ellipsis;white-space: nowrap;margin-top:-2px;}
30
+.weui-navigation-bar__center text{ overflow: hidden;text-overflow:ellipsis;white-space: nowrap;margin-top:-2px; font-weight: 500;}
31 31
 
32 32
 
33 33
 .weui-navigation-bar__inner .weui-navigation-bar__loading {

BIN
pages/images/CombinedShape.png


BIN
pages/images/study_finish_footer.png


BIN
pages/images/study_index_banner.png


BIN
pages/images/study_index_banner_close.png


BIN
pages/images/study_report_footer.png


BIN
pages/images/study_report_header.png


BIN
pages/images/universalpic_add_gray_22x22.png


BIN
pages/images/universalpic_bell_black_30x30.png


BIN
pages/images/universalpic_bell_gray_30x30.png


BIN
pages/images/universalpic_bell_green_30x30.png


BIN
pages/images/universalpic_card_gray_26x26.png


BIN
pages/images/universalpic_clock_gray_24x24.png


BIN
pages/images/universalpic_clock_white_24x24.png


BIN
pages/images/universalpic_data_black_30x32.png


BIN
pages/images/universalpic_del_white_14x14.png


BIN
pages/images/universalpic_edit_black_25x25.png


BIN
pages/images/universalpic_editbar_brackets_gray.png


BIN
pages/images/universalpic_editbar_cube_gray.png


BIN
pages/images/universalpic_editbar_div_gray.png


BIN
pages/images/universalpic_editbar_equal_gray.png


BIN
pages/images/universalpic_editbar_greaterthan_gray.png


BIN
pages/images/universalpic_editbar_lessthan_gray copy.png


BIN
pages/images/universalpic_editbar_mul_gray.png


BIN
pages/images/universalpic_editbar_plus_gray.png


BIN
pages/images/universalpic_editbar_sqr_gray.png


BIN
pages/images/universalpic_editbar_sub_gray.png


BIN
pages/images/universalpic_editbar_underline_gray.png


BIN
pages/images/universalpic_examine_black_30x32.png


BIN
pages/images/universalpic_fav_default_black_26x24.png


BIN
pages/images/universalpic_fav_enable_blue_26x24.png


BIN
pages/images/universalpic_fav_enable_red_26x24.png


BIN
pages/images/universalpic_file_green_30x30.png


BIN
pages/images/universalpic_help_black_26x26.png


BIN
pages/images/universalpic_help_green_26x26.png


BIN
pages/images/universalpic_highlighter_begin_black_30x25.png


BIN
pages/images/universalpic_highlighter_begin_gray_24x20.png


BIN
pages/images/universalpic_highlighter_end_white_24x20.png


BIN
pages/images/universalpic_highlighter_end_white_49x25.png


BIN
pages/images/universalpic_info_black_26x26.png


BIN
pages/images/universalpic_info_black_30x30.png


BIN
pages/images/universalpic_more_black_32x8.png


BIN
pages/images/universalpic_part_black_30x30.png


BIN
pages/images/universalpic_picture_black_30x28.png


BIN
pages/images/universalpic_picture_gray_26x26.png


BIN
pages/images/universalpic_plan_6dots_black_30x32.png


BIN
pages/images/universalpic_read_begin_black_26x26.png


BIN
pages/images/universalpic_read_end_white_38x22.png


BIN
pages/images/universalpic_read_end_white_44x26.png


BIN
pages/images/universalpic_restore_white_120x120.png


BIN
pages/images/universalpic_saved_white_120x120.png


BIN
pages/images/universalpic_tag_black_30x30.png


BIN
pages/images/universalpic_underline_begin_black_16x24.png


BIN
pages/images/universalpic_underline_begin_gray_14x20.png


BIN
pages/images/universalpic_underline_end_white_30x22.png


BIN
pages/images/universalpic_underline_end_white_34x24.png


BIN
pages/images/universalpic_upload_white_120x120.png


BIN
pages/images/universalpic_voicerecorder_black_20x26.png


BIN
pages/images/universalpic_voicerecorder_black_30x30.png


BIN
pages/images/universalpic_voicerecorder_normal_gray_21x26.png


BIN
pages/images/universalpic_warning_white_126x120.png


+ 9 - 0
pages/index/index.js

@@ -134,6 +134,12 @@ Page({
134 134
           gotoUrl: "../other/pay?PayType=6&PayUserID="+options.PayUserID+"&DayNumber="+options.DayNumber+"&Price="+options.Price+"&Remark="+options.Remark,
135 135
         });
136 136
       }
137
+      else if (options.type == "paycontinue") {
138
+        this.setData({
139
+          gotoType: "other",
140
+          gotoUrl: "../other/pay?PayType=7&EndDate="+options.EndDate,
141
+        });
142
+      }
137 143
     }
138 144
     this.setData({
139 145
       IsRefresh: false,
@@ -333,6 +339,9 @@ Page({
333 339
           wx.removeStorageSync("UserID");
334 340
           wx.removeStorageSync("UserName");
335 341
           wx.removeStorageSync("SearchWord3");
342
+          wx.removeStorageSync("HanziUpdateTime");
343
+          wx.removeStorageSync("HanziAll");
344
+          wx.removeStorageSync("EnglishAll");
336 345
           // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
337 346
           updateManager.applyUpdate();
338 347
         }

+ 230 - 154
pages/main/add.js

@@ -2,20 +2,6 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
-const PracticeTimeArr = [{
6
-  Name: "还原",
7
-  CSS: "numberContainerFooter1121Select"
8
-},
9
-{
10
-  Name: "推迟一周",
11
-},
12
-{
13
-  Name: "推迟一个月",
14
-},
15
-{
16
-  Name: "推迟三个月",
17
-}
18
-];
19 5
 var arrTag = [];
20 6
 
21 7
 var tempCursor = undefined,
@@ -42,8 +28,11 @@ Page({
42 28
     HighlighterSign: "[光]",
43 29
     IsPracticeTime: false,
44 30
     IsRecorder: false,
45
-    PracticeTimeArr: PracticeTimeArr,
46 31
     IsIPhoneX: app.globalData.IsIPhoneX,
32
+    IsTagShow:false,
33
+    IsEditCardType:"",
34
+    PageTitle:"新建题卡",
35
+    InputHeight:315,
47 36
   },
48 37
   onReady: function () {
49 38
     recorderManager = wx.getRecorderManager();
@@ -54,14 +43,15 @@ Page({
54 43
       console.log('recorder stop', res);
55 44
       tempRecorderFile = res.tempFilePath;
56 45
     });
57
-    recorderManager.onError((err) => {
58
-      // console.log('err', err);
59
-      // if (err.errMsg =="operateRecorder:fail auth deny"){
60
-      //   wx.navigateTo({
61
-      //     url: '../index/openSetting',
62
-      //   })
63
-      // }
64
-    });
46
+    recorderManager.onError((err) => {});
47
+  },
48
+  //获取导航栏高度
49
+  getBarInfo(e) {
50
+    var h=e.detail.topBarHeight;
51
+    h=h*2;
52
+    this.setData({ 
53
+       topBarHeight: h,
54
+    })
65 55
   },
66 56
   onLoad: function (options) {
67 57
     var that = this;
@@ -75,10 +65,8 @@ Page({
75 65
       UpdateType: options.type,
76 66
       MiaoguoCardID: options.id,
77 67
       FieldNumber: fieldNumber,
78
-      PracticeTimeStr: PracticeTimeArr[0].Name,
79 68
 
80 69
       IsShow: app.globalData.userInfo.IsShow,
81
-      IsShowPracticeTimeStart: true,
82 70
     });
83 71
 
84 72
     var list = app.globalData.CardList;
@@ -93,14 +81,24 @@ Page({
93 81
 
94 82
     isViolate = false;
95 83
     isFirstAdd = true;
84
+
85
+    if (app.globalData.IsIPhoneX){
86
+      that.setData({
87
+        InputHeight: 480,
88
+      });
89
+    }
96 90
   },
97 91
   onShow: function () {
98 92
     var that = this;
99 93
     if (that.data.UpdateType == "add") {
100 94
       that.initAddCard();
101
-      that.setData({
102
-        PracticeTimeStr2: "智能安排",
103
-      });
95
+
96
+      if (!that.data.PracticeCardType && !that.data.PracticeTimeStr){
97
+        that.setData({
98
+          PracticeCardType: "日常",
99
+          PracticeTimeStr: "",
100
+        });
101
+      }
104 102
     } else {
105 103
       var card = {},
106 104
         content = "";
@@ -109,24 +107,58 @@ Page({
109 107
         if (that.data.MiaoguoCardID == list[i].MiaoguoCardID) {
110 108
           card = main.changeStringToView(list[i].Content);
111 109
           card.MiaoguoCardID = list[i].MiaoguoCardID;
112
-          card.LimitTime = list[i].LimitTime;
110
+          if (list[i].CardType)
111
+            card.CardType=list[i].CardType;
112
+          else if (that.data.CardType)
113
+            card.CardType=that.data.CardType;
114
+          else
115
+            card.CardType=0;
116
+
117
+          if (list[i].LimitTime)
118
+            card.LimitTime=list[i].LimitTime;
119
+          else if (that.data.LimitTime)
120
+            card.LimitTime=that.data.LimitTime;
121
+         
113 122
           if (that.data.FieldNumber && that.data.FieldNumber > 0)
114 123
             content = main.encryptUrl(list[i].Content[that.data.FieldNumber].Content);
115 124
           break;
116 125
         }
117 126
       }
127
+
128
+      switch(Number(card.CardType)){
129
+        case 0:
130
+          card.CardTypeStr="日常";
131
+          break;
132
+        case 1:
133
+          card.CardTypeStr="紧急";
134
+          break;
135
+        case -1:
136
+          card.CardTypeStr="留白";
137
+          break;
138
+      }
139
+
140
+      if (app.globalData.TempIsEditCardType==1 && that.data.IsEditCardType==""){
141
+        app.globalData.TempIsEditCardType=0;
142
+        that.setData({
143
+          IsEditCardType:"_IsEditCardType",
144
+        });
145
+      }
146
+
118 147
       that.setData({
119 148
         MiaoguoCardID: card.MiaoguoCardID,
120 149
         LimitTime: common.formatTime(card.LimitTime),
121
-        PracticeTimeStr2: common.formatDateCHS(common.formatTime(card.LimitTime)),
150
+        PracticeCardType: card.CardTypeStr,
151
+        PracticeTimeStr: common.formatDateCHS(common.formatTime(card.LimitTime)),
122 152
         Field: card.Field,
123 153
         Tags: card.Tags,
154
+        TagsStr: card.Tags.join("、"),
124 155
         FieldContent: content,
156
+        CardType:card.CardType,
125 157
       });
126 158
 
127 159
       if (that.data.UpdateType != "add2") {
128
-        wx.setNavigationBarTitle({
129
-          title: '编辑题卡'
160
+        that.setData({
161
+          PageTitle: '编辑题卡',
130 162
         });
131 163
       }
132 164
 
@@ -140,7 +172,6 @@ Page({
140 172
         });
141 173
       }
142 174
     }
143
-
144 175
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function () { });
145 176
   },
146 177
   onHide: function () {
@@ -197,6 +228,10 @@ Page({
197 228
     if (this.data.IsRecorder)
198 229
       this.closeRecorder();
199 230
 
231
+    if (wx.getStorageSync("IsRemindContinuousNew")==1){
232
+      wx.removeStorageSync('IsRemindContinuousNew');
233
+    }
234
+
200 235
   },
201 236
   onClose: function () {
202 237
     wx.navigateBack({
@@ -223,8 +258,9 @@ Page({
223 258
       FieldNumber: fieldid,
224 259
       FieldContent: content,
225 260
     });
226
-    wx.setNavigationBarTitle({
227
-      title: '编辑 段落' + fieldid,
261
+    
262
+    that.setData({
263
+      PageTitle: '编辑 段落' + fieldid,
228 264
     });
229 265
   },
230 266
   onSearch: function (e) {
@@ -237,8 +273,8 @@ Page({
237 273
     var that = this;
238 274
     if (that.data.Field[1] == "") {
239 275
       wx.showToast({
240
-        title: '第一段必填',
241
-        image: "../images/universalpic_wrong_white_120x120.png",
276
+        title: '填写段落1',
277
+        image: "../images/universalpic_warning_white_126x120.png",
242 278
       });
243 279
     } else {
244 280
       wx.navigateTo({
@@ -250,8 +286,8 @@ Page({
250 286
     var that = this;
251 287
     if (that.data.Field[1] == "") {
252 288
       wx.showToast({
253
-        title: '第一段必填',
254
-        image: "../images/universalpic_wrong_white_120x120.png",
289
+        title: '填写段落1',
290
+        image: "../images/universalpic_warning_white_126x120.png",
255 291
       });
256 292
     } else {
257 293
       if (isSave) {
@@ -276,7 +312,13 @@ Page({
276 312
               param1.Tags = tags;
277 313
 
278 314
               
279
-              param1.LimitTime = that.getLimitTimeStr();
315
+              param1.LimitTime = that.data.LimitTime;
316
+              if (!param1.LimitTime)
317
+                param1.LimitTime=common.formatTime(new Date(),"-",true);
318
+
319
+              param1.CardType = that.data.CardType;
320
+              if (!param1.CardType)
321
+                param1.CardType=0;
280 322
 
281 323
               param1.ID = that.data.MiaoguoCardID;
282 324
               that.saveLocalCardList(param1);
@@ -284,7 +326,7 @@ Page({
284 326
               wx.hideLoading();
285 327
 
286 328
               wx.showLoading({
287
-                title: '保存数据请稍候',
329
+                title: '保存',
288 330
                 mask: true,
289 331
               });
290 332
               timeoutUploadImage = setTimeout(function () {
@@ -298,18 +340,52 @@ Page({
298 340
                   that.onClose();
299 341
                 } else {
300 342
                   wx.hideLoading();
301
-                  wx.showToast({
302
-                    title: '已保存!',
303
-                    image: "../images/universalpic_saved_white_120x120.png",
304
-                  });
305 343
 
306 344
                   if (that.data.UpdateType == "add2") {
345
+                    if (!wx.getStorageSync("IsRemindContinuousNew") && that.data.IsEditCardType){
346
+                        wx.showModal({
347
+                          title: '提醒',
348
+                          showCancel: true,
349
+                          cancelText: "不再提醒",
350
+                          content: '连续新建会保留上一张题卡的练习模式、到期时间等设置,以便减少设置次数,新建一批相同属性的题卡。以蓝色标明。点恢复按键可立即恢复成默认设置。',
351
+                          confirmText: '好的',
352
+                          success(res) {
353
+                            if (res.confirm) {
354
+                              wx.setStorageSync("IsRemindContinuousNew",1);
355
+                            }
356
+                            else{
357
+                              wx.setStorageSync("IsRemindContinuousNew",2);
358
+                            }
359
+                          }
360
+                        });
361
+                    }
362
+                    else{
363
+                      wx.showToast({
364
+                        title: '已保存',
365
+                        image: "../images/universalpic_saved_white_120x120.png",
366
+                      });
367
+                    }
307 368
                     isFirstAdd = false;
308 369
                     that.initAddCard();
309 370
                   }
371
+                  else{
372
+                    wx.showToast({
373
+                      title: '已保存',
374
+                      image: "../images/universalpic_saved_white_120x120.png",
375
+                    });
376
+                  }
310 377
 
311 378
                 }
312 379
                 wx.removeStorageSync("TempCardInfo");
380
+
381
+                if (that.data.CardType==1){
382
+                  var cardType=wx.getStorageSync('CardType');
383
+                  if (cardType==0 && app.globalData.TaskToday.CardNumberUrgent==1){
384
+                    wx.navigateTo({
385
+                      url: "../other/menu?Type=0",
386
+                    });
387
+                  }
388
+                }
313 389
               });
314 390
             } else {
315 391
               wx.showToast({
@@ -425,7 +501,7 @@ Page({
425 501
 
426 502
     if (b) {
427 503
       wx.showLoading({
428
-        title: '上传图片请稍候',
504
+        title: '正在上传',
429 505
         mask: true,
430 506
       });
431 507
       timeoutUploadImage = setTimeout(function () {
@@ -556,45 +632,51 @@ Page({
556 632
   deleteItem: function (e) {
557 633
     var that = this;
558 634
     var index = e.currentTarget.dataset.id;
559
-
560
-    wx.showModal({
561
-      title: '提醒',
562
-      content: '记号“' + that.data.Tags[index] + '”要删除吗?',
563
-      success(res) {
564
-        if (res.confirm) {
565
-          that.data.Tags.splice(index, 1);
566
-          that.setData({
567
-            Tags: that.data.Tags,
568
-          });
569
-
570
-          var list = app.globalData.CardList;
571
-          for (var i = 0; i < list.length; i++) {
572
-            if (that.data.MiaoguoCardID == list[i].MiaoguoCardID) {
573
-              list[i].Content[0].Content = that.data.Tags;
574
-              break;
575
-            }
576
-          }
577
-          app.globalData.CardList = list;
635
+    if (e.currentTarget.dataset.type==1){
636
+      that.setData({
637
+        TagIndex: index,
638
+      });
639
+    }
640
+    else if (e.currentTarget.dataset.type==2){
641
+      that.data.TagTemp.splice(index, 1);
642
+      that.setData({
643
+        TagTemp: that.data.TagTemp,
644
+        TagIndex: -1,
645
+      });
646
+    }
647
+    else if (e.currentTarget.dataset.type==3){
648
+      that.setData({
649
+        Tags: that.data.TagTemp,
650
+        TagsStr:that.data.TagTemp.join("、"),
651
+        TagIndex: -1,
652
+      });
653
+      var list = app.globalData.CardList;
654
+      for (var i = 0; i < list.length; i++) {
655
+        if (that.data.MiaoguoCardID == list[i].MiaoguoCardID) {
656
+          list[i].Content[0].Content = that.data.Tags;
657
+          break;
578 658
         }
579 659
       }
580
-    });
581
-
660
+      app.globalData.CardList = list;
661
+      
662
+      that.closeTagShow();
663
+    }
582 664
   },
583 665
   onGotoList: function () {
584 666
     var that = this;
585 667
     if (isFirstAdd == true || !that.data.Field) {
586 668
       wx.showModal({
587
-        title: '无法查看上一张',
588
-        content: '本功能是在批量添加题卡时快速回看上一张题卡。现在是本批的第一张,没有上一张。',
669
+        title: '提醒',
670
+        content: '无法复查,因为没有上一张。从连续新建第二张题卡起可一键查看上一张题卡。',
589 671
         confirmText: '知道了',
590 672
         showCancel: false,
591 673
       });
592 674
     }
593 675
     else if (that.data.Field[1].length > 0 || that.data.Field[2].length > 0 || that.data.Field[2].length > 0) {
594 676
       wx.showModal({
595
-        title: '尚未保存',
596
-        content: '即将“查看上一张题卡”,但当前题卡尚未保存,按继续将放弃保存。',
597
-        confirmText: '继续',
677
+        title: '提醒',
678
+        content: '将离开编辑状态,请先保存题卡。',
679
+        confirmText: '不保存',
598 680
         success(res) {
599 681
           if (res.confirm) {
600 682
             goto();
@@ -631,25 +713,6 @@ Page({
631 713
       });
632 714
     }
633 715
   },
634
-  getLimitTimeStr: function () {
635
-    var that = this;
636
-    if (!that.data.LimitTime)
637
-      that.data.LimitTime = common.formatTime(new Date());
638
-    var LimitTime = common.formatTime(new Date(that.data.LimitTime),"-");
639
-    if (that.data.PracticeTimeStr == PracticeTimeArr[1].Name)
640
-      LimitTime = common.formatTime(common.addDate("w", 1, new Date(that.data.LimitTime)));
641
-    else if (that.data.PracticeTimeStr == PracticeTimeArr[2].Name)
642
-      LimitTime = common.formatTime(common.addDate("m", 1, new Date(that.data.LimitTime)));
643
-    else if (that.data.PracticeTimeStr == PracticeTimeArr[3].Name)
644
-      LimitTime = common.formatTime(common.addDate("m", 3, new Date(that.data.LimitTime)));
645
-
646
-    //console.log(that.data.LimitTime);
647
-    //console.log(new Date(that.data.LimitTime));
648
-    //console.log(common.addDate("w", 1, new Date(that.data.LimitTime)));
649
-    //console.log(LimitTime);
650
-    return LimitTime
651
-  },
652
-
653 716
 
654 717
   //段落编辑**************************
655 718
 
@@ -860,10 +923,11 @@ Page({
860 923
 
861 924
       var title = "编辑题卡";
862 925
       if (obj.data.UpdateType == "add2") {
863
-        title = "添加题卡";
926
+        title = "新建题卡";
864 927
       }
865
-      wx.setNavigationBarTitle({
866
-        title: title,
928
+
929
+      that.setData({
930
+        PageTitle: title,
867 931
       });
868 932
     }
869 933
   },
@@ -905,7 +969,7 @@ Page({
905 969
               sourceType: ['camera'],
906 970
               success(res2) {
907 971
                 wx.showLoading({
908
-                  title: '请候',
972
+                  title: '请候',
909 973
                   mask: true,
910 974
                 });
911 975
                 setTimeout(function () {
@@ -975,12 +1039,11 @@ Page({
975 1039
 
976 1040
               if (!wx.getStorageSync("NoRemindImage")) {
977 1041
                 wx.showModal({
978
-                  title: '图片已插到段落中',
1042
+                  title: '提醒',
979 1043
                   showCancel: true,
980
-                  content: "图片显示为[图...][/图]。如要移动到别的段落,剪切时请确保其完整性。",
981
-                  confirmText: "知道了",
982
-                  cancelText: "不再提示",
983
-                  confirmColor: "#0071EF",
1044
+                  content: "“图片记号”以符号[图]开始…以符号[/图]结尾。如要剪切请确保完整性。",
1045
+                  confirmText: "好的",
1046
+                  cancelText: "不再提醒",
984 1047
                   success(res) {
985 1048
                     if (res.confirm) { } else {
986 1049
                       wx.setStorageSync("NoRemindImage", true);
@@ -997,46 +1060,26 @@ Page({
997 1060
         }
998 1061
       });
999 1062
     }
1000
-  },
1001
-  onPracticeTime: function (e) {
1002
-    var that = this;
1003
-    var value = e.currentTarget.dataset.value;
1004
-
1005
-    that.data.IsShowPracticeTimeStart = true;
1006
-    if (that.data.IsShowPracticeTimeStart && value != "还原") {
1007
-      that.data.IsShowPracticeTimeStart = false;
1008
-    }
1009
-
1010
-    that.setData({
1011
-      IsPracticeTime: false,
1012
-      PracticeTimeStr: value,
1013
-      IsShowPracticeTimeStart: that.data.IsShowPracticeTimeStart,
1014
-    });
1015
-
1016
-    var PracticeTimeStr2 = common.formatDateCHS(common.formatTime(that.data.LimitTime));
1017
-    if (value != "还原")
1018
-      PracticeTimeStr2 = common.formatDateCHS(common.formatTime(that.getLimitTimeStr(value)));
1019
-    else
1020
-      if (that.data.UpdateType === "add" || that.data.UpdateType === "add2")
1021
-        PracticeTimeStr2 = "智能安排";
1022
-
1023
-    that.setData({
1024
-      PracticeTimeStr2: PracticeTimeStr2,
1025
-    });
1026
-
1027
-
1028 1063
   },
1029 1064
   showPracticeTime: function () {
1030
-    this.setData({
1031
-      IsPracticeTime: true,
1032
-    });
1033
-  },
1034
-  closePracticeTime: function () {
1035
-    this.setData({
1036
-      IsPracticeTime: false,
1037
-    });
1065
+    if (this.data.MiaoguoCardID){
1066
+      wx.navigateTo({
1067
+        url: './previewMenu?IsSave=0&ID='+this.data.MiaoguoCardID+'&CardType='+this.data.CardType+"&LimitTime="+this.data.LimitTime,
1068
+      });
1069
+    }
1070
+    else{
1071
+      var limitTime=common.formatTime(new Date(),"-",true);
1072
+      if (this.data.LimitTime)
1073
+        limitTime=this.data.LimitTime;
1074
+
1075
+      var cardType=0;
1076
+      if (this.data.CardType)
1077
+        cardType=this.data.CardType;
1078
+      wx.navigateTo({
1079
+        url: './previewMenu?IsSave=0&ID=0&CardType='+cardType+'&LimitTime='+limitTime,
1080
+      });
1081
+    }
1038 1082
   },
1039
-
1040 1083
   //录音授权
1041 1084
   recorderAccredit: function () {
1042 1085
     var that = this;
@@ -1066,13 +1109,13 @@ Page({
1066 1109
     if (that.checkRecorderCount()) {
1067 1110
       that.recorderInit();
1068 1111
       tempRecorderFile = "";
1069
-      wx.setNavigationBarTitle({
1070
-        title: '录音',
1112
+      that.setData({
1113
+        PageTitle: '录音',
1071 1114
       });
1072 1115
       that.setData({
1073 1116
         IsRecorder: true,
1074 1117
         IsRecorderFinished: false,
1075
-        BtnRecorderName: "按住录音",
1118
+        BtnRecorderName: "按住录音1分钟",
1076 1119
         RecorderTime: "00:00",
1077 1120
         RecorderTimeCss: "",
1078 1121
         RecorderPlayName: "播放",
@@ -1106,12 +1149,10 @@ Page({
1106 1149
     if (tempRecorderFile) {
1107 1150
       wx.showModal({
1108 1151
         title: '提醒',
1109
-        content: '录音还没上传,要继续退出并放弃录音吗?',
1152
+        content: '录音文件还未上传,要放弃录音吗?',
1110 1153
         showCancel: true,
1111 1154
         confirmText: "取消",
1112
-        cancelColor: "#000000",
1113
-        cancelText: "继续",
1114
-        confirmColor: "#000000",
1155
+        cancelText: "不上传",
1115 1156
         success(res) {
1116 1157
           if (res.cancel) {
1117 1158
             closeRecorder2();
@@ -1123,8 +1164,8 @@ Page({
1123 1164
     }
1124 1165
 
1125 1166
     function closeRecorder2() {
1126
-      wx.setNavigationBarTitle({
1127
-        title: '编辑 段落' + that.data.FieldNumber,
1167
+      that.setData({
1168
+        PageTitle: '编辑 段落' + that.data.FieldNumber,
1128 1169
       });
1129 1170
       that.setData({
1130 1171
         IsRecorder: false,
@@ -1175,7 +1216,7 @@ Page({
1175 1216
         //小于1秒处理
1176 1217
         wx.showToast({
1177 1218
           title: '时间过短',
1178
-          image: "../images/universalpic_wrong_white_120x120.png",
1219
+          image: "../images/universalpic_warning_white_126x120.png",
1179 1220
         });
1180 1221
         that.showRecorder();
1181 1222
       } else {
@@ -1212,7 +1253,7 @@ Page({
1212 1253
         if (that.data.RecorderPlayName == "播放") {
1213 1254
           wx.showToast({
1214 1255
             title: '录音超时',
1215
-            image: "../images/universalpic_wrong_white_120x120.png",
1256
+            image: "../images/universalpic_warning_white_126x120.png",
1216 1257
           });
1217 1258
         }
1218 1259
       }
@@ -1240,7 +1281,7 @@ Page({
1240 1281
     var that = this;
1241 1282
     this.recorderInit();
1242 1283
     wx.showLoading({
1243
-      title: '上传中请稍候',
1284
+      title: '正在上传',
1244 1285
     });
1245 1286
     setTimeout(function () {
1246 1287
       wx.hideLoading();
@@ -1263,12 +1304,11 @@ Page({
1263 1304
 
1264 1305
         if (!wx.getStorageSync("NoRemindRecorder")) {
1265 1306
           wx.showModal({
1266
-            title: '录音已插到段落中',
1307
+            title: '提醒',
1267 1308
             showCancel: true,
1268
-            content: "录音显示为[音...][/音]。如要移动到别的段落,剪切时请确保其完整性。",
1269
-            confirmText: "知道了",
1270
-            cancelText: "不再提示",
1271
-            confirmColor: "#0071EF",
1309
+            content: "“录音记号”以符号[录]开始…以符号[/录]结尾。如要剪切请确保完整性。",
1310
+            confirmText: "好的",
1311
+            cancelText: "不再提醒",
1272 1312
             success(res) {
1273 1313
               if (res.confirm) { } else {
1274 1314
                 wx.setStorageSync("NoRemindRecorder", true);
@@ -1310,6 +1350,42 @@ Page({
1310 1350
       });
1311 1351
     }
1312 1352
   },
1353
+
1354
+  showTagShow:function(){
1355
+    var tagTemp=this.data.Tags.join(",");
1356
+
1357
+    this.setData({
1358
+      IsTagShow:true,
1359
+      TagTemp:tagTemp.split(","),
1360
+      TagIndex:-1,
1361
+    });
1362
+
1363
+    this.setData({
1364
+      PageTitle: '自动记号',
1365
+    });
1366
+  },
1367
+  closeTagShow:function(){
1368
+    this.setData({
1369
+      IsTagShow:false,
1370
+    });
1371
+
1372
+    this.setData({
1373
+      PageTitle: '编辑题卡',
1374
+    });
1375
+  },
1376
+  setCardTypeInit:function(){
1377
+    this.setData({
1378
+      CardType:0,
1379
+      PracticeCardType:"日常",
1380
+      PracticeTimeStr:"",
1381
+      LimitTime:common.formatTime(new Date(),"-",true),
1382
+      IsEditCardType:"",
1383
+    });
1384
+    wx.showToast({
1385
+      title: '已恢复默认',
1386
+      image: "../images/universalpic_restore_white_120x120.png",
1387
+    });
1388
+  },
1313 1389
   onShareAppMessage: function () {
1314 1390
     return {
1315 1391
       title: app.globalData.ShareTitle,

+ 5 - 1
pages/main/add.json

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

+ 214 - 186
pages/main/add.wxml

@@ -1,204 +1,230 @@
1
+<navigation-bar title="{{PageTitle}}" bindgetBarInfo="getBarInfo" show="true" left="true">
2
+    <view slot="left">
3
+			<view class="TopLeftButton FlexRow" catchtap="onClose"
4
+				wx:if="{{!IsTagShow && HiddenFieldEdit && !IsRecorder}}">
5
+				<image class="CombinedShape" src='../images/CombinedShape.png' />
6
+			</view>
7
+		</view>
8
+</navigation-bar>
9
+
1 10
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' hidden='{{!HiddenFieldEdit}}'>
2
-  <view class="panelTop FlexRow">
3
-    <view class="panelTopLeft FlexRow" catchtap="onSearch">
4
-      <view class="add">+</view> 资料
5
-    </view>
6
-    <view class='panelTopLeft FlexRow' catchtap="gotoTest" wx:if="{{UpdateType=='add' || UpdateType=='add2'}}">
7
-      <view class="add">+</view> 检验
8
-    </view>
9
-  </view>
10
-  <view style='height:120rpx'></view>
11
-  <view class="panelTitle FlexRow">
12
-    <view class="panelTitle1">段落</view>
13
-  </view>
14
-  <block wx:for="{{[1,2,3]}}" wx:key="indexParent" wx:for-index="indexParent" wx:for-item="itemParent">
15
-    <view class="lineWidthAll FlexRow" wx:if="{{indexParent>0}}">
16
-      <view class="lineWidth750"></view>
17
-    </view>
18
-    <view class="panelItem FlexRow" bindtap='gotoAddItem' data-fieldid="{{itemParent}}">
19
-      <view class="panelItem11 FlexColumn">
20
-        <view class="number2 number" wx:if="{{!Field[itemParent] || Field[itemParent].length==0}}">{{itemParent}}</view>
21
-        <view class="number" wx:if="{{Field[itemParent] && Field[itemParent].length>0}}">{{itemParent}}</view>
22
-      </view>
23
-      <view class="panelItem21 FlexRow">
24
-        <text class="textNull" wx:if="{{!Field[itemParent] || Field[itemParent].length==0}}">
25
-          <block wx:if="{{itemParent==1}}">题目</block>
26
-          <block wx:if="{{itemParent==2}}">答案</block>
27
-          <block wx:if="{{itemParent==3}}">其它</block>
28
-        </text>
29
-        <block wx:for="{{Field[itemParent]}}" wx:key="index">
30
-          <text class="textNormal" wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
31
-          <text class="textNormal FlexRow" wx:if="{{item.Type=='line'}}">
32
-            <block wx:for="{{item.Content}}" wx:key="contentIndex" wx:for-item="contentItem">
33
-              <text wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
34
-          <text class="textLine" wx:if="{{contentItem.key=='line'}}">{{contentItem.value}}</text>
35
-          <text class="textHighlighter" wx:if="{{contentItem.key=='highlighter'}}">{{contentItem.value}}</text>
36
-        </block>
37
-        </text>
38
-
39
-        <view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
40
-          <image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
41
-        </view>
42
-        <text class="textPinyin" wx:if="{{item.Type=='sound'}}">{{item.Content}}</text>
43
-        <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
44
-          <image class="universalpic_voicerecorder_transmit_black_44x34" src='../images/universalpic_voicerecorder_transmit_black_44x34.png' />
45
-        </view>
46
-        <image class="imageFree" mode="widthFix" wx:if="{{item.Type=='image'}}" src='{{item.Content}}' binderror="onBindError" />
47
-        <view class="textBr" wx:if="{{item.Type=='br'}}"></view>
48
-        <text class="textReturn" wx:if="{{item.Type=='return'}}"></text>
49
-  </block>
50
-  </view>
51
-  </view>
52
-  <block wx:if="{{Tags && Tags.length>0 && indexParent==0}}">
53
-    <view class="panelTag FlexColumn">
54
-      <view class="panelTag1">自动记号</view>
55
-      <view class="lineWidthAll FlexRow">
56
-        <view class="lineWidth640"></view>
57
-      </view>
11
+	
12
+	<view class="panelTop FlexRow">
13
+		<view class="panelTopLeft FlexRow" catchtap="onSearch">
14
+			<image class="universalpic_data_black_30x32" src='../images/universalpic_data_black_30x32.png' />
15
+			<view class="panelText">加资料</view>
16
+		</view>
17
+		<view class="line0"></view>
18
+		<view class='panelTopLeft FlexRow' catchtap="gotoTest" wx:if="{{UpdateType=='add' || UpdateType=='add2'}}">
19
+			<image class="universalpic_examine_black_30x32" src='../images/universalpic_examine_black_30x32.png' />
20
+			<view class="panelText">做检验</view>
21
+		</view>
22
+		<view class='panelTopLeft FlexRow'  wx:if="{{UpdateType!='add' && UpdateType!='add2'}}"></view>
23
+	</view>
58 24
 
59
-      <view class='panelTag1 FlexRow'>
60
-        <block wx:for="{{Tags}}" wx:key="indexTag" wx:for-index="indexTag">
61
-          <view class="panelTag2 FlexRow" bindtap='deleteItem' data-id="{{indexTag}}">
62
-            <view class="tag1">{{item}}</view>
63
-            <image src='../images/universalpic_del_gray_14x14.png' class="universalpic_del_gray_14x14" />
64
-          </view>
65
-        </block>
66
-      </view>
67
-      <view style='height:30rpx;'></view>
68
-    </view>
69
-  </block>
70
-  </block>
71
-  <view class='lineFooter'></view>
72
-  
73
-  <view class="panelTimePlan FlexRow" bindtap="showPracticeTime" wx:if="{{IsShowPracticeTimeStart}}">
74
-    <view class="panelItem1 FlexRow">
75
-      <image src='../images/universalpic_clock_gray_24x24.png' class="universalpic_clock_gray_24x24" />
76
-      <view>练习时间</view>
77
-    </view>
78
-    <view class="panelItem2 FlexRow">
79
-      <view class="panelTimePlan1">{{PracticeTimeStr2}}</view>
80
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
81
-    </view>
82
-  </view> 
83
-  
84
-  <view class="panelTimePlan0 panelTimePlan FlexRow" bindtap="showPracticeTime" wx:if="{{!IsShowPracticeTimeStart}}">
85
-    <view class="panelItem1 FlexRow">
86
-      <image src='../images/universalpic_clock_white_24x24.png' class="universalpic_clock_gray_24x24" />
87
-      <view>练习时间</view>
88
-    </view>
89
-    <view class="panelItem2 FlexRow">
90
-      <view class="panelTimePlan2 panelTimePlan1">{{PracticeTimeStr2}}</view>
91
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
92
-    </view>
93
-  </view>
94
-  <view style='height:300rpx;'></view>
25
+	<view class="line"></view>
95 26
 
96
-  <view class='panelSave FlexColumn'>
97
-    <view class="panelSave00 FlexRow">
98
-      <view class="panelSave1" catchtap='onGotoList' wx:if="{{UpdateType=='add' || UpdateType=='add2'}}">
99
-        复查
100
-      </view>
101
-      <view class="panelSave1" catchtap='onClose' wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
102
-        复查
103
-      </view>
104
-      <view class='panelSave2' bindtap="saveCard">
105
-        保存
106
-      </view>
107
-      <view class="panelSave1" bindtap="onPreview">
108
-        预览
109
-      </view>
110
-    </view>
27
+	<view class="panelItemCircle FlexColumn">
28
+		<view class="panelItemCircleTop panelItemCircle1 FlexRow">
29
+			<view class="panelItemCircle11 FlexColumn">
30
+				<view class="panelItemCircle1110 panelItemCircle111">段落</view>
31
+			</view>
32
+			<view>
33
+			</view>
34
+		</view>
35
+		<block wx:for="{{[1,2,3]}}" wx:key="indexParent" wx:for-index="indexParent" wx:for-item="itemParent">
36
+			<view class="lineWidthAll FlexRow" wx:if="{{indexParent>0}}">
37
+				<view class="lineWidth600"></view>
38
+			</view>
111 39
 
112
-    <view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
113
-  </view>
40
+			<view class="panelItemCircleBottom panelItem FlexRow" bindtap='gotoAddItem' data-fieldid="{{itemParent}}">
41
+				<view class="panelItem11 FlexColumn">
42
+					<view class="number2 number" wx:if="{{!Field[itemParent] || Field[itemParent].length==0}}">{{itemParent}}</view>
43
+					<view class="number" wx:if="{{Field[itemParent] && Field[itemParent].length>0}}">{{itemParent}}</view>
44
+				</view>
45
+				<view class="panelItem21 FlexRow">
46
+					<text class="textNull" wx:if="{{!Field[itemParent] || Field[itemParent].length==0}}">
47
+            <block wx:if="{{itemParent==1}}">题目</block>
48
+            <block wx:if="{{itemParent==2}}">答案</block>
49
+            <block wx:if="{{itemParent==3}}">其它</block>
50
+          </text>
51
+					<block wx:for="{{Field[itemParent]}}" wx:key="index">
52
+						<text class="textNormal" wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
53
+						<text class="textNormal FlexRow" wx:if="{{item.Type=='line'}}">
54
+              <block wx:for="{{item.Content}}" wx:key="contentIndex" wx:for-item="contentItem">
55
+                <text wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
56
+						<text class="textLine" wx:if="{{contentItem.key=='line'}}">{{contentItem.value}}</text>
57
+						<text class="textHighlighter" wx:if="{{contentItem.key=='highlighter'}}">{{contentItem.value}}</text>
58
+					</block>
59
+					</text>
60
+
61
+					<view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
62
+						<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
63
+					</view>
64
+					<text class="textPinyin" wx:if="{{item.Type=='sound'}}">{{item.Content}}</text>
65
+					<view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
66
+						<image class="universalpic_voicerecorder_transmit_black_44x34" src='../images/universalpic_voicerecorder_transmit_black_44x34.png' />
67
+					</view>
68
+					<image class="imageFree" mode="widthFix" wx:if="{{item.Type=='image'}}" src='{{item.Content}}' binderror="onBindError" />
69
+					<view class="textBr" wx:if="{{item.Type=='br'}}"></view>
70
+					<text class="textReturn" wx:if="{{item.Type=='return'}}"></text>
71
+		</block>
72
+	</view>
73
+</view>
74
+</block>
114 75
 </view>
115 76
 
116
-<!-- 更多功能 -->
117
-<view wx:if="{{IsPracticeTime}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;'>
118
-  <view class="numberContainerFooter1 FlexColumn">
119
-    <view class='lineFooter'></view>
120
-    <view class='numberContainerFooter101 FlexRow'>
121
-      <image class="universalpic_bell_black_30x30" src='../images/universalpic_bell_black_30x30.png' />
122
-      <view class='numberContainerFooter11 FlexColumn'>
123
-        <view class='numberContainerFooter111'>调整练习时间</view>
124
-        <view class='numberContainerFooter112 FlexRow'>
125
-          <view class='numberContainerFooter1121' wx:for="{{PracticeTimeArr}}" wx:key="index" catchtap='onPracticeTime' data-value='{{item.Name}}'>{{item.Name}}</view>
126
-        </view>
127
-      </view>
128
-    </view>
129
-  </view>
130
-  <view class='lineFooter'></view>
131
-  <view class="numberContaineFooter FlexRow" catchtap='closePracticeTime'>
132
-    <view>关闭</view>
133
-  </view>
77
+<view class="panelItem0 FlexRow">
78
+	<view class="panelItemCircleTop panelItemCircleBottom panelTimePlan{{UpdateType}}{{IsEditCardType}} panelTimePlan FlexRow" bindtap="showPracticeTime">
79
+		<view class="panelItem1 FlexRow">
80
+			<image src='../images/universalpic_plan_6dots_black_30x32.png' class="universalpic_plan_6dots_black_30x32" />
81
+			<view>学习计划</view>
82
+		</view>
83
+		<view class="panelItem2 FlexRow">
84
+			<view class="panelTimePlan1{{IsEditCardType}} panelTimePlan1">{{PracticeCardType}}</view>
85
+			<view class="panelTimePlan1{{IsEditCardType}} panelTimePlan1" wx:if="{{CardType>=0}}">{{PracticeTimeStr}}</view>
86
+			<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
87
+		</view>
88
+	</view>
89
+	<view class="panelItem01" wx:if="{{IsEditCardType && (UpdateType=='add' || UpdateType=='add2')}}" bindtap="setCardTypeInit">恢复</view>
90
+</view>
91
+
92
+<view class="panelItemCircleTop panelItemCircleBottom panelTimePlan FlexRow" bindtap="showTagShow" wx:if="{{Tags && Tags.length>0}}">
93
+	<view class="panelItem1 FlexRow">
94
+		<image src='../images/universalpic_tag_black_30x30.png' class="universalpic_tag_black_30x30" />
95
+		<view>自动记号</view>
96
+	</view>
97
+	<view class="panelItem2 FlexRow">
98
+		<view class="panelTimePlan1">{{TagsStr}}</view>
99
+		<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
100
+	</view>
101
+</view>
102
+<view style='height:300rpx;'></view>
103
+
104
+<view class='panelSave FlexColumn'>
105
+	<view class="panelSave00 FlexRow">
106
+		<view class="panelSave1" catchtap='onGotoList' wx:if="{{UpdateType=='add' || UpdateType=='add2'}}">
107
+			复查
108
+		</view>
109
+		<view class="panelSave1" catchtap='onClose' wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
110
+			复查
111
+		</view>
112
+		<view class='panelSave2' bindtap="saveCard">
113
+			保存
114
+		</view>
115
+		<view class="panelSave1" bindtap="onPreview">
116
+			预览
117
+		</view>
118
+	</view>
119
+
120
+	<view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
121
+</view>
122
+</view>
123
+
124
+<!-- 自动记号 -->
125
+<view wx:if="{{IsTagShow}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;top:{{topBarHeight}}rpx;'>
126
+	<view class="panelTop FlexRow">
127
+		<view class="panelTopLeft FlexRow" catchtap="closeTagShow">
128
+			<view class="panelText1 panelText">放弃</view>
129
+		</view>
130
+		<view class='panelTopLeft FlexRow' catchtap='deleteItem' data-type="3">
131
+			<view class="panelText2 panelText">确定</view>
132
+		</view>
133
+	</view>
134
+	<view class="line"></view>
135
+	<view class="panelItem FlexColumn">
136
+		<view class="panelTitle FlexRow">
137
+			<view class="panelTitle1 FlexRow">
138
+				<image class="universalpic_tag_black_30x30" src="../images/universalpic_tag_black_30x30.png" />
139
+				<view>已使用</view>
140
+			</view>
141
+		</view>
142
+		<view class="lineWidthAll FlexRow">
143
+			<view class="lineWidth720"></view>
144
+		</view>
145
+		<view class='panelTag FlexRow'>
146
+			<block wx:for="{{TagTemp}}" wx:key="indexTag" wx:for-index="indexTag">
147
+				<view wx:if="{{indexTag!=TagIndex}}" class="panelTag1 FlexRow" catchtap='deleteItem' data-id="{{indexTag}}" data-type="1">
148
+					<view class="tag1">{{item}}</view>
149
+				</view>
150
+				<view wx:if="{{indexTag==TagIndex}}" class="panelTag2 panelTag1 FlexRow" catchtap='deleteItem' data-id="{{indexTag}}" data-type="2">
151
+					<view class="tag1">{{item}}</view>
152
+					<image src='../images/universalpic_del_white_14x14.png' class="universalpic_del_white_14x14" />
153
+				</view>
154
+			</block>
155
+		</view>
156
+	</view>
134 157
 </view>
135 158
 
136 159
 <!-- 字段编辑 -->
137
-<view class="addItem container FlexColumn" style='height:{{Containnerheight}}rpx;' hidden='{{HiddenFieldEdit || IsRecorder}}'>
138
-  <view class="panelItemTag FlexRow">
139
-    <view class='left FlexRow'>
140
-      <view class="panelSaveTag1 FlexRow" bindtap="onSearchField">
141
-        <view class="add">+</view> 资料
142
-      </view>
160
+<view class="addItem container FlexColumn" style='height:{{Containnerheight}}rpx; top:{{topBarHeight}}rpx;' hidden='{{HiddenFieldEdit || IsRecorder}}'>
161
+	<view class="panelItemTag FlexRow">
143 162
 
144
-      <view class="panelSaveTag2 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{LineSign}}" hidden="{{LineSign=='[/线]'}}">
145
-        <image class="universalpic_underline_begin_gray_14x20" src='../images/universalpic_underline_begin_gray_14x20.png' />
146
-      </view>
147
-      <view class="panelSaveTag3 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{LineSign}}" hidden="{{LineSign=='[线]'}}">
148
-        <image class="universalpic_underline_end_white_30x22" src='../images/universalpic_underline_end_white_30x22.png' />
149
-      </view>
163
+		<view class="panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="false">
164
+			放弃
165
+		</view>
166
+		<view class="panelSaveTag1 FlexRow" catchtap="onSearchField">
167
+			<image class="universalpic_data_black_30x32" src='../images/universalpic_data_black_30x32.png' />
168
+		</view>
150 169
 
151
-      <view class="panelSaveTag2 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{HighlighterSign}}" hidden="{{HighlighterSign=='[/光]'}}">
152
-        <image class="universalpic_highlighter_begin_gray_24x20" src='../images/universalpic_highlighter_begin_gray_24x20.png' />
153
-      </view>
154
-      <view class="panelSaveTag3 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{HighlighterSign}}" hidden="{{HighlighterSign=='[光]'}}">
155
-        <image class="universalpic_highlighter_begin_gray_24x20" src='../images/universalpic_highlighter_end_white_24x20.png' />
156
-      </view>
170
+		<view class="panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{LineSign}}" hidden="{{LineSign=='[/线]'}}">
171
+			<image class="universalpic_underline_begin_black_16x24" src='../images/universalpic_underline_begin_black_16x24.png' />
172
+		</view>
173
+		<view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{LineSign}}" hidden="{{LineSign=='[线]'}}">
174
+			<image class="universalpic_underline_end_white_34x24" src='../images/universalpic_underline_end_white_34x24.png' />
175
+		</view>
157 176
 
158
-      <view class="panelSaveTag2 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{SoundSign}}" hidden="{{SoundSign=='[/读]'}}">
159
-        <image class="universalpic_read_begin_gray_20x20" src='../images/universalpic_read_begin_gray_20x20.png' />
160
-      </view>
161
-      <view class="panelSaveTag3 panelSaveTag1 FlexRow" bindtap="addSymbol" data-id="{{SoundSign}}" hidden="{{SoundSign=='[读]'}}">
162
-        <image class="universalpic_read_end_white_38x22" src='../images/universalpic_read_end_white_38x22.png' />
163
-      </view>
177
+		<view class="panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{HighlighterSign}}" hidden="{{HighlighterSign=='[/光]'}}">
178
+			<image class="universalpic_highlighter_begin_black_30x25" src='../images/universalpic_highlighter_begin_black_30x25.png' />
179
+		</view>
180
+		<view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{HighlighterSign}}" hidden="{{HighlighterSign=='[光]'}}">
181
+			<image class="universalpic_highlighter_end_white_49x25" src='../images/universalpic_highlighter_end_white_49x25.png' />
182
+		</view>
164 183
 
165
-      <view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="uploadImageField" wx:if="{{IsShow==1}}">
166
-        <image class="universalpic_picture_gray_26x26" src='../images/universalpic_picture_gray_26x26.png' />
167
-      </view>
184
+		<view class="panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{SoundSign}}" hidden="{{SoundSign=='[/读]'}}">
185
+			<image class="universalpic_read_begin_black_26x26" src='../images/universalpic_read_begin_black_26x26.png' />
186
+		</view>
187
+		<view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{SoundSign}}" hidden="{{SoundSign=='[读]'}}">
188
+			<image class="universalpic_read_end_white_44x26" src='../images/universalpic_read_end_white_44x26.png' />
189
+		</view>
168 190
 
169
-      <view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="recorderAccredit" wx:if="{{IsShow==1}}">
170
-        <image class="universalpic_voicerecorder_normal_gray_21x26" src='../images/universalpic_voicerecorder_normal_gray_21x26.png' />
171
-      </view>
172
-    </view>
173
-    <view class='right FlexRow'>
174
-      <view class="clear" catchtap="clear">清空</view>
175
-    </view>
176
-  </view>
177
-  <view class='lineFooter'></view>
191
+		<view class="panelSaveTag1 FlexRow" catchtap="uploadImageField" wx:if="{{IsShow==1}}">
192
+			<image class="universalpic_picture_black_30x28" src='../images/universalpic_picture_black_30x28.png' />
193
+		</view>
178 194
 
179
-  <view class='panelInput'>
180
-    <textarea class="input" maxlength='-1' show-confirm-bar="true" value="{{FieldContent}}" focus="{{Focus}}" cursor="{{Cursor}}" bindinput="bindinputField" bindblur="onBindblur" bindfocus="onBindFocus" data-id='{{FieldNumber}}' />
181
-  </view>
195
+		<view class="panelSaveTag11 panelSaveTag1 FlexRow" catchtap="recorderAccredit" wx:if="{{IsShow==1}}">
196
+			<image class="universalpic_voicerecorder_black_20x26" src='../images/universalpic_voicerecorder_black_20x26.png' />
197
+		</view>
182 198
 
199
+		<view class="panelSaveTag3 panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="true">
200
+			确定
201
+		</view>
202
+	</view>
203
+	<view class='lineFooter'></view>
204
+	<view class='panelInput'>
205
+		<textarea class="input" style="height:{{InputHeight}}rpx;" maxlength='-1' show-confirm-bar="true" value="{{FieldContent}}" focus="{{Focus}}" cursor="{{Cursor}}" bindinput="bindinputField" bindblur="onBindblur" bindfocus="onBindFocus" data-id='{{FieldNumber}}' />
206
+	</view>
183 207
   <view class='lineFooter'></view>
184 208
   <view class='panelBtnItem FlexColumn'>
185 209
     <scroll-view scroll-x="true" class="panelBtnSmall" bindscroll="bindscrollHandler">
186 210
       <view class="btn0"></view>
187
-      <view class="btn" bindtap="addSymbol" wx:for="{{SymbolMain}}" wx:key="index" data-id="{{item.Name}}">{{item.Name}}</view>
188
-      <view class="btn2 btn" bindtap="gotoSymbol">更多</view>
211
+      <view class="btn" catchtap="addSymbol" wx:for="{{SymbolMain}}" wx:key="index" data-id="{{item.Name}}">{{item.Name}}</view>
212
+      <view class="btn2 btn" catchtap="gotoSymbol">更多</view>
189 213
     </scroll-view>
190 214
     <view class='lineFooter'></view>
191
-    <view class='panelBtn FlexRow'>
192
-      <view class='text1' bindtap="closeAddItem" data-idsave="false">取消</view>
193
-      <view class='line1'></view>
194
-      <view class='text2 text1' bindtap="closeAddItem" data-idsave="true">确定</view>
195
-    </view>
196
-    <view class='lineFooter'></view>
197 215
   </view>
198 216
 </view>
199 217
 
200 218
 <!-- 录音功能 -->
201
-<view wx:if="{{IsRecorder}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;'>
219
+<view wx:if="{{IsRecorder}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;top:{{topBarHeight}}rpx;'>
220
+  <view class="panelTop FlexRow" >
221
+    <view class="panelTopLeft FlexRow" catchtap="closeRecorder">
222
+      <view class="panelText1 panelText">放弃</view> 
223
+    </view>
224
+    <view class='panelTopLeft FlexRow' catchtap='btnRecorderSave'>
225
+      <view class="panelText2 panelText">上传</view> 
226
+    </view>
227
+  </view>
202 228
   <view class='RecorderPanel2 FlexRow' wx:if="{{!FieldContent}}">
203 229
     <image class="edit_voicerecorder_illus" src='../images/edit_voicerecorder_illus.png' />
204 230
   </view>
@@ -210,20 +236,22 @@
210 236
   </view>
211 237
   <view class='RecorderPanel1 FlexColumn'>
212 238
     <view class='RecorderPanel11 FlexRow'>
213
-      <view class='RecorderPanel111 FlexRow'>
214
-        <image class="universalpic_voicerecorder_black_30x30" src='../images/universalpic_voicerecorder_black_30x30.png' />
215
-        <view class='RecorderPanel1111'>1分钟录音</view>
216
-      </view>
217 239
       <view class='{{RecorderTimeCss}} RecorderPanel112'>{{RecorderTime}}</view>
218 240
     </view>
219
-    <view class='btnRecorderStart' hover-start-time="50" hover-class="btnRecorderEnd" catchtouchstart='btnRecorderStart' catchtouchend='btnRecorderEnd' wx:if="{{!IsRecorderFinished}}">{{BtnRecorderName}}</view>
241
+    <view class='btnRecorderStart FlexRow' hover-start-time="50" hover-class="btnRecorderEnd" catchtouchstart='btnRecorderStart' catchtouchend='btnRecorderEnd' wx:if="{{!IsRecorderFinished}}">
242
+      <view class="symbol1" wx:if="{{RecorderTimeCss!='RecorderPanel1121'}}">●</view>
243
+      <view>{{BtnRecorderName}}</view>
244
+    </view>
220 245
     <view class='RecorderPanel12 FlexRow' wx:if="{{IsRecorderFinished}}">
221
-      <view class='btnRecorderStart2 btnRecorderStart' hover-class="btnRecorderEnd" catchtap='showRecorder'>重录</view>
222
-      <view class='btnRecorderStart2 btnRecorderStart' hover-class="btnRecorderEnd" catchtap='btnRecorderPlay'>{{RecorderPlayName}}</view>
223
-      <view class='btnRecorderStart3 btnRecorderStart' hover-class="btnRecorderEnd" catchtap='btnRecorderSave'>上传</view>
246
+      <view class='btnRecorderStart2 btnRecorderStart FlexRow' hover-class="btnRecorderEnd" catchtap='showRecorder'>
247
+        <view class="symbol1">●</view>
248
+        <view>重录</view>
249
+      </view>
250
+      <view class='btnRecorderStart2 btnRecorderStart FlexRow' hover-class="btnRecorderEnd" catchtap='btnRecorderPlay'>
251
+        <view class="symbol2" wx:if="{{RecorderPlayName=='播放'}}">▶︎</view>
252
+        <view class="symbol2" wx:if="{{RecorderPlayName=='停止'}}">■</view>
253
+        <view>{{RecorderPlayName}}</view>
254
+      </view>
224 255
     </view>
225 256
   </view>
226
-  <view class="numberContaineFooter2 numberContaineFooter FlexRow" catchtap='closeRecorder'>
227
-    <view>退出录音</view>
228
-  </view>
229 257
 </view>

+ 268 - 178
pages/main/add.wxss

@@ -1,33 +1,80 @@
1
+page{
2
+  background-color: #f0f0f0;
3
+}
4
+
5
+.TopLeftButton{
6
+  width: 100rpx;
7
+  height:100rpx;
8
+  justify-content: flex-start;
9
+}
10
+
11
+.CombinedShape{
12
+  width:19rpx;
13
+  height:34rpx;
14
+}
1 15
 
2 16
 .panelTop{
3
-  height: 120rpx;
4 17
   width: 100%;
5
-  justify-content: space-between;
6
-  font-size: 28rpx;
18
+  height:100rpx;
7 19
   background-color: #fff;
8 20
   position: fixed;
9
-  top:0;
10 21
   z-index: 10;
11 22
   border-bottom: 1rpx solid #d2d2d2;
23
+  justify-content: space-between;
24
+  font-size: 28rpx;
12 25
 }
13 26
 
14 27
 .panelTop .panelTopLeft {
15
-  width: 148rpx;
28
+  width: 374rpx;
16 29
   background-color: #fff;
17
-  border:1rpx solid #9B9B9B;
18
-  color:#787878;
19
-  text-align: center;
20
-  line-height: 80rpx;
21
-  height:80rpx;
22
-  border-radius: 10rpx;
30
+  height:100rpx;
23 31
   font-size:28rpx;
24
-  margin:0 20rpx;
25 32
 }
26 33
 
27
-.add {
28
-  font-size: 42rpx;
29
-  font-weight: 600;
30
-  margin: 0 10rpx 10rpx 0;
34
+.universalpic_data_black_30x32{
35
+  width:30rpx;
36
+  height:28rpx;
37
+}
38
+.universalpic_examine_black_30x32{
39
+  width:30rpx;
40
+  height:32rpx;
41
+}
42
+
43
+.line {
44
+  width:100%;
45
+  height:120rpx;
46
+  background-color: #f0f0f0;
47
+}
48
+
49
+.line0 {
50
+  width:2rpx;
51
+  height:30rpx;
52
+  background-color: #d2d2d2;
53
+}
54
+
55
+.panelText {
56
+  font-size: 28rpx;
57
+  margin-left: 20rpx;
58
+}
59
+
60
+.panelText1 {
61
+  width:344rpx;
62
+  height:100rpx;
63
+  color:#FE6659;
64
+  text-align: left;
65
+  line-height: 100rpx;
66
+  margin: 0 30rpx;
67
+  font-weight: 500;
68
+}
69
+
70
+.panelText2 {
71
+  width:344rpx;
72
+  height:100rpx;
73
+  color:#0071EF;
74
+  text-align: right;
75
+  line-height: 100rpx;
76
+  margin: 0 30rpx;
77
+  font-weight: 500;
31 78
 }
32 79
 
33 80
 .panelTop .panelTopRight{
@@ -35,19 +82,77 @@
35 82
   height:100rpx;
36 83
 }
37 84
 
38
-.universalpic_card_gray_26x26{
39
-  height: 26rpx;
40
-  width: 26rpx;
85
+/* 中间开始 */
86
+
87
+.panelItemCircle{
88
+  width:710rpx;
89
+  border-radius: 20rpx;
90
+  background-color: #fff;
91
+  justify-content: space-between;
92
+}
93
+
94
+.panelItemCircleTop{
95
+  border-top-left-radius: 20rpx;
96
+  border-top-right-radius: 20rpx;
97
+}
98
+.panelItemCircleBottom{
99
+  border-bottom-left-radius: 20rpx;
100
+  border-bottom-right-radius: 20rpx;
101
+}
102
+.panelItemCircle1{
103
+  width:100%;
104
+  height: 80rpx;
105
+  justify-content: space-between;
106
+}
107
+
108
+.panelItemCircle11{
109
+  font-size: 28rpx;
110
+  margin-left:30rpx;
111
+  height: 100rpx;
112
+  font-weight: 400;
113
+  align-items: flex-start;
114
+}
115
+.panelItemCircle110{
116
+  height: 132rpx;
117
+}
118
+.panelItemCircle111{
119
+  font-size: 28rpx;
120
+  color:#1e1e1e;
121
+}
122
+.panelItemCircle1110{
123
+  color:#4D4D4D;
124
+  font-weight: 500;
125
+  margin-top: 10rpx;
126
+}
127
+
128
+.panelItemCircle112{
129
+  font-size: 20rpx;
130
+  color:#787878;
131
+  margin-top: 4rpx;
41 132
 }
42 133
 
134
+.panelItemCircle12{
135
+  margin-right: 30rpx;
136
+}
137
+
138
+.line2{
139
+  width: 100%;
140
+  height:1rpx;
141
+  background-color: #E3E3E3;
142
+}
143
+
144
+
43 145
 .panelTimePlan {
44 146
   margin-top: 20rpx;
45 147
   height: 100rpx;
46
-  width: 100%;
148
+  width:710rpx;
47 149
   justify-content: space-between;
48 150
   font-size: 28rpx;
49 151
   background-color: #fff;
50
-  border-bottom: 1rpx solid #d2d2d2;
152
+}
153
+
154
+.panelTimePlanadd2_IsEditCardType {
155
+  width:610rpx;
51 156
 }
52 157
 
53 158
 .panelTimePlan0 {
@@ -58,19 +163,22 @@
58 163
 .panelTimePlan1{
59 164
   color:#787878;
60 165
   font-size: 28rpx;
61
-  font-weight: 400;
62
-  width:220rpx;
166
+  font-weight: 500;
63 167
   text-align: right;
168
+  overflow: hidden;
169
+  max-width: 400rpx;
170
+  white-space:nowrap;
171
+  margin-left: 10rpx;
64 172
 }
65 173
 
66
-.panelTimePlan2{
67
-  color:#fff;
174
+.panelTimePlan1_IsEditCardType{
175
+  color:#0071EF;
68 176
 }
69 177
 
70
-.universalpic_clock_gray_24x24{
71
-  width:24rpx;
72
-  height:24rpx;
73
-  margin-right: 10rpx;
178
+.universalpic_plan_6dots_black_30x32{
179
+  width:30rpx;
180
+  height:32rpx;
181
+  margin-right: 20rpx;
74 182
 }
75 183
 .panelTimePlanRemark{
76 184
   font-size:24rpx;
@@ -79,27 +187,57 @@
79 187
   font-weight: 400;
80 188
 }
81 189
 
190
+.universalpic_tag_black_30x30{
191
+  width:30rpx;
192
+  height:30rpx;
193
+  margin-right: 20rpx;
194
+}
195
+/* 中间结束 */
196
+
197
+/* 弹出界面开始 */
198
+
199
+.panelTag{
200
+  width: 690rpx;
201
+  background-color: #fff;
202
+  margin: 20rpx 30rpx;
203
+  flex-wrap: wrap;
204
+  justify-content: flex-start;
205
+}
206
+
207
+.panelTag .panelTag1{
208
+  color:#1e1e1e;
209
+  height:73rpx;
210
+  line-height: 73rpx;
211
+}
212
+.panelTag .panelTag2{
213
+  border-radius: 10rpx;
214
+  background-color: #0071EF;
215
+  color:#fff;
216
+}
217
+
218
+.panelTag .tag1{
219
+  font-size: 24rpx;
220
+  margin-right: 20rpx;
221
+  margin-top:10rpx;
222
+  padding: 0 20rpx;
223
+}
224
+
225
+.universalpic_del_white_14x14{
226
+  width:14rpx;
227
+  height:14rpx;
228
+  margin: 10rpx 20rpx 0 -20rpx;
229
+}
230
+/* 弹出界面结束 */
231
+
82 232
 .panelTitle {
83 233
   width: 100%;
84
-  margin-top: 50rpx;
85
-  justify-content: space-between;
234
+  height:100rpx;
235
+  justify-content: flex-start;
86 236
 }
87 237
 
88 238
 .panelTitle .panelTitle1 {
89
-  font-size: 32rpx;
90
-  margin-left: 30rpx;
91
-  margin-bottom: 30rpx;
92
-}
93
-
94
-.panelTitle .panelTitle2 {
95 239
   font-size: 28rpx;
96
-  margin-right: 30rpx;
97
-  background-color: #1e1e1e;
98
-  color: #fff;
99
-  border-radius: 22rpx;
100
-  text-align: center;
101
-  padding: 0 20rpx;
102
-  margin-bottom: 32rpx;
240
+  margin-left: 30rpx;
103 241
 }
104 242
 
105 243
 .panelItem {
@@ -120,7 +258,18 @@
120 258
 }
121 259
 
122 260
 .panelItem0 {
123
-  height: 133rpx;
261
+  width:100%;
262
+}
263
+.panelItem01 {
264
+  margin-top: 20rpx;
265
+  width:80rpx;
266
+  height: 100rpx;
267
+  line-height: 100rpx;
268
+  text-align: center;
269
+  font-size:24rpx;
270
+  margin-left: 20rpx;
271
+  background-color: #fff;
272
+  border-radius: 20rpx;
124 273
 }
125 274
 
126 275
 .panelItem1 {
@@ -147,7 +296,7 @@
147 296
 }
148 297
 .panelItem .number2 {
149 298
   background-color: #fff;
150
-  border:1rpx solid #0071EF;
299
+  border:2rpx solid #0071EF;
151 300
   width: 38rpx;
152 301
   height:38rpx;
153 302
   line-height: 38rpx;
@@ -230,44 +379,6 @@
230 379
   height:30rpx;
231 380
 }
232 381
 
233
-
234
-.panelTag{
235
-  width: 100%;
236
-  font-size: 24rpx;
237
-  background-color: #fff;
238
-  margin: 10rpx 0;
239
-  align-items: flex-end;
240
-}
241
-
242
-.panelTag .panelTag1{
243
-  width:640rpx;
244
-  font-size: 28rpx;
245
-  color:#1e1e1e;
246
-  text-align: left;
247
-  min-height:100rpx;
248
-  line-height: 100rpx;
249
-  flex-wrap: wrap;
250
-  justify-content: flex-start;
251
-}
252
-.panelTag .panelTag2{
253
-  line-height: 73rpx;
254
-  height:73rpx;
255
-  border:1rpx solid #9B9B9B;
256
-  margin: 30rpx 30rpx 0 0;
257
-  border-radius: 10rpx;
258
-}
259
-
260
-.panelTag .tag1{
261
-  font-size: 24rpx;
262
-  color:#787878;
263
-  margin-left: 30rpx;
264
-}
265
-.universalpic_del_gray_14x14{
266
-  width:14rpx;
267
-  height:14rpx;
268
-  margin: 0 30rpx 0 20rpx;
269
-}
270
-
271 382
 .panelSave {
272 383
   width: 100%;
273 384
   background-color: #fff;
@@ -290,32 +401,24 @@
290 401
 }
291 402
 
292 403
 .panelSave .panelSave1 {
293
-  width: 128rpx;
404
+  width: 125rpx;
294 405
   line-height: 120rpx;
295 406
   text-align: center;
296
-  font-size: 24rpx;
297
-  color:#787878;
407
+  font-size: 28rpx;
408
+  color:#1e1e1e;
298 409
 }
299 410
 
300 411
 .panelSave .panelSave2 {
301
-  width: 494rpx;
302
-  background-color: #fff;
303
-  border:1rpx solid #9B9B9B;
304
-  color:#0071EF;
412
+  width: 500rpx;
413
+  background-color: #f0f0f0;
414
+  color:#1E1E1E;
305 415
   text-align: center;
306 416
   line-height: 80rpx;
307 417
   height:80rpx;
308 418
   border-radius: 10rpx;
309
-  font-size:32rpx;
310
-  margin:0 10rpx 0 10rpx;
311
-}
312
-
313
-.universalpic_card_gray_26x26{
314
-  width: 26rpx;
315
-  height:26rpx;
419
+  font-size:36rpx;
316 420
 }
317 421
 
318
-
319 422
 .panelSave .panelSave0{
320 423
   width:290rpx;
321 424
   line-height:100rpx;
@@ -342,7 +445,6 @@
342 445
   color: #1e1e1e;
343 446
   background-color: #f0f0f0;
344 447
   position: fixed;
345
-  top: 0;
346 448
 }
347 449
 
348 450
 .left {
@@ -355,90 +457,83 @@
355 457
 
356 458
 .panelItemTag {
357 459
   width: 100%;
358
-  justify-content: space-between;
359
-  min-height: 120rpx;
460
+  height: 100rpx;
360 461
   background-color: #fff;
361 462
 }
362 463
 
363
-.panelSaveTag1 {
364
-  width: 148rpx;
464
+
465
+.panelSaveTag0 {
466
+  width: 100rpx;
365 467
   background-color: #fff;
366
-  border: 1rpx solid #9b9b9b;
367
-  color: #787878;
468
+  color: #FE6659;
368 469
   text-align: center;
369 470
   height: 80rpx;
370 471
   line-height: 80rpx;
371
-  border-radius: 10rpx;
372 472
   font-size: 28rpx;
473
+  margin-left: 10rpx;
373 474
 }
374 475
 
375
-.panelSaveTag2 {
476
+.panelSaveTag1 {
376 477
   width: 80rpx;
377 478
   height: 80rpx;
378 479
   background-color: #fff;
379
-  border: 1rpx solid #9b9b9b;
380
-  margin-left: 6rpx;
480
+  margin-right: 10rpx;
381 481
 }
382 482
 
383
-.panelSaveTag3 {
384
-  width: 80rpx;
385
-  height: 80rpx;
386
-  margin-left: 6rpx;
483
+.panelSaveTag2 {
387 484
   background-color: #0071ef;
388
-  border: 1rpx solid #0071ef;
389
-}
390
-
391
-.universalpic_read_begin_gray_20x20 {
392
-  width: 21rpx;
393
-  height: 20rpx;
485
+  border-radius: 10rpx;
394 486
 }
395 487
 
396
-.universalpic_read_end_white_38x22 {
397
-  width: 38rpx;
398
-  height: 22rpx;
488
+.universalpic_underline_begin_black_16x24 {
489
+  width: 16rpx;
490
+  height: 24rpx;
399 491
 }
400 492
 
401
-.universalpic_underline_begin_gray_14x20 {
402
-  width: 14rpx;
403
-  height: 20rpx;
493
+.universalpic_underline_end_white_34x24 {
494
+  width: 34rpx;
495
+  height: 24rpx;
404 496
 }
405 497
 
406
-.universalpic_underline_end_white_30x22 {
407
-  width: 31rpx;
408
-  height: 22rpx;
498
+.universalpic_highlighter_begin_black_30x25 {
499
+  width: 30rpx;
500
+  height: 25rpx;
409 501
 }
410 502
 
411
-.universalpic_highlighter_begin_gray_24x20{
412
-  width: 24rpx;
413
-  height: 20rpx;
503
+.universalpic_highlighter_end_white_49x25 {
504
+  width: 49rpx;
505
+  height: 25rpx;
414 506
 }
415 507
 
416
-.universalpic_picture_gray_26x26 {
508
+.universalpic_read_begin_black_26x26{
417 509
   width: 26rpx;
418 510
   height: 26rpx;
419 511
 }
420 512
 
421
-.universalpic_voicerecorder_normal_gray_21x26{
422
-  width: 21rpx;
513
+.universalpic_picture_black_30x28 {
514
+  width: 30rpx;
515
+  height: 28rpx;
516
+}
517
+
518
+.universalpic_voicerecorder_black_20x26{
519
+  width: 20rpx;
423 520
   height: 26rpx;
424 521
 }
425 522
 
523
+
426 524
 .add {
427 525
   font-size: 42rpx;
428 526
   font-weight: 600;
429 527
   margin: 0 10rpx 10rpx 0;
430 528
 }
431 529
 
432
-.clear {
433
-  width: 88rpx;
434
-  height: 80rpx;
435
-  color:#787878;
436
-  background-color: #fff;
437
-  border: 1rpx solid #9b9b9b;
438
-  text-align: center;
439
-  border-radius: 10rpx;
440
-  line-height: 80rpx;
441
-  font-size: 24rpx;
530
+.panelSaveTag11{
531
+  margin-right: 0;
532
+}
533
+
534
+.panelSaveTag3 {
535
+  color: #0071ef;
536
+  margin-right: 10rpx;
442 537
 }
443 538
 
444 539
 .line1 {
@@ -456,7 +551,6 @@
456 551
 
457 552
 .panelInput {
458 553
   width: 100%;
459
-  height: 250rpx;
460 554
   margin-top: 10rpx;
461 555
   background-color: #fff;
462 556
   font-size: 36rpx;
@@ -466,12 +560,11 @@
466 560
 .input {
467 561
   margin: 30rpx 30rpx 0 30rpx;
468 562
   width: 690rpx;
469
-  height: 220rpx;
563
+
564
+  height: 315rpx;
470 565
 }
471 566
 
472 567
 .panelBtnItem {
473
-  position: fixed;
474
-  top: 382rpx;
475 568
   width: 100%;
476 569
   background-color: #fff;
477 570
 }
@@ -479,7 +572,7 @@
479 572
 .panelBtnSmall {
480 573
   z-index: 10;
481 574
   width:100%;
482
-  height: 120rpx;
575
+  height: 100rpx;
483 576
   background-color: #fff;
484 577
   display: flex;
485 578
   white-space: nowrap;
@@ -491,7 +584,6 @@
491 584
 }
492 585
 
493 586
 .panelBtnSmall .btn {
494
-  /* font-family: 'Roboto-Black'; */
495 587
   width: 80rpx;
496 588
   background-color: #fff;
497 589
   border: 1rpx solid #fff;
@@ -500,7 +592,7 @@
500 592
   text-align: center;
501 593
   line-height: 80rpx;
502 594
   height: 80rpx;
503
-  margin-top: 20rpx;
595
+  margin-top: 10rpx;
504 596
   margin-right: 10rpx;
505 597
   font-size: 28rpx;
506 598
   font-weight: 700;
@@ -526,7 +618,10 @@
526 618
   width: 18rpx;
527 619
   height: 28rpx;
528 620
 }
529
-
621
+.universalpic_read_end_white_44x26{
622
+  width: 44rpx;
623
+  height: 26rpx;
624
+}
530 625
 .universalpic_editbar_sqr_gray {
531 626
   width: 25rpx;
532 627
   height: 22rpx;
@@ -574,8 +669,7 @@
574 669
   justify-content: flex-start;
575 670
   align-items: flex-start;
576 671
   position: fixed;
577
-  top: 0;
578
-  background-color: #fff;
672
+  background-color: #f0f0f0;
579 673
   color:#1e1e1e;
580 674
   z-index: 20;
581 675
   border-top: 1 solid #fff;
@@ -639,11 +733,6 @@
639 733
   margin: 0 30rpx 0 30rpx;
640 734
 }
641 735
 
642
-.universalpic_bell_gray_30x30{
643
-  width:30rpx;
644
-  height:30rpx;
645
-  margin: 40rpx 20rpx 0 30rpx;
646
-}
647 736
 .universalpic_typesize_gray_30x18{
648 737
   width: 30rpx; 
649 738
   height: 18rpx;
@@ -691,22 +780,17 @@
691 780
 
692 781
 .RecorderPanel1{
693 782
   width:100%;
694
-  height:360rpx;
695
-  background-color: #f8f8f8;
783
+  height:332rpx;
784
+  background-color: #fff;
696 785
   position: fixed;
697
-  bottom:131rpx;
698
-  border-top: 1rpx solid #d2d2d2;
786
+  bottom:0rpx;
699 787
   justify-content: flex-start;
788
+  border-top:1rpx solid #d2d2d2;
700 789
 }
701 790
 
702 791
 .RecorderPanel11{
703 792
   width:100%;
704
-  justify-content: space-between;
705
-  margin-top: 40rpx;
706
-}
707
-.universalpic_voicerecorder_black_30x30{
708
-  width:30rpx;
709
-  height:30rpx;
793
+  margin-top: 60rpx;
710 794
 }
711 795
 
712 796
 .RecorderPanel111{
@@ -721,7 +805,6 @@
721 805
   font-family: 'Roboto-Black';
722 806
   font-size:36rpx;
723 807
   color:#787878;
724
-  margin-right: 30rpx;
725 808
 }
726 809
 .RecorderPanel1121{
727 810
   color:#0071EF;
@@ -730,12 +813,11 @@
730 813
 .btnRecorderStart{
731 814
   width:690rpx;
732 815
   line-height:110rpx;
733
-  background-color: #fff;
734
-  border:1rpx solid #9B9B9B;
816
+  background-color: #F0F0F0;
735 817
   text-align: center;
736 818
   font-size:32rpx;
737 819
   font-weight: 500;
738
-  color:#0071EF;
820
+  color:#1E1E1E;
739 821
   margin-top: 40rpx;
740 822
   border-radius: 10rpx;
741 823
 }
@@ -748,11 +830,19 @@
748 830
 }
749 831
 
750 832
 .btnRecorderStart2{
751
-  width:216rpx;
833
+  width:335rpx;
752 834
   color:#1E1E1E;
753 835
 }
754
-.btnRecorderStart3{
755
-  width:216rpx;
836
+
837
+.symbol1{
838
+  font-size:28rpx;
839
+  margin-right: 20rpx;
840
+  color:#F44336;
841
+}
842
+.symbol2{
843
+  font-size:28rpx;
844
+  margin-right: 20rpx;
845
+  color:#4D4D4D;
756 846
 }
757 847
 
758 848
 .btnRecorderEnd{
@@ -765,7 +855,7 @@
765 855
   width:100%;
766 856
   height:449rpx;
767 857
   position: fixed;
768
-  bottom:492rpx;
858
+  bottom:332rpx;
769 859
 }
770 860
 
771 861
 .edit_voicerecorder_illus{

+ 11 - 0
pages/main/cardInfo.js

@@ -22,9 +22,14 @@ Page({
22 22
       if (id == list[i].MiaoguoCardID) {
23 23
         card.CreateTimeStr = common.formatDateCHS(list[i].CreateTime);
24 24
         card.FirstTimeStr = common.formatDateCHS(list[i].FirstTime);
25
+        if (!card.FirstTimeStr)
26
+          card.FirstTimeStr="无";
25 27
         card.LastTimeStr = common.formatDateCHS(list[i].LastTime);
28
+        if (!card.LastTimeStr)
29
+          card.LastTimeStr="无";
26 30
         card.LimitTimeStr = common.formatDateCHS(list[i].LimitTime);
27 31
         card.LearnNumber = list[i].LearnNumber;
32
+        card.CardID=id;
28 33
         break;
29 34
       }
30 35
     }
@@ -33,6 +38,12 @@ Page({
33 38
       CardInfo: card
34 39
     });
35 40
   },
41
+  goto: function (e) {
42
+    var url = e.currentTarget.dataset.url;
43
+    wx.navigateTo({
44
+      url: url,
45
+    });
46
+  },
36 47
   onShareAppMessage: function () {
37 48
     return {
38 49
       title: app.globalData.ShareTitle,

+ 1 - 1
pages/main/cardInfo.json

@@ -1,3 +1,3 @@
1 1
 {
2
-  "navigationBarTitleText": "详细信息"
2
+  "navigationBarTitleText": "题卡信息"
3 3
 }

+ 27 - 25
pages/main/cardInfo.wxml

@@ -1,9 +1,10 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panelTitle FlexRow">
3
-    <view class="panelTitle1">时间</view>
4
-  </view>
2
+  <view class="line"></view>
5 3
   <view class="panelItem FlexRow">
6
-    <view class="panelItem1">题卡创建</view>
4
+    <view class="panelItem1 FlexColumn">
5
+      <view class="panelItem11">创建时间</view>
6
+      <text class="panelItem12">新建题卡的时间</text>
7
+    </view>
7 8
     <view class="panelItem2 FlexRow">
8 9
       {{CardInfo.CreateTimeStr}}
9 10
     </view>
@@ -12,7 +13,10 @@
12 13
     <view class="lineWidth720"></view>
13 14
   </view>
14 15
   <view class="panelItem FlexRow">
15
-    <view class="panelItem1">首次练习</view>
16
+    <view class="panelItem1 FlexColumn">
17
+      <view class="panelItem11">首次练习时间</view>
18
+      <text class="panelItem12">新题卡无时间</text>
19
+    </view>
16 20
     <view class="panelItem2 FlexRow">
17 21
       {{CardInfo.FirstTimeStr}}
18 22
     </view>
@@ -21,7 +25,10 @@
21 25
     <view class="lineWidth720"></view>
22 26
   </view>
23 27
   <view class="panelItem FlexRow">
24
-    <view class="panelItem1">最近练习</view>
28
+    <view class="panelItem1 FlexColumn">
29
+      <view class="panelItem11">最近练习时间</view>
30
+      <text class="panelItem12">新题卡无时间</text>
31
+    </view>
25 32
     <view class="panelItem2 FlexRow">
26 33
       {{CardInfo.LastTimeStr}}
27 34
     </view>
@@ -29,8 +36,12 @@
29 36
   <view class="lineWidthAll FlexRow">
30 37
     <view class="lineWidth720"></view>
31 38
   </view>
32
-  <view class="panelItem FlexRow">
33
-    <view class="panelItem1">到期(题卡可再现的具体时间)</view>
39
+  <view class="panelItem0 panelItem FlexRow">
40
+    <view class="panelItem1 FlexColumn">
41
+      <view class="panelItem11">到期时间</view>
42
+      <text class="panelItem12">回想的最佳时机;受任务限量控制\n可能需要排队等待;留白题卡无时间</text>
43
+    </view>
44
+
34 45
     <view class="panelItem2 FlexRow">
35 46
       {{CardInfo.LimitTimeStr}}
36 47
     </view>
@@ -39,26 +50,17 @@
39 50
     <view class="lineWidth720"></view>
40 51
   </view>
41 52
   <view class='lineFooter'></view>
42
-
43
-  <view class="panelTitle FlexRow">
44
-    <view class="panelTitle1">进展</view>
45
-  </view>
46
-  <view class="panelItem FlexRow">
47
-    <view class="panelItem1">练习次数</view>
48
-    <view class="panelItem2 FlexRow">
49
-      {{CardInfo.LearnNumber}}
53
+  
54
+  <view class="panelItemCircleTop panelItemCircleBottom panelTimePlan panelItem FlexRow" 
55
+    bindtap="goto" data-url="./cardInfoDetail?id={{CardInfo.CardID}}">
56
+    <view class="panelItem1 FlexRow">
57
+      <view class="panelItem11">练习记录</view>
50 58
     </view>
51
-  </view>
52
-  <!-- <view class="lineWidthAll FlexRow">
53
-    <view class="lineWidth720"></view>
54
-  </view>
55
-  <view class="panelItem FlexRow">
56
-    <view class="panelItem1">总学习用时</view>
57 59
     <view class="panelItem2 FlexRow">
58
-      {{CardInfo.Duration}}
60
+      <view class="panelItem21">{{CardInfo.LearnNumber}}次</view>
61
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
59 62
     </view>
60
-  </view> -->
61
-  <view class='lineFooter'></view>
63
+  </view>
62 64
 
63 65
   <view style='height:100rpx'></view>
64 66
 </view>

+ 45 - 13
pages/main/cardInfo.wxss

@@ -1,32 +1,64 @@
1
-.panelTitle{
1
+.line{
2 2
   width:100%;
3
-  margin-top: 50rpx;
4
-  justify-content: flex-start;
5
-}
6
-.panelTitle .panelTitle1{
7
-  font-size:32rpx;
8
-  margin-left: 30rpx;
9
-  margin-bottom: 30rpx;
3
+  height:20rpx;
10 4
 }
11 5
 
12 6
 .panelItem{
13 7
   width:100%;
14 8
   justify-content: space-between;
15
-  font-size:28rpx;
16
-  height:100rpx;
9
+  height:133rpx;
17 10
   background-color: #fff;
18 11
 }
19 12
 
20 13
 .panelItem0{
21
-  height:133rpx;
14
+  height:162rpx;
22 15
 }
23 16
 
24 17
 .panelItem .panelItem1{
25 18
   margin-left: 30rpx;
26
-  font-weight: 400;
19
+  align-items: flex-start;
27 20
 }
28 21
 .panelItem .panelItem2{
29 22
   margin-right: 30rpx;
30
-  color:#787878;
23
+  color:#4D4D4D;
24
+  font-size:28rpx;
25
+}
26
+
27
+.panelItem .panelItem11{
28
+  font-size:28rpx;
31 29
   font-weight: 400;
30
+}
31
+.panelItem .panelItem12{
32
+  font-size:20rpx;
33
+  color:#787878;
34
+}
35
+
36
+.panelItemCircleTop{
37
+  border-top-left-radius: 20rpx;
38
+  border-top-right-radius: 20rpx;
39
+}
40
+.panelItemCircleBottom{
41
+  border-bottom-left-radius: 20rpx;
42
+  border-bottom-right-radius: 20rpx;
43
+}
44
+
45
+.panelTimePlan {
46
+  margin-top: 20rpx;
47
+  height: 100rpx;
48
+  width:710rpx;
49
+  justify-content: space-between;
50
+  font-size: 28rpx;
51
+  background-color: #fff;
52
+  border-bottom: 1rpx solid #d2d2d2;
53
+}
54
+
55
+.panelItem21 {
56
+  font-size:28rpx;
57
+  color:#787878;
58
+}
59
+
60
+.Arrow{
61
+  width:16rpx;
62
+  height:26rpx;
63
+  margin-left: 30rpx;
32 64
 }

+ 30 - 0
pages/main/cardInfoDetail.js

@@ -0,0 +1,30 @@
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
+    var that = this;
11
+    that.setData({
12
+      Containnerheight: main.getWindowHeight(),
13
+    });
14
+
15
+    main.getData("GetMiaoguoLearningRecord?CardID="+options.id, function (data) {
16
+      if (data) {
17
+        that.setData({
18
+          Info: data,
19
+        });
20
+      }
21
+    });
22
+  },
23
+  onShareAppMessage: function () {
24
+    return {
25
+      title: app.globalData.ShareTitle,
26
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
27
+      imageUrl: app.globalData.ShareImage,
28
+    }
29
+  },
30
+})

+ 3 - 0
pages/main/cardInfoDetail.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "练习记录"
3
+}

+ 57 - 0
pages/main/cardInfoDetail.wxml

@@ -0,0 +1,57 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="line"></view>
3
+  <view class="panelItem FlexRow">
4
+    <view class="panelItem1 FlexColumn">
5
+      累计用时
6
+    </view>
7
+    <view class="panelItem2 FlexRow">
8
+      {{Info.Total}}
9
+    </view>
10
+  </view>
11
+  <view class="lineWidthAll FlexRow">
12
+    <view class="lineWidth720"></view>
13
+  </view>
14
+  <view class="panelItem FlexRow">
15
+    <view class="panelItem1 FlexColumn">
16
+      图示
17
+    </view>
18
+    <view class="panelItem2 FlexRow">
19
+      <view class="panelItem21">记忆评价</view>
20
+      <view class="block0 block1"></view>
21
+      <view class="block3 block1"></view>
22
+      <view class="block4 block1"></view>
23
+      <view class="block5 marginright block1"></view>
24
+
25
+      <view class="panelItem21">非记忆评价</view>
26
+      <view class="block1"></view>
27
+      <view class="panelItem22">搁置</view>
28
+    </view>
29
+  </view>
30
+  <view class='lineFooter'></view>
31
+
32
+
33
+  <view class="panelItem0 panelItem FlexRow">
34
+    <view class="panelItem25">
35
+      练习时间
36
+    </view>
37
+    <view class="panelItem25">
38
+      用时
39
+    </view>
40
+  </view>
41
+  <block wx:for="{{Info.List}}" wx:key="index">
42
+    <view class="lineWidthAll FlexRow">
43
+      <view class="lineWidth720"></view>
44
+    </view>
45
+    <view class="panelItem FlexRow">
46
+      <view class="panelItem1 FlexRow">
47
+        <view class="block{{item.BtnNumber}} block2"></view>
48
+        <view class="panelItem23">{{item.CreateTime}}</view>
49
+      </view>
50
+      <view class="panelItem2 FlexRow">
51
+        <view class="panelItem24">{{item.Duration}}</view>
52
+      </view>
53
+    </view>
54
+  </block>
55
+
56
+  <view style='height:100rpx'></view>
57
+</view>

+ 99 - 0
pages/main/cardInfoDetail.wxss

@@ -0,0 +1,99 @@
1
+.container{
2
+  background-color: #fff;
3
+}
4
+
5
+.line{
6
+  width:100%;
7
+  height:20rpx;
8
+}
9
+
10
+.panelItem{
11
+  width:100%;
12
+  justify-content: space-between;
13
+  height:100rpx;
14
+  background-color: #fff;
15
+}
16
+
17
+.panelItem1{
18
+  margin-left: 30rpx;
19
+  align-items: flex-start;
20
+  font-size:28rpx;
21
+  font-weight: 400;
22
+}
23
+.panelItem2{
24
+  margin-right: 30rpx;
25
+  color:#4D4D4D;
26
+  font-size:28rpx;
27
+}
28
+
29
+.panelItem21{
30
+  margin-right: 20rpx;
31
+  color:#787878;
32
+  font-size:20rpx;
33
+}
34
+
35
+.panelItem22{
36
+  color:#787878;
37
+  font-size:20rpx;
38
+}
39
+
40
+.block1{
41
+  width: 16rpx;
42
+  height: 16rpx;
43
+  border-radius: 4rpx;
44
+  background-color: #D2D2D2;
45
+  margin-right: 10rpx;
46
+}
47
+
48
+.block2{
49
+  width: 30rpx;
50
+  height: 30rpx;
51
+  border-radius: 6rpx;
52
+  background-color: #D2D2D2;
53
+  margin-right: 20rpx;
54
+}
55
+
56
+.block0{
57
+  background-color: #FE6659;
58
+  margin-right: 20rpx;
59
+}
60
+.block3{
61
+  background-color: #FFBC00;
62
+  margin-right: 20rpx;
63
+}
64
+.block4{
65
+  background-color: #329468;
66
+  margin-right: 20rpx;
67
+}
68
+.block5{
69
+  background-color: #0A60BE;
70
+}
71
+.marginright{
72
+  margin-right: 60rpx;
73
+}
74
+
75
+
76
+
77
+.panelItem0{
78
+  height:auto;
79
+  background-color: #F0F0F0;
80
+  
81
+}
82
+
83
+
84
+.panelItem25{
85
+  color:#4D4D4D;
86
+  font-size:20rpx;
87
+  margin:30rpx 30rpx 20rpx 30rpx;
88
+}
89
+
90
+.panelItem23{
91
+  color:#1E1E1E;
92
+  font-size:24rpx;
93
+}
94
+
95
+.panelItem24{
96
+  color:#787878;
97
+  font-size:24rpx;
98
+}
99
+

+ 7 - 2
pages/main/default.js

@@ -14,7 +14,6 @@ Page({
14 14
     IsMaintain: 0,
15 15
     IsIPhoneX: app.globalData.IsIPhoneX,
16 16
     ImagePath: app.globalData.uploadImageUrl,
17
-    SelectUserData: app.globalData.SelectUserData,
18 17
     IsShowUserID: false,
19 18
   },
20 19
   onPullDownRefresh: function () {
@@ -319,13 +318,19 @@ Page({
319 318
       wx.setStorageSync("UserID", userid);
320 319
       
321 320
       app.globalData.userInfo.UserID = userid;
322
-      var url = "GetMiaoguoWXUserInfo?UserID=" + app.globalData.userInfo.UserID + "&FieldStr=NickName";
321
+      var url = "GetMiaoguoWXUserInfo?UserID=" + app.globalData.userInfo.UserID + "&FieldStr=NickName,ProductServiceTime,AvatarUrl";
323 322
       main.getData(url, function (data) {
324 323
         if (data) {
325 324
           wx.setNavigationBarTitle({
326 325
             title: data.NickName
327 326
           });
328 327
           main.getUserConfig();
328
+          app.globalData.userInfo.ProductServiceTime=data.ProductServiceTime;
329
+          
330
+          if (app.globalData.userInfo.UserID!=2){
331
+            app.globalData.userInfo.NickName=data.NickName;
332
+            app.globalData.userInfo.AvatarUrl=data.AvatarUrl;
333
+          }
329 334
         }
330 335
       });
331 336
       that.setData({

+ 1 - 2
pages/main/default.wxml

@@ -78,7 +78,6 @@
78 78
     <view style="height:50rpx;"></view>
79 79
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webview?PageID=9999">网页访问钥匙</button>
80 80
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webviewInterior">访问统计网页</button>
81
-
82
-
81
+    <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
83 82
 </view>
84 83
 

+ 0 - 19
pages/main/default.wxss

@@ -73,25 +73,6 @@
73 73
   width: 100%;
74 74
 }
75 75
 
76
-/* .study_index_banner{
77
-  width: 360rpx;
78
-  height: 148rpx;
79
-  align-self: flex-end;
80
-  margin-right: 20rpx;
81
-  z-index: 50;
82
-  position: relative;
83
-}
84
-
85
-.study_index_banner_close{
86
-  width: 50rpx;
87
-  height: 50rpx;
88
-  z-index: 100;
89
-  align-self: flex-end;
90
-  margin-right: 20rpx;
91
-  margin-bottom: -50rpx;
92
-  position: relative;
93
-} */
94
-
95 76
 .adPanel{
96 77
   width:100%;
97 78
   height:174rpx;

+ 15 - 12
pages/main/detail.js

@@ -39,7 +39,6 @@ Page({
39 39
     StudyPlanArray: arrStudyPlan,
40 40
     TaskInfo: {},
41 41
     Color: {ID: 1},
42
-    TopNumber:156,
43 42
   },
44 43
   onReady: function () {
45 44
     var that = this;
@@ -66,15 +65,9 @@ Page({
66 65
       height = 960;
67 66
       height2 = 670;
68 67
       that.setData({
69
-        TopNumber: 59,
70 68
         IsIPad: "_iPad",
71 69
       });
72 70
     }
73
-    else if (app.globalData.IsAndroid) {
74
-      that.setData({
75
-        TopNumber: 150,
76
-      });
77
-    }
78 71
 
79 72
     that.setData({
80 73
       Containnerheight: height,
@@ -362,12 +355,18 @@ Page({
362 355
             that.setData({
363 356
               Recommend: recommend,
364 357
             });
365
-            scroll(1000);
366 358
           }
367 359
         }
368 360
         that.setData({
369 361
           IsShowAnswer: that.data.IsShowAnswer,
370 362
         });
363
+
364
+        if (that.data.IsShowAnswer[1]){
365
+          var query = wx.createSelectorQuery().in(that)
366
+          query.select('#ViewField3').boundingClientRect(function(res){
367
+            scroll(res.top-130);
368
+          }).exec();
369
+        }
371 370
       }
372 371
 
373 372
       function scroll(top) {
@@ -1040,16 +1039,20 @@ Page({
1040 1039
       }
1041 1040
     });
1042 1041
   },
1043
-  //获取导航栏高度
1044
-  getBarInfo(e) {
1045
-    this.setData({ topBarHeight: e.detail.topBarHeight })
1046
-  },
1047 1042
   goto: function (e) {
1048 1043
     var url = e.currentTarget.dataset.url;
1049 1044
     wx.navigateTo({
1050 1045
       url: url,
1051 1046
     });
1052 1047
   },
1048
+  //获取导航栏高度
1049
+  getBarInfo(e) {
1050
+    var h=e.detail.topBarHeight;
1051
+    h=h*2;
1052
+    this.setData({ 
1053
+       topBarHeight: h,
1054
+    })
1055
+  },
1053 1056
   onShareAppMessage: function () {
1054 1057
     return {
1055 1058
       title: app.globalData.ShareTitle,

+ 6 - 6
pages/main/detail.wxml

@@ -1,5 +1,5 @@
1 1
 <import src="../template/cardShow.wxml" />
2
-<navigation-bar title="学习中" bindgetBarInfo="getBarInfo" show="true" left="true" background="{{Color.BackColor}}" color="#fff">
2
+<navigation-bar title="学习中" show="true" left="true" background="{{Color.BackColor}}" color="#fff">
3 3
     <view slot="left" bindtap="onClose">
4 4
       <view class="square">退出练习</view>
5 5
     </view>
@@ -10,7 +10,7 @@
10 10
   <block wx:if="{{(NumberNew+NumberReview+NumberHistory)>0}}">
11 11
 
12 12
     <!-- 工具栏 -->
13
-    <view class='panelTop FlexRow' style='background-color:{{Color.BackColor}};top:{{TopNumber}}rpx;'>
13
+    <view class='panelTop FlexRow' style='background-color:{{Color.BackColor}};'>
14 14
       <view class='panelCancel FlexRow' catchtap='gotoCollect'>
15 15
         <view class='panelCancel0 FlexRow'>
16 16
           <image hidden='{{TaskInfo.IsCollect}}' src="../images/universalpic_fav_default_gray_26x24.png" class='universalpic_fav_default_gray_26x24' />
@@ -118,7 +118,7 @@
118 118
   </block>
119 119
   <!-- 最后一页 -->
120 120
   <block wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
121
-    <view class='panelLast FlexColumn' style='height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}};'>
121
+    <view class='panelLast FlexColumn' style='height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
122 122
       <view class='text1{{IsIPad}}'>做完了</view>
123 123
 
124 124
       <view class="panelLastTime FlexColumn">
@@ -150,7 +150,7 @@
150 150
     </view>
151 151
   </block>
152 152
   <!-- 今日任务量 -->
153
-  <view wx:if="{{IsShowNumberInfo}}" class="numberContainer FlexColumn" style='height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};'>
153
+  <view wx:if="{{IsShowNumberInfo}}" class="numberContainer FlexColumn" style='height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
154 154
     <view class="numberContainerFooter1 FlexColumn">
155 155
       <view class='lineFooter'></view>
156 156
       <view class="numberContainer12 FlexRow">
@@ -187,7 +187,7 @@
187 187
   </view>
188 188
 
189 189
   <!-- 更多功能 -->
190
-  <view wx:if="{{IsMore}}" class="numberContainer FlexColumn" style='min-height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};'>
190
+  <view wx:if="{{IsMore}}" class="numberContainer FlexColumn" style='min-height:{{Containnerheight+100}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
191 191
     <view class="numberContainerFooter1 FlexColumn">
192 192
       <view class='lineFooter'></view>
193 193
       <view class='numberContainerFooter102 FlexRow' catchtap='gotoNext' data-btnnumber="2">
@@ -207,7 +207,7 @@
207 207
       </view>
208 208
       <view class='lineFooter'></view>
209 209
 
210
-      <view class='numberContainerFooter102 FlexRow' catchtap='goto' data-url="{{ './previewMenu?CardType='+TaskInfo.CardType+'&ID='+TaskInfo.MiaoguoCardID}}">
210
+      <view class='numberContainerFooter102 FlexRow' catchtap='goto' data-url="{{ './previewMenu?IsSave=1&CardType='+TaskInfo.CardType+'&ID='+TaskInfo.MiaoguoCardID}}">
211 211
         <image src="../images/universalpic_plan_6dots_gray_30x32.png" class='universalpic_plan_6dots_gray_30x32' />
212 212
         <view class='numberContainerFooter111'>更改学习计划(该题卡属于{{StudyPlanArray[TaskInfo.CardType]}}练习)</view>
213 213
       </view>      

+ 0 - 7
pages/main/detail.wxss

@@ -18,7 +18,6 @@ page{
18 18
   width: 100%;
19 19
   height: 110rpx;
20 20
   position: fixed;
21
-  top: 156rpx;
22 21
   font-size: 20rpx;
23 22
   z-index: 20;
24 23
 }
@@ -460,7 +459,6 @@ page{
460 459
   justify-content: flex-start;
461 460
   align-items: flex-start;
462 461
   position: fixed;
463
-  top: 156rpx;
464 462
   color: #fff;
465 463
   z-index: 20;
466 464
 }
@@ -674,11 +672,6 @@ page{
674 672
   margin: 0 30rpx;
675 673
 }
676 674
 
677
-.universalpic_bell_gray_30x30{
678
-  width:30rpx;
679
-  height:30rpx;
680
-  margin: 40rpx 20rpx 0 30rpx;
681
-}
682 675
 .universalpic_typesize_gray_30x18{
683 676
   width: 30rpx; 
684 677
   height: 18rpx;

+ 24 - 99
pages/main/preview.js

@@ -17,6 +17,7 @@ Page({
17 17
   data: {
18 18
     IsExistCard: false,
19 19
     Containnerheight:1440,
20
+    IsShowMenu:false,
20 21
   },
21 22
   onReady: function () {
22 23
     var that=this;
@@ -244,6 +245,7 @@ Page({
244 245
       PrevID: prevId,
245 246
       NextID: nextId,
246 247
       FontSize: card.FontSize,
248
+      LimitTime: card.LimitTime,
247 249
       LimitTimeStr: limitTimeStr,
248 250
       IsTodayPractice: isTodayPractice,
249 251
       IsCollect: card.IsCollect,
@@ -256,101 +258,10 @@ Page({
256 258
 
257 259
     isPlaying = false;
258 260
   },
259
-  // practiceToday: function () {
260
-  //   var that = this;
261
-  //   wx.showModal({
262
-  //     title: '要今天练吗?',
263
-  //     content: '这张题卡今天必须练习',
264
-  //     success(res) {
265
-  //       if (res.confirm) {
266
-
267
-  //         var arr = [];
268
-  //         var obj = {};
269
-  //         obj.Card = {};
270
-  //         obj.Card.MiaoguoCardID = that.data.ID;
271
-  //         obj.BtnNumber = -1;
272
-  //         obj.LearningType = 2;
273
-  //         arr.push(obj);
274
-
275
-  //         wx.setStorageSync("ListTaskFinished", arr);
276
-
277
-  //         main.UpdateMiaoguoCardTodayAll(false, function () {
278
-  //           var time = common.formatTime(new Date());
279
-  //           that.setData({
280
-  //             LimitTimeStr: common.formatDateCHS(time),
281
-  //             IsTodayPractice: false,
282
-  //           });
283
-  //           var list = app.globalData.CardList;
284
-  //           for (var i = 0; i < list.length; i++) {
285
-  //             if (that.data.ID == list[i].MiaoguoCardID) {
286
-  //               list[i].LimitTime = time;
287
-  //               list[i].LimitTimeStr = "今天";
288
-  //               break;
289
-  //             }
290
-  //           }
291
-  //           app.globalData.CardList = list;
292
-  //           wx.showToast({
293
-  //             title: '改为今天练',
294
-  //             icon: 'none',
295
-  //           });
296
-  //         });
297
-  //       }
298
-  //       else if (res.cancel) {
299
-
300
-  //       }
301
-  //     }
302
-  //   })
303
-  // },
304
-  // shelveTask: function () {
305
-  //   //搁置题卡,今天不练
306
-  //   var that = this;
307
-  //   wx.showModal({
308
-  //     title: '今天不练吗?',
309
-  //     content: '这张题卡今天不练习',
310
-  //     success(res) {
311
-  //       if (res.confirm) {
312
-
313
-  //         var arr = [];
314
-  //         var obj = {};
315
-  //         obj.Card = {};
316
-  //         obj.Card.MiaoguoCardID = that.data.MiaoguoCardID;
317
-  //         obj.IntervalTime = "1d";
318
-  //         obj.BtnNumber = 1;
319
-  //         obj.Duration = 0;
320
-  //         obj.LearningType = 3;
321
-  //         arr.push(obj);
322
-
323
-  //         wx.setStorageSync("ListTaskFinished", arr);
324
-  //         main.UpdateMiaoguoCardTodayAll(false, function () {
325
-  //           var time = common.formatTime(common.addDate("d", 1, new Date()));
326
-  //           that.setData({
327
-  //             LimitTimeStr: common.formatDateCHS(time),
328
-  //             IsTodayPractice: true,
329
-  //           });
330
-  //           var list = app.globalData.CardList;
331
-  //           for (var i = 0; i < list.length; i++) {
332
-  //             if (that.data.ID == list[i].MiaoguoCardID) {
333
-  //               list[i].LimitTime = time;
334
-  //               list[i].LimitTimeStr = "明天";
335
-  //               break;
336
-  //             }
337
-  //           }
338
-  //           app.globalData.CardList = list;
339
-  //           wx.showToast({
340
-  //             title: '改为明天练',
341
-  //             icon: 'none',
342
-  //           });
343
-  //         });
344
-  //       }
345
-  //       else if (res.cancel) {
346
-
347
-  //       }
348
-  //     }
349
-  //   })
350
-  // },
351
-  showMenu:function(){
261
+  showMenu:function(e){
262
+    var limitTime=e.currentTarget.dataset.limittime;
352 263
     wx.navigateTo({
353
-      url: './previewMenu?ID='+this.data.MiaoguoCardID+'&CardType=' + this.data.CardType,
264
+      url: './previewMenu?IsSave=1&ID='+this.data.MiaoguoCardID+'&CardType=' + this.data.CardType+'&LimitTime='+limitTime,
354 265
     });
355 266
   },
356 267
   copyCard: function () {
@@ -484,6 +395,9 @@ Page({
484 395
     innerAudioContext1.play();
485 396
   },
486 397
   getDetailInfo: function () {
398
+    this.setData({
399
+      IsShowMenu:false,
400
+    });
487 401
     wx.navigateTo({
488 402
       url: './cardInfo?id=' + this.data.MiaoguoCardID,
489 403
     });
@@ -492,7 +406,7 @@ Page({
492 406
     var that = this;
493 407
     wx.showModal({
494 408
       title: '提醒',
495
-      content: '这张题卡要删除吗?',
409
+      content: '要删除这张题卡吗?',
496 410
       success(res) {
497 411
         if (res.confirm) {
498 412
           var url = 'DeleteMiaoguoCard?UserID=' + app.globalData.userInfo.UserID;
@@ -568,16 +482,17 @@ Page({
568 482
         }
569 483
       });
570 484
     }
571
-
572
-  },
485
+  },  
573 486
   onHideAnswer: function () {
574 487
     this.setData({
575
-      IsShowAnswer: [0, 0]
488
+      IsShowAnswer: [0, 0],
489
+      IsShowMenu:false,
576 490
     });
577 491
   },
578 492
   onShowAnswer: function () {
579 493
     this.setData({
580
-      IsShowAnswer: [1, 1]
494
+      IsShowAnswer: [1, 1],
495
+      IsShowMenu:false,
581 496
     });
582 497
   },
583 498
   onPlayAgain: function () {
@@ -654,6 +569,16 @@ Page({
654 569
       url: './default?IsStart=1',
655 570
     });
656 571
   },
572
+  btnMore:function(){
573
+    this.setData({
574
+      IsShowMenu: true,
575
+    });
576
+  },
577
+  closeMenu:function(){
578
+    this.setData({
579
+      IsShowMenu: false,
580
+    });
581
+  },
657 582
   onShareAppMessage: function () {
658 583
     var that = this;
659 584
     this.setData({

+ 42 - 14
pages/main/preview.wxml

@@ -4,24 +4,27 @@
4 4
   <!-- 顶端工具栏 -->
5 5
   <block wx:if="{{ShowType=='show'}}">
6 6
     <view class="panelTop FlexRow">
7
-      <view class='left FlexColumn'>
8
-        <view class="text3" bindtap='showMenu' wx:if="{{CardType==0}}">日常练习</view>
9
-        <view class="text3" bindtap='showMenu' wx:if="{{CardType==1}}">紧急练习</view>
10
-        <view class="text3" bindtap='showMenu' wx:if="{{CardType==-1}}">留白题卡</view>
7
+      <view class='left FlexRow' bindtap='showMenu' data-limittime="{{LimitTime}}">
8
+        <image class="universalpic_plan_6dots_black_30x32" src='../images/universalpic_plan_6dots_black_30x32.png' />
9
+        <view class="text3" wx:if="{{CardType==0}}">日常</view>
10
+        <view class="text3" wx:if="{{CardType==1}}">紧急</view>
11
+        <view class="text3" wx:if="{{CardType==-1}}">留白</view>
12
+        <view class="text4" wx:if="{{CardType>=0}}">{{LimitTimeStr}}</view>
13
+        
11 14
       </view>
12 15
       <view class='right FlexRow'>
13
-        <view class="panelTopBtn FlexRow" bindtap='getDetailInfo'>
14
-          <image class="universalpic_info_black_26x26" src='../images/universalpic_info_black_26x26.png' />
15
-        </view>
16 16
         <view class="panelTopBtn FlexRow" bindtap='editField' data-id="0">
17
-          <image class="universalpic_edit_black_25x25" src='../images/universalpic_edit_black_25x25.png' />
17
+          编辑
18
+        </view>
19
+        <view class="panelTopBtn FlexRow" bindtap='deleteCard'>
20
+          删除
18 21
         </view>
19 22
         <view class="panelTopBtn FlexRow" bindtap='gotoCollect'>
20 23
           <image class="universalpic_fav_default_black_26x24" src='../images/universalpic_fav_default_black_26x24.png' wx:if="{{!IsCollect}}" />
21
-          <image class="universalpic_fav_default_black_26x24" src='../images/universalpic_fav_enable_red_26x24.png' wx:if="{{IsCollect}}" />
24
+          <image class="universalpic_fav_default_black_26x24" src='../images/universalpic_fav_enable_blue_26x24.png' wx:if="{{IsCollect}}" />
22 25
         </view>
23
-        <view class="panelTopBtn FlexRow" bindtap='deleteCard'>
24
-          <image class="universalpic_del_black_20x28" src='../images/universalpic_del_black_20x28.png' />
26
+        <view class="panelTopBtn2 panelTopBtn FlexRow" bindtap='btnMore'>
27
+          <image class="universalpic_more_black_32x8" src='../images/universalpic_more_black_32x8.png' />
25 28
         </view>
26 29
       </view>
27 30
     </view>
@@ -50,7 +53,7 @@
50 53
     <view class="panelTop1" style='background-color:{{Color.BackColor}};'></view>
51 54
   </block>
52 55
 
53
-  <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,LimitTimeStr:LimitTimeStr,ShowType:ShowType}}" />
56
+  <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,ShowType:ShowType}}" />
54 57
 
55 58
   <view style='height:150rpx'></view>
56 59
 
@@ -64,12 +67,12 @@
64 67
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
65 68
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_prev_gray_30x30.png' />
66 69
       </view>
67
-      <view class='btn22 FlexRow' wx:if="{{IsShowAnswer[0]==1}}" catchtap='onHideAnswer'>
70
+      <!-- <view class='btn22 FlexRow' wx:if="{{IsShowAnswer[0]==1}}" catchtap='onHideAnswer'>
68 71
         隐藏答案
69 72
       </view>
70 73
       <view class='btn22 FlexRow' wx:if="{{IsShowAnswer[0]==0}}" catchtap='onShowAnswer'>
71 74
         显示答案
72
-      </view>
75
+      </view> -->
73 76
       <button class="btn21" open-type='share'>分享给大家</button>
74 77
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{NextID}}" wx:if="{{NextID>0}}">
75 78
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_next_gray_30x30.png' />
@@ -107,4 +110,29 @@
107 110
   </view>
108 111
 </view>
109 112
 
113
+<!-- 菜单 -->
114
+<view wx:if="{{IsShowMenu}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;'>
115
+  <view class="numberContainerFooter1 FlexColumn">
116
+    <view class='lineFooter'></view>
117
+    <view class='numberContainerFooter10 FlexRow' wx:if="{{IsShowAnswer[0]==1}}" catchtap='onHideAnswer'>
118
+      <image class="universalpic_part_black_30x30" src='../images/universalpic_part_black_30x30.png' />
119
+      <view class='numberContainerFooter11 FlexColumn'>隐藏段落2和3</view>
120
+    </view>
121
+    <view class='numberContainerFooter10 FlexRow'  wx:if="{{IsShowAnswer[0]==0}}" catchtap='onShowAnswer'>
122
+      <image class="universalpic_part_black_30x30" src='../images/universalpic_part_black_30x30.png' />
123
+      <view class='numberContainerFooter11 FlexColumn'>显示段落2和3</view>
124
+    </view>
125
+    <view class='lineFooter'></view>
126
+    <view class='numberContainerFooter10 FlexRow' bindtap='getDetailInfo'>
127
+      <image class="universalpic_part_black_30x30" src='../images/universalpic_info_black_30x30.png' />
128
+      <view class='numberContainerFooter11 FlexColumn'>题卡信息</view>
129
+    </view>
130
+  </view>
131
+  <view class='lineFooter'></view>
132
+  <view class="numberContaineFooter FlexRow" catchtap='closeMenu'>
133
+    <view>关闭</view>
134
+  </view>
135
+</view>
136
+
137
+
110 138
 <audio hidden='true' src="{{AudioSrc}}" id="myAudio" bindended="audioBindEnded" binderror="audioBindError"></audio>

+ 82 - 30
pages/main/preview.wxss

@@ -4,7 +4,7 @@
4 4
 
5 5
 .panelTop {
6 6
   width: 100%;
7
-  height: 120rpx;
7
+  height: 100rpx;
8 8
   background-color: #fff;
9 9
   justify-content: space-between;
10 10
   font-size: 28rpx;
@@ -16,20 +16,25 @@
16 16
 
17 17
 .panelTop1{
18 18
   width:100%;
19
-  height: 120rpx;
19
+  height: 100rpx;
20 20
   background-color: #fff;
21 21
 }
22 22
 
23 23
 .left {
24
-  margin-left: 25rpx;
24
+  margin-left: 30rpx;
25 25
   font-weight: 400;
26
-  align-items: flex-start;
27 26
 }
28 27
 
29 28
 .right {
30 29
   margin-right: 20rpx;
31 30
 }
32 31
 
32
+.universalpic_plan_6dots_black_30x32{
33
+  width: 30rpx;
34
+  height:32rpx;
35
+  margin-right: 20rpx;
36
+}
37
+
33 38
 .panelCancel0 {
34 39
   width: 70rpx;
35 40
   height: 70rpx;
@@ -67,8 +72,15 @@
67 72
 
68 73
 
69 74
 .panelTopBtn{
70
-  width:100rpx;
71
-  height:120rpx;
75
+  width:80rpx;
76
+  height:80rpx;
77
+  font-size: 24rpx;
78
+  margin-left:10rpx;
79
+}
80
+
81
+.panelTopBtn2{
82
+  font-size: 22rpx;
83
+  letter-spacing:2rpx;
72 84
 }
73 85
 
74 86
 .universalpic_del_black_20x28{
@@ -76,16 +88,6 @@
76 88
   height:28rpx;
77 89
 }
78 90
 
79
-.universalpic_info_black_26x26{
80
-  width:26rpx;
81
-  height:26rpx;
82
-}
83
-
84
-.universalpic_edit_black_25x25{
85
-  width: 25rpx;
86
-  height: 25rpx;
87
-}
88
-
89 91
 .universalpic_fav_default_black_26x24{
90 92
   width: 26rpx;
91 93
   height: 24rpx;
@@ -103,18 +105,19 @@
103 105
 }
104 106
 
105 107
 .text3 {
106
-  color: #787878;
107
-  width: 156rpx;
108
+  color: #1E1E1E;
109
+  height:80rpx;
108 110
   line-height: 80rpx;
109
-  text-align: center;
111
+  text-align: left;
110 112
   background-color: #fff;
111
-  border:1rpx solid #9B9B9B;
112
-  border-radius: 10rpx;
113 113
   font-size: 24rpx;
114
+  font-weight: 500;
114 115
 }
115 116
 
116 117
 .text4 {
117
-  color: #A20602;
118
+  font-size:24rpx;
119
+  margin-left:10rpx;
120
+  font-weight: 500;
118 121
 }
119 122
 
120 123
 .editField{
@@ -382,23 +385,23 @@
382 385
 
383 386
 .btn1 {
384 387
   width: 150rpx;
385
-  height: 120rpx;
388
+  height: 140rpx;
386 389
 }
387 390
 
388 391
 .btn2 {
389 392
   width: 450rpx;
390
-  height: 120rpx;
393
+  height: 140rpx;
391 394
 }
392 395
 
393 396
 .btn21 {
394 397
   font-size: 48rpx;
395 398
   color: #D2D2D2;
396
-  text-align: right;
399
+  text-align: center;
397 400
   padding-left: 0;
398 401
   padding-right: 0;
399 402
   background-color: #181a21;
400
-  width: 294rpx;
401
-  line-height: 120rpx;
403
+  width: 454rpx;
404
+  line-height: 140rpx;
402 405
 }
403 406
 
404 407
 .btn21::after {
@@ -408,7 +411,7 @@
408 411
 
409 412
 .btn22 {
410 413
   width: 160rpx;
411
-  line-height: 120rpx;
414
+  line-height: 140rpx;
412 415
   text-align: center;
413 416
   font-size:36rpx;
414 417
 }
@@ -423,13 +426,13 @@
423 426
 
424 427
 .btn3 {
425 428
   width: 200rpx;
426
-  line-height: 120rpx;
429
+  line-height: 140rpx;
427 430
   text-align: center;
428 431
   font-size:36rpx;
429 432
 }
430 433
 .btn4 {
431 434
   width: 254rpx;
432
-  line-height: 120rpx;
435
+  line-height: 140rpx;
433 436
   text-align: center;
434 437
   font-size:48rpx;
435 438
 }
@@ -449,3 +452,52 @@
449 452
   height: 36rpx;
450 453
 }
451 454
 
455
+.numberContainer {
456
+  width: 100%;
457
+  justify-content: flex-start;
458
+  align-items: flex-start;
459
+  position: fixed;
460
+  top: 0;
461
+  background-color: #fff;
462
+  color: #1e1e1e;
463
+  z-index: 20;
464
+}
465
+
466
+.numberContaineFooter {
467
+  width: 100%;
468
+  position: fixed;
469
+  bottom: 0;
470
+  align-items: flex-start;
471
+  font-size: 28rpx;
472
+  border-top: 1rpx solid rgba(0, 0, 0, 0.2);
473
+  text-align: center;
474
+  line-height: 100rpx;
475
+}
476
+
477
+.numberContainerFooter1{
478
+  width: 100%;
479
+  position: fixed;
480
+  bottom: 100rpx;
481
+}
482
+
483
+.numberContainerFooter10 {
484
+  width: 100%;
485
+  height: 100rpx;
486
+  justify-content: flex-start;
487
+}
488
+
489
+.numberContainerFooter11 {
490
+  margin-left: 20rpx;
491
+  font-size: 28rpx;
492
+}
493
+
494
+.universalpic_part_black_30x30{
495
+  width: 30rpx;
496
+  height: 30rpx;
497
+  margin-left: 40rpx;
498
+}
499
+
500
+.universalpic_more_black_32x8{
501
+  width: 32rpx;
502
+  height: 8rpx;
503
+}

+ 77 - 18
pages/main/previewMenu.js

@@ -4,16 +4,37 @@ import constant from '../../utils/constant';
4 4
 
5 5
 const app = getApp();
6 6
 
7
+var historyLimitTime;
8
+
7 9
 Page({
8 10
   data: {
9 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
+    ],
10 20
   },
11 21
   onLoad: function (options) {
12 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
+    
13 30
     that.setData({
14 31
       Containnerheight: main.getWindowHeight(),
15 32
       CardType:options.CardType,
16 33
       MiaoguoCardID:options.ID,
34
+      IsSave:options.IsSave || 0,
35
+      Today:today,
36
+      LimitTime:limitTime,
37
+      LimitTimeStr: common.formatDateCHS(limitTime),
17 38
       CardNumberUrgent: app.globalData.TaskToday.CardNumberUrgent,
18 39
     });
19 40
     if (app.globalData.IsIPhoneX) {
@@ -45,37 +66,75 @@ Page({
45 66
   },
46 67
   save:function(){
47 68
     var that = this;
48
-    var url = 'UpdateMiaoguoCardType?UserID=' + app.globalData.userInfo.UserID;
49
-    url += "&CardType=" + that.data.CardType;
50
-    url += "&ID=" + that.data.MiaoguoCardID;
51
-    main.getData(url, function (data) {
69
+
70
+    if (that.data.IsSave==0){
71
+      finish(that);
72
+    }
73
+    else{
74
+      var url = 'UpdateMiaoguoCardType?UserID=' + app.globalData.userInfo.UserID;
75
+      url += "&CardType=" + that.data.CardType;
76
+      url += "&ID=" + that.data.MiaoguoCardID;
77
+  
78
+      if (that.data.CardType>=0){
79
+        if (historyLimitTime!=that.data.LimitTime){
80
+          url+="&LimitTime="+that.data.LimitTime;
81
+        }
82
+      }
83
+  
84
+      main.getData(url, function (data) {
85
+        finish(that);
86
+        app.globalData.TempIsEditCardType=0;
87
+      });
88
+    }
89
+
90
+    function finish(that){
52 91
       var list = app.globalData.CardList;
53 92
       for (var i = 0; i < list.length; i++) {
54
-        if (list[i].MiaoguoCardID == that.data.MiaoguoCardID)
93
+        if (list[i].MiaoguoCardID == that.data.MiaoguoCardID){
55 94
           list[i].CardType = that.data.CardType;
95
+          list[i].LimitTime=that.data.LimitTime;
96
+          list[i].LimitTimeStr=common.formatDateCHS(that.data.LimitTime);
97
+        }
56 98
       }
57 99
       app.globalData.CardList = list;
58 100
       app.globalData.IsUpdateStudyPlan = 1;
59 101
       
60 102
       if (that.data.CardType==1){
61 103
         app.globalData.TaskToday.CardNumberUrgent++;
62
-
63
-        var cardType=wx.getStorageSync('CardType');
64
-        if (cardType==0 && app.globalData.TaskToday.CardNumberUrgent==1){
65
-          wx.redirectTo({
66
-            url: "../other/menu?Type=0",
67
-          });
68
-        }
69
-        else{
70
-          that.close();
71
-        }
104
+      }
105
+      app.globalData.TempIsEditCardType=1;
106
+      that.close();
107
+    }
108
+  },
109
+  setLimitTime:function(e){
110
+    var that=this;
111
+    var limitTime="";
112
+    var IsSelected="";
113
+    if (e.detail.value){
114
+      limitTime=e.detail.value;
115
+      IsSelected="_Selected";
116
+    }
117
+    else{
118
+      var DayNumber=e.currentTarget.dataset.daynumber;
119
+      if (DayNumber==-1){
120
+        limitTime=historyLimitTime;
121
+        wx.showToast({
122
+          title: '日期已还原',
123
+          mask: true,
124
+          image: "../images/universalpic_restore_white_120x120.png",
125
+        });
126
+        IsSelected="";
72 127
       }
73 128
       else{
74
-        that.close();
129
+        limitTime=common.formatTime(common.addDate("d",DayNumber,new Date()),"-",true);
130
+        IsSelected="_Selected";
75 131
       }
76
-      
132
+    }
133
+    that.setData({
134
+      LimitTime: limitTime,
135
+      LimitTimeStr: common.formatDateCHS(limitTime),
136
+      IsSelected:IsSelected,
77 137
     });
78
-    
79 138
   },
80 139
   onShareAppMessage: function () {
81 140
     return {

+ 3 - 1
pages/main/previewMenu.json

@@ -1,3 +1,5 @@
1 1
 {
2
-  "navigationBarTitleText": "菜单"
2
+  "navigationBarTitleText": "学习计划",
3
+  "backgroundColorTop":"#f0f0f0",
4
+  "backgroundColorBottom":"#f0f0f0"
3 5
 }

Plik diff jest za duży
+ 52 - 13
pages/main/previewMenu.wxml


+ 124 - 5
pages/main/previewMenu.wxss

@@ -4,16 +4,78 @@
4 4
   background-color: #f0f0f0;
5 5
 }
6 6
 
7
-.panelStudyPlan {
7
+.panelTop{
8 8
   width: 100%;
9
+  justify-content: space-between;
10
+  font-size: 28rpx;
9 11
   background-color: #fff;
10
-  margin-top: 30rpx;
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;
11 55
 }
12 56
 
13 57
 .panelStudyPlan1 {
14 58
   width: 100%;
15 59
   height: 133rpx;
16 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; 
17 79
 }
18 80
 
19 81
 .imgTrue {
@@ -26,30 +88,80 @@
26 88
   height: 40rpx;
27 89
 }
28 90
 
91
+.panelStudyPlan10 {
92
+  align-items: flex-start;
93
+}
94
+
29 95
 .panelStudyPlan11 {
30 96
   align-items: flex-start;
97
+  margin-left: 30rpx;
98
+}
99
+
100
+.panelStudyPlan12 {
101
+  margin-left: 178rpx;
102
+  
31 103
 }
32 104
 
33 105
 .text7 {
34 106
   font-size: 28rpx;
35 107
   margin-bottom: 4rpx;
36 108
   font-weight: 400;
109
+  color:#4d4d4d;
37 110
 }
38 111
 
39
-.text71 {
40
-  color: #fe6659;
112
+.text7_Selected{
113
+  font-size: 28rpx;
114
+  margin-bottom: 4rpx;
115
+  font-weight: 500;
116
+  color:#0071EF;
41 117
 }
42 118
 
43 119
 .text6 {
44 120
   font-size: 20rpx;
45 121
   color: #787878;
46 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
+
47 159
 
48 160
 .panelHelp {
49 161
   width: 710rpx;
50 162
   background-color: #fff;
51 163
   border-radius: 20rpx;
52
-  margin-top: 30rpx;
164
+  margin-top: 20rpx;
53 165
   align-items: flex-start;
54 166
   padding: 30rpx 0;
55 167
 }
@@ -99,4 +211,11 @@
99 211
   width: 2rpx;
100 212
   height: 30rpx;
101 213
   background-color: #d2d2d2;
214
+  margin:0 0 0 30rpx;
102 215
 }
216
+
217
+.universalpic_bell_black_30x30{
218
+  width:30rpx;
219
+  height:30rpx;
220
+  margin-right: 20rpx;
221
+}

+ 4 - 0
pages/main/searchCard.js

@@ -36,6 +36,10 @@ Page({
36 36
         that.setData({
37 37
           CardNumber: data.CardNumber,
38 38
         });
39
+
40
+        if (data.UrgentNumber){
41
+          app.globalData.TaskToday.CardNumberUrgent=data.UrgentNumber;
42
+        }
39 43
       }
40 44
     });
41 45
     

+ 2 - 0
pages/main/searchCardList.wxml

@@ -102,7 +102,9 @@
102 102
   <view class="numberContainerFooter1 FlexColumn">
103 103
     <view class='lineFooter'></view>
104 104
     <view class='numberContainerFooter101 FlexRow'>
105
+      <view>
105 106
       <image class="universalpic_sequence_black_30x30_2 universalpic_sequence_black_30x30" src='../images/universalpic_sequence_black_30x30.png' />
107
+      </view>
106 108
       <view class='numberContainerFooter11 FlexColumn'>
107 109
         <view class='numberContainerFooter111'>调整排序</view>
108 110
         <view class='numberContainerFooter112 FlexRow'>

+ 0 - 5
pages/main/searchCardList.wxss

@@ -291,11 +291,6 @@
291 291
   margin: 0 30rpx 0 30rpx;
292 292
 }
293 293
 
294
-.universalpic_bell_gray_30x30 {
295
-  width: 30rpx;
296
-  height: 30rpx;
297
-  margin: 40rpx 20rpx 0 30rpx;
298
-}
299 294
 
300 295
 .universalpic_typesize_gray_30x18 {
301 296
   width: 30rpx;

+ 1 - 1
pages/main/searchWeb.wxml

@@ -46,6 +46,6 @@
46 46
       </view>
47 47
     </scroll-view>
48 48
   </block>
49
-  <view class='lineFooter'></view>
49
+  <view class='lineFooter' wx:if="{{SelectList.length>0}}"></view>
50 50
   <view style='height:100rpx;'></view>
51 51
 </view>

+ 12 - 1
pages/main/searchWeb2.js

@@ -9,6 +9,7 @@ Page({
9 9
     IsShowHelp: 1,
10 10
     IsPoemRead: 0,
11 11
     ShowKaiti: 0,
12
+    ShowSoundMark:1,
12 13
     CSS: {},
13 14
   },
14 15
   onLoad: function (options) {
@@ -147,7 +148,11 @@ Page({
147 148
             else if (item.Type == "sound") {
148 149
               str = "[读]" + item.Content + "[/读]";
149 150
               if (item.Tag == "发音") {
150
-                str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
151
+                var strTemp=item.Content.substr(0,2);
152
+                if (this.data.ShowSoundMark=="1")
153
+                  str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
154
+                else
155
+                  str = "[读 src='" + item.SoundMark + "']"+strTemp+"[……][/读]";
151 156
               }
152 157
               else if (item.Tag == "拼音" || item.Tag == "默写") {
153 158
                 if (item.SoundMark){
@@ -256,6 +261,12 @@ Page({
256 261
     });
257 262
 
258 263
   },
264
+  changeSoundMark:function(e){
265
+    var id=e.currentTarget.dataset.id;
266
+    this.setData({
267
+      ShowSoundMark: id,
268
+    });
269
+  },
259 270
   changeRead: function (e) {
260 271
     var id = e.currentTarget.dataset.id;
261 272
     this.setData({

+ 4 - 2
pages/main/searchWeb2.wxml

@@ -306,6 +306,8 @@
306 306
   <block wx:if="{{Result.ENG.Soundmark.Eng || Result.ENG.Soundmark.AmE}}">
307 307
     <view class="panelTitle FlexRow">
308 308
       <view class="panelTitle1">音标</view>
309
+      <view class="panelTitle2" bindtap="changeSoundMark" data-id="0" wx:if="{{ShowSoundMark==1}}">隐藏音标内容</view>
310
+      <view class="panelTitle2" bindtap="changeSoundMark" data-id="1" wx:if="{{ShowSoundMark==0}}">显示音标内容</view>
309 311
     </view>
310 312
     <view class="panelItem FlexRow">
311 313
       <view class="{{CSS.ENG_Soundmark_Eng.Css1}} panelItemFrame FlexRow" wx:if="{{Result.ENG.Soundmark.Eng}}" bindtap='getInputData' data-type="sound" data-content="英 {{Result.ENG.Soundmark.Eng}}" data-soundmark="{{Result.ENG.Soundmark.EngSound}}" data-css="ENG_Soundmark_Eng"
@@ -314,7 +316,7 @@
314 316
         <view class="PeomRead FlexRow">
315 317
           <image class="universalpic_read_mark_black_20x20" src="../images/universalpic_read_mark_black_20x20.png" />
316 318
         </view>
317
-        <view class="text2 text1">英 {{Result.ENG.Soundmark.Eng}}</view>
319
+        <view class="text2 text1">英 <block wx:if="{{ShowSoundMark==1}}">{{Result.ENG.Soundmark.Eng}}</block><block wx:if="{{ShowSoundMark==0}}">[……]</block></view>
318 320
       </view>
319 321
       <view class="{{CSS.ENG_Soundmark_AmE.Css1}} panelItemFrame FlexRow" wx:if="{{Result.ENG.Soundmark.AmE}}" bindtap='getInputData' data-type="sound" data-content="美 {{Result.ENG.Soundmark.AmE}}" data-soundmark="{{Result.ENG.Soundmark.AmESound}}" data-css="ENG_Soundmark_AmE"
320 322
         data-tag="发音">
@@ -322,7 +324,7 @@
322 324
         <view class="PeomRead FlexRow">
323 325
           <image class="universalpic_read_mark_black_20x20" src="../images/universalpic_read_mark_black_20x20.png" />
324 326
         </view>
325
-        <view class="text2 text1">美 {{Result.ENG.Soundmark.AmE}}</view>
327
+        <view class="text2 text1">美 <block wx:if="{{ShowSoundMark==1}}">{{Result.ENG.Soundmark.AmE}}</block><block wx:if="{{ShowSoundMark==0}}">[……]</block></view>
326 328
       </view>
327 329
     </view>
328 330
     <view class='lineFooter'></view>

+ 14 - 0
pages/marketing/award.wxml

@@ -13,6 +13,20 @@
13 13
 			根据7天可退款的规定,截止日期为7天前
14 14
 		</view>
15 15
 	</view>
16
+	<block wx:if="{{Award.BillTime}}">
17
+	<view class='lineFooter'></view>
18
+	<view class='lineFooter2'></view>
19
+	<view class="panelItem FlexColumn">
20
+		<view class="panelItem1 FlexRow">
21
+			<view class="panelItem11">已发放奖励天数</view>
22
+			<view class="panelItem11">{{Award.AwardDayNumber}}天</view>
23
+		</view>
24
+		<view class="text5 panelItem1 FlexRow">
25
+			<view class="panelItem11">最近发放日期</view>
26
+			<view class="panelItem11">{{Award.BillTime}}</view>
27
+		</view>
28
+	</view>
29
+	</block>
16 30
 	<view class='lineFooter'></view>
17 31
 	<view class='lineFooter2'></view>
18 32
 	<view class="panelItem FlexColumn">

+ 0 - 1
pages/marketing/award.wxss

@@ -28,7 +28,6 @@
28 28
 .panelItem12{
29 29
   font-size:48rpx;
30 30
   font-weight: 500;
31
-  color:#FE6659;
32 31
 }
33 32
 
34 33
 .panelItem2{

+ 1 - 1
pages/other/help.js

@@ -55,7 +55,7 @@ Page({
55 55
   },
56 56
   onShareAppMessage: function () {
57 57
     return {
58
-      title: "《秒过学习法》小贴士",
58
+      title: "小贴士",
59 59
       path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&type=help&ID=' + id + '&IDChild=' + idchild,
60 60
       imageUrl: app.globalData.uploadImageUrl+'web/'+this.data.Item.Cover,
61 61
     }

+ 0 - 0
pages/other/lesson.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików