chengjie před 11 měsíci
rodič
revize
845edeb4a5
78 změnil soubory, kde provedl 877 přidání a 387 odebrání
  1. 5 19
      app.js
  2. 1 1
      app.json
  3. 35 0
      app.wxss
  4. 8 0
      components/mp-weixin/index.js
  5. 1 0
      components/mp-weixin/index.json
  6. 1 0
      components/mp-weixin/index.wxml
  7. 1 0
      components/mp-weixin/index.wxss
  8. 1 0
      components/mp-weixin/latex/index.js
  9. 1 0
      components/mp-weixin/latex/katex.min.js
  10. 1 0
      components/mp-weixin/node/node.js
  11. 1 0
      components/mp-weixin/node/node.json
  12. 1 0
      components/mp-weixin/node/node.wxml
  13. 1 0
      components/mp-weixin/node/node.wxss
  14. 1 0
      components/mp-weixin/parser.js
  15. binární
      pages/images/icon_flag_3.png
  16. binární
      pages/images/sysIcon_e05.png
  17. 3 2
      pages/index/index.js
  18. 1 0
      pages/index/test.js
  19. 3 1
      pages/index/test.json
  20. 1 0
      pages/index/test.wxml
  21. 2 2
      pages/main/add.wxss
  22. 11 3
      pages/main/cardmain.js
  23. 9 10
      pages/main/cardmain.wxml
  24. 1 1
      pages/main/default.wxml
  25. 1 7
      pages/main/detail.wxml
  26. 5 12
      pages/main/detail.wxss
  27. 10 5
      pages/main/mainlist.js
  28. 2 1
      pages/main/mainlist.wxml
  29. 17 3
      pages/main/mainlist.wxss
  30. 1 1
      pages/plan/taskBasic.wxml
  31. 1 1
      pages_agent/main/user_index.wxss
  32. binární
      pages_test/images/picJygs_01.png
  33. binární
      pages_test/images/picJygs_02.png
  34. binární
      pages_test/images/picJygs_03.png
  35. binární
      pages_test/images/picJygs_04.png
  36. binární
      pages_test/images/picJygs_05.png
  37. binární
      pages_test/images/picJygs_06.png
  38. binární
      pages_test/images/picJygs_07.png
  39. binární
      pages_test/images/picJygs_08.png
  40. binární
      pages_test/images/picJygs_09.png
  41. binární
      pages_test/images/picJygs_10.png
  42. binární
      pages_test/images/picJygs_11.png
  43. binární
      pages_test/images/picJygs_12.png
  44. binární
      pages_test/images/picJygs_13.png
  45. binární
      pages_test/images/picJygs_14.png
  46. binární
      pages_test/images/picJygs_15.png
  47. binární
      pages_test/images/picJygs_16.png
  48. binární
      pages_test/images/pic_04.gif
  49. binární
      pages_test/images/pic_04.png
  50. binární
      pages_test/images/pic_05.png
  51. binární
      pages_test/images/sysIcon_e04.png
  52. 59 0
      pages_test/knowledge/build.js
  53. 1 1
      pages_test/knowledge/build.json
  54. 7 5
      pages_test/knowledge/build.wxml
  55. 13 0
      pages_test/knowledge/build.wxss
  56. 18 16
      pages_test/knowledge/examine.js
  57. 2 9
      pages_test/knowledge/examine.wxml
  58. 5 4
      pages_test/knowledge/index.js
  59. 1 2
      pages_test/knowledge/index.json
  60. 14 13
      pages_test/knowledge/index.wxml
  61. 39 12
      pages_test/knowledge/index.wxss
  62. 13 22
      pages_test/knowledge/library.js
  63. 1 0
      pages_test/knowledge/library.json
  64. 4 4
      pages_test/knowledge/library.wxml
  65. 4 2
      pages_test/knowledge/library.wxss
  66. 2 1
      pages_test/knowledge/package.js
  67. 2 1
      pages_test/knowledge/package.json
  68. 11 8
      pages_test/knowledge/package.wxml
  69. 15 12
      pages_test/knowledge/package.wxss
  70. 203 52
      pages_test/knowledge/report.js
  71. 34 6
      pages_test/knowledge/report.wxml
  72. 64 23
      pages_test/knowledge/report.wxss
  73. 87 22
      pages_test/knowledge/unit.js
  74. 36 36
      pages_test/knowledge/unit.wxml
  75. 83 21
      pages_test/knowledge/unit.wxss
  76. 0 1
      pages_test/test/report.js
  77. 2 2
      project.config.json
  78. 30 43
      utils/main.js

Diff nebyl zobrazen, protože je příliš veliký
+ 5 - 19
app.js


+ 1 - 1
app.json

@@ -119,7 +119,7 @@
119
         "pages_agent"
119
         "pages_agent"
120
       ]
120
       ]
121
     },
121
     },
122
-    "pages_test/test/index": {
122
+    "pages_test/knowledge/index": {
123
       "network": "all",
123
       "network": "all",
124
       "packages": [
124
       "packages": [
125
         "pages_test"
125
         "pages_test"

Diff nebyl zobrazen, protože je příliš veliký
+ 35 - 0
app.wxss


Diff nebyl zobrazen, protože je příliš veliký
+ 8 - 0
components/mp-weixin/index.js


+ 1 - 0
components/mp-weixin/index.json

@@ -0,0 +1 @@
1
+{"component":true,"usingComponents":{"node":"./node/node"}}

+ 1 - 0
components/mp-weixin/index.wxml

@@ -0,0 +1 @@
1
+<view class="_root {{selectable?'_select':''}}" style="{{containerStyle}}"><slot wx:if="{{!nodes[0]}}"/><node id="_root" childs="{{nodes}}" opts="{{[lazyLoad,loadingImg,errorImg,showImgMenu,selectable]}}" catchadd="_add"/></view>

+ 1 - 0
components/mp-weixin/index.wxss

@@ -0,0 +1 @@
1
+._root{padding:1px 0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}._select{-webkit-user-select:text;user-select:text}

Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/latex/index.js


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/latex/katex.min.js


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/node/node.js


+ 1 - 0
components/mp-weixin/node/node.json

@@ -0,0 +1 @@
1
+{"component":true,"usingComponents":{"node":"./node"}}

Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/node/node.wxml


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/node/node.wxss


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
components/mp-weixin/parser.js


binární
pages/images/icon_flag_3.png


binární
pages/images/sysIcon_e05.png


+ 3 - 2
pages/index/index.js

@@ -17,7 +17,7 @@ Page({
17
     })
17
     })
18
   },
18
   },
19
   onLoad: function (options) {
19
   onLoad: function (options) {
20
-
20
+    var that = this;
21
     console.log("Time1:" + new Date().getTime());
21
     console.log("Time1:" + new Date().getTime());
22
     if (options) {
22
     if (options) {
23
       if (options.UserID) {
23
       if (options.UserID) {
@@ -187,15 +187,16 @@ Page({
187
     });
187
     });
188
 
188
 
189
     this.updateProgram();
189
     this.updateProgram();
190
+
190
     this.getUserInfo();
191
     this.getUserInfo();
191
     
192
     
192
-    var that = this;
193
     timeout1 = setTimeout(function () {
193
     timeout1 = setTimeout(function () {
194
       that.setData({
194
       that.setData({
195
         IsRefresh: true,
195
         IsRefresh: true,
196
       })
196
       })
197
     }, 15000);
197
     }, 15000);
198
   },
198
   },
199
+  
199
   //得到用户信息
200
   //得到用户信息
200
   getUserInfo: function (cb) {
201
   getUserInfo: function (cb) {
201
     var that = this
202
     var that = this

+ 1 - 0
pages/index/test.js

@@ -6,6 +6,7 @@ Page({
6
   data: {
6
   data: {
7
     navbarInitTop: 0, //导航栏初始化距顶部的距离
7
     navbarInitTop: 0, //导航栏初始化距顶部的距离
8
     isFixedTop: false, //是否固定顶部
8
     isFixedTop: false, //是否固定顶部
9
+    LaTeX: '$$x=\\frac{-b±\\sqrt{b^{2}-4ac}}{2a}$$'
9
   },
10
   },
10
 
11
 
11
   /**
12
   /**

+ 3 - 1
pages/index/test.json

@@ -1,3 +1,5 @@
1
 {
1
 {
2
-  "usingComponents": {}
2
+  "usingComponents": {
3
+    "mp-html": "../../components/mp-weixin"
4
+  }
3
 }
5
 }

+ 1 - 0
pages/index/test.wxml

@@ -2,6 +2,7 @@
2
 <view style="width: 90%; height: 300rpx; background: #f0f0f0; margin: 30rpx auto;">
2
 <view style="width: 90%; height: 300rpx; background: #f0f0f0; margin: 30rpx auto;">
3
   <canvas canvas-id="ringCanvas" class="canvas" bindtouchstart="touchHandler"></canvas>
3
   <canvas canvas-id="ringCanvas" class="canvas" bindtouchstart="touchHandler"></canvas>
4
 </view>
4
 </view>
5
+<mp-html class="textLaTeX" content="{{LaTeX}}" />
5
 <view class="navbar-wrap">
6
 <view class="navbar-wrap">
6
  <view class="column {{isFixedTop?'fixed':''}}" id="navbar">
7
  <view class="column {{isFixedTop?'fixed':''}}" id="navbar">
7
   <view class="block active">新品推荐</view>
8
   <view class="block active">新品推荐</view>

+ 2 - 2
pages/main/add.wxss

@@ -324,7 +324,7 @@ page{
324
 .panelItem .textBigWord {
324
 .panelItem .textBigWord {
325
   font-size: 42rpx;
325
   font-size: 42rpx;
326
   line-height: 42rpx;
326
   line-height: 42rpx;
327
-  font-weight: 600;
327
+  font-weight: 700;
328
 }
328
 }
329
 .panelItem .textPinyin {
329
 .panelItem .textPinyin {
330
   text-decoration: underline;
330
   text-decoration: underline;
@@ -495,7 +495,7 @@ page{
495
 
495
 
496
 .add {
496
 .add {
497
   font-size: 42rpx;
497
   font-size: 42rpx;
498
-  font-weight: 600;
498
+  font-weight: 700;
499
   margin: 0 10rpx 10rpx 0;
499
   margin: 0 10rpx 10rpx 0;
500
 }
500
 }
501
 
501
 

+ 11 - 3
pages/main/cardmain.js

@@ -73,14 +73,22 @@ Page({
73
   },
73
   },
74
   getFolderList: function (e) {
74
   getFolderList: function (e) {
75
     var that = this;
75
     var that = this;
76
+    var isnew =0;
77
+    if (e && e.currentTarget.dataset.isnew || app.globalData.FolderList.length==0)
78
+      isnew=1;
76
     var list = app.globalData.FolderList;
79
     var list = app.globalData.FolderList;
80
+    if (isnew)
81
+      list=[];
77
     common.getStorageValue(that, "FolderOrder", ["", "", "", "", "", "", "", ""], function () {
82
     common.getStorageValue(that, "FolderOrder", ["", "", "", "", "", "", "", ""], function () {
78
-      if (list.length == 0 || e) {
83
+      //debugger;
84
+      if (list.length == 0 || isnew) {
79
         var order = that.data.FolderOrder;
85
         var order = that.data.FolderOrder;
80
-        var url = "GetUserFolderList?UserID=" + app.globalData.userInfo.UserID;
86
+        var url = "GetUserFolderList?UserID=" + app.globalData.userInfo.UserID+"&IsNewData="+isnew;
87
+        if (e && e.currentTarget.dataset.order)
88
+          url+="&OrderType="+e.currentTarget.dataset.order;
81
         if (e) {
89
         if (e) {
82
-          //url+="&OrderType="+e.currentTarget.dataset.order;
83
           order = ["", "", "", "", "", "", "", ""];
90
           order = ["", "", "", "", "", "", "", ""];
91
+          var index=0;
84
           order[e.currentTarget.dataset.index] = "PanelBtnSelect";
92
           order[e.currentTarget.dataset.index] = "PanelBtnSelect";
85
 
93
 
86
           wx.setStorageSync('FolderOrderStr', e.currentTarget.dataset.order);
94
           wx.setStorageSync('FolderOrderStr', e.currentTarget.dataset.order);

+ 9 - 10
pages/main/cardmain.wxml

@@ -140,7 +140,7 @@
140
 
140
 
141
   <view class='panelBottom FlexColumn' catchtap="">
141
   <view class='panelBottom FlexColumn' catchtap="">
142
     <view class='panelBottom1 FlexRow'>
142
     <view class='panelBottom1 FlexRow'>
143
-      <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages_test/test/index">
143
+      <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../../pages_test/knowledge/index">
144
         <view>检验</view>
144
         <view>检验</view>
145
       </view>
145
       </view>
146
       <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages/main/default">
146
       <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages/main/default">
@@ -180,21 +180,20 @@
180
         <view class="PanelOrder32 PanelOrder31">按题卡清单更新时间</view>
180
         <view class="PanelOrder32 PanelOrder31">按题卡清单更新时间</view>
181
       </view>
181
       </view>
182
       <view class="PanelOrder2 FlexRow">
182
       <view class="PanelOrder2 FlexRow">
183
-        <view class="{{FolderOrder[1]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime asc" data-index='1'>最早</view>
184
-        <view class="{{FolderOrder[0]}} PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime desc" data-index='0'>最近</view>
185
-        <view class="{{FolderOrder[3]}} PanelOrderBtn" catchtap="getFolderList" data-order="Update asc" data-index='3'>最早</view>
186
-        <view class="{{FolderOrder[2]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="UpdateTime desc" data-index='2'>最近</view>
183
+        <view class="{{FolderOrder[1]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime asc" data-index='1' data-isnew="1">最早</view>
184
+        <view class="{{FolderOrder[0]}} PanelOrderBtn" catchtap="getFolderList" data-order="CreateTime desc" data-index='0' data-isnew="1">最近</view>
185
+        <view class="{{FolderOrder[3]}} PanelOrderBtn" catchtap="getFolderList" data-order="UpdateTime asc" data-index='3' data-isnew="1">最早</view>
186
+        <view class="{{FolderOrder[2]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="UpdateTime desc" data-index='2' data-isnew="1">最近</view>
187
       </view>
187
       </view>
188
       <view class="PanelOrder1 FlexRow">
188
       <view class="PanelOrder1 FlexRow">
189
         <view class="PanelOrder31">按题卡数量</view>
189
         <view class="PanelOrder31">按题卡数量</view>
190
         <view class="PanelOrder32 PanelOrder31">按卡单标题</view>
190
         <view class="PanelOrder32 PanelOrder31">按卡单标题</view>
191
       </view>
191
       </view>
192
       <view class="PanelOrder2 FlexRow">
192
       <view class="PanelOrder2 FlexRow">
193
-        <view class="{{FolderOrder[4]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="Total asc" data-index='4'>较少</view>
194
-        <view class="{{FolderOrder[5]}} PanelOrderBtn" catchtap="getFolderList" data-order="Total desc" data-index='5'>较多</view>
195
-        <view class="{{FolderOrder[6]}} PanelOrderBtn" catchtap="getFolderList" data-order="Name asc" data-index='6'>a-z</view>
196
-        <view class="{{FolderOrder[7]}} PanelOrderBtn3 PanelOrderBtn"  catchtap="getFolderList" data-order="Name desc" data-index='7'>z-a</view>
197
-        
193
+        <view class="{{FolderOrder[4]}} PanelOrderBtn3 PanelOrderBtn" catchtap="getFolderList" data-order="Total asc" data-index='4' data-isnew="1">较少</view>
194
+        <view class="{{FolderOrder[5]}} PanelOrderBtn" catchtap="getFolderList" data-order="Total desc" data-index='5' data-isnew="1">较多</view>
195
+        <view class="{{FolderOrder[6]}} PanelOrderBtn" catchtap="getFolderList" data-order="Name asc" data-index='6' data-isnew="1">a-z</view>
196
+        <view class="{{FolderOrder[7]}} PanelOrderBtn3 PanelOrderBtn"  catchtap="getFolderList" data-order="Name desc" data-index='7' data-isnew="1">z-a</view>
198
       </view>
197
       </view>
199
       <view class="PanelOrderLine60"></view>
198
       <view class="PanelOrderLine60"></view>
200
     </view>
199
     </view>

+ 1 - 1
pages/main/default.wxml

@@ -35,7 +35,7 @@
35
 
35
 
36
     <view class='panelBottom1 FlexRow'>
36
     <view class='panelBottom1 FlexRow'>
37
       <!-- <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages_test/test/index"> -->
37
       <!-- <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages_test/test/index"> -->
38
-      <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages_test/knowledge/index">
38
+      <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../../pages_test/knowledge/index">
39
         <view>检验</view>
39
         <view>检验</view>
40
       </view>
40
       </view>
41
       <view class='panelBottom11 FlexColumn'>
41
       <view class='panelBottom11 FlexColumn'>

+ 1 - 7
pages/main/detail.wxml

@@ -224,9 +224,6 @@
224
         <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
224
         <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
225
       </view>
225
       </view>
226
       <view class="panelLastTime3">点击左上角返回首页</view>
226
       <view class="panelLastTime3">点击左上角返回首页</view>
227
-      
228
-      
229
-
230
       <view class="panelLastFooter FlexColumn">
227
       <view class="panelLastFooter FlexColumn">
231
         <view class="panelLastFooter1 FlexRow">
228
         <view class="panelLastFooter1 FlexRow">
232
           <view class="panelLastFooter11 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
229
           <view class="panelLastFooter11 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
@@ -238,11 +235,8 @@
238
             <view>详细报告</view>
235
             <view>详细报告</view>
239
           </view>
236
           </view>
240
         </view>
237
         </view>
241
-        <view class="panelLastFooter2 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
242
-          <image src="../images/icon_flag_3.png" class='icon_flag_3' />
243
-        </view>
238
+        <image src="../images/icon_flag_3.png" class='icon_flag_3' bindtap="goto" data-url="../share/shareitem?TaskID=-1"/>
244
       </view>
239
       </view>
245
-      
246
     </view>
240
     </view>
247
   </block>
241
   </block>
248
   <!-- 今日任务量 -->
242
   <!-- 今日任务量 -->

+ 5 - 12
pages/main/detail.wxss

@@ -643,20 +643,13 @@ page{
643
   margin-bottom: 20rpx;
643
   margin-bottom: 20rpx;
644
 }
644
 }
645
 
645
 
646
-.panelLastFooter2{
647
-  background-image: linear-gradient(141deg, #746D6B 0%, #504846 100%);
646
+.icon_flag_3{
648
   border-radius: 10rpx;
647
   border-radius: 10rpx;
649
-  width:80rpx;
650
-  height:100rpx;
648
+  width:120rpx;
649
+  height:150rpx;
651
   position: absolute;
650
   position: absolute;
652
-  bottom:90rpx;
653
-  left:150rpx;
654
-  justify-content: flex-end;
655
-}
656
-
657
-.icon_flag_3{
658
-  width:80rpx;
659
-  height:75rpx;
651
+  bottom:86rpx;
652
+  left:133rpx;
660
   border-radius: 0 0 10rpx 10rpx;
653
   border-radius: 0 0 10rpx 10rpx;
661
 }
654
 }
662
 
655
 

+ 10 - 5
pages/main/mainlist.js

@@ -128,8 +128,8 @@ Page({
128
         PrintID: options.PrintID,
128
         PrintID: options.PrintID,
129
       });
129
       });
130
 
130
 
131
-      console.log("options.PrintUserID:"+options.PrintUserID);
132
-      console.log("app.globalData.userInfo.UserID:"+app.globalData.userInfo.UserID);
131
+      //console.log("options.PrintUserID:"+options.PrintUserID);
132
+      //console.log("app.globalData.userInfo.UserID:"+app.globalData.userInfo.UserID);
133
       
133
       
134
       if (options.PrintUserID!=app.globalData.userInfo.UserID){
134
       if (options.PrintUserID!=app.globalData.userInfo.UserID){
135
         wx.showModal({
135
         wx.showModal({
@@ -266,7 +266,7 @@ Page({
266
   getList: function () {
266
   getList: function () {
267
     var that = this;
267
     var that = this;
268
     var list = app.globalData.CardList;
268
     var list = app.globalData.CardList;
269
-    var len = 16;
269
+    var len = 100;
270
     for (var i = 0; i < list.length; i++) {
270
     for (var i = 0; i < list.length; i++) {
271
       var item = list[i];
271
       var item = list[i];
272
       item.ScrollLeft = 0;
272
       item.ScrollLeft = 0;
@@ -295,9 +295,11 @@ Page({
295
       if (imageUrl.length == 0 && item.Content[3].Content)
295
       if (imageUrl.length == 0 && item.Content[3].Content)
296
         imageUrl = getImage(item.Content[3].Content);
296
         imageUrl = getImage(item.Content[3].Content);
297
 
297
 
298
+      item.Width="650";
298
       if (imageUrl.length > 0) {
299
       if (imageUrl.length > 0) {
299
         item.ImageUrlTemp = main.getTempImage(imageUrl);
300
         item.ImageUrlTemp = main.getTempImage(imageUrl);
300
         item.ImageUrlServer = imageUrl;
301
         item.ImageUrlServer = imageUrl;
302
+        item.Width="540";
301
       }
303
       }
302
 
304
 
303
       if (item.FirstTime < "1900-01-02")
305
       if (item.FirstTime < "1900-01-02")
@@ -464,8 +466,9 @@ Page({
464
         else{
466
         else{
465
           var list=that.data.List;
467
           var list=that.data.List;
466
           for(var i=0;i<list.length;i++){
468
           for(var i=0;i<list.length;i++){
467
-            if (list[i].MiaoguoCardID==id)
469
+            if (list[i].MiaoguoCardID==id){
468
               list[i].IsNullImage=true;
470
               list[i].IsNullImage=true;
471
+            }
469
           }
472
           }
470
 
473
 
471
           that.setData({
474
           that.setData({
@@ -1332,8 +1335,9 @@ Page({
1332
           that.saveMultipleData(mData,that.data.List);      
1335
           that.saveMultipleData(mData,that.data.List);      
1333
         }
1336
         }
1334
         else{
1337
         else{
1335
-          if (id==0)
1338
+          if (id==0){
1336
             mData.Param.FolderID=0;
1339
             mData.Param.FolderID=0;
1340
+          }
1337
           else{
1341
           else{
1338
             var list=that.data.FolderList;
1342
             var list=that.data.FolderList;
1339
             for(var i=0;i<list.length;i++){
1343
             for(var i=0;i<list.length;i++){
@@ -1366,6 +1370,7 @@ Page({
1366
       var param=mData.Param;
1370
       var param=mData.Param;
1367
       param[param.ListStr]=arr;
1371
       param[param.ListStr]=arr;
1368
       //console.log(JSON.stringify(param));
1372
       //console.log(JSON.stringify(param));
1373
+      //debugger;
1369
       main.postData(sql, param, function (data) {
1374
       main.postData(sql, param, function (data) {
1370
         
1375
         
1371
         list=that.updateSavedList(that.data.ShowMultiple,mData,list);
1376
         list=that.updateSavedList(that.data.ShowMultiple,mData,list);

+ 2 - 1
pages/main/mainlist.wxml

@@ -75,13 +75,14 @@
75
                 <image class="universalpic_errorpic_black_30x30" src='../images/universalpic_errorpic_black_30x30.png' />
75
                 <image class="universalpic_errorpic_black_30x30" src='../images/universalpic_errorpic_black_30x30.png' />
76
               </view>
76
               </view>
77
               
77
               
78
-              <view class="panelListItem11 FlexColumn">
78
+              <view class="panelListItem11 FlexColumn" style="width:{{item.Width}}rpx;">
79
                 <view class="panelListItem11Name1">
79
                 <view class="panelListItem11Name1">
80
                   {{item.Content[1].ContentStr}}
80
                   {{item.Content[1].ContentStr}}
81
                 </view>
81
                 </view>
82
                 <view class="panelListItem11Name2">
82
                 <view class="panelListItem11Name2">
83
                   {{item.Content[2].ContentStr}}
83
                   {{item.Content[2].ContentStr}}
84
                 </view>
84
                 </view>
85
+                <image src="../images/sysIcon_e05.png" class="sysIcon_e05"></image>
85
               </view>
86
               </view>
86
             </view>
87
             </view>
87
             <view class="panelListItem2 FlexRow">
88
             <view class="panelListItem2 FlexRow">

+ 17 - 3
pages/main/mainlist.wxss

@@ -372,20 +372,34 @@
372
 }
372
 }
373
 
373
 
374
 .panelListItem11{
374
 .panelListItem11{
375
+  width:540rpx;
375
   max-width: 650rpx;
376
   max-width: 650rpx;
376
-  min-width:540rpx;
377
   height:80rpx;
377
   height:80rpx;
378
   align-items: flex-start;
378
   align-items: flex-start;
379
+  position: relative;
379
 }
380
 }
380
 .panelListItem11Name1{
381
 .panelListItem11Name1{
382
+  width: 100%;
381
   font-size: 30rpx;
383
   font-size: 30rpx;
382
   font-weight: 700;
384
   font-weight: 700;
383
-  overflow: hidden;
385
+  overflow-x: hidden;
386
+  white-space: nowrap;
384
 }
387
 }
388
+
385
 .panelListItem11Name2{
389
 .panelListItem11Name2{
390
+  width: 100%;
386
   font-size: 22rpx;
391
   font-size: 22rpx;
387
   font-weight: 400;
392
   font-weight: 400;
388
-  overflow: hidden;
393
+  overflow-x: hidden;
394
+  white-space: nowrap;
395
+}
396
+
397
+.sysIcon_e05{
398
+  position: absolute;
399
+  right:-30rpx;
400
+  top:0;
401
+  width:60rpx;
402
+  height:80rpx;
389
 }
403
 }
390
 
404
 
391
 .panelListItem2{
405
 .panelListItem2{

+ 1 - 1
pages/plan/taskBasic.wxml

@@ -155,7 +155,7 @@
155
     </view>
155
     </view>
156
   </view>
156
   </view>
157
 
157
 
158
-  <view class="panel3 panel1 FlexColumn" bindtap="gotoReLaunch" data-url="../../pages_test/test/index">
158
+  <view class="panel3 panel1 FlexColumn" bindtap="goto" data-url="../../pages_test/knowledge/index">
159
     <view class="panel21 FlexColumn">
159
     <view class="panel21 FlexColumn">
160
       <view class="panel31 FlexRow">
160
       <view class="panel31 FlexRow">
161
         <text class="text1">去「检验」逛逛</text>
161
         <text class="text1">去「检验」逛逛</text>

+ 1 - 1
pages_agent/main/user_index.wxss

@@ -217,7 +217,7 @@
217
   background-color: #FE6659;
217
   background-color: #FE6659;
218
   text-align: center;
218
   text-align: center;
219
   font-size: 20rpx;
219
   font-size: 20rpx;
220
-  font-weight: 600;
220
+  font-weight: 700;
221
   color:#fff;
221
   color:#fff;
222
 }
222
 }
223
 
223
 

binární
pages_test/images/picJygs_01.png


binární
pages_test/images/picJygs_02.png


binární
pages_test/images/picJygs_03.png


binární
pages_test/images/picJygs_04.png


binární
pages_test/images/picJygs_05.png


binární
pages_test/images/picJygs_06.png


binární
pages_test/images/picJygs_07.png


binární
pages_test/images/picJygs_08.png


binární
pages_test/images/picJygs_09.png


binární
pages_test/images/picJygs_10.png


binární
pages_test/images/picJygs_11.png


binární
pages_test/images/picJygs_12.png


binární
pages_test/images/picJygs_13.png


binární
pages_test/images/picJygs_14.png


binární
pages_test/images/picJygs_15.png


binární
pages_test/images/picJygs_16.png


binární
pages_test/images/pic_04.gif


binární
pages_test/images/pic_04.png


binární
pages_test/images/pic_05.png


binární
pages_test/images/sysIcon_e04.png


+ 59 - 0
pages_test/knowledge/build.js

@@ -2,16 +2,20 @@ import common from '../../utils/util';
2
 import main from '../../utils/main';
2
 import main from '../../utils/main';
3
 
3
 
4
 const app = getApp();
4
 const app = getApp();
5
+var intervalBuild=0;
5
 
6
 
6
 Page({
7
 Page({
7
   data: {
8
   data: {
8
     BuildFinished:1,
9
     BuildFinished:1,
10
+    BuildCardNumber:"0%",
11
+    Count:0,
9
   },
12
   },
10
   onLoad: function (options) {
13
   onLoad: function (options) {
11
     var that = this;
14
     var that = this;
12
     that.setData({
15
     that.setData({
13
       Containnerheight: main.getWindowHeight(),
16
       Containnerheight: main.getWindowHeight(),
14
     });
17
     });
18
+    that.buildCard(options.Count);
15
   },
19
   },
16
   goto: function (e) {
20
   goto: function (e) {
17
     var url = e.currentTarget.dataset.url;
21
     var url = e.currentTarget.dataset.url;
@@ -19,6 +23,61 @@ Page({
19
       url: url,
23
       url: url,
20
     });
24
     });
21
   },
25
   },
26
+  close: function (e) {
27
+    wx.navigateBack({
28
+      delta: 2,
29
+    });
30
+  },
31
+  gotoReLaunch: function (e) {
32
+    app.globalData.FolderList=[];
33
+    var url = e.currentTarget.dataset.url;
34
+    wx.reLaunch({
35
+      url: url,
36
+    });
37
+  },
38
+  buildCard: function (count) {
39
+    var that = this;
40
+    if (count > 0) {
41
+      that.setData({
42
+        BuildFinished: 0,
43
+        Count:count,
44
+      });
45
+      var buildCardNumber = 0;
46
+      if (intervalBuild!=null){
47
+        clearInterval(intervalBuild);
48
+        intervalBuild=null;
49
+      }
50
+      var timer=0;
51
+      intervalBuild = setInterval(function () {
52
+        if (count>0){
53
+          buildCardNumber++;
54
+          that.setData({
55
+            BuildCardNumber: Math.round(100 * buildCardNumber / count) + "%",
56
+          });
57
+          if (buildCardNumber >= count) {
58
+            clearInterval(intervalBuild);
59
+            buildCardNumber=0;
60
+            that.setData({
61
+              BuildFinished: 1,
62
+            });
63
+          }
64
+        }
65
+        else{
66
+          clearInterval(intervalBuild);
67
+        }
68
+
69
+        timer++;
70
+        if (timer>100)
71
+          clearInterval(intervalBuild);
72
+      }, 600);
73
+    }
74
+  },
75
+  addCard: function (card) {
76
+    var userid = app.globalData.userInfo.UserID;
77
+    main.postData('AddMiaoguoCard?Type='+cardType+'&UserID=' + userid, card, function (data) {
78
+
79
+    });
80
+  },
22
   onShareAppMessage: function () {
81
   onShareAppMessage: function () {
23
     return {
82
     return {
24
       title: app.globalData.ShareTitle,
83
       title: app.globalData.ShareTitle,

+ 1 - 1
pages_test/knowledge/build.json

@@ -5,5 +5,5 @@
5
     "navigation-bar": "/components/navigation-bar/navigation-bar"
5
     "navigation-bar": "/components/navigation-bar/navigation-bar"
6
   },
6
   },
7
   "navigationStyle": "custom",
7
   "navigationStyle": "custom",
8
-  "backgroundColor": "#fff"
8
+  "backgroundColor": "#AAA8A5"
9
 }
9
 }

+ 7 - 5
pages_test/knowledge/build.wxml

@@ -7,17 +7,17 @@
7
     </block>
7
     </block>
8
     <block wx:if="{{BuildFinished}}">
8
     <block wx:if="{{BuildFinished}}">
9
       <view class="panel11">已完成</view>
9
       <view class="panel11">已完成</view>
10
-      <view class="panel12">生成7张题卡</view>
10
+      <view class="panel12">生成{{Count}}张题卡</view>
11
     </block>
11
     </block>
12
   </view>
12
   </view>
13
   <view class="panel2 FlexRow">
13
   <view class="panel2 FlexRow">
14
-    <view wx:if="{{!BuildFinished}}" class="panel21">69%</view>
14
+    <view wx:if="{{!BuildFinished}}" class="panel21">{{BuildCardNumber}}</view>
15
     <block wx:if="{{BuildFinished}}">
15
     <block wx:if="{{BuildFinished}}">
16
-      <view class="panel22 FlexColumn">
16
+      <view class="panel22 FlexColumn" bind:tap="close">
17
         <image src="../images/sysIcon_b06.png" class="sysIcon_b06"></image>
17
         <image src="../images/sysIcon_b06.png" class="sysIcon_b06"></image>
18
         <view class="panel221">关闭</view>
18
         <view class="panel221">关闭</view>
19
       </view>
19
       </view>
20
-      <view class="panel22 panel23 FlexColumn">
20
+      <view class="panel22 panel23 FlexColumn" bind:tap='gotoReLaunch' data-url="../../pages/main/cardmain">
21
         <image src="../images/sysIcon_a04.png" class="sysIcon_b06"></image>
21
         <image src="../images/sysIcon_a04.png" class="sysIcon_b06"></image>
22
         <view class="panel221">题卡管理</view>
22
         <view class="panel221">题卡管理</view>
23
       </view>
23
       </view>
@@ -26,6 +26,8 @@
26
   <view class="panel3">
26
   <view class="panel3">
27
   </view>
27
   </view>
28
   <view class="panel4 FlexColumn">
28
   <view class="panel4 FlexColumn">
29
-    <image src="" class="panel41"></image>
29
+    <image src="../images/pic_04.gif" class="panel41" wx:if="{{!BuildFinished}}"></image>
30
+    <image src="../images/pic_04.png" class="panel41" wx:if="{{BuildFinished}}"></image>
31
+    <image src="../images/pic_05.png" class="panel42" wx:if="{{BuildFinished}}"></image>
30
   </view>
32
   </view>
31
 </view>
33
 </view>

+ 13 - 0
pages_test/knowledge/build.wxss

@@ -1,3 +1,7 @@
1
+page{
2
+  background-color: #AAA8A5;
3
+}
4
+
1
 .container {
5
 .container {
2
   background-color: #AAA8A5;
6
   background-color: #AAA8A5;
3
 }
7
 }
@@ -66,6 +70,7 @@
66
 
70
 
67
 .panel4 {
71
 .panel4 {
68
   width: 100%;
72
   width: 100%;
73
+  position: relative;
69
 }
74
 }
70
 
75
 
71
 .panel41 {
76
 .panel41 {
@@ -74,4 +79,12 @@
74
   margin-top: 120rpx;
79
   margin-top: 120rpx;
75
   background-color: #fff;
80
   background-color: #fff;
76
   border-radius: 50%;
81
   border-radius: 50%;
82
+}
83
+.panel42 {
84
+  width: 100rpx;
85
+  height: 108rpx;
86
+  border-radius: 50%;
87
+  position: absolute;
88
+  top:120rpx;
89
+  right:195rpx;
77
 }
90
 }

+ 18 - 16
pages_test/knowledge/examine.js

@@ -11,7 +11,6 @@ var timeoutPlayAudio;
11
 var tempPlayUrl = "";
11
 var tempPlayUrl = "";
12
 var tempPlayUrlLocal = "";
12
 var tempPlayUrlLocal = "";
13
 var timeoutEveryCard = 0;
13
 var timeoutEveryCard = 0;
14
-var isFinished=0;
15
 
14
 
16
 Page({
15
 Page({
17
   data: {
16
   data: {
@@ -52,8 +51,6 @@ Page({
52
     
51
     
53
     this.audioCtx = wx.createAudioContext('myAudio');
52
     this.audioCtx = wx.createAudioContext('myAudio');
54
 
53
 
55
-    isFinished = 0;
56
-
57
     if (app.globalData.BaiduToken === "")
54
     if (app.globalData.BaiduToken === "")
58
       main.getBaiduToken();
55
       main.getBaiduToken();
59
   },
56
   },
@@ -111,7 +108,6 @@ Page({
111
     }
108
     }
112
     //结束
109
     //结束
113
     if (that.data.CurrentIndex>=TaskList.length){
110
     if (that.data.CurrentIndex>=TaskList.length){
114
-      isFinished = 1;
115
       that.onFinished();
111
       that.onFinished();
116
     }
112
     }
117
     else if (that.data.CurrentIndex <0) {
113
     else if (that.data.CurrentIndex <0) {
@@ -302,22 +298,11 @@ Page({
302
     });
298
     });
303
     wx.setStorageSync("TestAutioPlay",id);
299
     wx.setStorageSync("TestAutioPlay",id);
304
   },
300
   },
305
-  onExport:function(){
306
-    var that=this;
307
-    that.setSoundFile(0);
308
-    while (that.data.CurrentIndex<TaskList.length) {
309
-      TaskList[that.data.CurrentIndex].Result = 0;
310
-      that.data.CurrentIndex++;
311
-    }    
312
-    isFinished = 1;
313
-    that.onFinished();
314
-  },
315
   onFinished:function(){
301
   onFinished:function(){
316
     if (TaskList.length > 0 && this.data.CurrentIndex > 0) {
302
     if (TaskList.length > 0 && this.data.CurrentIndex > 0) {
317
       var TestTask = {};
303
       var TestTask = {};
318
       TestTask.Category = this.data.Category;
304
       TestTask.Category = this.data.Category;
319
       TestTask.TestType = this.data.TestType;
305
       TestTask.TestType = this.data.TestType;
320
-      TestTask.IsFinished = isFinished;
321
       TestTask.LibraryName1 = this.data.LibraryName1;
306
       TestTask.LibraryName1 = this.data.LibraryName1;
322
       TestTask.LibraryName2 = this.data.LibraryName2;
307
       TestTask.LibraryName2 = this.data.LibraryName2;
323
       TestTask.BookName = this.data.BookName;
308
       TestTask.BookName = this.data.BookName;
@@ -326,9 +311,10 @@ Page({
326
       TestTask.BookID=this.data.BookID;
311
       TestTask.BookID=this.data.BookID;
327
       TestTask.UnitID=this.data.UnitID;
312
       TestTask.UnitID=this.data.UnitID;
328
       TestTask.List = TaskList;
313
       TestTask.List = TaskList;
314
+      TestTask.ReportType="new";
329
       app.globalData.TestTask=TestTask;
315
       app.globalData.TestTask=TestTask;
330
       wx.redirectTo({
316
       wx.redirectTo({
331
-        url: './report?type=new',
317
+        url: './report',
332
       });
318
       });
333
     }
319
     }
334
     else{
320
     else{
@@ -356,6 +342,22 @@ Page({
356
         });
342
         });
357
       });
343
       });
358
   },
344
   },
345
+  close: function (e) {
346
+    wx.showModal({
347
+      title: '提醒',
348
+      showCancel: true,
349
+      content: "中途退出将不保留检验进度,重新检验时需从头开始。若完成检验,系统将生成检验报告并创建相应的记忆卡。",
350
+      confirmText: "退出",
351
+      cancelText: "取消",
352
+      complete: (res) => {
353
+        if (res.confirm) {
354
+          wx.navigateBack({
355
+            delta: 1,
356
+          });
357
+        }
358
+      }
359
+    });
360
+  },
359
   onShareAppMessage: function () {
361
   onShareAppMessage: function () {
360
     return {
362
     return {
361
       title: app.globalData.ShareTitle,
363
       title: app.globalData.ShareTitle,

+ 2 - 9
pages_test/knowledge/examine.wxml

@@ -1,7 +1,7 @@
1
 <import src="../../pages/template/cardShow.wxml" />
1
 <import src="../../pages/template/cardShow.wxml" />
2
 <navigation-bar title="检验中" show="true" left="true" background="{{Color.BackColor}}" color="#fff">
2
 <navigation-bar title="检验中" show="true" left="true" background="{{Color.BackColor}}" color="#fff">
3
-    <view slot="left" bindtap="onFinished">
4
-      <view class="square">提前退出</view>
3
+    <view slot="left" bindtap="close">
4
+      <view class="square">退出</view>
5
     </view>
5
     </view>
6
 </navigation-bar>
6
 </navigation-bar>
7
 
7
 
@@ -19,10 +19,6 @@
19
       </view>
19
       </view>
20
     </view>
20
     </view>
21
     <view class="right FlexRow">
21
     <view class="right FlexRow">
22
-      <view class="btnTop FlexRow" catchtap='onExport'>
23
-        <image src="../images/universalpic_import_gray.png" class="universalpic_import_gray" />
24
-      </view>
25
-      <view class="panelTopText2 panelTopText" catchtap='onExport'>导入</view>
26
       
22
       
27
       <view class="btnTop FlexRow" catchtap='onAutoPlay' data-id="1" wx:if="{{TestAutioPlay==0}}">
23
       <view class="btnTop FlexRow" catchtap='onAutoPlay' data-id="1" wx:if="{{TestAutioPlay==0}}">
28
         <image src="../../pages/images/universalpic_broadcast_default_gray_34x25.png" class="universalpic_broadcast_default_gray_34x25" />
24
         <image src="../../pages/images/universalpic_broadcast_default_gray_34x25.png" class="universalpic_broadcast_default_gray_34x25" />
@@ -35,9 +31,6 @@
35
         <view class="panelTopText">自动播报</view>
31
         <view class="panelTopText">自动播报</view>
36
       </block>
32
       </block>
37
       
33
       
38
-      <!-- <view class="btnTop FlexRow" catchtap='gotoNext' data-btnnumber="1">
39
-        <image src="../../pages/images/universalpic_shelve_gray_26x26.png" class="universalpic_shelve_gray_26x26" />
40
-      </view> -->
41
       <view class="btnTop2 btnTop FlexRow" catchtap='gotoNext' data-btnnumber="-1" >
34
       <view class="btnTop2 btnTop FlexRow" catchtap='gotoNext' data-btnnumber="-1" >
42
         <image src="../../pages/images/universalpic_undo_gray_26x20.png" class="universalpic_undo_gray_26x20" />
35
         <image src="../../pages/images/universalpic_undo_gray_26x20.png" class="universalpic_undo_gray_26x20" />
43
       </view>
36
       </view>

+ 5 - 4
pages_test/knowledge/index.js

@@ -10,10 +10,6 @@ Page({
10
     TestList:[],
10
     TestList:[],
11
     ImagePath: app.globalData.uploadImageUrl,
11
     ImagePath: app.globalData.uploadImageUrl,
12
   },
12
   },
13
-  onPullDownRefresh: function () {
14
-    wx.stopPullDownRefresh();
15
-    this.onShow();
16
-  },
17
   onLoad: function (options) {
13
   onLoad: function (options) {
18
     var that = this;
14
     var that = this;
19
     that.setData({
15
     that.setData({
@@ -22,7 +18,12 @@ Page({
22
   },
18
   },
23
   onShow:function(){
19
   onShow:function(){
24
     var that = this;
20
     var that = this;
21
+    wx.showLoading({
22
+      title: '请稍候',
23
+      mask: true,
24
+    });
25
     main.getData('GetMiaoguoTestIndex?UserID='+app.globalData.userInfo.UserID, function (data) {
25
     main.getData('GetMiaoguoTestIndex?UserID='+app.globalData.userInfo.UserID, function (data) {
26
+      wx.hideLoading();
26
       if (data) {
27
       if (data) {
27
         that.setData({
28
         that.setData({
28
           List:data.List1,
29
           List:data.List1,

+ 1 - 2
pages_test/knowledge/index.json

@@ -2,6 +2,5 @@
2
   "navigationBarBackgroundColor": "#64C3F1",
2
   "navigationBarBackgroundColor": "#64C3F1",
3
   "navigationBarTitleText": "",
3
   "navigationBarTitleText": "",
4
   "backgroundColor": "#C16C37",
4
   "backgroundColor": "#C16C37",
5
-  "backgroundColorTop": "#64C3F1",
6
-  "enablePullDownRefresh": true
5
+  "backgroundColorTop": "#64C3F1"
7
 }
6
 }

+ 14 - 13
pages_test/knowledge/index.wxml

@@ -25,24 +25,20 @@
25
     <block wx:if="{{Menu==0}}">
25
     <block wx:if="{{Menu==0}}">
26
       <view class="panel22" wx:if="{{List.List1.length>0 || List.List2.length>0}}">语文</view>
26
       <view class="panel22" wx:if="{{List.List1.length>0 || List.List2.length>0}}">语文</view>
27
       <view class="panel23" wx:if="{{List.List1.length>0}}">上学期</view>
27
       <view class="panel23" wx:if="{{List.List1.length>0}}">上学期</view>
28
-      <scroll-view scroll-x class="panelTab" wx:if="{{List.List1.length>0}}">
29
-        <view class="Tab0"></view>
30
-        <view class="Tab FlexColumn" wx:for="{{List.List1}}" wx:key="index" bind:tap="goto" data-url="./unit?Category=语文&BookID={{item.ID}}&BookName={{item.Name1}}">
28
+      <view  class="panelTab_cn FlexRow" wx:if="{{List.List1.length>0}}">
29
+        <view class="Tab_cn FlexColumn" wx:for="{{List.List1}}" wx:key="index" bind:tap="goto" data-url="./unit?Category=语文&BookID={{item.ID}}&BookName={{item.Name1}}">
31
           <image class="Tab1" src="{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_c.png" ></image>
30
           <image class="Tab1" src="{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_c.png" ></image>
32
           <view class="Tab2">{{item.Name1}}</view>
31
           <view class="Tab2">{{item.Name1}}</view>
33
         </view>
32
         </view>
34
-        <view class="Tab00"></view>
35
-      </scroll-view>
33
+      </view>
36
 
34
 
37
       <view class="panel23 panel24" wx:if="{{List.List2.length>0}}">下学期</view>
35
       <view class="panel23 panel24" wx:if="{{List.List2.length>0}}">下学期</view>
38
-      <scroll-view scroll-x class="panelTab" wx:if="{{List.List2.length>0}}">
39
-        <view class="Tab0"></view>
40
-        <view class="Tab FlexColumn" wx:for="{{List.List2}}" wx:key="index" bind:tap="goto" data-url="./unit?Category=语文&BookID={{item.ID}}&BookName={{item.Name1}}">
36
+      <view class="panelTab_cn FlexRow" wx:if="{{List.List2.length>0}}">
37
+        <view class="Tab_cn FlexColumn" wx:for="{{List.List2}}" wx:key="index" bind:tap="goto" data-url="./unit?Category=语文&BookID={{item.ID}}&BookName={{item.Name1}}">
41
           <image class="Tab1" src="{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_c.png" ></image>
38
           <image class="Tab1" src="{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_c.png" ></image>
42
           <view class="Tab2">{{item.Name1}}</view>
39
           <view class="Tab2">{{item.Name1}}</view>
43
         </view>
40
         </view>
44
-        <view class="Tab00"></view>
45
-      </scroll-view>
41
+      </view>
46
 
42
 
47
       <view class="panel23 panel24" wx:if="{{List.List3 && List.List3!=''}}">课外拓展</view>
43
       <view class="panel23 panel24" wx:if="{{List.List3 && List.List3!=''}}">课外拓展</view>
48
       <scroll-view scroll-x class="panelTab" wx:if="{{List.List3 && List.List3!=''}}">
44
       <scroll-view scroll-x class="panelTab" wx:if="{{List.List3 && List.List3!=''}}">
@@ -51,6 +47,7 @@
51
           <view class="Tab30 FlexColumn">
47
           <view class="Tab30 FlexColumn">
52
             <view class="Tab31 FlexColumn">
48
             <view class="Tab31 FlexColumn">
53
               <view class="Tab311"><text>{{item.Name1}}\n{{item.Name2}}</text></view>
49
               <view class="Tab311"><text>{{item.Name1}}\n{{item.Name2}}</text></view>
50
+              <image src="{{ImagePath}}web/_knowledge/picZs_cn_{{item.BookImageName}}_cov_c.png" class="picZs_en_book_cov_c"></image>
54
             </view>
51
             </view>
55
             <view class="Tab32 FlexColumn">
52
             <view class="Tab32 FlexColumn">
56
               <view class="Tab321">{{item.Remark}}</view>
53
               <view class="Tab321">{{item.Remark}}</view>
@@ -65,13 +62,14 @@
65
         <view class="Tab00"></view>
62
         <view class="Tab00"></view>
66
       </scroll-view>
63
       </scroll-view>
67
 
64
 
68
-      <view class="panel23 panel24" wx:if="{{List.List4}}">英语</view>
65
+      <view class="panel22 panel24" wx:if="{{List.List4}}">英语</view>
69
       <scroll-view scroll-x class="panelTab" wx:if="{{List.List4}}">
66
       <scroll-view scroll-x class="panelTab" wx:if="{{List.List4}}">
70
         <view class="Tab0"></view>
67
         <view class="Tab0"></view>
71
         <view class="Tab3" wx:for="{{List.List4}}" wx:key="index" bind:tap="goto" data-url="./package?Category=English&LibraryName1={{item.Name1}}&LibraryName2={{item.Name2}}&BookImageName=picZs_en_{{item.BookImageName}}_cov">
68
         <view class="Tab3" wx:for="{{List.List4}}" wx:key="index" bind:tap="goto" data-url="./package?Category=English&LibraryName1={{item.Name1}}&LibraryName2={{item.Name2}}&BookImageName=picZs_en_{{item.BookImageName}}_cov">
72
           <view class="Tab30 FlexColumn">
69
           <view class="Tab30 FlexColumn">
73
             <view class="Tab31 FlexColumn">
70
             <view class="Tab31 FlexColumn">
74
               <view class="Tab311"><text>{{item.Name1}}\n{{item.Name2}}</text></view>
71
               <view class="Tab311"><text>{{item.Name1}}\n{{item.Name2}}</text></view>
72
+              <image src="{{ImagePath}}web/_knowledge/picZs_en_{{item.BookImageName}}_cov_c.png" class="picZs_en_book_cov_c"></image>
75
             </view>
73
             </view>
76
             <view class="Tab32 FlexColumn">
74
             <view class="Tab32 FlexColumn">
77
               <view class="Tab321">{{item.Remark}}</view>
75
               <view class="Tab321">{{item.Remark}}</view>
@@ -89,7 +87,7 @@
89
       <view class="panel25 FlexColumn">要做好英语写作,光靠课本知识是不够的,这些知识包全面测试学生的听、说、读、写四个方面的英语能力水平,为写作的单词储备提供有力的支持。</view>
87
       <view class="panel25 FlexColumn">要做好英语写作,光靠课本知识是不够的,这些知识包全面测试学生的听、说、读、写四个方面的英语能力水平,为写作的单词储备提供有力的支持。</view>
90
       <view class="panel26 FlexRow" bind:tap="goto" data-url="../../pages/other/grade"> 
88
       <view class="panel26 FlexRow" bind:tap="goto" data-url="../../pages/other/grade"> 
91
         <image src="../images/sysIcon_c01.png" class="sysIcon_c01"></image>
89
         <image src="../images/sysIcon_c01.png" class="sysIcon_c01"></image>
92
-        <view class="panel261">更换推荐年级</view>
90
+        <view class="panel261">更换年级</view>
93
       </view>
91
       </view>
94
     </block>
92
     </block>
95
 
93
 
@@ -99,7 +97,7 @@
99
         <view wx:if="{{TestList.length>0}}" class="panel31 FlexColumn" wx:for="{{TestList}}" wx:key="index" bind:tap="goto" data-url="./report?ID={{item.ID}}">
97
         <view wx:if="{{TestList.length>0}}" class="panel31 FlexColumn" wx:for="{{TestList}}" wx:key="index" bind:tap="goto" data-url="./report?ID={{item.ID}}">
100
           <view class="panel311 FlexRow">
98
           <view class="panel311 FlexRow">
101
             <view class="panel3111">{{item.TestTime}}</view>
99
             <view class="panel3111">{{item.TestTime}}</view>
102
-            <view class="panel3112 FlexRow">
100
+            <view class="panel3112 FlexRow" wx:if="{{item.RightNum || item.WrongNum}}">
103
               <image src="../images/sysIcon_d01.png" class="sysIcon_d01" wx:if="{{item.IsTestRead}}"></image>
101
               <image src="../images/sysIcon_d01.png" class="sysIcon_d01" wx:if="{{item.IsTestRead}}"></image>
104
               <image src="../images/sysIcon_d02.png" class="sysIcon_d01" wx:if="{{item.IsTestWrite}}"></image>
102
               <image src="../images/sysIcon_d02.png" class="sysIcon_d01" wx:if="{{item.IsTestWrite}}"></image>
105
               <image src="../images/sysIcon_b01.png" class="sysIcon_b01"></image>
103
               <image src="../images/sysIcon_b01.png" class="sysIcon_b01"></image>
@@ -111,6 +109,9 @@
111
           <view class="panel312">{{item.UnitName}}</view>
109
           <view class="panel312">{{item.UnitName}}</view>
112
           <view class="panel313">{{item.Category}} \ {{item.LibraryName1}}{{item.LibraryName2}} \ {{item.BookName}}</view>
110
           <view class="panel313">{{item.Category}} \ {{item.LibraryName1}}{{item.LibraryName2}} \ {{item.BookName}}</view>
113
           <view class="panel314"></view>
111
           <view class="panel314"></view>
112
+
113
+          <view class="panel31 panel31masking" catch:tap="goto" data-url="" wx:if="{{!item.RightNum && !item.WrongNum}}"></view>
114
+     
114
         </view>
115
         </view>
115
         <view class="panelNull FlexColumn" wx:if="{{TestList.length==0}}">
116
         <view class="panelNull FlexColumn" wx:if="{{TestList.length==0}}">
116
           <view class="panelNull1 FlexRow">
117
           <view class="panelNull1 FlexRow">

+ 39 - 12
pages_test/knowledge/index.wxss

@@ -1,6 +1,7 @@
1
 .container {
1
 .container {
2
   color: #1E1E1E;
2
   color: #1E1E1E;
3
-  font-weight: 600;
3
+  font-weight: 700;
4
+  background-color: #C16C37;
4
 }
5
 }
5
 
6
 
6
 .pic_03 {
7
 .pic_03 {
@@ -28,7 +29,6 @@
28
 
29
 
29
 .panel11 {
30
 .panel11 {
30
   font-size: 84rpx;
31
   font-size: 84rpx;
31
-
32
   z-index: 10;
32
   z-index: 10;
33
   position: absolute;
33
   position: absolute;
34
   left: 50rpx;
34
   left: 50rpx;
@@ -55,6 +55,7 @@
55
   position: absolute;
55
   position: absolute;
56
   left: 50rpx;
56
   left: 50rpx;
57
   top: 349rpx;
57
   top: 349rpx;
58
+  font-weight: 700;
58
 }
59
 }
59
 
60
 
60
 .panel16 {
61
 .panel16 {
@@ -155,6 +156,19 @@
155
   font-weight: 400;
156
   font-weight: 400;
156
 }
157
 }
157
 
158
 
159
+.panelTab_cn {
160
+  width: 720rpx;
161
+  flex-wrap: wrap;
162
+  margin: 40rpx 0 0 0;
163
+  justify-content: flex-start;
164
+  align-items: flex-start;
165
+}
166
+
167
+.Tab_cn {
168
+  margin: 0 10rpx 40rpx 10rpx;
169
+  width: 160rpx;
170
+}
171
+
158
 .panelTab {
172
 .panelTab {
159
   width: 100%;
173
   width: 100%;
160
   display: flex;
174
   display: flex;
@@ -165,7 +179,7 @@
165
 .Tab {
179
 .Tab {
166
   margin: 0 20rpx 0 0;
180
   margin: 0 20rpx 0 0;
167
   display: inline-block;
181
   display: inline-block;
168
-  width: 180rpx;
182
+  width: 160rpx;
169
 }
183
 }
170
 
184
 
171
 .Tab0 {
185
 .Tab0 {
@@ -181,12 +195,6 @@
181
 }
195
 }
182
 
196
 
183
 .Tab1 {
197
 .Tab1 {
184
-  /* width: 180rpx;
185
-  height: 140rpx;
186
-  background-image: linear-gradient(180deg, #FFF9F2 0%, #FEE2C1 100%);
187
-  box-shadow: 0 6rpx 0 0 rgba(0, 0, 0, 0.20);
188
-  box-shadow: 0 10rpx 0 0 rgba(0, 0, 0, 0.30);
189
-  border-radius: 20rpx; */
190
   width:155rpx;
198
   width:155rpx;
191
   height:126rpx;
199
   height:126rpx;
192
   margin-left: 10rpx;
200
   margin-left: 10rpx;
@@ -200,7 +208,7 @@
200
 }
208
 }
201
 
209
 
202
 .panel24 {
210
 .panel24 {
203
-  margin: 80rpx 0 0 50rpx;
211
+  margin: 20rpx 0 0 50rpx;
204
 }
212
 }
205
 
213
 
206
 .Tab3 {
214
 .Tab3 {
@@ -226,6 +234,7 @@
226
   background-color: #4D4D4D;
234
   background-color: #4D4D4D;
227
   justify-content: flex-start;
235
   justify-content: flex-start;
228
   align-items: flex-start;
236
   align-items: flex-start;
237
+  position: relative;
229
 }
238
 }
230
 
239
 
231
 .Tab311 {
240
 .Tab311 {
@@ -234,6 +243,15 @@
234
   color: #F6F3F3;
243
   color: #F6F3F3;
235
 }
244
 }
236
 
245
 
246
+.picZs_en_book_cov_c{
247
+  width:130rpx;
248
+  height:160rpx;
249
+  position: absolute;
250
+  bottom:0rpx;
251
+  right:0;
252
+  z-index: 10;
253
+}
254
+
237
 .Tab32 {
255
 .Tab32 {
238
   margin-top: -10rpx;
256
   margin-top: -10rpx;
239
   width: 380rpx;
257
   width: 380rpx;
@@ -262,7 +280,7 @@
262
 .Tab3221 {
280
 .Tab3221 {
263
   font-family: Teko-SemiBold;
281
   font-family: Teko-SemiBold;
264
   font-size: 36rpx;
282
   font-size: 36rpx;
265
-  margin: 7rpx 0 0 6rpx;
283
+  margin: 7rpx 0 0 10rpx;
266
 }
284
 }
267
 
285
 
268
 .Tab33 {
286
 .Tab33 {
@@ -282,7 +300,7 @@
282
 .panel26 {
300
 .panel26 {
283
   background: #6E3715;
301
   background: #6E3715;
284
   border-radius: 20rpx;
302
   border-radius: 20rpx;
285
-  width: 234rpx;
303
+  width: 186rpx;
286
   height: 73rpx;
304
   height: 73rpx;
287
   color: #fff;
305
   color: #fff;
288
   font-size: 24rpx;
306
   font-size: 24rpx;
@@ -313,6 +331,15 @@
313
   position: relative;
331
   position: relative;
314
 }
332
 }
315
 
333
 
334
+.panel31masking{
335
+  position: absolute;
336
+  top:0;
337
+  left:0;
338
+  height:100%;
339
+  background: rgba(193,108,55,0.50);
340
+  z-index: 10;
341
+}
342
+
316
 .panel311 {
343
 .panel311 {
317
   margin: 10rpx 0 0 10rpx;
344
   margin: 10rpx 0 0 10rpx;
318
   width: 670rpx;
345
   width: 670rpx;

+ 13 - 22
pages_test/knowledge/library.js

@@ -29,48 +29,42 @@ Page({
29
         that.setData({
29
         that.setData({
30
           List:data,
30
           List:data,
31
         });
31
         });
32
-        that.changeTab(options.Category);
32
+        that.setMenu1({currentTarget:{dataset:{category:options.Category}}});
33
       }
33
       }
34
     });
34
     });
35
   },
35
   },
36
-  changeTab:function(category){
36
+  setMenu1:function(e){
37
     var that=this;
37
     var that=this;
38
-    var menu1=0;
39
-    if (category=="语文")
38
+    var category=e.currentTarget.dataset.category;
39
+    var menu1;
40
+    if (category=="语文"){
40
       that.data.Menu2Array=[{ID:0,Name:"全部",CSS:"Selected"},{ID:1,Name:"小学",CSS:""},{ID:2,Name:"初中",CSS:""},{ID:3,Name:"课外拓展",CSS:""}];
41
       that.data.Menu2Array=[{ID:0,Name:"全部",CSS:"Selected"},{ID:1,Name:"小学",CSS:""},{ID:2,Name:"初中",CSS:""},{ID:3,Name:"课外拓展",CSS:""}];
42
+      menu1=0;
43
+    }
41
     else{
44
     else{
42
       that.data.Menu2Array=[{ID:0,Name:"全部",CSS:"Selected"},{ID:1,Name:"小学",CSS:""},{ID:2,Name:"初中",CSS:""},{ID:3,Name:"高中",CSS:""},{ID:4,Name:"大学",CSS:""}];
45
       that.data.Menu2Array=[{ID:0,Name:"全部",CSS:"Selected"},{ID:1,Name:"小学",CSS:""},{ID:2,Name:"初中",CSS:""},{ID:3,Name:"高中",CSS:""},{ID:4,Name:"大学",CSS:""}];
43
       menu1=1;
46
       menu1=1;
44
     }
47
     }
48
+    for(var j=0;j<that.data.List.length;j++){
49
+        that.data.List[j].GradeSelected=1;
50
+    }
45
     that.setData({
51
     that.setData({
46
       Menu2Array:that.data.Menu2Array,
52
       Menu2Array:that.data.Menu2Array,
47
       Menu1:menu1,
53
       Menu1:menu1,
48
       MenuCategory:category,
54
       MenuCategory:category,
49
-    });
50
-  },
51
-  setMenu1:function(e){
52
-    var that=this;
53
-    var index=e.currentTarget.dataset.index;
54
-    if (index==0)
55
-      that.changeTab("语文");
56
-    else
57
-      that.changeTab("English");
58
-    that.setData({
59
-      Menu1:index,
55
+      List:that.data.List,
60
     });
56
     });
61
   },
57
   },
62
   setMenu2:function(e){
58
   setMenu2:function(e){
63
     var that=this;
59
     var that=this;
64
-    that.setMenu1({currentTarget:{dataset:{index:that.data.Menu1}}});
65
-    
66
     var index=e.currentTarget.dataset.index;
60
     var index=e.currentTarget.dataset.index;
67
     var list=that.data.Menu2Array;
61
     var list=that.data.Menu2Array;
62
+    //debugger;
68
     for(var i=0;i<list.length;i++){
63
     for(var i=0;i<list.length;i++){
69
       list[i].CSS="";
64
       list[i].CSS="";
70
       if (index==list[i].ID){
65
       if (index==list[i].ID){
71
         list[i].CSS="Selected";
66
         list[i].CSS="Selected";
72
         var menu=that.data.Menu2Array[index].Name;
67
         var menu=that.data.Menu2Array[index].Name;
73
-        //console.log(menu);
74
         for(var j=0;j<that.data.List.length;j++){
68
         for(var j=0;j<that.data.List.length;j++){
75
           if (index==0)
69
           if (index==0)
76
             that.data.List[j].GradeSelected=1;
70
             that.data.List[j].GradeSelected=1;
@@ -81,15 +75,12 @@ Page({
81
             }
75
             }
82
           }
76
           }
83
         }
77
         }
84
-        that.setData({
85
-          List:that.data.List,
86
-        });
87
-        break;
88
       }
78
       }
89
     }
79
     }
90
     that.setData({
80
     that.setData({
91
       Menu2:index,
81
       Menu2:index,
92
       Menu2Array:list,
82
       Menu2Array:list,
83
+      List:that.data.List,
93
     });
84
     });
94
   },
85
   },
95
   goto: function (e) {
86
   goto: function (e) {

+ 1 - 0
pages_test/knowledge/library.json

@@ -1,5 +1,6 @@
1
 {
1
 {
2
   "navigationBarBackgroundColor": "#fff",
2
   "navigationBarBackgroundColor": "#fff",
3
   "navigationBarTitleText": "知识库",
3
   "navigationBarTitleText": "知识库",
4
+  "backgroundColorTop":"#AAA8A5",
4
   "backgroundColor": "#AAA8A5"
5
   "backgroundColor": "#AAA8A5"
5
 }
6
 }

+ 4 - 4
pages_test/knowledge/library.wxml

@@ -1,16 +1,16 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panel1 FlexRow">
2
   <view class="panel1 FlexRow">
3
-    <view class="panel11 FlexColumn" bind:tap="setMenu1" data-index="0">
3
+    <view class="panel11 FlexColumn" bind:tap="setMenu1" data-category="语文">
4
       <view>语文</view>
4
       <view>语文</view>
5
       <view class="panel11Selected panel11Selected0{{Menu1}}"></view>
5
       <view class="panel11Selected panel11Selected0{{Menu1}}"></view>
6
     </view>
6
     </view>
7
-    <view class="panel12 FlexColumn" bind:tap="setMenu1" data-index="1">
7
+    <view class="panel12 FlexColumn" bind:tap="setMenu1" data-category="English">
8
       <view>English</view>
8
       <view>English</view>
9
       <view class="panel11Selected panel11Selected1{{Menu1}}"></view>
9
       <view class="panel11Selected panel11Selected1{{Menu1}}"></view>
10
     </view>
10
     </view>
11
   </view>
11
   </view>
12
-
13
   <view class="panel2 FlexColumn">
12
   <view class="panel2 FlexColumn">
13
+    <view style="height:120rpx;"></view>
14
     <scroll-view scroll-x class="panel21 FlexRow">
14
     <scroll-view scroll-x class="panel21 FlexRow">
15
       <view class="Tab0"></view>
15
       <view class="Tab0"></view>
16
       <view class="panel211 panel211{{item.ID}} panel211{{item.CSS}}" wx:for="{{Menu2Array}}" wx:key="index" bind:tap="setMenu2" data-index="{{item.ID}}">{{item.Name}}</view>
16
       <view class="panel211 panel211{{item.ID}} panel211{{item.CSS}}" wx:for="{{Menu2Array}}" wx:key="index" bind:tap="setMenu2" data-index="{{item.ID}}">{{item.Name}}</view>
@@ -30,5 +30,5 @@
30
       </view>
30
       </view>
31
     </view>
31
     </view>
32
   </view>
32
   </view>
33
-  <view style="height:150rpx;"></view>
33
+  <view style="height:60rpx;"></view>
34
 </view>
34
 </view>

+ 4 - 2
pages_test/knowledge/library.wxss

@@ -1,6 +1,5 @@
1
 .container {
1
 .container {
2
   background-color: #AAA8A5;
2
   background-color: #AAA8A5;
3
-  font-weight: 600;
4
 }
3
 }
5
 
4
 
6
 .panel1 {
5
 .panel1 {
@@ -9,10 +8,12 @@
9
   background-color: #fff;
8
   background-color: #fff;
10
   color: #2E2E2E;
9
   color: #2E2E2E;
11
   align-items: flex-end;
10
   align-items: flex-end;
11
+  position: fixed;
12
+  z-index: 100;
12
 }
13
 }
13
 .panel11{
14
 .panel11{
14
   font-size: 36rpx;
15
   font-size: 36rpx;
15
-  font-weight: 600;
16
+  font-weight: 700;
16
   margin: 0 50rpx;
17
   margin: 0 50rpx;
17
   justify-content: flex-end;
18
   justify-content: flex-end;
18
 }
19
 }
@@ -38,6 +39,7 @@
38
 
39
 
39
 .panel2{
40
 .panel2{
40
   width:100%;
41
   width:100%;
42
+  background-color: #AAA8A5;
41
 }
43
 }
42
 
44
 
43
 .panel21{
45
 .panel21{

+ 2 - 1
pages_test/knowledge/package.js

@@ -7,6 +7,8 @@ var Options={};
7
 Page({
7
 Page({
8
   data: {
8
   data: {
9
     List:[],
9
     List:[],
10
+    BookImageName:"picZs_cn_g1F_cov",
11
+    ImagePath: app.globalData.uploadImageUrl,
10
   },
12
   },
11
   onPullDownRefresh: function () {
13
   onPullDownRefresh: function () {
12
     wx.stopPullDownRefresh();
14
     wx.stopPullDownRefresh();
@@ -20,7 +22,6 @@ Page({
20
       LibraryName1:options.LibraryName1,
22
       LibraryName1:options.LibraryName1,
21
       LibraryName2:options.LibraryName2,
23
       LibraryName2:options.LibraryName2,
22
       BookImageName:options.BookImageName,
24
       BookImageName:options.BookImageName,
23
-      ImagePath: app.globalData.uploadImageUrl,
24
     });
25
     });
25
 
26
 
26
     Options=options;
27
     Options=options;

+ 2 - 1
pages_test/knowledge/package.json

@@ -1,5 +1,6 @@
1
 {
1
 {
2
   "navigationBarBackgroundColor": "#fff",
2
   "navigationBarBackgroundColor": "#fff",
3
   "navigationBarTitleText": "知识包",
3
   "navigationBarTitleText": "知识包",
4
-  "backgroundColor": "#AAA8A5"
4
+  "backgroundColor": "#AAA8A5",
5
+  "backgroundColorTop":"#FFFFFF"
5
 }
6
 }

+ 11 - 8
pages_test/knowledge/package.wxml

@@ -10,15 +10,18 @@
10
 
10
 
11
   <view class="panel2 FlexColumn">
11
   <view class="panel2 FlexColumn">
12
     <view class="panel21 FlexColumn" wx:for="{{List}}" wx:key="index" bind:tap="goto" data-url="./unit?Category={{Category}}&BookName={{item.BookName}}&BookID={{item.ID}}">
12
     <view class="panel21 FlexColumn" wx:for="{{List}}" wx:key="index" bind:tap="goto" data-url="./unit?Category={{Category}}&BookName={{item.BookName}}&BookID={{item.ID}}">
13
-      <image class="panel211Logo" src='{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_a.png' />
14
-      <view class="panel211 FlexColumn">
15
-        <text class="panel2111">{{item.BookName}}</text>
16
-        <view class="panel2112 FlexRow">
17
-          <view>{{item.WordType}}</view>
18
-          <view class="panel21121">{{item.WordNum}}</view>
13
+      <view class="panel211 FlexRow">
14
+        <view class="panel2110 FlexColumn">
15
+          <text class="panel2111">{{item.BookName}}</text>
16
+          <view class="panel2112 FlexRow">
17
+            <view>{{item.WordType}}</view>
18
+            <view class="panel21121">{{item.WordNum}}</view>
19
+          </view>
19
         </view>
20
         </view>
20
-      </view>      
21
-      <view class="panel212 FlexColumn" wx:if="{{item.Remark}}">
21
+        <image class="panel211Logo" src='{{ImagePath}}web/_knowledge/{{item.KnowledgeImageName}}_a.png' />
22
+      </view>  
23
+      <view class="panelLine"></view>    
24
+      <view class="panel212 FlexColumn" wx:if="{{item.Remark && Category=='语文' && item.Grade!='课外拓展'}}">
22
         <view class="panel2121">{{item.Remark}}</view>
25
         <view class="panel2121">{{item.Remark}}</view>
23
       </view>
26
       </view>
24
       <view class="panel213 FlexRow" wx:for="{{item.TestFunction}}" wx:key="index" wx:for-item="itemChild">
27
       <view class="panel213 FlexRow" wx:for="{{item.TestFunction}}" wx:key="index" wx:for-item="itemChild">

+ 15 - 12
pages_test/knowledge/package.wxss

@@ -1,6 +1,5 @@
1
 .container {
1
 .container {
2
   background-color: #AAA8A5;
2
   background-color: #AAA8A5;
3
-  font-weight: 600;
4
 }
3
 }
5
 
4
 
6
 .panel1 {
5
 .panel1 {
@@ -56,13 +55,16 @@
56
   width: 670rpx;
55
   width: 670rpx;
57
   margin-top: 60rpx;
56
   margin-top: 60rpx;
58
   justify-content: flex-start;
57
   justify-content: flex-start;
59
-  position: relative;
60
 }
58
 }
61
 
59
 
62
 .panel211{
60
 .panel211{
63
   width: 550rpx;
61
   width: 550rpx;
64
-  margin: 60rpx 0 0 0;
62
+  justify-content: space-between;
63
+  align-items: flex-start;
64
+}
65
+.panel2110{
65
   align-items: flex-start;
66
   align-items: flex-start;
67
+  margin: 60rpx 0 0 0;
66
 }
68
 }
67
 .panel2111{
69
 .panel2111{
68
   font-size: 48rpx;
70
   font-size: 48rpx;
@@ -73,7 +75,6 @@
73
   font-size: 24rpx;
75
   font-size: 24rpx;
74
   font-weight: 400;
76
   font-weight: 400;
75
   color:#4D4D4D;
77
   color:#4D4D4D;
76
-  margin-bottom: 30rpx;
77
 }
78
 }
78
 
79
 
79
 .panel21121{
80
 .panel21121{
@@ -86,18 +87,18 @@
86
 .panel211Logo{
87
 .panel211Logo{
87
   width:200rpx;
88
   width:200rpx;
88
   height:190rpx;
89
   height:190rpx;
89
-  position: absolute;
90
-  right:0;
91
-  top:0;
92
 }
90
 }
93
-
91
+.panelLine{
92
+  width:550rpx;
93
+  height:1rpx;
94
+  background-color: #e3e3e3;
95
+}
94
 .panel212{
96
 .panel212{
95
   width:550rpx;
97
   width:550rpx;
96
   font-size: 24rpx;
98
   font-size: 24rpx;
97
   font-weight: 400;
99
   font-weight: 400;
98
   color:#787878;
100
   color:#787878;
99
   margin-bottom: 20rpx;
101
   margin-bottom: 20rpx;
100
-  border-top: 1rpx solid #E3E3E3;
101
 }
102
 }
102
 
103
 
103
 .panel2121{
104
 .panel2121{
@@ -112,7 +113,7 @@
112
 .panel213{
113
 .panel213{
113
   width:100%;
114
   width:100%;
114
   height:66rpx;
115
   height:66rpx;
115
-
116
+  justify-content: space-between;
116
 }
117
 }
117
 
118
 
118
 .panel2131{
119
 .panel2131{
@@ -120,7 +121,7 @@
120
   height:16rpx;
121
   height:16rpx;
121
   border-radius: 8rpx;
122
   border-radius: 8rpx;
122
   background-color: #f0f0f0;
123
   background-color: #f0f0f0;
123
-  margin: 0 32rpx 0 0;
124
+  margin: 0 0 0 60rpx;
124
   justify-content: flex-start;
125
   justify-content: flex-start;
125
 }
126
 }
126
 
127
 
@@ -129,7 +130,9 @@
129
   background-color: #FF8451;
130
   background-color: #FF8451;
130
   border-radius: 8rpx;
131
   border-radius: 8rpx;
131
 }
132
 }
132
-
133
+.panel2132{
134
+  margin-right: 60rpx;
135
+}
133
 .panel21321{
136
 .panel21321{
134
   font-family: Teko-SemiBold;
137
   font-family: Teko-SemiBold;
135
   font-size: 28rpx;
138
   font-size: 28rpx;

+ 203 - 52
pages_test/knowledge/report.js

@@ -5,91 +5,167 @@ const app = getApp();
5
 
5
 
6
 Page({
6
 Page({
7
   data: {
7
   data: {
8
-    Count:0,
8
+    WordList:[],
9
     TestTypeNumber:1,
9
     TestTypeNumber:1,
10
-    MenuList:[{Name:"不分配(默认)",IsSelected:0},{Name:"分配到新卡单",IsSelected:1},{Name:"选择卡单",IsSelected:0,HasArrow:1}],
11
-    List:[
12
-      {Name:"答错的",List:[],BColor:"#F26D5F"},
13
-      {Name:"不会的",List:[],BColor:"#787878"},
14
-      {Name:"答对的",List:[],BColor:"#51BE3D"}
15
-    ]
10
+    FolderID:0,
11
+    MenuList:[{Name:"不分配(默认)",IsSelected:1},{Name:"分配到新卡单",IsSelected:0},{Name:"选择卡单",IsSelected:0,HasArrow:1}],
16
   },
12
   },
17
   onLoad: function (options) {
13
   onLoad: function (options) {
18
     var that = this;
14
     var that = this;
19
-    var testtask=app.globalData.TestTask;
20
     that.setData({
15
     that.setData({
21
-      ReportType: options.type,
22
-      LibraryName1:testtask.LibraryName1,
23
-      LibraryName2:testtask.LibraryName2,
24
-      BookID:testtask.BookID,
25
-      BookName:testtask.BookName,
26
-      UnitName:testtask.UnitName,
27
-      TestTypeName:testtask.TestTypeName,
28
-      TestTime:common.formatDateCHS(common.formatTime(new Date()),1),
29
       Containnerheight: main.getWindowHeight(),
16
       Containnerheight: main.getWindowHeight(),
30
       ImagePath: app.globalData.uploadImageUrl,
17
       ImagePath: app.globalData.uploadImageUrl,
18
+      List:[
19
+        {Name:"答错的",List:[],BColor:"#F26D5F",IsShow:1},
20
+        {Name:"不会的",List:[],BColor:"#787878",IsShow:1},
21
+        {Name:"答对的",List:[],BColor:"#51BE3D",IsShow:1},
22
+      ]
31
     });
23
     });
32
-    that.init();
24
+
25
+    if (options.ID){
26
+      that.getReportID(options.ID,function(data){
27
+        app.globalData.TestTask=data;
28
+        that.init();
29
+      });
30
+    }
31
+    else{
32
+      that.init();
33
+    }
33
   },
34
   },
34
   init: function () {
35
   init: function () {
35
     var that = this;
36
     var that = this;
36
     var TestTask = app.globalData.TestTask;
37
     var TestTask = app.globalData.TestTask;
38
+    var date=common.formatDateCHS(common.formatTime(new Date()),1);
39
+    if (TestTask.ID)
40
+      date=TestTask.TestTime;
41
+
42
+    that.setData({
43
+      LibraryName1:TestTask.LibraryName1,
44
+      LibraryName2:TestTask.LibraryName2,
45
+      BookID:TestTask.BookID,
46
+      BookName:TestTask.BookName,
47
+      UnitID:TestTask.UnitID,
48
+      UnitName:TestTask.UnitName,
49
+      TestType:TestTask.TestType,
50
+      TestTypeName:TestTask.TestTypeName,
51
+      ReportType:TestTask.ReportType,
52
+      TestTime:date,
53
+    });
54
+
37
     if (!TestTask)
55
     if (!TestTask)
38
       TestTask={};
56
       TestTask={};
39
-
40
     var TestTypeNumber=1;
57
     var TestTypeNumber=1;
41
     if (TestTask.TestType=="read")
58
     if (TestTask.TestType=="read")
42
       TestTypeNumber=2;
59
       TestTypeNumber=2;
43
       
60
       
44
     var list = TestTask.List;
61
     var list = TestTask.List;
45
-    //debugger;
46
     if (list) {
62
     if (list) {
47
-      for (var i = 0; i < list.length; i++) {
48
-        var item={};
49
-        item.IsSelected=0;
50
-        item.Word=list[i].Word; 
51
-        if (list[i].Result == -1) {
52
-          that.data.List[0].List.push(item);
53
-        } else if (list[i].Result == 0) {
54
-          that.data.List[1].List.push(item);
55
-        } else if (list[i].Result == 1) {
56
-          that.data.List[2].List.push(item);
63
+      if (!TestTask.ID && TestTask.ReportType!="build"){
64
+        that.data.WordList=[];
65
+        for (var i = 0; i < list.length; i++) {
66
+          var item={};
67
+          
68
+          item.Word=list[i].Word; 
69
+          if (list[i].Result == -1) {
70
+            item.IsSelected=1;
71
+            that.data.List[0].List.push(item);
72
+            that.data.WordList.push(item.Word);
73
+          } else if (list[i].Result == 0) {
74
+            item.IsSelected=1;
75
+            that.data.List[1].List.push(item);
76
+            that.data.WordList.push(item.Word);
77
+          } else if (list[i].Result == 1) {
78
+            item.IsSelected=0;
79
+            that.data.List[2].List.push(item);
80
+          }
81
+        }
82
+
83
+        that.setData({
84
+          WordList: that.data.WordList,
85
+        });
86
+      }
87
+      else if (TestTask.ReportType=="build"){
88
+        for(var i=0;i<that.data.List.length;i++){
89
+          that.data.List[i].List=list[i];
90
+          if (i==0 || i==2)
91
+            that.data.List[i].IsShow=0;
92
+          else
93
+            that.data.List[i].Name="知识点";
57
         }
94
         }
95
+
96
+        that.setData({
97
+          WordList:list[1],
98
+        });
58
       }
99
       }
100
+      else
101
+        that.data.List=list;
102
+
59
       that.setData({
103
       that.setData({
60
         List:that.data.List,
104
         List:that.data.List,
61
         TestTypeNumber:TestTypeNumber,
105
         TestTypeNumber:TestTypeNumber,
62
       });
106
       });
63
 
107
 
64
-      if (that.data.ReportType == "new")
65
-        that.saveInfo(TestTask);
108
+      if (TestTask.ReportType == "new")
109
+        that.saveInfo();
66
     }
110
     }
67
-
68
   },
111
   },
69
-  saveInfo:function(e){
112
+  getReportID:function(id,callback){
113
+    var that=this;
114
+    main.getData('GetMiaoguoTestReportByID?ID='+id+'&UserID='+app.globalData.userInfo.UserID, function (data) {
115
+      for(var i=0;i<that.data.List.length;i++){
116
+        var arr=[];
117
+        for(var j=0;j<data.List[i].length;j++){
118
+          var obj={};
119
+          obj.IsSelected=0;
120
+          obj.Word=data.List[i][j];
121
+          arr.push(obj);
122
+        }
123
+        that.data.List[i].List=arr;
124
+      }
125
+      data.List=that.data.List;
126
+      callback(data);
127
+    });
128
+  },
129
+  saveInfo:function(){
70
     var that=this;
130
     var that=this;
71
     var userid=app.globalData.userInfo.UserID;
131
     var userid=app.globalData.userInfo.UserID;
72
     var param1={};
132
     var param1={};
73
     param1.BookID=that.data.BookID;
133
     param1.BookID=that.data.BookID;
134
+    param1.UnitID=that.data.UnitID;
74
     param1.UnitName=that.data.UnitName;
135
     param1.UnitName=that.data.UnitName;
75
     param1.TestTypeName=that.data.TestTypeName;
136
     param1.TestTypeName=that.data.TestTypeName;
76
-    if (e.TestType=="read")
77
-      param1.IsTestRead=1;
78
-    else
79
-      param1.IsTestWrite=1;
80
-    //debugger;
81
-    param1.JSONData=JSON.stringify(that.data.List);
82
-    main.postData('InsertTestReport2?UserID=' + userid, param1, function (data) {
83
-      if (data){
84
-        
137
+    if (that.data.ReportType=="build"){
138
+      if (that.data.TestType=="read")
139
+        param1.IsBuildRead=1;
140
+      else
141
+        param1.IsBuildWrite=1;
142
+    }
143
+    else{
144
+      if (that.data.TestType=="read")
145
+        param1.IsTestRead=1;
146
+      else
147
+        param1.IsTestWrite=1;
148
+
149
+      var arrAll=[];
150
+      for(var i=0;i<that.data.List.length;i++){
151
+        var arr=[];
152
+        for(var j=0;j<that.data.List[i].List.length;j++){
153
+          arr.push(that.data.List[i].List[j].Word);
154
+        }
155
+        arrAll.push(arr);
85
       }
156
       }
86
-    });
157
+      param1.JSONData=JSON.stringify(arrAll);
158
+    }
159
+    //debugger;
160
+    
161
+    main.postData('InsertTestReport2?UserID=' + userid, param1, function (data) {});
87
   },
162
   },
88
   selectItem:function(e){
163
   selectItem:function(e){
89
     var that=this;
164
     var that=this;
90
     var index=e.currentTarget.dataset.index;
165
     var index=e.currentTarget.dataset.index;
91
     var index2=e.currentTarget.dataset.index2;
166
     var index2=e.currentTarget.dataset.index2;
92
-    var list=that.data.List,count=0;
167
+    var list=that.data.List;
168
+    that.data.WordList=[];
93
     for(var i=0;i<list.length;i++){
169
     for(var i=0;i<list.length;i++){
94
       if (index==i){
170
       if (index==i){
95
         for(var j=0;j<list[i].List.length;j++){
171
         for(var j=0;j<list[i].List.length;j++){
@@ -106,39 +182,114 @@ Page({
106
       }
182
       }
107
       for(var j=0;j<list[i].List.length;j++){
183
       for(var j=0;j<list[i].List.length;j++){
108
         if (list[i].List[j].IsSelected==1)
184
         if (list[i].List[j].IsSelected==1)
109
-          count++;
185
+          that.data.WordList.push(list[i].List[j]);
110
       }
186
       }
111
     }
187
     }
112
     that.setData({
188
     that.setData({
113
       List:that.data.List,
189
       List:that.data.List,
114
-      Count:count,
190
+      WordList:that.data.WordList,
115
     });
191
     });
116
   },
192
   },
117
   setMenu:function(e){
193
   setMenu:function(e){
118
     var that=this;
194
     var that=this;
119
     var index=e.currentTarget.dataset.index;
195
     var index=e.currentTarget.dataset.index;
120
-    that.setData({
121
-      Menu:index,
122
-    });
196
+    if (index==1 && that.data.WordList.length==0){
197
+      wx.showToast({
198
+        title: '请选择题卡',
199
+      });
200
+    }
201
+    else{
202
+      that.setData({
203
+        Menu:index,
204
+      });
205
+    }
123
   },
206
   },
124
   setMenu2:function(e){
207
   setMenu2:function(e){
125
     var that=this;
208
     var that=this;
126
     var index=e.currentTarget.dataset.index;
209
     var index=e.currentTarget.dataset.index;
127
-    var list=that.data.MenuList,count=0;
210
+    var list=that.data.MenuList;
128
     for(var i=0;i<list.length;i++){
211
     for(var i=0;i<list.length;i++){
129
       list[i].IsSelected=0;
212
       list[i].IsSelected=0;
130
       if (index==i)
213
       if (index==i)
131
         list[i].IsSelected=1;
214
         list[i].IsSelected=1;
132
     }
215
     }
216
+    if (index==0){
217
+      list[2].Name="选择卡单";
218
+      that.data.FolderID=0;
219
+    }
220
+    else if (index==1){
221
+      list[2].Name="选择卡单";
222
+      that.data.FolderID=-1;//-1表示要生成一个新卡单
223
+    }
133
     that.setData({
224
     that.setData({
134
       MenuList:that.data.MenuList,
225
       MenuList:that.data.MenuList,
226
+      FolderID:that.data.FolderID,
227
+    });
228
+
229
+    if (index==2){
230
+      that.getFolder();
231
+    }
232
+  },
233
+  getFolder:function(){
234
+    var that=this;
235
+    main.getData('GetUserFolderList?UserID='+app.globalData.userInfo.UserID, function (data) {
236
+      that.setData({
237
+        FolderList:data,
238
+        Menu:2,
239
+      });
240
+    });
241
+  },
242
+  selectFolder:function(e){
243
+    var that=this;
244
+    var index=e.currentTarget.dataset.index;
245
+    var list=that.data.MenuList;
246
+    if (index==-1){
247
+      list[0].IsSelected=1;
248
+      list[2].IsSelected=0;
249
+      list[2].Name="选择卡单";
250
+      that.setData({
251
+        FolderID:0,
252
+      });
253
+    }
254
+    else{
255
+      list[2].IsSelected=1;
256
+      list[2].Name=that.data.FolderList[index].Name;
257
+      that.setData({
258
+        FolderID:that.data.FolderList[index].ID,
259
+      });
260
+    }
261
+    that.setData({
262
+      MenuList:that.data.MenuList,
263
+      Menu:1,
135
     });
264
     });
136
   },
265
   },
137
   buildCard:function(e){
266
   buildCard:function(e){
138
-    var url = e.currentTarget.dataset.url;
267
+    var that=this;
268
+    that.setData({
269
+      Menu:0,
270
+    });
271
+    var param={};
272
+    param.BookID=app.globalData.TestTask.BookID;
273
+    param.UnitName=app.globalData.TestTask.UnitName;
274
+    param.UnitID=app.globalData.TestTask.UnitID;
275
+    param.TestType=app.globalData.TestTask.TestType;
276
+    if(that.data.ReportType=="build"){
277
+      param.WordList=[];
278
+      for(var i=0;i<that.data.WordList.length;i++)
279
+        param.WordList.push(that.data.WordList[i].Word);
280
+    }
281
+    else
282
+      param.WordList=that.data.WordList;
283
+    param.FolderID=that.data.FolderID;
284
+    main.postData('BuildMiaoguoTestCard?UserID=' + app.globalData.userInfo.UserID, param, function (data) {
285
+      
286
+    });
139
     wx.navigateTo({
287
     wx.navigateTo({
140
-      url: url,
288
+      url: "./build?Count="+that.data.WordList.length,
141
     });
289
     });
290
+
291
+    if(that.data.ReportType=="build")
292
+      that.saveInfo();
142
   },
293
   },
143
   closePanel:function(){
294
   closePanel:function(){
144
     wx.navigateBack({
295
     wx.navigateBack({

+ 34 - 6
pages_test/knowledge/report.wxml

@@ -4,13 +4,14 @@
4
     <view class="panel12">{{BookName}}</view>
4
     <view class="panel12">{{BookName}}</view>
5
     <view class="panel13">{{UnitName}}</view>
5
     <view class="panel13">{{UnitName}}</view>
6
     <view class="panel14">{{TestTypeName}}</view>
6
     <view class="panel14">{{TestTypeName}}</view>
7
-    <view class="panel15">{{TestTime}}</view>
7
+    <view class="panel15"><block wx:if="{{ReportType!='build'}}">{{TestTime}}</block></view>
8
     <view class="panelLine1"></view>
8
     <view class="panelLine1"></view>
9
-    <view class="panel16">从以下检验结果中选择需要练习的知识点生成题卡,生成后即可前往首页开展日常练习。</view>
9
+    <view class="panel16" wx:if="{{ReportType!='build'}}">从以下检验结果中选择需要练习的知识点生成题卡,生成后即可前往首页开展日常练习。</view>
10
+    <view class="panel16" wx:if="{{ReportType=='build'}}">已跳过检验。本单元知识点如下,选择所需知识点可生成题卡。</view>
10
     <image src="../images/sysIcon_e0{{TestTypeNumber}}.png" class="sysIcon_e01"></image>
11
     <image src="../images/sysIcon_e0{{TestTypeNumber}}.png" class="sysIcon_e01"></image>
11
   </view>
12
   </view>
12
 
13
 
13
-  <view class="panel2 FlexColumn" wx:for="{{List}}" wx:key="index">
14
+  <view class="panel2 FlexColumn" wx:for="{{List}}" wx:key="index" wx:if="{{item.IsShow}}">
14
     <view class="panel21" style="background-color:{{item.BColor}};"></view>
15
     <view class="panel21" style="background-color:{{item.BColor}};"></view>
15
     <view class="panel22 FlexColumn">
16
     <view class="panel22 FlexColumn">
16
       <view class="panel221 FlexRow">
17
       <view class="panel221 FlexRow">
@@ -26,7 +27,7 @@
26
       <view class="panel222 FlexColumn" wx:for="{{item.List}}" wx:key="index" wx:for-item="itemChild" wx:for-index="indexChild" bind:tap="selectItem" data-index="{{index}}" data-index2="{{indexChild}}">
27
       <view class="panel222 FlexColumn" wx:for="{{item.List}}" wx:key="index" wx:for-item="itemChild" wx:for-index="indexChild" bind:tap="selectItem" data-index="{{index}}" data-index2="{{indexChild}}">
27
         <view class="panel2221 FlexRow">
28
         <view class="panel2221 FlexRow">
28
           <view wx:if="{{!itemChild.IsSelected}}" class="panel22211"></view>
29
           <view wx:if="{{!itemChild.IsSelected}}" class="panel22211"></view>
29
-          <view wx:if="{{itemChild.IsSelected}}" class="panel22211 panel22210 FlexRow">
30
+          <view wx:if="{{itemChild.IsSelected}}" class="panel22210 FlexRow">
30
             <image src="../images/sysIcon_b07.png" class="sysIcon_b07"></image>
31
             <image src="../images/sysIcon_b07.png" class="sysIcon_b07"></image>
31
           </view>
32
           </view>
32
           <text class="panel22212 panel22212{{itemChild.IsSelected}}">{{itemChild.Word}}</text>
33
           <text class="panel22212 panel22212{{itemChild.IsSelected}}">{{itemChild.Word}}</text>
@@ -43,7 +44,7 @@
43
   <view class="panelFooter FlexRow">
44
   <view class="panelFooter FlexRow">
44
     <view class="panelFooter1 FlexColumn" bind:tap="setMenu" data-index="1">
45
     <view class="panelFooter1 FlexColumn" bind:tap="setMenu" data-index="1">
45
       <view class="panelFooter10 FlexColumn">
46
       <view class="panelFooter10 FlexColumn">
46
-        <view class="panelFooter11">{{Count}}</view>
47
+        <view class="panelFooter11">{{WordList.length}}</view>
47
         <view class="panelFooter12">生成题卡</view>
48
         <view class="panelFooter12">生成题卡</view>
48
       </view>
49
       </view>
49
     </view>
50
     </view>
@@ -79,7 +80,34 @@
79
       </view>
80
       </view>
80
       <view class="panelLine3"></view>
81
       <view class="panelLine3"></view>
81
     </view>
82
     </view>
82
-    <view class="panelMenu4 FlexRow" bind:tap="buildCard" data-url="./build">生成题卡</view>
83
+    <view class="panelMenu4 FlexRow" bind:tap="buildCard">生成题卡</view>
84
+  </view>
85
+</view>
86
+
87
+
88
+<!--选择卡单 -->
89
+<view wx:if="{{Menu==2}}" class="menuContainer container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
90
+  <view class="panelMenu FlexColumn" style="height:1020rpx;">
91
+    <view class="panelMenu1 FlexRow">
92
+      <view class="panelMenu11">选择卡单</view>
93
+      <view class="panelMenu12 FlexRow" bind:tap="selectFolder" data-index="-1">
94
+        <image src="../images/sysIcon_b03.png" class="sysIcon_b03"></image>
95
+      </view>
96
+    </view>
97
+    <view class="panelMenu6 FlexColumn" wx:if="{{FolderList.length==0}}">
98
+      <image src="../images/sysIcon_e03.png" class="sysIcon_e03"></image>
99
+      <view class="panelMenu61">无卡单</view>
100
+      <view class="panelMenu62">请先前往题卡栏目创建卡单</view>
101
+    </view>
102
+    <scroll-view scroll-y class="panelMenu50" wx:if="{{FolderList.length>0}}">
103
+      <view class="panelMenu5 FlexColumn" wx:for="{{FolderList}}" wx:key="index" bind:tap="selectFolder" data-index="{{index}}">
104
+        <view class="panelMenu51">
105
+          {{item.Name}}
106
+        </view>
107
+        <view class="panelLine4"></view>
108
+      </view>
109
+      <view style="height:100rpx;"></view>
110
+    </scroll-view>
83
   </view>
111
   </view>
84
 </view>
112
 </view>
85
 
113
 

+ 64 - 23
pages_test/knowledge/report.wxss

@@ -1,6 +1,5 @@
1
 .container {
1
 .container {
2
   background-color: #E3E3E3;
2
   background-color: #E3E3E3;
3
-  font-weight: 600;
4
 }
3
 }
5
 
4
 
6
 .panel1 {
5
 .panel1 {
@@ -37,6 +36,7 @@
37
   font-size: 28rpx;
36
   font-size: 28rpx;
38
   color: #4d4d4d;
37
   color: #4d4d4d;
39
   font-weight: 400;
38
   font-weight: 400;
39
+  height:40rpx;
40
 }
40
 }
41
 
41
 
42
 .panel16 {
42
 .panel16 {
@@ -51,7 +51,7 @@
51
   height: 220rpx;
51
   height: 220rpx;
52
   position: absolute;
52
   position: absolute;
53
   right: 0;
53
   right: 0;
54
-  top: 70rpx;
54
+  top: 60rpx;
55
 }
55
 }
56
 
56
 
57
 .panelLine1 {
57
 .panelLine1 {
@@ -100,7 +100,7 @@
100
 
100
 
101
 .panel22121 {
101
 .panel22121 {
102
   background: #F8F8F8;
102
   background: #F8F8F8;
103
-  border: 3rpx solid #4D4D4D;
103
+  border: 4rpx solid #4D4D4D;
104
   border-radius: 10rpx;
104
   border-radius: 10rpx;
105
   font-size: 24rpx;
105
   font-size: 24rpx;
106
   color: #4D4D4D;
106
   color: #4D4D4D;
@@ -145,7 +145,12 @@
145
 }
145
 }
146
 
146
 
147
 .panel22210 {
147
 .panel22210 {
148
+  width: 40rpx;
149
+  height: 40rpx;
148
   background-color: #FF8451;
150
   background-color: #FF8451;
151
+  border-radius: 50%;
152
+  margin: 0 30rpx 0 40rpx;
153
+  border: 3rpx solid #FF8451;
149
 }
154
 }
150
 
155
 
151
 .sysIcon_b07 {
156
 .sysIcon_b07 {
@@ -162,7 +167,7 @@
162
 }
167
 }
163
 
168
 
164
 .panel222121 {
169
 .panel222121 {
165
-  font-weight: 600;
170
+  font-weight: 700;
166
 }
171
 }
167
 
172
 
168
 .panel3 {
173
 .panel3 {
@@ -174,7 +179,7 @@
174
 }
179
 }
175
 
180
 
176
 .panel31 {
181
 .panel31 {
177
-  font-weight: 600;
182
+  font-weight: 700;
178
 }
183
 }
179
 
184
 
180
 .panelFooter {
185
 .panelFooter {
@@ -182,9 +187,10 @@
182
   width: 100%;
187
   width: 100%;
183
   position: fixed;
188
   position: fixed;
184
   bottom: 0;
189
   bottom: 0;
185
-  height: 260rpx;
190
+  height: 200rpx;
186
   color: #F2F2F2;
191
   color: #F2F2F2;
187
   font-size: 24rpx;
192
   font-size: 24rpx;
193
+  align-items: flex-start;
188
 }
194
 }
189
 
195
 
190
 .panelFooter1 {
196
 .panelFooter1 {
@@ -243,13 +249,11 @@
243
 
249
 
244
 .panelMenu {
250
 .panelMenu {
245
   position: fixed;
251
   position: fixed;
246
-  bottom: 70rpx;
247
-  width: 690rpx;
248
-  min-height: 726rpx;
249
-  border-radius: 60rpx;
252
+  bottom: 0;
253
+  width: 100%;
254
+  border-radius: 60rpx 60rpx 0 0;
250
   justify-content: flex-start;
255
   justify-content: flex-start;
251
   background: #FFFFFF;
256
   background: #FFFFFF;
252
-  box-shadow: 0 20rpx 0 0 #9B9B9B, 0 50rpx 0 0 rgba(0, 0, 0, 0.50);
253
 }
257
 }
254
 
258
 
255
 .panelMenu1 {
259
 .panelMenu1 {
@@ -260,10 +264,10 @@
260
 }
264
 }
261
 
265
 
262
 .panelMenu11 {
266
 .panelMenu11 {
263
-  font-size: 36rpx;
267
+  font-size: 28rpx;
264
   color: #2E2E2E;
268
   color: #2E2E2E;
265
   width: 580rpx;
269
   width: 580rpx;
266
-  margin-left: 60rpx;
270
+  margin-left: 40rpx;
267
 }
271
 }
268
 
272
 
269
 .panelMenu12 {
273
 .panelMenu12 {
@@ -282,7 +286,7 @@
282
 .panelMenu2 {
286
 .panelMenu2 {
283
   font-size: 24rpx;
287
   font-size: 24rpx;
284
   color: #787878;
288
   color: #787878;
285
-  margin: 70rpx 0 20rpx 60rpx;
289
+  margin: 30rpx 0 20rpx 40rpx;
286
   align-self: start;
290
   align-self: start;
287
 }
291
 }
288
 
292
 
@@ -296,11 +300,10 @@
296
   height: 100rpx;
300
   height: 100rpx;
297
   justify-content: flex-start;
301
   justify-content: flex-start;
298
 }
302
 }
299
-
300
 .sysIcon_b04 {
303
 .sysIcon_b04 {
301
   width: 40rpx;
304
   width: 40rpx;
302
   height: 34rpx;
305
   height: 34rpx;
303
-  margin: 0 30rpx 0 70rpx;
306
+  margin: 0 30rpx 0 60rpx;
304
 }
307
 }
305
 
308
 
306
 .panelMenu311 {
309
 .panelMenu311 {
@@ -311,31 +314,69 @@
311
 }
314
 }
312
 
315
 
313
 .panelMenu3111 {
316
 .panelMenu3111 {
314
-  width: 444rpx;
317
+  width: 494rpx;
315
 }
318
 }
316
 
319
 
317
 .panelMenu31111 {
320
 .panelMenu31111 {
318
-  font-weight: 600;
321
+  font-weight: 700;
319
 }
322
 }
320
 
323
 
321
 .sysIcon_a01 {
324
 .sysIcon_a01 {
322
   width: 16rpx;
325
   width: 16rpx;
323
   height: 26rpx;
326
   height: 26rpx;
327
+  margin-left: 30rpx;
324
 }
328
 }
325
 
329
 
326
 .panelLine3 {
330
 .panelLine3 {
327
-  width: 490rpx;
331
+  width: 570rpx;
328
   height: 1rpx;
332
   height: 1rpx;
329
   background-color: #e3e3e3;
333
   background-color: #e3e3e3;
330
-  margin-left: 140rpx;
334
+  margin-left: 110rpx;
331
 }
335
 }
332
 
336
 
333
 .panelMenu4 {
337
 .panelMenu4 {
334
-  width: 590rpx;
338
+  width: 650rpx;
335
   height: 90rpx;
339
   height: 90rpx;
336
   background-color: #f0f0f0;
340
   background-color: #f0f0f0;
337
   border-radius: 20rpx;
341
   border-radius: 20rpx;
338
-  margin-top: 60rpx;
342
+  margin: 60rpx 0;
339
   font-size: 36rpx;
343
   font-size: 36rpx;
340
-  font-weight: 600;
344
+  font-weight: 700;
345
+}
346
+
347
+.panelMenu50{
348
+  width:100%;
349
+  height:900rpx;
350
+}
351
+.panelMenu5{
352
+  width:100%;
353
+}
354
+.panelMenu51 {
355
+  width: 670rpx;
356
+  font-size:28rpx;
357
+  font-weight: 400;
358
+  margin: 30rpx 0;
341
 }
359
 }
360
+
361
+.panelLine4 {
362
+  width: 670rpx;
363
+  height: 1rpx;
364
+  background-color: #e3e3e3;
365
+}
366
+
367
+.sysIcon_e03{
368
+  width:400rpx;
369
+  height:180rpx;
370
+  margin-top: 120rpx;
371
+}
372
+
373
+.panelMenu61 {
374
+  font-size:28rpx;
375
+  font-weight: 700;
376
+  margin: 40rpx 0 0 0;
377
+}
378
+.panelMenu62 {
379
+  font-size:24rpx;
380
+  font-weight: 400;
381
+  margin: 10rpx 0 0 0;
382
+}

+ 87 - 22
pages_test/knowledge/unit.js

@@ -8,13 +8,14 @@ Page({
8
   data: {
8
   data: {
9
     Menu:0,
9
     Menu:0,
10
     TestArr:[],
10
     TestArr:[],
11
+    KnowledgeImageName:"picZs_cn_g1F_xz",
12
+    ImagePath: app.globalData.uploadImageUrl,
11
   },
13
   },
12
   onLoad: function (options) {
14
   onLoad: function (options) {
13
     var that = this;
15
     var that = this;
14
     bookID=options.BookID;
16
     bookID=options.BookID;
15
     that.setData({
17
     that.setData({
16
       Containnerheight: main.getWindowHeight(),
18
       Containnerheight: main.getWindowHeight(),
17
-      ImagePath: app.globalData.uploadImageUrl,
18
       BookID:bookID,
19
       BookID:bookID,
19
     });
20
     });
20
     //that.init();
21
     //that.init();
@@ -55,24 +56,24 @@ Page({
55
           WriteNum:writeNum,
56
           WriteNum:writeNum,
56
           WriteRate:Math.round(100*writeNum/list1.length),
57
           WriteRate:Math.round(100*writeNum/list1.length),
57
         });
58
         });
59
+
60
+        if (that.data.BookName=="写字" || that.data.BookName=="识字" || that.data.BookName=="词语"){
61
+          var date=new Date();
62
+          var today=common.formatDateCHS(common.formatTime(date,"-",true));
63
+          var date0=(date.getFullYear()-1).toString()+"年09月";
64
+          var date1=date.getFullYear()+"年03月";
65
+          var date2=date.getFullYear()+"年09月";
66
+          var updateTime=date0;
67
+          if (today>=date1)
68
+            updateTime=date1;
69
+          if (today>=date2)
70
+            updateTime=date2;
71
+          that.setData({
72
+            UpdateTime:updateTime,
73
+          });
74
+        }
58
       }
75
       }
59
     });
76
     });
60
-
61
-    if (options.Name1=="写字" || options.Name1=="识字" || options.Name1=="词语"){
62
-      var date=new Date();
63
-      var today=common.formatDateCHS(common.formatTime(date,"-",true));
64
-      var date0=(date.getFullYear()-1).toString()+"年09月";
65
-      var date1=date.getFullYear()+"年03月";
66
-      var date2=date.getFullYear()+"年09月";
67
-      var updateTime=date0;
68
-      if (today>=date1)
69
-        updateTime=date1;
70
-      if (today>=date2)
71
-        updateTime=date2;
72
-      that.setData({
73
-        UpdateTime:updateTime,
74
-      });
75
-    }
76
   },
77
   },
77
   setMenu:function(e){
78
   setMenu:function(e){
78
     var that=this;
79
     var that=this;
@@ -86,9 +87,8 @@ Page({
86
     var menu=e.currentTarget.dataset.menu;
87
     var menu=e.currentTarget.dataset.menu;
87
     var index=e.currentTarget.dataset.index;
88
     var index=e.currentTarget.dataset.index;
88
     var item=that.data.List[index];
89
     var item=that.data.List[index];
89
-    
90
     if (item && (!item.List || item.ListStr=="")){
90
     if (item && (!item.List || item.ListStr=="")){
91
-      main.getData('GetMiaoguoTestExamine?UserID='+app.globalData.userInfo.UserID+'&Category1='+that.data.Category1+'&BookID='+that.data.BookID+'&Name='+that.data.Name2+'&UnitID='+item.ID+'&TestType=read', function (data) {
91
+      main.getData('GetMiaoguoTestExamine?UserID='+app.globalData.userInfo.UserID+'&BookID='+that.data.BookID+'&UnitName='+item.UnitName+'&UnitID='+item.ID+'&TestType=read', function (data) {
92
         if (data) {
92
         if (data) {
93
           item.List=[];
93
           item.List=[];
94
           for(var i=0;i<data.length;i++){
94
           for(var i=0;i<data.length;i++){
@@ -131,22 +131,87 @@ Page({
131
         }
131
         }
132
         item.TestItemArr=TestItemArr;
132
         item.TestItemArr=TestItemArr;
133
       }
133
       }
134
+      else
135
+        item=that.data.SelectedItem;
136
+
137
+      if (menu==3){
138
+        item.TestFunction[0].IsSelected=1;
139
+        if (item.TestFunction.length>1)
140
+          item.TestFunction[1].IsSelected=0;
141
+      }
142
+        
134
       that.setData({
143
       that.setData({
135
         Menu2:menu,
144
         Menu2:menu,
136
         SelectedItem:item,
145
         SelectedItem:item,
137
       });
146
       });
138
     }
147
     }
139
   },
148
   },
140
-  goto: function (e) {
141
-    var url = e.currentTarget.dataset.url;
149
+  setMenu3:function(e){
150
+    var that=this;
151
+    var index=e.currentTarget.dataset.index;
152
+    var item=that.data.SelectedItem;
153
+    item.TestFunction[0].IsSelected=0;
154
+    item.TestFunction[1].IsSelected=0;
155
+    item.TestFunction[index].IsSelected=1;
156
+    that.setData({
157
+      SelectedItem:item,
158
+    });
159
+  },
160
+  buildCard:function(){
161
+    var TestTask = {};
162
+    TestTask.Category = this.data.Category;
163
+    TestTask.TestType = this.data.TestType;
164
+    TestTask.LibraryName1 = this.data.LibraryName1;
165
+    TestTask.LibraryName2 = this.data.LibraryName2;
166
+    TestTask.BookName = this.data.BookName;
167
+    TestTask.UnitName = this.data.SelectedItem.UnitName;
168
+    TestTask.TestType="read";
169
+    if (this.data.SelectedItem.TestFunction.length>1 && this.data.SelectedItem.TestFunction[1].IsSelected)
170
+      TestTask.TestType="write";
171
+    
172
+    if (this.data.SelectedItem.TestFunction.length>0 && this.data.SelectedItem.TestFunction[0].IsSelected)
173
+      TestTask.TestTypeName = this.data.SelectedItem.TestFunction[0].N2;
174
+    else if (this.data.SelectedItem.TestFunction.length>1 && this.data.SelectedItem.TestFunction[1].IsSelected)
175
+      TestTask.TestTypeName = this.data.SelectedItem.TestFunction[1].N2;
176
+    TestTask.BookID=this.data.BookID;
177
+    TestTask.UnitID=this.data.SelectedItem.ID;
178
+    var list=[[],[],[]];
179
+    var arr=this.data.SelectedItem.List;
180
+    
181
+    for(var j=0;j<arr.length;j++){
182
+      var obj={};
183
+      obj.IsSelected=1;
184
+      obj.Word=arr[j];
185
+      list[1].push(obj);
186
+    }
187
+    TestTask.List = list;
188
+    TestTask.ReportType="build";
189
+    app.globalData.TestTask=TestTask;
142
     wx.navigateTo({
190
     wx.navigateTo({
143
-      url: url,
191
+      url: './report',
144
     });
192
     });
145
 
193
 
146
     this.setData({
194
     this.setData({
147
       Menu2:0,
195
       Menu2:0,
148
     });
196
     });
149
   },
197
   },
198
+  goto: function (e) {
199
+    var url = e.currentTarget.dataset.url;
200
+    var menunoclose = e.currentTarget.dataset.menunoclose;
201
+    //debugger;
202
+    if (url.indexOf("?RightNum=&WrongNum=&")>0 || url.indexOf("?RightNum=0&WrongNum=0&")>0)
203
+      return ;
204
+
205
+    wx.navigateTo({
206
+      url: url,
207
+    });
208
+
209
+    if (!menunoclose){
210
+      this.setData({
211
+        Menu2:0,
212
+      });
213
+    }
214
+  },
150
   onShareAppMessage: function () {
215
   onShareAppMessage: function () {
151
     return {
216
     return {
152
       title: app.globalData.ShareTitle,
217
       title: app.globalData.ShareTitle,

+ 36 - 36
pages_test/knowledge/unit.wxml

@@ -1,12 +1,16 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panel1 FlexColumn">
2
   <view class="panel1 FlexColumn">
3
-    <view class="panel11 FlexColumn">
4
-      <view class="panel111">{{LibraryName1}}{{LibraryName2}}</view>
5
-      <view class="panel112">{{BookName}}</view>
6
-      <view class="panel113"></view>
3
+    <view class="panel11 FlexRow">
4
+      <view class="panel110 FlexColumn">
5
+        <view class="panel111">{{LibraryName1}}{{LibraryName2}}</view>
6
+        <view class="panel112" wx:if="{{Category=='语文'}}">{{BookName}}</view>
7
+        <view class="panel112 panel1120" wx:if="{{Category=='English'}}">{{BookName}}</view>
8
+      </view>
7
       <image class="panel1Logo" src='{{ImagePath}}web/_knowledge/{{KnowledgeImageName}}_b.png' />
9
       <image class="panel1Logo" src='{{ImagePath}}web/_knowledge/{{KnowledgeImageName}}_b.png' />
8
-    
9
     </view>
10
     </view>
11
+
12
+    <view class="panelLine5"></view>
13
+
10
     <view class="panel12 FlexColumn">
14
     <view class="panel12 FlexColumn">
11
       <view class="panel121 FlexRow">
15
       <view class="panel121 FlexRow">
12
         <view class="panel1211 FlexRow">
16
         <view class="panel1211 FlexRow">
@@ -14,7 +18,7 @@
14
           <view class="panel12112">内容</view>
18
           <view class="panel12112">内容</view>
15
         </view>
19
         </view>
16
         <view class="panel1212 FlexRow">
20
         <view class="panel1212 FlexRow">
17
-          {{List.length}}个单元  {{WordNum}}个{{WordType}}
21
+          {{List.length}}个单元 <view class="panel12121"></view> {{WordNum}}个{{WordType}}
18
         </view>
22
         </view>
19
       </view>
23
       </view>
20
       <view class="panel121 FlexRow" wx:if="{{UpdateTime}}">
24
       <view class="panel121 FlexRow" wx:if="{{UpdateTime}}">
@@ -67,14 +71,16 @@
67
     <view wx:if="{{Menu==0}}" class="panel22 FlexColumn" wx:for="{{List}}" wx:key="index" bind:tap="setMenu2" data-menu="1" data-index="{{index}}">
71
     <view wx:if="{{Menu==0}}" class="panel22 FlexColumn" wx:for="{{List}}" wx:key="index" bind:tap="setMenu2" data-menu="1" data-index="{{index}}">
68
       <view class="panel221 FlexRow">
72
       <view class="panel221 FlexRow">
69
         <view class="panel2211">{{item.UnitName}}</view>
73
         <view class="panel2211">{{item.UnitName}}</view>
70
-        <view class="panel2212">{{item.Length}}</view>
74
+        <view class="panel2212 FlexColumn"><view class="panel22121">{{item.Length}}</view></view>
71
       </view>
75
       </view>
72
-      <view class="panel222" wx:if="{{item.ListStr}}">
76
+      <view class="panel222_1" wx:if="{{item.ListStr}}">
73
         {{item.ListStr}}
77
         {{item.ListStr}}
78
+        <image src="../images/sysIcon_e04.png" class="sysIcon_e04"></image>
74
       </view>
79
       </view>
75
-      <view class="panel223 FlexRow">
80
+      <view class="panel223 panel223_0 FlexRow">
76
         <view class="panel2231 FlexRow">
81
         <view class="panel2231 FlexRow">
77
-          <image src="../images/sysIcon_c02.png" class="sysIcon"></image>
82
+          <image src="../images/sysIcon_c02.png" class="sysIcon" wx:if="{{item.IsBuildRead || item.IsBuildWrite}}"></image>
83
+          <image src="../images/sysIcon_c03.png" class="sysIcon" wx:if="{{!item.IsBuildRead && !item.IsBuildWrite}}"></image>
78
           <view class="panel22311" wx:if="{{!item.IsBuildRead && item.TestFunction[0]}}"></view>
84
           <view class="panel22311" wx:if="{{!item.IsBuildRead && item.TestFunction[0]}}"></view>
79
           <view class="panel22311 panel223110" wx:if="{{item.IsBuildRead && item.TestFunction[0]}}"></view>
85
           <view class="panel22311 panel223110" wx:if="{{item.IsBuildRead && item.TestFunction[0]}}"></view>
80
           <view class="panel22311" wx:if="{{!item.IsBuildWrite && item.TestFunction[1]}}"></view>
86
           <view class="panel22311" wx:if="{{!item.IsBuildWrite && item.TestFunction[1]}}"></view>
@@ -90,12 +96,12 @@
90
     </view>
96
     </view>
91
 
97
 
92
     <block wx:if="{{Menu==1 && TestArr.length>0}}">
98
     <block wx:if="{{Menu==1 && TestArr.length>0}}">
93
-      <view class="panel22 FlexColumn" wx:for="{{TestArr}}" wx:key="index">
99
+      <view class="panel22 FlexColumn" wx:for="{{TestArr}}" wx:key="index" bind:tap="goto" data-url="./report?ID={{item.ID}}">
94
         <view class="panel223 panel2230 FlexRow">
100
         <view class="panel223 panel2230 FlexRow">
95
           <view class="panel2231 FlexRow">
101
           <view class="panel2231 FlexRow">
96
             {{item.TestTime}}
102
             {{item.TestTime}}
97
           </view>
103
           </view>
98
-          <view class="panel22320 FlexRow">
104
+          <view class="panel22320 FlexRow" wx:if="{{item.RightNum || item.WrongNum}}">
99
             <image src="../images/sysIcon_d01.png" class="sysIcon" wx:if="{{item.IsTestRead}}"></image>
105
             <image src="../images/sysIcon_d01.png" class="sysIcon" wx:if="{{item.IsTestRead}}"></image>
100
             <image src="../images/sysIcon_d02.png" class="sysIcon" wx:if="{{item.IsTestWrite}}"></image>
106
             <image src="../images/sysIcon_d02.png" class="sysIcon" wx:if="{{item.IsTestWrite}}"></image>
101
             <image src="../images/sysIcon_b01.png" class="sysIcon_b01"></image>
107
             <image src="../images/sysIcon_b01.png" class="sysIcon_b01"></image>
@@ -107,9 +113,11 @@
107
         <view class="panel221 panel220 FlexRow">
113
         <view class="panel221 panel220 FlexRow">
108
           <view class="panel2211">{{item.UnitName}}</view>
114
           <view class="panel2211">{{item.UnitName}}</view>
109
         </view>
115
         </view>
110
-        <view class="panel222">
116
+        <view class="panel222 panel2220">
111
           {{item.Category}} \ {{item.LibraryName1}}{{item.LibraryName2}} \ {{item.BookName}}
117
           {{item.Category}} \ {{item.LibraryName1}}{{item.LibraryName2}} \ {{item.BookName}}
112
         </view>
118
         </view>
119
+
120
+        <view class="panel22 panel22masking" catch:tap="goto" data-url="" wx:if="{{!item.RightNum && !item.WrongNum}}"></view>
113
       </view>
121
       </view>
114
     </block>
122
     </block>
115
 
123
 
@@ -126,8 +134,7 @@
126
         <text class="panelNull4">请在知识包中选择单元检验一次。\n检验必须做完才有记录,中途退出后下次是无法继续的。</text>
134
         <text class="panelNull4">请在知识包中选择单元检验一次。\n检验必须做完才有记录,中途退出后下次是无法继续的。</text>
127
       </view>
135
       </view>
128
     </block>
136
     </block>
129
-    
130
-    <view style="width: 100%;height:100rpx;"></view>
137
+    <view style="width: 100%;height:30rpx;"></view>
131
   </view>
138
   </view>
132
 
139
 
133
 </view>
140
 </view>
@@ -182,8 +189,8 @@
182
     </view>
189
     </view>
183
 
190
 
184
     <view class="panelMenu2">检验记录</view>
191
     <view class="panelMenu2">检验记录</view>
185
-    <block wx:for="{{SelectedItem.TestItemArr}}" wx:key="index">
186
-      <view class="panelMenu5 FlexRow" >
192
+    <block wx:for="{{SelectedItem.TestItemArr}}" wx:key="index" >
193
+      <view class="panelMenu5 FlexRow" bind:tap="goto" data-url="./report?RightNum={{item.RightNum}}&WrongNum={{item.WrongNum}}&ID={{item.ID}}" data-menunoclose="1">
187
         <view class="panelMenu51 FlexRow">
194
         <view class="panelMenu51 FlexRow">
188
           <image src="../images/{{item.Icon}}.png" class="sysIcon_d01"></image>
195
           <image src="../images/{{item.Icon}}.png" class="sysIcon_d01"></image>
189
           <view class="panelMenu511">{{item.TestTime}}</view>
196
           <view class="panelMenu511">{{item.TestTime}}</view>
@@ -212,34 +219,27 @@
212
         <image src="../images/sysIcon_b03.png" class="sysIcon_b03"></image>
219
         <image src="../images/sysIcon_b03.png" class="sysIcon_b03"></image>
213
       </view>
220
       </view>
214
     </view>
221
     </view>
215
-    <view class="panelMenu62"></view>
216
-    <view class="panelMenu63 FlexColumn">
217
-      <view class="panelMenu631 FlexRow">
218
-        <image src="../images/sysIcon_b04.png" class="sysIcon_b04"></image>
219
-        <view class="panelMenu6311 FlexColumn">
220
-          <view class="panelMenu63111 FlexRow">
221
-            <image src="../images/sysIcon_d01.png" class="sysIcon_d01"></image>
222
-            <view class="panelMenu631111">念单词说含义</view>
223
-          </view>
224
-          <view class="panelMenu63112">这里有一行和方式对应的说明</view>
225
-        </view>
226
-      </view>
227
-      <view class="panelLine3"></view>
222
+    <view class="panelMenu62">
223
+      <image src="../images/{{SelectedItem.TestFunction[0].Img}}.png" class="picJygs" wx:if="{{SelectedItem.TestFunction[0].IsSelected}}"></image>
224
+      <image src="../images/{{SelectedItem.TestFunction[1].Img}}.png" class="picJygs" wx:if="{{SelectedItem.TestFunction[1].IsSelected}}"></image>
228
     </view>
225
     </view>
229
-    <view class="panelMenu63 panelMenu630 FlexColumn">
226
+    <block wx:for="{{SelectedItem.TestFunction}}" wx:key="index" >
227
+    <view class="panelMenu63 panelMenu63_{{index}} FlexColumn" catch:tap="setMenu3" data-index="{{index}}">
230
       <view class="panelMenu631 FlexRow">
228
       <view class="panelMenu631 FlexRow">
231
-        <view class="sysIcon_b04"></view>
229
+        <image src="../images/sysIcon_b04.png" class="sysIcon_b04" wx:if="{{item.IsSelected}}"></image>
230
+        <view class="sysIcon_b04" wx:if="{{!item.IsSelected}}"></view>
232
         <view class="panelMenu6311 FlexColumn">
231
         <view class="panelMenu6311 FlexColumn">
233
           <view class="panelMenu63111 FlexRow">
232
           <view class="panelMenu63111 FlexRow">
234
-            <image src="../images/sysIcon_d02.png" class="sysIcon_d01"></image>
235
-            <view class="panelMenu631111 panelMenu631110">听写单词</view>
233
+            <image src="../images/sysIcon_d0{{index+1}}.png" class="sysIcon_d01"></image>
234
+            <view class="panelMenu631111 panelMenu631111{{item.IsSelected}}">{{item.N2}}</view>
236
           </view>
235
           </view>
237
-          <view class="panelMenu63112">这里有一行和方式对应的说明</view>
236
+          <view class="panelMenu63112 panelMenu63112{{item.IsSelected}}">{{item.Remark}}</view>
238
         </view>
237
         </view>
239
       </view>
238
       </view>
240
       <view class="panelLine3"></view>
239
       <view class="panelLine3"></view>
241
     </view>
240
     </view>
242
-    <view class="panelMenu64 FlexRow">生成题卡</view>
241
+    </block>
242
+    <view class="panelMenu64 FlexRow" catch:tap="buildCard">生成题卡</view>
243
   </view>
243
   </view>
244
 </view>
244
 </view>
245
 
245
 

+ 83 - 21
pages_test/knowledge/unit.wxss

@@ -1,6 +1,5 @@
1
 .container {
1
 .container {
2
   background-color: #E3E3E3;
2
   background-color: #E3E3E3;
3
-  font-weight: 600;
4
 }
3
 }
5
 
4
 
6
 .panel1 {
5
 .panel1 {
@@ -11,22 +10,26 @@
11
 .panel11 {
10
 .panel11 {
12
   width: 100%;
11
   width: 100%;
13
   color: #2E2E2E;
12
   color: #2E2E2E;
14
-  justify-content: flex-start;
13
+  justify-content: space-between;
15
   align-items: flex-start;
14
   align-items: flex-start;
16
-  position: relative;
17
 }
15
 }
18
 
16
 
19
-.panel1Logo{
20
-  width:250rpx;
21
-  height:190rpx;
22
-  position: absolute;
23
-  top:0;
24
-  right:0;
17
+.panelLine5 {
18
+  width: 650rpx;
19
+  height:5rpx;
20
+  background-color: #e3e3e3;
21
+}
22
+
23
+
24
+.panel110 {
25
+  align-items: flex-start;
25
 }
26
 }
27
+
26
 .panel111 {
28
 .panel111 {
27
   margin: 40rpx 0 0 50rpx;
29
   margin: 40rpx 0 0 50rpx;
28
   font-size: 24rpx;
30
   font-size: 24rpx;
29
   color: #4D4D4D;
31
   color: #4D4D4D;
32
+  font-weight: 400;
30
 }
33
 }
31
 
34
 
32
 .panel112 {
35
 .panel112 {
@@ -34,14 +37,17 @@
34
   font-size: 60rpx;
37
   font-size: 60rpx;
35
   color: #2E2E2E;
38
   color: #2E2E2E;
36
 }
39
 }
37
-
38
-.panel113 {
39
-  margin: 33rpx 0 0 50rpx;
40
+.panel1120 {
40
   width: 650rpx;
41
   width: 650rpx;
41
-  height: 5rpx;
42
-  background-color: #E3E3E3;
43
 }
42
 }
44
 
43
 
44
+.panel1Logo{
45
+  width:250rpx;
46
+  height:190rpx;
47
+  margin-right: 50rpx;
48
+}
49
+
50
+
45
 .panel12 {
51
 .panel12 {
46
   width: 100%;
52
   width: 100%;
47
 }
53
 }
@@ -76,6 +82,12 @@
76
   color: #4D4D4D;
82
   color: #4D4D4D;
77
   margin-right: 50rpx;
83
   margin-right: 50rpx;
78
 }
84
 }
85
+.panel12121{
86
+  width:2rpx;
87
+  height:14rpx;
88
+  background-color: #d2d2d2;
89
+  margin: 0 10rpx;
90
+}
79
 
91
 
80
 .panelLine1 {
92
 .panelLine1 {
81
   width: 650rpx;
93
   width: 650rpx;
@@ -171,12 +183,21 @@
171
 
183
 
172
 .panel22 {
184
 .panel22 {
173
   width: 690rpx;
185
   width: 690rpx;
174
-  height: 253rpx;
175
   border-radius: 20rpx;
186
   border-radius: 20rpx;
176
   background-color: #fff;
187
   background-color: #fff;
177
   margin-bottom: 30rpx;
188
   margin-bottom: 30rpx;
178
   box-shadow: 0 6rpx 0 0 rgba(0, 0, 0, 0.20);
189
   box-shadow: 0 6rpx 0 0 rgba(0, 0, 0, 0.20);
179
   justify-content: flex-start;
190
   justify-content: flex-start;
191
+  position: relative;
192
+}
193
+
194
+.panel22masking{
195
+  position: absolute;
196
+  top:0;
197
+  left:0;
198
+  height:100%;
199
+  background: rgba(255,255,255,0.60);
200
+  z-index: 10;
180
 }
201
 }
181
 
202
 
182
 .panel221{
203
 .panel221{
@@ -200,14 +221,16 @@
200
 .panel2212{
221
 .panel2212{
201
   width:40rpx;
222
   width:40rpx;
202
   height:40rpx;
223
   height:40rpx;
203
-  line-height: 40rpx;
204
   background-color: #4D4D4D;
224
   background-color: #4D4D4D;
205
   border-radius: 10rpx;
225
   border-radius: 10rpx;
206
   margin-right: 30rpx;
226
   margin-right: 30rpx;
227
+}
228
+
229
+.panel22121{
207
   font-family: Teko-Bold;
230
   font-family: Teko-Bold;
208
   font-size: 28rpx;
231
   font-size: 28rpx;
209
   color: #FFFFFF;
232
   color: #FFFFFF;
210
-  text-align: center;
233
+  margin-top: 4rpx;
211
 }
234
 }
212
 
235
 
213
 .panel222{
236
 .panel222{
@@ -215,11 +238,33 @@
215
   font-size: 24rpx;
238
   font-size: 24rpx;
216
   font-weight: 400;
239
   font-weight: 400;
217
   color:#787878;
240
   color:#787878;
218
-  margin-top: 10rpx;
219
-  overflow-y: hidden;
241
+  margin: 10rpx 0 0 0;
242
+  overflow: hidden;
243
+}
244
+
245
+.panel222_1{
246
+  width:630rpx;
247
+  font-size: 24rpx;
248
+  font-weight: 400;
249
+  color:#787878;
250
+  margin: 10rpx 0 0 0;
251
+  overflow-x: hidden;
252
+  white-space: nowrap;
253
+  position: relative;
254
+}
255
+
256
+.sysIcon_e04{
257
+  position: absolute;
258
+  right:-30rpx;
259
+  top:0;
260
+  width:60rpx;
220
   height:33rpx;
261
   height:33rpx;
221
 }
262
 }
222
 
263
 
264
+.panel2220{
265
+  margin: 10rpx 0 30rpx 0;
266
+}
267
+
223
 .panel223{
268
 .panel223{
224
   width:670rpx;
269
   width:670rpx;
225
   height:80rpx;
270
   height:80rpx;
@@ -228,6 +273,9 @@
228
   margin-top: 30rpx;
273
   margin-top: 30rpx;
229
   justify-content: space-between;
274
   justify-content: space-between;
230
 }
275
 }
276
+.panel223_0{
277
+  margin: 30rpx 0 10rpx 0;
278
+}
231
 
279
 
232
 .panel2230{
280
 .panel2230{
233
   margin-top: 10rpx;
281
   margin-top: 10rpx;
@@ -504,17 +552,21 @@
504
   width:590rpx;
552
   width:590rpx;
505
   height:280rpx;
553
   height:280rpx;
506
   background: #F8F8F8;
554
   background: #F8F8F8;
507
-  border: 1rpx solid #D2D2D2;
508
   border-radius: 20rpx;
555
   border-radius: 20rpx;
509
   margin-top: 30rpx;
556
   margin-top: 30rpx;
510
 }
557
 }
511
 
558
 
559
+.picJygs{
560
+  width:590rpx;
561
+  height:280rpx;
562
+}
563
+
512
 .panelMenu63{
564
 .panelMenu63{
513
   width:100%;
565
   width:100%;
514
   height:140rpx;
566
   height:140rpx;
515
   margin-top: 30rpx;
567
   margin-top: 30rpx;
516
 }
568
 }
517
-.panelMenu630{
569
+.panelMenu63_1{
518
   margin-top: 0rpx;
570
   margin-top: 0rpx;
519
 }
571
 }
520
 .panelMenu631{
572
 .panelMenu631{
@@ -533,6 +585,11 @@
533
   font-size: 28rpx;
585
   font-size: 28rpx;
534
   color: #2E2E2E;
586
   color: #2E2E2E;
535
   margin-left: 10rpx;
587
   margin-left: 10rpx;
588
+  font-weight: 400;
589
+}
590
+
591
+.panelMenu6311111{
592
+  font-weight: 700;
536
 }
593
 }
537
 .panelMenu631110{
594
 .panelMenu631110{
538
   font-weight: 400;
595
   font-weight: 400;
@@ -540,6 +597,11 @@
540
 .panelMenu63112{
597
 .panelMenu63112{
541
   font-size: 24rpx;
598
   font-size: 24rpx;
542
   color: #787878;
599
   color: #787878;
600
+  font-weight: 400;
601
+}
602
+
603
+.panelMenu631121{
604
+  font-weight: 700;
543
 }
605
 }
544
 .panelLine3{
606
 .panelLine3{
545
   width:500rpx;
607
   width:500rpx;

+ 0 - 1
pages_test/test/report.js

@@ -196,7 +196,6 @@ Page({
196
           obj.Type="add";
196
           obj.Type="add";
197
           if (that.data.List[i].List[j].Css === "Select3")
197
           if (that.data.List[i].List[j].Css === "Select3")
198
             obj.Type="IsExist";
198
             obj.Type="IsExist";
199
-
200
           arr.push(obj);
199
           arr.push(obj);
201
           TestExistStr.push(item.Word);
200
           TestExistStr.push(item.Word);
202
           
201
           

+ 2 - 2
project.config.json

@@ -109,8 +109,8 @@
109
         },
109
         },
110
         {
110
         {
111
           "id": 7,
111
           "id": 7,
112
-          "name": "pages_test/test/index",
113
-          "pathName": "pages_test/test/index",
112
+          "name": "pages_test/knowledge/index",
113
+          "pathName": "pages_test/knowledge/index",
114
           "query": "UserID=1",
114
           "query": "UserID=1",
115
           "scene": null
115
           "scene": null
116
         },
116
         },

+ 30 - 43
utils/main.js

@@ -1406,54 +1406,41 @@ function getUserConfig() {
1406
 
1406
 
1407
 function replaceCardInfoString(str) {
1407
 function replaceCardInfoString(str) {
1408
   var that = this;
1408
   var that = this;
1409
-  //str = str.replace(/\[图]/g, "");
1410
-  //str = str.replace(/\[\/图\]/g, "");
1411
-  //console.log(str);
1412
   if (str && str!=null) {
1409
   if (str && str!=null) {
1413
-    var str2 = "";
1414
-    if (str.indexOf("[读 src=") >= 0) {
1415
-      str2 = str.substr(str.indexOf("[读 src="));
1416
-      str2 = str2.substring(0, str2.indexOf("]") + 1);
1417
-    }
1418
-    str = str.replace(str2, "");
1419
-
1420
-    if (str.indexOf("[/读") >= 0) {
1421
-      str2 = str.substr(str.indexOf("[/读"));
1422
-      str2 = str2.substring(0, 4);
1423
-    }
1424
-    str = str.replace(str2, "");
1425
-
1426
-
1427
-    if (str.indexOf("[读 src=") >= 0) {
1428
-      str2 = str.substr(str.indexOf("[读 src"));
1429
-      str2 = str2.substring(0, str2.indexOf("/读]") + 3);
1430
-    }
1431
-    str = str.replace(str2, "");
1410
+    for(var i=0;i<5;i++){
1411
+      var str2 = "";
1412
+    
1413
+      if (str.indexOf("[读 src=") >= 0) {
1414
+        str2 = str.substr(str.indexOf("[读 src="));
1415
+        str2 = str2.substring(0, str2.indexOf("]") + 1);
1416
+      }
1417
+      str = str.replace(str2, "");
1432
 
1418
 
1433
-    if (str.indexOf("[/读") >= 0) {
1434
-      str2 = str.substr(str.indexOf("[/读"));
1435
-      str2 = str2.substring(0, 4);
1436
-    }
1437
-    str = str.replace(str2, "");
1419
+      if (str.indexOf("[/读") >= 0) {
1420
+        str2 = str.substr(str.indexOf("[/读"));
1421
+        str2 = str2.substring(0, 4);
1422
+      }
1423
+      str = str.replace(str2, "");
1424
+      
1425
+      str = str.replace(/\[读]/g, "");
1426
+      str = str.replace(/\[\/读\]/g, "");
1438
 
1427
 
1439
-    str = str.replace(/\[读]/g, "");
1440
-    str = str.replace(/\[\/读\]/g, "");
1428
+      var str3 = "";
1429
+      if (str.indexOf("[图") >= 0) {
1430
+        str3 = str.substr(str.indexOf("[图"));
1431
+        str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1432
+      }
1433
+      str = str.replace(str3, "");
1434
+      if (str.indexOf("[图") >= 0) {
1435
+        str3 = str.substr(str.indexOf("[图"));
1436
+        str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1437
+      }
1438
+      str = str.replace(str3, "");
1441
 
1439
 
1442
-    var str3 = "";
1443
-    if (str.indexOf("[图") >= 0) {
1444
-      str3 = str.substr(str.indexOf("[图"));
1445
-      str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1446
-    }
1447
-    str = str.replace(str3, "");
1448
-    if (str.indexOf("[图") >= 0) {
1449
-      str3 = str.substr(str.indexOf("[图"));
1450
-      str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1440
+      str = str.replace(/\[线]/g, "");
1441
+      str = str.replace(/\[\/线\]/g, "");
1442
+      str = that.encryptUrl(str);
1451
     }
1443
     }
1452
-    str = str.replace(str3, "");
1453
-
1454
-    str = str.replace(/\[线]/g, "");
1455
-    str = str.replace(/\[\/线\]/g, "");
1456
-    str = that.encryptUrl(str);
1457
   }
1444
   }
1458
   return str;
1445
   return str;
1459
 }
1446
 }