chengjie 3 년 전
부모
커밋
dd225d2daa
41개의 변경된 파일894개의 추가작업 그리고 1528개의 파일을 삭제
  1. 3 3
      app.js
  2. 0 1
      app.json
  3. 13 0
      pages/index/index.js
  4. 3 8
      pages/main/cardmain.wxml
  5. 4 4
      pages/main/cardmain.wxss
  6. 84 0
      pages/main/default.js
  7. 25 1
      pages/main/default.wxml
  8. 23 2
      pages/main/default.wxss
  9. 1 0
      pages/main/detail.js
  10. 0 1
      pages/main/searchCard.js
  11. 0 1
      pages/other/annualreport.js
  12. 11 15
      pages/other/annualreport.wxml
  13. 1 1
      pages/test/index.wxml
  14. 26 14
      pages/test/report.js
  15. 3 3
      pages_agent/main/earnings_apply.wxml
  16. 2 1
      pages_agent/main/earnings_list.wxml
  17. 35 2
      pages_agent/main/index.js
  18. 14 2
      pages_agent/main/index.wxml
  19. 12 0
      pages_agent/main/index.wxss
  20. 30 0
      pages_agent/main/other_list.js
  21. 3 3
      pages_agent/main/other_list.wxml
  22. 55 7
      pages_agent/main/result_list.js
  23. 12 6
      pages_agent/main/result_list.wxml
  24. 25 1
      pages_agent/main/result_list.wxss
  25. 115 2
      pages_agent/main/search_user.js
  26. 8 16
      pages_agent/main/search_user.wxml
  27. 3 2
      pages_agent/main/user_index.js
  28. 14 14
      pages_agent/main/user_index.wxml
  29. 13 0
      pages_agent/main/user_index.wxss
  30. 19 13
      pages_agent/main/user_relation.js
  31. 22 22
      pages_agent/main/user_relation.wxml
  32. 45 7
      pages_agent/main/user_relation.wxss
  33. 0 34
      pages_agent/main/withdraw_deposit.js
  34. 0 4
      pages_agent/main/withdraw_deposit.json
  35. 0 152
      pages_agent/main/withdraw_deposit.wxml
  36. 0 278
      pages_agent/main/withdraw_deposit.wxss
  37. 4 3
      project.config.json
  38. 2 1
      project.private.config.json
  39. 0 634
      utils/constant.js
  40. 3 0
      utils/cryptojs.js
  41. 261 270
      utils/main.js

+ 3 - 3
app.js

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

+ 0 - 1
app.json

@@ -81,7 +81,6 @@
81 81
       "pages": [
82 82
         "main/search_user",
83 83
         "main/user_relation",
84
-        "main/withdraw_deposit",
85 84
         "main/result_list",
86 85
         "main/other_list",
87 86
         "main/earnings_apply",

+ 13 - 0
pages/index/index.js

@@ -6,6 +6,8 @@ const app = getApp();
6 6
 var timeout1 = 0, timeout3=0;
7 7
 var timeoutRedirect=0;
8 8
 
9
+
10
+
9 11
 Page({
10 12
   data: {
11 13
     Sentence:1,
@@ -16,6 +18,17 @@ Page({
16 18
     })
17 19
   },
18 20
   onLoad: function (options) {
21
+
22
+    // var interval=null;
23
+    // var index=0;
24
+    // interval = setInterval(function () {
25
+    //   index++;
26
+    //   console.log(index);
27
+    //   if (index>10) {
28
+    //     clearInterval(interval);
29
+    //   }
30
+    // },200);
31
+
19 32
     console.log("Time1:" + new Date().getTime());
20 33
     if (options) {
21 34
       if (options.UserID) {

+ 3 - 8
pages/main/cardmain.wxml

@@ -68,14 +68,9 @@
68 68
       <image class="zhishijianyan_70x75" src='../images/wangzhan_70x75.png' />
69 69
     </view>
70 70
   </view>
71
-  <!-- <block wx:if="{{IsYearReport}}">
72
-    <view class="panelItem5 FlexRow" bindtap="goto" data-url="../other/annualreport">
73
-      <view class="panelItem51 FlexColumn">
74
-        2020年度秒过用户年报
75
-      </view>
76
-      <image class="report_20201231_04" src='{{ImagePath}}web/report_20201231_04.png' />
77
-    </view>
78
-  </block> -->
71
+  <block wx:if="{{IsYearReport}}">
72
+    <image class="report_2021-banner" src='{{ImagePath}}web/report_2021-banner.png' bindtap="goto" data-url="../other/annualreport" />
73
+  </block>
79 74
 
80 75
   <view class="panelItem6 FlexRow" wx:if="{{FolderArr}}">
81 76
     <view class="panelItem61 FlexColumn">

+ 4 - 4
pages/main/cardmain.wxss

@@ -143,10 +143,10 @@
143 143
   margin-right: 30rpx;
144 144
 }
145 145
 
146
-.report_20201231_04{
147
-  width:139rpx;
148
-  height:59rpx;
149
-  margin-right:40rpx;
146
+.report_2021-banner{
147
+  width:710rpx;
148
+  height:180rpx;
149
+  margin: 30rpx 0 0 0;
150 150
 }
151 151
 
152 152
 

+ 84 - 0
pages/main/default.js

@@ -339,6 +339,16 @@ Page({
339 339
         ChangeGroupUserID: id,
340 340
       });
341 341
     }
342
+    else if (usertype=="refunduserid"){
343
+      that.setData({
344
+        RefundUserID: id,
345
+      });
346
+    }
347
+    else if (usertype=="refundremark"){
348
+      that.setData({
349
+        RefundRemark: id,
350
+      });
351
+    }
342 352
   },
343 353
   setSelectUser: function (e) {
344 354
     var that = this;
@@ -395,6 +405,20 @@ Page({
395 405
             GroupUserNickName: data.NickName,
396 406
           });
397 407
         }
408
+        else if (type1==3){
409
+          that.setData({
410
+            RefundUserAvatar: data.AvatarUrl,
411
+            RefundUserNickName: data.NickName,
412
+          });
413
+          var url = "GetUserPayList?UserID=" + userid;
414
+            main.getData(url, function (data) {
415
+              if (data) {
416
+                that.setData({
417
+                  PayList: data,
418
+                });
419
+              }
420
+            });
421
+          }
398 422
       });
399 423
     }
400 424
   },
@@ -449,6 +473,66 @@ Page({
449 473
       }
450 474
     }
451 475
   },
476
+  selectPayItem:function(e){
477
+    var that=this;
478
+    var id=e.currentTarget.dataset.id;
479
+    var list=that.data.PayList;
480
+    for(var i=0;i<list.length;i++){
481
+      if (list[i].TradeNo==id)
482
+        list[i].IsSelected="1";
483
+      else
484
+        list[i].IsSelected="";
485
+    }
486
+    that.setData({
487
+      PayList:list,
488
+    });
489
+  },
490
+  setRefund:function(){
491
+    var that=this;
492
+    var str="",TradeNo="",Remark="";
493
+
494
+    var list=that.data.PayList;
495
+    for(var i=0;i<list.length;i++){
496
+      if (list[i].IsSelected=="1"){
497
+        str='确认给【'+that.data.RefundUserNickName+"】退款 ";
498
+        str+=list[i].Money+"元,";
499
+        str+="交易编号:"+list[i].TradeNo;
500
+        TradeNo=list[i].TradeNo;
501
+        Remark=that.data.RefundRemark;
502
+        break;
503
+      }
504
+    }
505
+    if (!str){
506
+      wx.showToast({
507
+        title: '请列表中选择',
508
+      });
509
+    }
510
+    else if (!that.data.RefundRemark){
511
+      wx.showToast({
512
+        title: '请输入退款备注',
513
+      });
514
+    }
515
+    else{
516
+      wx.showModal({
517
+        title: '退款确认',
518
+        showCancel: true,
519
+        cancelText: "取消",
520
+        content: str,
521
+        confirmText: '确认',
522
+        success(res) {
523
+          if (res.confirm) {
524
+            var url = "RefundUser?UserID=" + that.data.RefundUserID + "&TradeNo="+TradeNo+"&Remark="+Remark;
525
+            main.getData(url, function (data) {
526
+              wx.showToast({
527
+                title: '退款完成',
528
+              });
529
+            });
530
+            
531
+          }
532
+        }
533
+      });
534
+    }
535
+  },
452 536
   closeRemind:function(){
453 537
     this.setData({
454 538
       IsShowRemind: false,

+ 25 - 1
pages/main/default.wxml

@@ -52,7 +52,7 @@
52 52
   <view class='btn1' catchtap="goto" data-url="../index/index">重启小程序</view>
53 53
 </view>
54 54
 
55
-<view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
55
+<view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
56 56
     <view class="panel2 FlexRow">
57 57
     <input class='input2 input' type="number"  always-embed="true"  value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
58 58
     <button class="btn2" bindtap="setSelectUser">查看用户</button>
@@ -66,9 +66,14 @@
66 66
     <view class="panel2 FlexRow">
67 67
       <button class="btnShowUserID" bindtap="goto" data-url="../other/newuser">新手页面</button>
68 68
       <button class="btnShowUserID" bindtap="goto" data-url="../other/homework">作业清单</button>
69
+      <button class="btnShowUserID" bindtap="goto" data-url="../../pages_agent/main/index">推广活动</button>
69 70
     </view>
71
+
72
+    <!-- 自定义开据 -->
70 73
     <view class="hiddenline"></view>
71 74
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
75
+    
76
+    <!-- 更改介绍人 -->
72 77
     <view class="hiddenline"></view>
73 78
     <view class="panel2 FlexRow">
74 79
       <input class='input2 input' type="number"  always-embed="true"  placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
@@ -84,6 +89,7 @@
84 89
     </view>
85 90
     <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
86 91
     
92
+    <!-- 更改班群 -->
87 93
     <view class="hiddenline"></view>
88 94
     <view class="panel2 FlexRow">
89 95
       <input class='input2 input' type="number"  always-embed="true"  placeholder="用户ID" value="{{ChangeGroupUserID}}" bindinput="onKeyInput" data-type="groupuserid"/>
@@ -96,6 +102,24 @@
96 102
       <button class="btnShowUserID" bindtap="setUserGroup" data-id="2">群改润雨</button>
97 103
       <button class="btnShowUserID" bindtap="setUserGroup" data-id="3">群改扬帆</button>
98 104
     </view>
105
+
106
+    <!-- 退款 -->
107
+    <view class="hiddenline"></view>
108
+    <view class="panel2 FlexRow">
109
+      <input class='input2 input' type="number"  always-embed="true"  placeholder="用户ID" value="{{RefundUserID}}" bindinput="onKeyInput" data-type="refunduserid"/>
110
+      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{RefundUserID}}" data-type="3">查看</button>
111
+      <image class="Avatar2" src='{{RefundUserAvatar}}'  wx:if="{{RefundUserAvatar}}"/>
112
+      <view  class="NickName2"  wx:if="{{RefundUserAvatar}}">{{RefundUserNickName}}</view>
113
+    </view>
114
+    <view class="panel2 FlexColumn" wx:if="{{RefundUserAvatar}}">
115
+      <text catchtap="selectPayItem" data-id="{{item.TradeNo}}" class="panelItemPay{{item.IsSelected}}" wx:for="{{PayList}}" wx:key="index">交易编号:{{item.TradeNo}} \n支付费用:{{item.Money}}元 \n支付时间:{{item.PayEndTime}} \n到期日期:{{item.ProductServiceTime}} </text>
116
+    </view>
117
+    <view class="panel2 FlexColumn" wx:if="{{RefundUserAvatar}}">
118
+      <input class="input3 input" placeholder="备注如微信帐号、昵称(便于查找)及原因等。" confirm-type="done" value="{{RefundRemark}}" bindinput="onKeyInput" data-type="refundremark" />
119
+    </view>
120
+    <view class="panel21 panel2 FlexRow">
121
+      <button class="btnShowUserID" bindtap="setRefund">退款</button>
122
+    </view>
99 123
     
100 124
     <view class="hiddenline"></view>
101 125
     <view class="panel2 FlexRow">

+ 23 - 2
pages/main/default.wxss

@@ -266,7 +266,7 @@ page{
266 266
 
267 267
 .IsExitContainer{
268 268
   background-color: #3157ba;
269
-  position: fixed;
269
+  position: absolute;
270 270
   z-index: 100;
271 271
   top:0;
272 272
 }
@@ -302,7 +302,6 @@ page{
302 302
   margin-top: 30rpx;
303 303
 }
304 304
 .panel2{
305
-  
306 305
   margin: 10rpx 0 10rpx 0;  
307 306
 }
308 307
 
@@ -429,4 +428,26 @@ page{
429 428
   width:70%;
430 429
   height:1rpx;
431 430
   background-color: #ddd;
431
+}
432
+
433
+.panelItemPay{
434
+  background-color: #fff;
435
+  width:100%;
436
+  border-bottom: 2rpx solid #F0F0F0;
437
+  padding: 10rpx 30rpx;
438
+}
439
+
440
+.panelItemPay1{
441
+  background-color: #E3E3E3;
442
+  width:100%;
443
+  border-bottom: 2rpx solid #F0F0F0;
444
+  padding: 10rpx 30rpx;
445
+}
446
+
447
+.input3{
448
+  width: 602rpx;
449
+  margin: 0rpx 30rpx 10rpx 30rpx;
450
+  font-size:28rpx;
451
+  text-align: left;
452
+  padding-left: 20rpx;
432 453
 }

+ 1 - 0
pages/main/detail.js

@@ -873,6 +873,7 @@ Page({
873 873
 
874 874
     }, app.globalData.CardWaitTimeMax * 60 * 1000);
875 875
     timeoutEveryCard.push(timeoutEveryCardNumber);
876
+    console.log("timeoutEveryCard:"+timeoutEveryCard);
876 877
   },
877 878
   setFinallyResult: function () {
878 879
     var that = this;

+ 0 - 1
pages/main/searchCard.js

@@ -17,7 +17,6 @@ Page({
17 17
       IsShowNull: false,
18 18
       Searching:true,
19 19
     });
20
-
21 20
     common.getStorageValue(that, "SearchTextList", [], function () {});
22 21
   },
23 22
   onShow:function(){

+ 0 - 1
pages/other/annualreport.js

@@ -32,7 +32,6 @@ Page({
32 32
     var imageQRCode = app.globalData.serverUrl;
33 33
     imageQRCode += common.Encrypt("BuildWXServiceQRCode?QRCodeType=0&UserID=" + app.globalData.userInfo.UserID + "&SourceID=" + app.globalData.ProgramID);
34 34
     console.log(imageQRCode);
35
-    var that = this;
36 35
     var downloadTask = wx.downloadFile({
37 36
       url: imageQRCode,
38 37
       success(res) {

+ 11 - 15
pages/other/annualreport.wxml

@@ -1,10 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-	<image src="{{ImagePath}}web/report_20201231_01.png" class="panelTop" />
2
+	<image src="{{ImagePath}}web/report_2021-header.png" class="panelTop" />
3 3
 	<view class="panelMain FlexColumn">
4
-		<view class="Remark FlexColumn">
5
-			<text>  2020是不同凡响的一年,我们一起经历了疫情期间的远程上课,和重返校园后的奋起直追。突如其来的生活变化,家长们孩子们大家都辛苦了。祝我们在2021年过地更加顺利平安和谐进步。给彼此加油,为祖国加油!\n
6
-			  2020年度练习奖励、期末备考有奖练习活动结果,将于1月10日在秒过学习小组公布。</text>
7
-		</view>
8 4
 		<view class="text1">自{{Data.StartDate}}以来</view>
9 5
 		<view class="text2">年度报告的数据统计截止于{{Data.EndDate}}</view>
10 6
 		<view class="line1"></view>
@@ -94,36 +90,36 @@
94 90
 			<image src="{{ImagePath}}web/universalpic_help_orange_26x26.png" class="help" />
95 91
 			<view>急需了解的知识</view>
96 92
 		</view>
97
-		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=1&idchild=0">
98
-			<view class="text3">题卡建议数量</view>
93
+		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=1&idchild=13">
94
+			<view class="text3">什么是到期时间,什么是到期题卡</view>
99 95
 			<view class="text4">
100 96
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />
101 97
 			</view>
102 98
 		</view>
103 99
 		<view class="line1"></view>
104
-		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=2&idchild=3">
105
-			<view class="text3">1分钟做完和0任务量的处理</view>
100
+		<view class="panelItem FlexRow" bindtap='goto' data-url="../plan/pattern">
101
+			<view class="text3">使用记忆评价高级模式让复习更精确</view>
106 102
 			<view class="text4">
107 103
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />
108 104
 			</view>
109 105
 		</view>
110 106
 		<view class="line1"></view>
111
-		<view class="panelItem FlexRow" bindtap='goto' data-url="../plan/pattern">
112
-			<view class="text3">建议把记忆评价命名方式改为“高级模式”</view>
107
+		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=2&idchild=0">
108
+			<view class="text3">批量管理题卡用秒过官网</view>
113 109
 			<view class="text4">
114 110
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />
115 111
 			</view>
116 112
 		</view>
117 113
 		<view class="line1"></view>
118
-		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=2&idchild=4">
119
-			<view class="text3">过度点蓝的成因和危害</view>
114
+		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=1&idchild=12">
115
+			<view class="text3">归档、不会、挪到最后、搁置,多种处置</view>
120 116
 			<view class="text4">
121 117
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />
122 118
 			</view>
123 119
 		</view>
124 120
 		<view class="line1"></view>
125
-		<view class="panelItem FlexRow" bindtap='goto' data-url="./help?id=0&idchild=3">
126
-			<view class="text3">什么是群接力</view>
121
+		<view class="panelItem FlexRow" bindtap='goto' data-url="./tips">
122
+			<view class="text3">更多使用技巧</view>
127 123
 			<view class="text4">
128 124
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />
129 125
 			</view>

+ 1 - 1
pages/test/index.wxml

@@ -60,7 +60,7 @@
60 60
           <view class="ItemTitle2">{{item.Name[0]}}</view>
61 61
         </view>
62 62
         <view class="Item2 FlexColumn">
63
-          <view class="ItemDate">{{item.CreateTime}}</view>
63
+          <view class="ItemDate">{{item.UpdateTime}}</view>
64 64
           <view class="ItemNumber FlexRow">
65 65
             <image wx:if="{{item.TestType=='read' && item.IsFinished==1}}" class="examine_willread_gray_22x22"
66 66
               src="../images/examine_willread_green_22x22.png"></image>

+ 26 - 14
pages/test/report.js

@@ -2,7 +2,7 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
-var intervalBuild = 0;
5
+var intervalBuild = null;
6 6
 var TestReportID = 0;
7 7
 
8 8
 Page({
@@ -203,21 +203,34 @@ Page({
203 203
         IsBuild: 1,
204 204
       });
205 205
       var buildCardNumber = 0;
206
+      if (intervalBuild!=null){
207
+        clearInterval(intervalBuild);
208
+        intervalBuild=null;
209
+      }
206 210
       intervalBuild = setInterval(function () {
207
-        that.addCard(arr[buildCardNumber]);
208
-        buildCardNumber++;
209
-        that.setData({
210
-          BuildCardNumber: Math.round(100 * buildCardNumber / arr.length) + "%",
211
-        });
212
-        if (buildCardNumber >= arr.length) {
213
-          clearInterval(intervalBuild);
214
-          var TestTask = {};
215
-          TestTask.TestExistStr = TestExistStr;
216
-          
217
-          that.saveInfo(TestTask);
211
+        if (arr.length>0){
212
+          that.addCard(arr[buildCardNumber]);
213
+          buildCardNumber++;
218 214
           that.setData({
219
-            IsBuild: 2,
215
+            BuildCardNumber: Math.round(100 * buildCardNumber / arr.length) + "%",
220 216
           });
217
+          if (buildCardNumber >= arr.length) {
218
+            clearInterval(intervalBuild);
219
+            //intervalBuild=null;
220
+            buildCardNumber=0;
221
+            arr=[];
222
+            var TestTask = {};
223
+            TestTask.TestExistStr = TestExistStr;
224
+            
225
+            that.saveInfo(TestTask);
226
+            that.setData({
227
+              IsBuild: 2,
228
+            });
229
+          }
230
+        }
231
+        else{
232
+          clearInterval(intervalBuild);
233
+          //intervalBuild=null;
221 234
         }
222 235
       }, 500);
223 236
     } else {
@@ -242,7 +255,6 @@ Page({
242 255
   },
243 256
   saveInfo: function (TestTask) {
244 257
     var that = this;
245
-    clearInterval(intervalBuild);
246 258
     var userid = app.globalData.userInfo.UserID;
247 259
     var param1 = wx.getStorageSync("TestTask");
248 260
     if (param1.List)

+ 3 - 3
pages_agent/main/earnings_apply.wxml

@@ -15,7 +15,7 @@
15 15
       </view>
16 16
       <view class="panel113 FlexRow">
17 17
         <view class="text4">批复时间</view>
18
-        <view class="text5">{{Info.CheckTime}}</view>
18
+        <view class="text5"><block wx:if="{{Info.CheckTime}}">{{Info.CheckTime}}</block></view>
19 19
       </view>
20 20
     </view>
21 21
     <view class="line2"></view>
@@ -27,7 +27,7 @@
27 27
   <view class="panel1 FlexColumn">
28 28
     <view class="panel21 FlexRow">
29 29
       <view class="text7">提现金额</view>
30
-      <view class="text8">{{Info.RealMoney}}</view>
30
+      <view class="text8">{{Info.ApplyMoney}}</view>
31 31
     </view>
32 32
     <view class="line"></view>
33 33
     <view class="panel11 FlexColumn">
@@ -52,7 +52,7 @@
52 52
       </view>
53 53
       <view class="panel22 panel113 FlexRow">
54 54
         <view class="text4">收款帐号真实姓名</view>
55
-        <view class="text5">{{Info.RealName}}</view>
55
+        <view class="text5"><block wx:if="{{Info.RealName}}">{{Info.RealName}}</block></view>
56 56
       </view>
57 57
     </view>
58 58
   </view>

+ 2 - 1
pages_agent/main/earnings_list.wxml

@@ -2,7 +2,8 @@
2 2
   <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="*this">
3 3
     <view class="text10 text1" wx:if="{{item.IsCheck==0}}">等待审核</view>
4 4
     <view class="text1" wx:if="{{item.IsCheck==1}}">审核通过</view>
5
-    <view class="text2">{{item.RealMoney}}</view>
5
+    <view class="text2" wx:if="{{item.IsCheck==0}}">{{item.ApplyMoney}}</view>
6
+    <view class="text2" wx:if="{{item.IsCheck==1}}">{{item.RealMoney}}</view>
6 7
     <view class="text3">到帐金额</view>
7 8
     <view class="line"></view>
8 9
     <view class="panel11 FlexColumn">

+ 35 - 2
pages_agent/main/index.js

@@ -5,7 +5,7 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-
8
+    Version:app.globalData.Version,
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
@@ -75,8 +75,15 @@ Page({
75 75
             console.log("reboot:" + new Date().getTime());
76 76
           }, 2000);
77 77
         } else {
78
+          if (!data.IdentityCard)
79
+            data.IdentityCard="";
80
+          if (!data.Phone)
81
+            data.Phone="";
82
+            
78 83
           app.globalData.userInfo = data;
79
-          //console.log(data);          
84
+          that.setData({
85
+            IsPromoter:app.globalData.userInfo.IsPromoter,
86
+          });    
80 87
         }
81 88
       });
82 89
     });
@@ -88,6 +95,32 @@ Page({
88 95
       url: url,
89 96
     });
90 97
   },
98
+  setSelectUser: function (e) {
99
+    var that = this;
100
+
101
+    var userid = e.currentTarget.dataset.userid;
102
+    wx.setStorageSync("UserID", userid);
103
+    
104
+    app.globalData.userInfo.UserID = userid;
105
+    that.getUserInfo2(userid,"",function(data){
106
+      wx.setNavigationBarTitle({
107
+        title: data.NickName
108
+      });
109
+      app.globalData.userInfo=data;
110
+      that.setData({
111
+        IsPromoter:app.globalData.userInfo.IsPromoter,
112
+      });    
113
+
114
+    });
115
+  },
116
+  getUserInfo2:function(userID,fieldStr,callback){
117
+    var url = "GetMiaoguoWXUserInfo?UserID=" + userID + fieldStr;
118
+    main.getData(url, function (data) {
119
+      if (data) {
120
+        callback(data);
121
+      }
122
+    });
123
+  },
91 124
   onShareAppMessage: function () {
92 125
     return {
93 126
       title: app.globalData.ShareTitle,

+ 14 - 2
pages_agent/main/index.wxml

@@ -1,6 +1,9 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panelHeight"></view>
3
-  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion">
3
+  <view wx:if="{{IsPromoter==0}}">
4
+    无活动
5
+  </view>
6
+  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion" wx:if="{{IsPromoter>0}}">
4 7
     <view class="panel11 FlexRow">
5 8
       <image src='../../pages/images/product_icon_mg_70x70.png' class="product_icon_mg_70x70" />
6 9
       <view class="panel111">秒过推广计划</view>
@@ -9,7 +12,7 @@
9 12
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10 13
     </view>
11 14
   </view>
12
-  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador">
15
+  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador" wx:if="{{IsPromoter==1}}">
13 16
     <view class="panel11 FlexRow">
14 17
       <image src='../../pages/images/product_icon_mg_70x70.png' class="product_icon_mg_70x70" />
15 18
       <view class="panel111">秒过大使计划</view>
@@ -18,5 +21,14 @@
18 21
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
19 22
     </view>
20 23
   </view>
24
+
25
+  <view class="test FlexColumn">
26
+    <view class="btn">下列按钮测试用({{Version}})</view>
27
+    <button class="btn" bindtap="setSelectUser" data-userid="4398">slyicecream</button>
28
+    <button class="btn" bindtap="setSelectUser" data-userid="14983">小云</button>
29
+    <button class="btn" bindtap="setSelectUser" data-userid="14822">管璐瑶</button>
30
+    <button class="btn" bindtap="setSelectUser" data-userid="14850">艾小西</button>
31
+    <button class="btn" bindtap="setSelectUser" data-userid="14818">甲子</button>
32
+  </view>
21 33
   
22 34
 </view>

+ 12 - 0
pages_agent/main/index.wxss

@@ -27,4 +27,16 @@
27 27
   width:16rpx;
28 28
   height:26rpx;
29 29
   margin-right: 30rpx;
30
+}
31
+
32
+.test{
33
+  width: 500rpx;
34
+  border-radius: 20rpx;
35
+  padding: 0 0 30rpx 0;
36
+  margin-top: 100rpx;
37
+  background-color: #dddddd;
38
+}
39
+
40
+.btn{
41
+  margin: 30rpx 0 0 0;
30 42
 }

+ 30 - 0
pages_agent/main/other_list.js

@@ -75,6 +75,36 @@ Page({
75 75
       IsWithdraw:!this.data.IsWithdraw,
76 76
     });
77 77
   },
78
+  applyPay:function(e){
79
+    var that=this;
80
+    if (that.data.Total<1){
81
+      wx.showToast({
82
+        title: '不足1元不能提现',
83
+        mask: true,
84
+        image: "../../pages/images/universalpic_exclamation_white_120x120.png",
85
+      });
86
+    }
87
+    else{
88
+      wx.showLoading({
89
+        title: '申请保存中',
90
+        mask: true,
91
+      });
92
+      var url="ApplyWithdraw?UserID="+app.globalData.userInfo.UserID+"&AgentCategory="+that.data.AgentCategory;
93
+      main.getData(url, function () {
94
+        var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
95
+        main.getData(url, function (data) {
96
+          if (data) {
97
+            wx.hideLoading();
98
+            app.globalData.EarningsList = data;
99
+            wx.redirectTo({
100
+              url: "earnings_list?AgentCategory="+that.data.AgentCategory,
101
+            });
102
+          }
103
+        });
104
+      });
105
+    }
106
+
107
+  },
78 108
   onPullDownRefresh: function () {
79 109
     wx.stopPullDownRefresh();
80 110
   },

+ 3 - 3
pages_agent/main/other_list.wxml

@@ -86,7 +86,7 @@
86 86
         <view class="text53">到账金额</view>
87 87
       </view>
88 88
     </view>
89
-    <view class="panel52 FlexRow">
89
+    <view class="panel52 FlexRow" wx:if="{{false}}">
90 90
       <view class="Left FlexRow">
91 91
         <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
92 92
         <view class="text53">已扣除因退款返还奖励金额</view>
@@ -125,9 +125,9 @@
125 125
       <view class="text54">收款人帐号真实姓名</view>
126 126
       <view class="text54">{{User.RealName}}</view>
127 127
     </view>
128
-    <view class="btn2">确认</view>
128
+    <view class="btn2" catchtap="applyPay">确认</view>
129 129
 
130 130
   </view>
131
-  <view class="btnCancel" bindtap="showWithdraw">取消</view>
131
+  <view class="btnCancel" catchtap="showWithdraw">取消</view>
132 132
 
133 133
 </view>

+ 55 - 7
pages_agent/main/result_list.js

@@ -6,8 +6,7 @@ const app = getApp();
6 6
 Page({
7 7
   data: {
8 8
     IsPromotion:false,
9
-    SelectMenuCss1:"selectItem",
10
-    SelectMenuCss2:"",
9
+
11 10
   },
12 11
   onLoad: function (options) {
13 12
     var that = this;
@@ -20,6 +19,9 @@ Page({
20 19
       Containnerheight: main.getWindowHeight(),
21 20
       IsPromotion:isPromotion,
22 21
       ListType:options.ListType,
22
+      AgentCategory:options.AgentCategory,    
23
+      SelectMenuCss1:"selectItem",
24
+      SelectMenuCss2:"",
23 25
     });
24 26
 
25 27
     wx.setNavigationBarTitle({
@@ -32,31 +34,77 @@ Page({
32 34
     var that = this;
33 35
 
34 36
     var url="";
35
-    url="GetIntroducerUserList2?ListType="+that.data.ListType;
36
-    url+="&UserID=" + app.globalData.userInfo.UserID;
37 37
 
38
+    if (that.data.ListType=="团队动态"){
39
+      url="GetMiaoguoTeamDynamic?UserID=" + app.globalData.userInfo.UserID;
40
+    }
41
+    else{
42
+      url="GetIntroducerUserList2?ListType="+that.data.ListType;
43
+      url+="&AgentCategory="+that.data.AgentCategory;
44
+      url+="&UserID=" + app.globalData.userInfo.UserID;
45
+    }
38 46
     main.getData(url, function (data) {
39
-      wx.hideLoading();
40 47
       if (data) {
48
+        if (that.data.ListType=="团队动态"){
49
+          if (that.data.SelectMenuCss1=="selectItem")
50
+            data.List=data.List1;
51
+          else if (id==2)
52
+            data.List=data.List2;
53
+        }
41 54
         that.setData({
42 55
           Info:data,
43 56
         });
44 57
       }
45 58
     });
46 59
   },
60
+  gotoRecord: function (e) {
61
+    var that = this;
62
+
63
+    var userid = e.currentTarget.dataset.userid;
64
+
65
+    if (that.data.ListType=="团队动态"){
66
+      wx.navigateTo({
67
+        url: "user_relation?UserID="+userid,
68
+      });
69
+    }
70
+    else{
71
+      var url="GetMiaoguoAgentRecordID?AgentCategory="+that.data.AgentCategory;
72
+      url+="&UserID=" + userid;
73
+  
74
+      main.getData(url, function (data) {
75
+        if (data) {
76
+          wx.navigateTo({
77
+            url: "earnings_apply?RecordID="+data+"&AgentCategory="+that.data.AgentCategory,
78
+          });
79
+        }
80
+      });
81
+    }
82
+  },
83
+  goto: function (e) {
84
+    var url = e.currentTarget.dataset.url;
85
+    wx.navigateTo({
86
+      url: url,
87
+    });
88
+  },
47 89
   onPullDownRefresh: function () {
48 90
     wx.stopPullDownRefresh();
49 91
   },
50 92
   onMenu:function(e){
93
+    var that = this;
51 94
     var id=e.currentTarget.dataset.id;
52 95
     var SelectMenuCss1="",SelectMenuCss2="";
53
-    if (id==1)
96
+    if (id==1){
54 97
       SelectMenuCss1="selectItem";
55
-    else if (id==2)
98
+      that.data.Info.List=that.data.Info.List1;
99
+    }
100
+    else if (id==2){
56 101
       SelectMenuCss2="selectItem";
102
+      that.data.Info.List=that.data.Info.List2;
103
+    }
57 104
     this.setData({
58 105
       SelectMenuCss1:SelectMenuCss1,
59 106
       SelectMenuCss2:SelectMenuCss2,
107
+      Info:  that.data.Info
60 108
     });
61 109
   },
62 110
   onShareAppMessage: function () {

+ 12 - 6
pages_agent/main/result_list.wxml

@@ -1,15 +1,15 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <block wx:if="{{!IsPromotion}}">
2
+  <block wx:if="{{!IsPromotion && ListType=='团队动态'}}">
3 3
     <view class="panelTop FlexRow">
4 4
       <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
5
-        <view class="{{SelectMenuCss1}} text0">团队贡献</view>
5
+        <view class="{{SelectMenuCss1}} text0">队员能量</view>
6 6
         <view class="{{SelectMenuCss1}}BG line1"></view>
7 7
       </view>
8 8
       <view class="panelTop2 panelTop1 FlexColumn" catchtap="onMenu" data-id="2">
9 9
         <view class="{{SelectMenuCss2}} text0">其他</view>
10 10
         <view class="{{SelectMenuCss2}}BG line1"></view>
11 11
       </view>
12
-      <view class="panelTop3 panelTop1 FlexColumn">
12
+      <view class="panelTop3 panelTop1 FlexColumn" catchtap="goto" data-url="search_user">
13 13
         <image src='../../pages/images/universalpic_magnifier_black_30x30.png' class="universalpic_magnifier_black_30x30" />
14 14
       </view>
15 15
     </view>
@@ -21,7 +21,7 @@
21 21
     <view class="panel11 FlexColumn">
22 22
       <text class="text1">{{Info.Description}}</text>
23 23
     </view>
24
-    <view class="panel12 FlexRow"  wx:if="{{!IsPromotion}}">
24
+    <view class="panel12 FlexRow"  wx:if="{{!IsPromotion && Info.Readme}}">
25 25
       <view class="text2">大使工作规则</view>
26 26
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
27 27
     </view>
@@ -31,9 +31,15 @@
31 31
     <text></text>
32 32
   </view>
33 33
   <view class="panel3 FlexRow">
34
-    <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this">
34
+    <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this" bindtap="gotoRecord" data-userid="{{item.UserID}}" >
35 35
       <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
36
-      <view class="text4">{{item.NickName}}</view>
36
+      <view class="text4" wx:if="{{item.IsRebate==1 || !IsPromotion}}">{{item.NickName}}</view>
37
+      <view class="text5" wx:if="{{item.IsRebate!=1 && IsPromotion}}">{{item.NickName}}</view>
38
+      <view class="text6 FlexRow" wx:if="{{ListType=='团队动态'}}">
39
+        <view class="text61">{{item.Type}}</view>
40
+        <view class="text62"></view>
41
+        <view class="text61">{{item.Count}}</view>
42
+      </view>
37 43
     </view>
38 44
   </view>
39 45
   <view class="footer"></view>

+ 25 - 1
pages_agent/main/result_list.wxss

@@ -53,7 +53,7 @@
53 53
   width:100%;
54 54
   font-size: 22rpx;
55 55
   font-weight: 400;
56
-  min-height: 178rpx;
56
+  min-height:90rpx;
57 57
   justify-content: flex-start;
58 58
 }
59 59
 
@@ -129,6 +129,30 @@
129 129
   margin-top:20rpx;
130 130
 }
131 131
 
132
+
133
+.text5{
134
+  width:110rpx;
135
+  font-size:20rpx;
136
+  font-weight: 400;
137
+  text-align: center;
138
+  margin-top:20rpx;
139
+  color:#fff;
140
+  background-color: #4D4D4D;
141
+}
142
+
143
+.text61{
144
+  font-size:18rpx;
145
+  color: #4D4D4D;
146
+  font-family: 'Roboto-Black';
147
+}
148
+
149
+.text62{
150
+  width: 2rpx;
151
+  height:14rpx;
152
+  background-color: #d2d2d2;
153
+  margin: 0 10rpx;
154
+}
155
+
132 156
 .footer{
133 157
   width:100%;
134 158
   height:232rpx;

+ 115 - 2
pages_agent/main/search_user.js

@@ -5,7 +5,10 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    IsList:true,
8
+    IsNull:false,
9
+    IsList:false,
10
+    Searching:true,
11
+    SearchList:[],
9 12
   },
10 13
   onLoad: function (options) {
11 14
     var that = this;
@@ -14,12 +17,122 @@ Page({
14 17
       Containnerheight: main.getWindowHeight(),
15 18
     });
16 19
 
17
-    common.getStorageValue(that, "SearchTextList", [], function () {});
20
+    common.getStorageValue(that, "SearchTextList2", [], function () {});
18 21
   
19 22
   },
23
+  onShow:function(){
24
+    this.setData({
25
+      Focus: true,
26
+    });
27
+  },
20 28
   onPullDownRefresh: function () {
21 29
     wx.stopPullDownRefresh();
22 30
   },
31
+
32
+  onKeyInput: function (e) {
33
+    console.log("onKeyInput");
34
+    var search = e.detail.value;
35
+    var that = this;
36
+    that.setData({
37
+      SearchInfo: search,
38
+    });
39
+  },
40
+  onFocus: function (e) {
41
+    console.log("onFocus");
42
+    var that = this;
43
+    that.setData({
44
+      Searching:true,
45
+      IsNull:false,
46
+    });
47
+  },
48
+  onBindblur: function (e) {
49
+    console.log("onBindblur");
50
+  },
51
+  onSearch: function (e) {
52
+    if (e.currentTarget.dataset.search){
53
+      this.data.SearchInfo = e.currentTarget.dataset.search;
54
+      this.setData({
55
+        SearchInfo:this.data.SearchInfo,
56
+      });
57
+    }
58
+    if (this.data.SearchInfo && this.data.SearchInfo.length > 0) {
59
+      var search = this.data.SearchInfo;
60
+      
61
+      var that = this;
62
+      var url = 'GetMiaoguoIntroducerSearchUser?UserID=' + app.globalData.userInfo.UserID;
63
+      if (search)
64
+        url += "&Key=" + search;
65
+
66
+      updateData(that,search);
67
+      
68
+      wx.showLoading({
69
+        title: '请稍后...',
70
+      });
71
+      main.getData(url, function (data) {
72
+        wx.hideLoading();
73
+        if (data) {
74
+          if (data.length==0){
75
+            that.setData({
76
+              IsNull:true,
77
+            });
78
+          }
79
+          else{
80
+            that.setData({
81
+              IsList:true,
82
+              List:data,
83
+            });
84
+          }
85
+        }
86
+      });
87
+    }
88
+    else {
89
+      wx.showToast({
90
+        title: '请输搜索内容',
91
+      })
92
+    }
93
+
94
+    function updateData(obj,search) {
95
+      setTimeout(function () {
96
+        var arr = obj.data.SearchTextList2;
97
+        for (var i = 0; i < arr.length; i++) {
98
+          if (arr[i] == search) {
99
+            arr.splice(i, 1);
100
+            break;
101
+          }
102
+        }
103
+        arr.unshift(search);
104
+
105
+        while (arr.length > 10) {
106
+          arr.pop();
107
+        }
108
+
109
+        wx.setStorageSync("SearchTextList2", arr);
110
+        obj.setData({
111
+          SearchTextList2: arr,
112
+        });
113
+      }, 2000);
114
+    }
115
+  },
116
+  clearInput:function(){
117
+    this.setData({
118
+      SearchInfo:"",
119
+      IsNull:false,
120
+      SearchList:[],
121
+      Focus:true,
122
+      IsList:false,
123
+    });
124
+  },
125
+  goto: function (e) {
126
+    var url = e.currentTarget.dataset.url;
127
+    wx.navigateTo({
128
+      url: url,
129
+    });
130
+  },
131
+  onClose: function () {
132
+    wx.navigateBack({
133
+      delta: 1,
134
+    });
135
+  },
23 136
   onShareAppMessage: function () {
24 137
     return {
25 138
       title: app.globalData.ShareTitle,

+ 8 - 16
pages_agent/main/search_user.wxml

@@ -7,14 +7,14 @@
7 7
 
8 8
         <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9 9
           <view class="clearData0 FlexRow">
10
-            <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
10
+            <image class="universalpic_close_black_16x16" src='../../pages/images/universalpic_close_black_16x16.png' />
11 11
           </view>
12 12
         </view>
13 13
 
14 14
       </view>
15 15
     </view>
16 16
     <view class="panelRight FlexRow">
17
-      <view class='panelTop1 FlexRow' bindtap="close">
17
+      <view class='panelTop1 FlexRow' bindtap="onClose">
18 18
         <view class="panelTop3">取消</view>
19 19
       </view>
20 20
     </view>
@@ -35,30 +35,22 @@
35 35
       <view class="lineWidth720"></view>
36 36
     </view>
37 37
     <view class='panelItemSearch0 FlexRow'>
38
-      <scroll-view wx:if="{{SearchTextList.length>0}}" scroll-x="true" class="panelBtnSmall">
38
+      <scroll-view wx:if="{{SearchTextList2.length>0}}" scroll-x="true" class="panelBtnSmall">
39 39
         <view class="btn0"></view>
40
-        <view class="btn" catchtap="onSearch" wx:for="{{SearchTextList}}" wx:key="index" data-search="{{item}}">{{item}}
40
+        <view class="btn" catchtap="onSearch" wx:for="{{SearchTextList2}}" wx:key="index" data-search="{{item}}">{{item}}
41 41
         </view>
42 42
       </scroll-view>
43 43
 
44
-      <view class="panelItemSearchNull" wx:if="{{SearchTextList.length==0}}">暂无内容,搜一次就有了</view>
44
+      <view class="panelItemSearchNull" wx:if="{{SearchTextList2.length==0}}">暂无内容,搜一次就有了</view>
45 45
 
46 46
     </view>
47 47
   </block>
48 48
   <block wx:if="{{IsList}}">
49 49
     <view class="panel2 FlexColumn" style='min-height:{{Containnerheight-100}}rpx;'>
50
-      <view class="panelItem FlexRow">
50
+      <view class="panelItem FlexRow" wx:for="{{List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
51 51
         <view class="Left FlexRow">
52
-          <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
53
-          <view class="panelItem1">昵称</view>
54
-        </view>
55
-        <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
56
-      </view>
57
-
58
-      <view class="panelItem FlexRow">
59
-        <view class="Left FlexRow">
60
-          <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
61
-          <view class="panelItem1">昵称</view>
52
+          <image src='{{item.AvatarUrl}}' class="avatar" />
53
+          <view class="panelItem1">{{item.NickName}}</view>
62 54
         </view>
63 55
         <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
64 56
       </view>

+ 3 - 2
pages_agent/main/user_index.js

@@ -44,9 +44,9 @@ Page({
44 44
       backgroundColorBottom: backColor,
45 45
       frontColor: frontColor,
46 46
     });
47
-
47
+  },
48
+  onShow:function(){
48 49
     this.init();
49
-
50 50
   },
51 51
   init: function () {
52 52
     var that = this;
@@ -64,6 +64,7 @@ Page({
64 64
       });
65 65
     }
66 66
 
67
+    //收益记录
67 68
     var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
68 69
     main.getData(url, function (data) {
69 70
       if (data) {

+ 14 - 14
pages_agent/main/user_index.wxml

@@ -18,6 +18,13 @@
18 18
   <image wx:if="{{!IsPromotion}}" src='../images/promotion_partner_home_title01.png' class="promotion_user_home_title01" />
19 19
   <view wx:if="{{IsPromotion}}" class="text2">{{Total}}</view>
20 20
   <view wx:if="{{!IsPromotion}}" class="text1">{{Total}}</view>
21
+
22
+  <blocl wx:if="{{!IsPromotion}}">
23
+    <view class="text9">大使收益</view>
24
+    <view class="text10">{{Total2}}</view>
25
+  </blocl>
26
+
27
+
21 28
   <scroll-view wx:if="{{IsPromotion}}" class="panelAD" scroll-x="true" bindscroll="scroll">
22 29
     <image src='../images/ad.png' class="adImage" />
23 30
     <image src='../images/ad.png' class="adImage" />
@@ -29,34 +36,27 @@
29 36
   <view class="Null1" wx:if="{{!IsPromotion}}"></view>
30 37
   <view class="panel1 FlexColumn">
31 38
     <view class="panel11 FlexRow">
32
-      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}" wx:if="{{!IsPromotion}}">
33
-        <view class="text3">{{Total2}}</view>
34
-        <view class="text4">大使收益</view>
39
+      <view class="panel112 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=预估新增收益">
40
+        <view class="text3">{{EstimatedNewRevenueTotal}}</view>
41
+        <view class="text4">预估新增收益</view>
35 42
       </view>
36 43
       <view class="panel112 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=可提现收益">
37 44
         <view class="text3">{{WithdrawableEarningsTotal}}</view>
38 45
         <view class="text4">可提现收益</view>
39 46
       </view>
40
-      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}" wx:if="{{IsPromotion}}">
47
+      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}">
41 48
         <view class="text3">{{WithdrawableEarnings}}</view>
42 49
         <view class="text4">即将到帐</view>
43 50
       </view>
44
-      <view class="panel112 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=预估新增收益">
45
-        <view class="text3">{{EstimatedNewRevenueTotal}}</view>
46
-        <view class="text4">预估新增收益</view>
47
-      </view>
48 51
     </view>
49 52
     <view class="panel2_0 panel2 FlexRow">
50 53
       <view class="panel21 FlexRow" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}">
51 54
         收益记录
52 55
       </view>
53 56
       <view class="line"></view>
54
-      <view class="panel21 FlexRow" wx:if="{{IsPromotion}}" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
57
+      <view class="panel21 FlexRow" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
55 58
         成果记录
56 59
       </view>
57
-      <view class="panel21 FlexRow" wx:if="{{!IsPromotion}}" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队能量">
58
-        团队能量
59
-      </view>
60 60
       <view class="line"></view>
61 61
       <view class="panel21 FlexRow" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=退款记录">
62 62
         退款记录
@@ -71,10 +71,10 @@
71 71
         大使计划规则
72 72
       </view>
73 73
     </view>
74
-    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
74
+    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}" bindtap="goto" data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队动态">
75 75
       <image src='../images/promotion_index_workbook.png' class="promotion_index_rules" />
76 76
       <view class="text8">
77
-        大使工作手册
77
+        团队动态
78 78
       </view>
79 79
     </view>
80 80
     <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">

+ 13 - 0
pages_agent/main/user_index.wxss

@@ -58,6 +58,19 @@
58 58
   font-family: 'Roboto-Black';
59 59
 }
60 60
 
61
+.text9{
62
+  font-size:36rpx;
63
+  margin-top: 20rpx;
64
+  color:#2E2E2E;
65
+}
66
+
67
+.text10{
68
+  font-size:64rpx;
69
+  font-family: 'Roboto-Black';
70
+  color:#2E2E2E;
71
+  text-align: center;
72
+}
73
+
61 74
 .panelAD{
62 75
   width:710rpx;
63 76
   height:230rpx;

+ 19 - 13
pages_agent/main/user_relation.js

@@ -5,26 +5,32 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    List: [{
9
-      NickName: "昵称1"
10
-    }, {
11
-      NickName: "昵称2"
12
-    }, {
13
-      NickName: "昵称3"
14
-    }, {
15
-      NickName: "本人"
16
-    }],
8
+    
17 9
   },
18 10
   onLoad: function (options) {
19 11
     var that = this;
20
-
21
-    that.data.List[that.data.List.length-1].IsMe="IsMe";
22
-
12
+    //预估新增收益
13
+    var url = url="GetMiaoguoUserAndIntroducer?UserID=" + options.UserID;
14
+    main.getData(url, function (data) {
15
+      if (data) {
16
+        that.setData({
17
+          Info:data,
18
+          CurrentUserID:options.UserID,
19
+        });
20
+      }
21
+    });
23 22
     that.setData({
24 23
       Containnerheight: main.getWindowHeight(),
25
-      List:that.data.List,
26 24
     });
27 25
   },
26
+  goto: function (e) {
27
+    if (e.currentTarget.dataset.userid!=this.data.CurrentUserID){
28
+      var url = e.currentTarget.dataset.url;
29
+      wx.navigateTo({
30
+        url: url,
31
+      });
32
+    }
33
+  },
28 34
   onPullDownRefresh: function () {
29 35
     wx.stopPullDownRefresh();
30 36
   },

+ 22 - 22
pages_agent/main/user_relation.wxml

@@ -1,41 +1,41 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panel1 FlexRow">
3
-    <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
4
-    <view class="text1">宏壮-主持策划18835883876</view>
3
+    <image src='{{Info.MyInfo.AvatarUrl}}' class="avatar" />
4
+    <view class="text1">{{Info.MyInfo.NickName}}</view>
5 5
   </view>
6 6
   <view class="panel2 FlexRow">
7 7
     <text class="text2">Ta与我的关系</text>
8 8
   </view>
9
-  <block wx:for="{{List}}" wx:key="index">
10
-    <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
11
-      <view class="lineWidth720"></view>
12
-    </view>
13
-    <view class="{{item.IsMe}} panelItem FlexRow">
14
-      <view class="Left FlexRow">
15
-        <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar2" />
16
-        <view class="text3">{{item.NickName}}</view>
9
+  <block wx:for="{{Info.Tree}}" wx:key="index">
10
+    <view class="panelItem FlexRow" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}" data-userid="{{item.UserID}}">
11
+      <view class="panelItem2 FlexRow">
12
+        <view class="line"></view>
13
+        <view class="circle"></view>
14
+        <view class="panelItem21">{{item.Level}}</view>
17 15
       </view>
18
-      <view class="Right FlexColumn">
19
-          <view class="text4">
20
-            <block wx:if="{{index==0}}">我的直属</block>
21
-            <block wx:if="{{index>0}}">第{{index+1}}度</block>
22
-          </view>
16
+      <view class="panelItem1 FlexColumn">
17
+        <view style="margin-top:20rpx;" wx:if="{{index==0}}"></view>
18
+        <image src='{{item.AvatarUrl}}' class="avatar2" />
19
+        <view class="text3">{{item.NickName}}</view>
23 20
       </view>
21
+      <view class="panelItem2"></view>
24 22
     </view>
23
+
25 24
   </block>
26 25
   <view class="panel3 FlexColumn">
27 26
     <text class="text5">Ta的直属推荐</text>
28
-    <text class="text6"><text class="Number1" >24</text>位用户</text>
27
+    <text class="text6"><text class="Number1" >{{Info.List.length}}</text>位用户</text>
29 28
   </view>
30
-  <view class="panel4 FlexRow">
31
-    <view class="panel41 FlexColumn" wx:for="{{[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}}">
32
-      <image src='../../pages/images/product_icon_mg_70x70.png' class="product_icon_mg_70x70" />
33
-      <view class="text7">昵称昵称昵称昵称昵称昵称昵称昵称</view>
29
+  <view class="panel4 FlexRow" wx:if="{{Info.List.length>0}}">
30
+    <view class="panel41 FlexColumn" wx:for="{{Info.List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
31
+      <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
32
+      <view class="text7">{{item.NickName}}</view>
34 33
       <view class="text8 FlexRow">
35
-        <view class="Number2">5</view>
34
+        <view class="Number2">{{Info.Tree.length+1}}</view>
36 35
         <view class="line2"></view>
37
-        <view class="Number2">12</view>
36
+        <view class="Number2">{{item.Count}}</view>
38 37
       </view>
39 38
     </view>
40 39
   </view>
40
+  <view style="height: 100rpx;"></view>
41 41
 </view>

+ 45 - 7
pages_agent/main/user_relation.wxss

@@ -33,22 +33,60 @@
33 33
 
34 34
 .panelItem{
35 35
   width:100%;
36
-  height:110rpx;
37 36
   background-color: #fff;
38 37
   justify-content: space-between;
38
+  position: relative;
39
+  overflow: hidden;
39 40
 }
40 41
 
41
-.avatar2{
42
-  width:50rpx;
43
-  height:50rpx;
42
+.panelItem1{
43
+  margin: 20rpx 0 20rpx 0;
44
+  width: 150rpx;
45
+}
46
+.panelItem2{
47
+  width:300rpx;
48
+  justify-content: flex-start;
49
+  position: relative;
50
+}
51
+.panelItem22{
52
+  width:20rpx;
53
+  position: relative;
54
+}
55
+.line{
56
+  width:3rpx;
57
+  height:300rpx;
58
+  position: absolute;
59
+  left:36rpx;
60
+  top:-100rpx;
61
+  z-index: 50;
62
+  background-color: #d2d2d2;
63
+}
64
+
65
+.circle{
66
+  width:10rpx;
67
+  height:10rpx;
44 68
   border-radius: 50%;
69
+  border:3rpx solid #d2d2d2;
70
+  background-color: #fff;
45 71
   margin-left: 30rpx;
72
+  z-index: 60;
73
+}
74
+.panelItem21{
75
+  font-size:28rpx;
76
+  color:#4d4d4d;
77
+  margin-left: 24rpx;
78
+}
79
+
80
+.avatar2{
81
+  width:80rpx;
82
+  height:80rpx;
83
+  border-radius: 20rpx;
46 84
 }
47 85
 
48 86
 .text3{
49
-  font-size: 28rpx;
50
-  margin-left: 20rpx;
51
-  color: #4d4d4d;
87
+  font-size: 20rpx;
88
+  margin-top: 20rpx;
89
+  color: #1e1e1e;
52 90
 }
53 91
 
54 92
 .text4{

+ 0 - 34
pages_agent/main/withdraw_deposit.js

@@ -1,34 +0,0 @@
1
-import common from '../../utils/util';
2
-import main from '../../utils/main';
3
-
4
-const app = getApp();
5
-
6
-Page({
7
-  data: {
8
-    IsPromotion:false,
9
-  },
10
-  onLoad: function (options) {
11
-    var that = this;
12
-    
13
-    var isPromotion=true;
14
-    if (options.AgentCategory=="promotion"){
15
-      isPromotion=true;
16
-    }
17
-
18
-    that.setData({
19
-      Containnerheight: main.getWindowHeight(),
20
-      IsPromotion:isPromotion,
21
-    });
22
-
23
-  },
24
-  onPullDownRefresh: function () {
25
-    wx.stopPullDownRefresh();
26
-  },
27
-  onShareAppMessage: function () {
28
-    return {
29
-      title: app.globalData.ShareTitle,
30
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
31
-      imageUrl: app.globalData.ShareImage,
32
-    }
33
-  },
34
-})

+ 0 - 4
pages_agent/main/withdraw_deposit.json

@@ -1,4 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "可提现收益",
3
-  "backgroundColor": "#F2F2F2"
4
-}

+ 0 - 152
pages_agent/main/withdraw_deposit.wxml

@@ -1,152 +0,0 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panel1 FlexColumn" bindtap='goto'>
3
-    <view class="panel11 FlexColumn">
4
-      <text class="text1">① 7天退款期,有退款的情况\n② 检查一下是否与您的认知有出入,一旦他人就无法更改了
5
-      </text>
6
-    </view>
7
-    <view class="panel12 FlexRow">
8
-      <view class="text2">详细规则</view>
9
-      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10
-    </view>
11
-  </view>
12
-
13
-  <view class="panel4 FlexColumn">
14
-    <view class="panel41 FlexRow">
15
-      <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
16
-      <view class="text8">您有1笔退款,返还奖励后,剩余收益可提现。</view>
17
-    </view>
18
-
19
-    <view class="panel42 FlexRow">
20
-      <view class="text4">查看退款记录</view>
21
-      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
22
-    </view>
23
-
24
-  </view>
25
-
26
-  <view class="panel2 FlexRow">
27
-    <text class="text3"><text class="Number1">24</text> 条记录</text>
28
-    <text class="text7">收益 <text class="Number1">960.00</text></text>
29
-  </view>
30
-  <view class="panel3 FlexColumn">
31
-    <!-- 推广 -->
32
-    <block wx:if="{{!IsPromotion}}" wx:for="{{[1,2,3,4,5]}}" wx:key="index">
33
-      <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
34
-        <view class="lineWidth720"></view>
35
-      </view>
36
-      <view class="panelItem FlexRow">
37
-        <view class="Left FlexRow">
38
-          <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
39
-          <view class="panelItem1 FlexColumn">
40
-            <view class="text4">昵称</view>
41
-            <view class="text5">续费 2021年11月04日 08:20</view>
42
-          </view>
43
-        </view>
44
-        <view class="Right FlexColumn">
45
-          <block wx:if="{{false}}">
46
-            <view class="text6">等待生效</view>
47
-            <view class="text5">2021年11月04日 08:20</view>
48
-          </block>
49
-          <view class="Number2" wx:if="{{true}}">30.00</view>
50
-        </view>
51
-      </view>
52
-    </block>
53
-    <!-- 大使 -->
54
-    <view style="width: 100%;" wx:if="{{IsPromotion}}" wx:for="{{[1,2,3]}}" wx:key="indexParent" wx:for-item="itemParent" wx:for-index="indexParent" class="panelItem0 FlexColumn">
55
-      <view class="nullLine" wx:if="{{indexParent>0}}"></view>
56
-      <view class="panelItem2 panelItem FlexRow">
57
-        <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar2" />
58
-        <view class="text9">宏壮-主持策划18835883876 的推荐</view>
59
-      </view>
60
-      <view class="lineWidthAll FlexRow">
61
-        <view class="lineWidth750"></view>
62
-      </view>
63
-      <block wx:for="{{[1,2,3,4,5]}}" wx:key="index">
64
-        <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
65
-          <view class="lineWidth720"></view>
66
-        </view>
67
-        <view class="panelItem FlexRow">
68
-          <view class="Left FlexRow">
69
-            <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
70
-            <view class="panelItem1 FlexColumn">
71
-              <view class="text4">昵称</view>
72
-              <view class="text5">续费 2021年11月04日 08:20</view>
73
-            </view>
74
-          </view>
75
-          <view class="Right FlexColumn">
76
-            <block wx:if="{{false}}">
77
-              <view class="text6">等待生效</view>
78
-              <view class="text5">2021年11月04日 08:20</view>
79
-            </block>
80
-            <view class="Number2" wx:if="{{true}}">30.00</view>
81
-          </view>
82
-        </view>
83
-      </block>
84
-    </view>
85
-
86
-
87
-
88
-  </view>
89
-  <view style="height:150rpx;"></view>
90
-  <view class="panelBottom FlexColumn">
91
-    <view class="btn">申请提现</view>
92
-  </view>
93
-</view>
94
-
95
-<view wx:if="{{false}}" class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
96
-  <view class="panel5 FlexColumn">
97
-    <view class="text51">申请提现</view>
98
-    <view class="panel51 FlexRow">
99
-      <view class="panel511 FlexColumn">
100
-        <view class="text52">176.42</view>
101
-        <view class="text53">提现金额</view>
102
-      </view>
103
-      <view class="panel511 FlexColumn">
104
-        <view class="text52">166.24</view>
105
-        <view class="text53">到账金额</view>
106
-      </view>
107
-    </view>
108
-    <view class="panel52 FlexRow">
109
-      <view class="Left FlexRow">
110
-        <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
111
-        <view class="text53">已扣除因退款返还奖励金额</view>
112
-      </view>
113
-      <view class="text54">24.58</view>
114
-    </view>
115
-    <view class="panel53 FlexRow">
116
-      <view class="text54">微信支付平台交易手续费</view>
117
-      <view class="text54">0.6%</view>
118
-    </view>
119
-    <view class="lineWidthAll FlexRow">
120
-      <view class="lineWidth680"></view>
121
-    </view>
122
-    <view class="panel53 FlexRow">
123
-      <view class="text54">代缴个人所得税</view>
124
-      <view class="text54">0%</view>
125
-    </view>
126
-    <view class="lineWidthAll FlexRow">
127
-      <view class="lineWidth680"></view>
128
-    </view>
129
-    <view class="panel53 FlexRow">
130
-      <view class="text54">收款方式</view>
131
-      <view class="text54">微信钱包</view>
132
-    </view>
133
-    <view class="lineWidthAll FlexRow">
134
-      <view class="lineWidth680"></view>
135
-    </view>
136
-    <view class="panel53 FlexRow">
137
-      <view class="text54">收款人微信帐号</view>
138
-      <view class="text54">ABC</view>
139
-    </view>
140
-    <view class="lineWidthAll FlexRow">
141
-      <view class="lineWidth680"></view>
142
-    </view>
143
-    <view class="panel53 FlexRow">
144
-      <view class="text54">收款人帐号真实姓名</view>
145
-      <view class="text54">张三</view>
146
-    </view>
147
-    <view class="btn2">确认</view>
148
-
149
-  </view>
150
-  <view class="btnCancel">取消</view>
151
-
152
-</view>

+ 0 - 278
pages_agent/main/withdraw_deposit.wxss

@@ -1,278 +0,0 @@
1
-.panel1{
2
-  width:710rpx;
3
-  border-radius: 20rpx;
4
-  background-color: #fff;
5
-  margin: 60rpx 0;
6
-}
7
-
8
-.panel11{
9
-  width:100%;
10
-  font-size: 22rpx;
11
-  font-weight: 400;
12
-  min-height: 178rpx;
13
-  justify-content: flex-start;
14
-  border-bottom:1rpx solid #e3e3e3;
15
-}
16
-
17
-.text1{
18
-  margin-top: 30rpx;
19
-  width:650rpx;
20
-}
21
-
22
-.panel12{
23
-  width:100%;
24
-  height: 100rpx;
25
-  justify-content: space-between;
26
-}
27
-
28
-.text2{
29
-  font-size: 28rpx;
30
-  font-weight: 400;
31
-  margin-left: 30rpx;
32
-}
33
-
34
-.Arrow{
35
-  width:16rpx;
36
-  height:26rpx;
37
-  margin-right: 30rpx;
38
-}
39
-
40
-.panel4{
41
-  width:710rpx;
42
-  border-radius: 20rpx;
43
-  background-color: #fff;
44
-  margin: 0 0 60rpx 0;
45
-}
46
-
47
-.universalpic_exclamation_orange_40x40{
48
-  width:40rpx;
49
-  height:40rpx;
50
-  margin-left: 30rpx;
51
-}
52
-
53
-.panel2{
54
-  width: 100%;
55
-  justify-content: space-between;
56
-}
57
-
58
-.text3{
59
-  margin-left: 30rpx;
60
-  font-size: 32rpx;
61
-  color:#4D4D4D;
62
-}
63
-.text7{
64
-  margin-right: 30rpx;
65
-  font-size: 32rpx;
66
-  color:#4D4D4D;
67
-}
68
-.Number1{
69
-  font-family: 'Roboto-Black';
70
-  font-size:36rpx;
71
-  color:#4D4D4D;
72
-}
73
-.Number2{
74
-  font-family: 'Roboto-Black';
75
-  font-size:28rpx;
76
-  color:#4D4D4D;
77
-}
78
-
79
-.panel41{
80
-  justify-content: flex-start;
81
-  width:710rpx;
82
-  height:100rpx;
83
-  background-color: #FFE4B6;
84
-  border-top-left-radius: 20rpx;
85
-  border-top-right-radius: 20rpx;
86
-}
87
-
88
-.panel42{
89
-  justify-content: space-between;
90
-  width:710rpx;
91
-  height:100rpx;
92
-  background-color: #fff;
93
-  border-bottom-left-radius: 20rpx;
94
-  border-bottom-right-radius: 20rpx;
95
-}
96
-.text8{
97
-  font-size: 22rpx;
98
-  color: #4d4d4d;
99
-  margin-left: 30rpx;
100
-}
101
-
102
-.panel3{
103
-  width: 100%;
104
-  justify-content: flex-start;
105
-  background-color: #fff;
106
-  margin-top: 30rpx;
107
-}
108
-
109
-.nullLine{
110
-  width:100%;
111
-  height:20rpx;
112
-  background-color: #f2f2f2;
113
-}
114
-
115
-.panelItem{
116
-  width: 100%;
117
-  height:141rpx;
118
-  justify-content: space-between;
119
-}
120
-
121
-.avatar{
122
-  width:80rpx;
123
-  height:80rpx;
124
-  border-radius: 20rpx;
125
-  margin-left: 30rpx;
126
-}
127
-
128
-.panelItem2{
129
-  justify-content: flex-start;
130
-  height:111rpx;
131
-}
132
-
133
-.avatar2{
134
-  width:50rpx;
135
-  height:50rpx;
136
-  border-radius: 50%;
137
-  margin-left: 30rpx;
138
-}
139
-
140
-.text9{
141
-  font-size: 24rpx;
142
-  margin-left: 20rpx;
143
-  color:#4D4D4D;
144
-}
145
-
146
-.panelItem1{
147
-  align-items: flex-start;
148
-  margin-left: 20rpx;
149
-}
150
-
151
-.text4{
152
-  font-size: 28rpx;
153
-  color:#4D4D4D;
154
-  font-weight: 400;
155
-  margin-left: 30rpx;
156
-}
157
-.text5{
158
-  font-size: 20rpx;
159
-  color:#9B9B9B;
160
-}
161
-.Right{
162
-  margin-right: 30rpx;
163
-  align-items: flex-end;
164
-}
165
-.text6{
166
-  font-size: 24rpx;
167
-  color:#4D4D4D;
168
-}
169
-
170
-.panelBottom{
171
-  width:100%;
172
-  height:131rpx;
173
-  bottom: 0;
174
-  position: fixed;
175
-  background-color: #f2f2f2;
176
-  border-top: 1rpx solid #d2d2d2;
177
-}
178
-
179
-.panelBottom .btn{
180
-  width:730rpx;
181
-  height:110rpx;
182
-  border-radius: 20rpx;
183
-  background-color: #F57C00;
184
-  line-height: 110rpx;
185
-  color:#fff;
186
-  font-size:48rpx;
187
-  text-align: center;
188
-}
189
-
190
-/* 申请提现 */
191
-.container2{
192
-  background-color: rgba(0,0,0,0.8);
193
-  position: fixed;
194
-  top:0;
195
-  z-index: 10;
196
-  width: 100%;
197
-}
198
-
199
-.panel5{
200
-  width: 710rpx;
201
-  border-radius: 20rpx;
202
-  position: fixed;
203
-  bottom:160rpx;
204
-  background-color: #fff;
205
-  min-height: 500rpx;
206
-}
207
-
208
-.btnCancel{
209
-  width:710rpx;
210
-  height:100rpx;
211
-  border-radius: 20rpx;
212
-  text-align: center;
213
-  line-height: 100rpx;
214
-  font-size:28rpx;
215
-  background-color: #fff;
216
-  color: #1e1e1e;
217
-  position: fixed;
218
-  bottom:30rpx;
219
-}
220
-
221
-.text51{
222
-  margin-top: 40rpx;
223
-  font-size: 32rpx;
224
-  color:#4D4D4D;
225
-}
226
-
227
-.panel51{
228
-  margin-top: 10rpx;
229
-  width:100%;
230
-}
231
-
232
-.panel511{
233
-  flex: 1;
234
-}
235
-
236
-.text52{
237
-  font-size: 64rpx;
238
-  color:#4D4D4D;
239
-  font-family: 'Roboto-Black';
240
-}
241
-.text53{
242
-  font-size: 24rpx;
243
-  color:#4D4D4D;
244
-  margin: 0 30rpx 0 20rpx;
245
-  font-weight: 400;
246
-}
247
-
248
-.panel52{
249
-  width: 100%;
250
-  background-color: #FFE4B6;
251
-  height:94rpx;
252
-  justify-content: space-between;
253
-  margin-top: 30rpx;
254
-}
255
-
256
-.text54{
257
-  font-size: 24rpx;
258
-  color:#4D4D4D;
259
-  margin: 0 30rpx 0 30rpx;
260
-  font-weight: 400;
261
-}
262
-
263
-.panel53{
264
-  width: 100%;
265
-  height:94rpx;
266
-  justify-content: space-between;
267
-}
268
-
269
-.btn2{
270
-  width:100%;
271
-  line-height: 127rpx;
272
-  border-bottom-left-radius: 20rpx;
273
-  border-bottom-right-radius: 20rpx;
274
-  background-color: #F57C00;
275
-  text-align: center;
276
-  color:#fff;
277
-  font-size: 48rpx;
278
-}

+ 4 - 3
project.config.json

@@ -17,7 +17,7 @@
17 17
     "checkInvalidKey": true,
18 18
     "checkSiteMap": true,
19 19
     "uploadWithSourceMap": true,
20
-    "compileHotReLoad": false,
20
+    "compileHotReLoad": true,
21 21
     "useMultiFrameRuntime": true,
22 22
     "useApiHook": true,
23 23
     "useApiHostProcess": true,
@@ -34,10 +34,11 @@
34 34
     "disableUseStrict": false,
35 35
     "minifyWXML": true,
36 36
     "showES6CompileOption": false,
37
-    "useCompilerPlugins": false
37
+    "useCompilerPlugins": false,
38
+    "ignoreUploadUnusedFiles": true
38 39
   },
39 40
   "compileType": "miniprogram",
40
-  "libVersion": "2.20.2",
41
+  "libVersion": "2.18.0",
41 42
   "appid": "wx84b3feac6069eec3",
42 43
   "projectname": "秒过",
43 44
   "debugOptions": {

+ 2 - 1
project.private.config.json

@@ -37,7 +37,8 @@
37 37
           "name": "推广",
38 38
           "pathName": "pages_agent/main/index",
39 39
           "query": "",
40
-          "scene": null
40
+          "scene": null,
41
+          "launchMode": "default"
41 42
         }
42 43
       ]
43 44
     }

+ 0 - 634
utils/constant.js

@@ -564,640 +564,6 @@ module.exports = {
564 564
       BackColor3: "#253C0B",
565 565
     },
566 566
   ],
567
-  testGradeArr: [{
568
-    Name: "一年级",
569
-    Name2: "语文一年级",
570
-    Type:"CHN",
571
-    Select: "Select",
572
-    List: [{
573
-      ID: 43,
574
-      Type: "Shizi",
575
-      Name: "语文拼音",
576
-      Name2: "基础发音",
577
-      Finish: 0,
578
-      Total: 8,
579
-      Image: "../images/examine_subject_a001.png"
580
-    },{
581
-      ID: 44,
582
-      Type: "Shizi",
583
-      Name: "语文拼音",
584
-      Name2: "发音组合",
585
-      Finish: 0,
586
-      Total: 65,
587
-      Image: "../images/examine_subject_a001.png"
588
-    },{
589
-      ID: 61,
590
-      Type: "Shizi",
591
-      Name: "语文识字",
592
-      Name2: "上学期",
593
-      Finish: 0,
594
-      Total: 82,
595
-      Image: "../images/examine_subject_a001.png"
596
-    }, {
597
-      ID: 13,
598
-      Type: "Shizi",
599
-      Name: "语文写字",
600
-      Name2: "上学期",
601
-      Finish: 0,
602
-      Total: 52,
603
-      Image: "../images/examine_subject_a001.png"
604
-    }, {
605
-      ID: 25,
606
-      Type: "Shici",
607
-      Name: "语文古诗文",
608
-      Name2: "上学期",
609
-      Finish: 0,
610
-      Total: 1,
611
-      Image: "../images/examine_subject_a001.png"
612
-    }, {
613
-      ID: 2,
614
-      Type: "Shizi",
615
-      Name: "语文识字",
616
-      Name2: "下学期",
617
-      Finish: 0,
618
-      Total: 14,
619
-      Image: "../images/examine_subject_a002.png"
620
-    }, {
621
-      ID: 14,
622
-      Type: "Shizi",
623
-      Name: "语文写字",
624
-      Name2: "下学期",
625
-      Finish: 0,
626
-      Total: 56,
627
-      Image: "../images/examine_subject_a002.png"
628
-    }, {
629
-      ID: 26,
630
-      Type: "Shici",
631
-      Name: "语文古诗文",
632
-      Name2: "下学期",
633
-      Finish: 0,
634
-      Total: 1,
635
-      Image: "../images/examine_subject_a002.png"
636
-    }]
637
-  },
638
-  {
639
-    Name: "二年级",
640
-    Name2: "语文二年级",
641
-    Type:"CHN",
642
-    Select: "",
643
-    List: [{
644
-      ID: 63,
645
-      Type: "Shizi",
646
-      Name: "语文识字",
647
-      Name2: "上学期",
648
-      Finish: 0,
649
-      Total: 72,
650
-      Image: "../images/examine_subject_a003.png"
651
-    }, {
652
-      ID: 15,
653
-      Type: "Shizi",
654
-      Name: "语文写字",
655
-      Name2: "上学期",
656
-      Finish: 0,
657
-      Total: 56,
658
-      Image: "../images/examine_subject_a003.png"
659
-    },{
660
-      ID: 45,
661
-      Type: "Shizi",
662
-      Name: "语文词语",
663
-      Name2: "上学期",
664
-      Finish: 0,
665
-      Total: 52,
666
-      Image: "../images/examine_subject_a003.png"
667
-    },{
668
-      ID: 27,
669
-      Type: "Shici",
670
-      Name: "语文古诗文",
671
-      Name2: "上学期",
672
-      Finish: 0,
673
-      Total: 1,
674
-      Image: "../images/examine_subject_a003.png"
675
-    }, {
676
-      ID: 4,
677
-      Type: "Shizi",
678
-      Name: "语文识字",
679
-      Name2: "下学期",
680
-      Finish: 0,
681
-      Total: 16,
682
-      Image: "../images/examine_subject_a004.png"
683
-    }, {
684
-      ID: 16,
685
-      Type: "Shizi",
686
-      Name: "语文写字",
687
-      Name2: "下学期",
688
-      Finish: 0,
689
-      Total: 58,
690
-      Image: "../images/examine_subject_a004.png"
691
-    }, {
692
-      ID: 46,
693
-      Type: "Shizi",
694
-      Name: "语文词语",
695
-      Name2: "下学期",
696
-      Finish: 0,
697
-      Total: 46,
698
-      Image: "../images/examine_subject_a004.png"
699
-    }, {
700
-      ID: 28,
701
-      Type: "Shici",
702
-      Name: "语文古诗文",
703
-      Name2: "下学期",
704
-      Finish: 0,
705
-      Total: 1,
706
-      Image: "../images/examine_subject_a004.png"
707
-    }]
708
-  },
709
-  {
710
-    Name: "三年级",
711
-    Name2: "语文三年级",
712
-    Type:"CHN",
713
-    Select: "",
714
-    List: [{
715
-      ID: 65,
716
-      Type: "Shizi",
717
-      Name: "语文识字",
718
-      Name2: "上学期",
719
-      Finish: 0,
720
-      Total: 62,
721
-      Image: "../images/examine_subject_a005.png"
722
-    }, {
723
-      ID: 17,
724
-      Type: "Shizi",
725
-      Name: "语文写字",
726
-      Name2: "上学期",
727
-      Finish: 0,
728
-      Total: 40,
729
-      Image: "../images/examine_subject_a005.png"
730
-    }, {
731
-      ID: 47,
732
-      Type: "Shizi",
733
-      Name: "语文词语",
734
-      Name2: "上学期",
735
-      Finish: 0,
736
-      Total: 34,
737
-      Image: "../images/examine_subject_a005.png"
738
-    }, {
739
-      ID: 29,
740
-      Type: "Shici",
741
-      Name: "语文古诗文",
742
-      Name2: "上学期",
743
-      Finish: 0,
744
-      Total: 1,
745
-      Image: "../images/examine_subject_a005.png"
746
-    }, {
747
-      ID: 6,
748
-      Type: "Shizi",
749
-      Name: "语文识字",
750
-      Name2: "下学期",
751
-      Finish: 0,
752
-      Total: 16,
753
-      Image: "../images/examine_subject_a006.png"
754
-    }, {
755
-      ID: 18,
756
-      Type: "Shizi",
757
-      Name: "语文写字",
758
-      Name2: "下学期",
759
-      Finish: 0,
760
-      Total: 42,
761
-      Image: "../images/examine_subject_a006.png"
762
-    }, {
763
-      ID: 48,
764
-      Type: "Shizi",
765
-      Name: "语文词语",
766
-      Name2: "下学期",
767
-      Finish: 0,
768
-      Total: 36,
769
-      Image: "../images/examine_subject_a006.png"
770
-    }, {
771
-      ID: 30,
772
-      Type: "Shici",
773
-      Name: "语文古诗文",
774
-      Name2: "下学期",
775
-      Finish: 0,
776
-      Total: 1,
777
-      Image: "../images/examine_subject_a006.png"
778
-    }]
779
-  },
780
-  {
781
-    Name: "四年级",
782
-    Name2: "语文四年级",
783
-    Type:"CHN",
784
-    Select: "",
785
-    List: [{
786
-      ID: 67,
787
-      Type: "Shizi",
788
-      Name: "语文识字",
789
-      Name2: "上学期",
790
-      Finish: 0,
791
-      Total: 62,
792
-      Image: "../images/examine_subject_a007.png"
793
-    },  {
794
-      ID: 19,
795
-      Type: "Shizi",
796
-      Name: "语文写字",
797
-      Name2: "上学期",
798
-      Finish: 0,
799
-      Total: 40,
800
-      Image: "../images/examine_subject_a007.png"
801
-    },  {
802
-      ID: 49,
803
-      Type: "Shizi",
804
-      Name: "语文词语",
805
-      Name2: "上学期",
806
-      Finish: 0,
807
-      Total: 32,
808
-      Image: "../images/examine_subject_a007.png"
809
-    },  {
810
-      ID: 31,
811
-      Type: "Shici",
812
-      Name: "语文古诗文",
813
-      Name2: "上学期",
814
-      Finish: 0,
815
-      Total: 1,
816
-      Image: "../images/examine_subject_a007.png"
817
-    }, {
818
-      ID: 8,
819
-      Type: "Shizi",
820
-      Name: "语文识字",
821
-      Name2: "下学期",
822
-      Finish: 0,
823
-      Total: 16,
824
-      Image: "../images/examine_subject_a008.png"
825
-    }, {
826
-      ID: 20,
827
-      Type: "Shizi",
828
-      Name: "语文写字",
829
-      Name2: "下学期",
830
-      Finish: 0,
831
-      Total: 40,
832
-      Image: "../images/examine_subject_a008.png"
833
-    }, {
834
-      ID: 50,
835
-      Type: "Shizi",
836
-      Name: "语文词语",
837
-      Name2: "下学期",
838
-      Finish: 0,
839
-      Total: 32,
840
-      Image: "../images/examine_subject_a008.png"
841
-    }, {
842
-      ID: 32,
843
-      Type: "Shici",
844
-      Name: "语文古诗文",
845
-      Name2: "下学期",
846
-      Finish: 0,
847
-      Total: 1,
848
-      Image: "../images/examine_subject_a008.png"
849
-    }]
850
-  },
851
-  {
852
-    Name: "五年级",
853
-    Name2: "语文五年级",
854
-    Type:"CHN",
855
-    Select: "",
856
-    List: [{
857
-      ID: 69,
858
-      Type: "Shizi",
859
-      Name: "语文识字",
860
-      Name2: "上学期",
861
-      Finish: 0,
862
-      Total: 54,
863
-      Image: "../images/examine_subject_a009.png"
864
-    }, {
865
-      ID: 21,
866
-      Type: "Shizi",
867
-      Name: "语文写字",
868
-      Name2: "上学期",
869
-      Finish: 0,
870
-      Total: 42,
871
-      Image: "../images/examine_subject_a009.png"
872
-    }, {
873
-      ID: 51,
874
-      Type: "Shizi",
875
-      Name: "语文词语",
876
-      Name2: "上学期",
877
-      Finish: 0,
878
-      Total: 32,
879
-      Image: "../images/examine_subject_a009.png"
880
-    }, {
881
-      ID: 33,
882
-      Type: "Shici",
883
-      Name: "语文古诗文",
884
-      Name2: "上学期",
885
-      Finish: 0,
886
-      Total: 1,
887
-      Image: "../images/examine_subject_a009.png"
888
-    }, {
889
-      ID: 10,
890
-      Type: "Shizi",
891
-      Name: "语文识字",
892
-      Name2: "下学期",
893
-      Finish: 0,
894
-      Total: 16,
895
-      Image: "../images/examine_subject_a010.png"
896
-    }, {
897
-      ID: 22,
898
-      Type: "Shizi",
899
-      Name: "语文写字",
900
-      Name2: "下学期",
901
-      Finish: 0,
902
-      Total: 32,
903
-      Image: "../images/examine_subject_a010.png"
904
-    }, {
905
-      ID: 52,
906
-      Type: "Shizi",
907
-      Name: "语文词语",
908
-      Name2: "下学期",
909
-      Finish: 0,
910
-      Total: 24,
911
-      Image: "../images/examine_subject_a010.png"
912
-    }, {
913
-      ID: 34,
914
-      Type: "Shici",
915
-      Name: "语文古诗文",
916
-      Name2: "下学期",
917
-      Finish: 0,
918
-      Total: 1,
919
-      Image: "../images/examine_subject_a010.png"
920
-    }
921
-  ]
922
-  },
923
-  {
924
-    Name: "六年级",
925
-    Name2: "语文六年级",
926
-    Type:"CHN",
927
-    Select: "",
928
-    List: [
929
-      {
930
-        ID: 23,
931
-        Type: "Shizi",
932
-        Name: "语文写字",
933
-        Name2: "上学期",
934
-        Finish: 0,
935
-        Total: 36,
936
-        Image: "../images/examine_subject_a011.png"
937
-      }, {
938
-        ID: 53,
939
-        Type: "Shizi",
940
-        Name: "语文词语",
941
-        Name2: "上学期",
942
-        Finish: 0,
943
-        Total: 28,
944
-        Image: "../images/examine_subject_a011.png"
945
-      }, {
946
-        ID: 35,
947
-        Type: "Shici",
948
-        Name: "语文古诗文",
949
-        Name2: "上学期",
950
-        Finish: 0,
951
-        Total: 1,
952
-        Image: "../images/examine_subject_a011.png"
953
-      }, {
954
-        ID: 24,
955
-        Type: "Shizi",
956
-        Name: "语文写字",
957
-        Name2: "下学期",
958
-        Finish: 0,
959
-        Total: 24,
960
-        Image: "../images/examine_subject_a012.png"
961
-      }, {
962
-        ID: 54,
963
-        Type: "Shizi",
964
-        Name: "语文词语",
965
-        Name2: "下学期",
966
-        Finish: 0,
967
-        Total: 14,
968
-        Image: "../images/examine_subject_a012.png"
969
-      }, {
970
-        ID: 36,
971
-        Type: "Shici",
972
-        Name: "语文古诗文",
973
-        Name2: "下学期",
974
-        Finish: 0,
975
-        Total: 1,
976
-        Image: "../images/examine_subject_a012.png"
977
-      }, 
978
-    ]
979
-  },
980
-  {
981
-    Name: "七年级",
982
-    Name2: "语文七年级",
983
-    Type:"CHN",
984
-    Select: "",
985
-    List: [
986
-      {
987
-        ID: 37,
988
-        Type: "Shici",
989
-        Name: "语文古诗文",
990
-        Name2: "上学期",
991
-        Finish: 0,
992
-        Total: 1,
993
-        Image: "../images/examine_subject_a013.png"
994
-      }, {
995
-        ID: 38,
996
-        Type: "Shici",
997
-        Name: "语文古诗文",
998
-        Name2: "下学期",
999
-        Finish: 0,
1000
-        Total: 1,
1001
-        Image: "../images/examine_subject_a014.png"
1002
-      }, 
1003
-    ]
1004
-  },
1005
-  {
1006
-    Name: "八年级",
1007
-    Name2: "语文八年级",
1008
-    Type:"CHN",
1009
-    Select: "",
1010
-    List: [
1011
-      {
1012
-        ID: 39,
1013
-        Type: "Shici",
1014
-        Name: "语文古诗文",
1015
-        Name2: "上学期",
1016
-        Finish: 0,
1017
-        Total: 1,
1018
-        Image: "../images/examine_subject_a015.png"
1019
-      }, {
1020
-        ID: 40,
1021
-        Type: "Shici",
1022
-        Name: "语文古诗文",
1023
-        Name2: "下学期",
1024
-        Finish: 0,
1025
-        Total: 1,
1026
-        Image: "../images/examine_subject_a016.png"
1027
-      }, 
1028
-    ]
1029
-  },
1030
-  {
1031
-    Name: "九年级",
1032
-    Name2: "语文九年级",
1033
-    Type:"CHN",
1034
-    Select: "",
1035
-    List: [
1036
-      {
1037
-        ID: 41,
1038
-        Type: "Shici",
1039
-        Name: "语文古诗文",
1040
-        Name2: "上学期",
1041
-        Finish: 0,
1042
-        Total: 1,
1043
-        Image: "../images/examine_subject_a017.png"
1044
-      }, {
1045
-        ID: 42,
1046
-        Type: "Shici",
1047
-        Name: "语文古诗文",
1048
-        Name2: "下学期",
1049
-        Finish: 0,
1050
-        Total: 1,
1051
-        Image: "../images/examine_subject_a018.png"
1052
-      }, 
1053
-    ]
1054
-  },
1055
-  {
1056
-    Name: "英语基础",
1057
-    Name2: "英语基础",
1058
-    Type:"ENG",
1059
-    Select: "",
1060
-    List: [
1061
-      {
1062
-        ID: 100,
1063
-        Type: "Word",
1064
-        Name: "英文字母",
1065
-        Name2: "A~Z,a~z",
1066
-        Finish: 0,
1067
-        Total: 1,
1068
-        Image: "../images/examine_subject_b005.png"
1069
-      },
1070
-      {
1071
-        ID: 101,
1072
-        Type: "Word",
1073
-        Name: "国际音标",
1074
-        Name2: "元音20、辅音28",
1075
-        Finish: 0,
1076
-        Total: 4,
1077
-        Image: "../images/examine_subject_b005.png"
1078
-      },
1079
-    ]
1080
-  },
1081
-  {
1082
-    Name: "英语常用单词",
1083
-    Name2: "英语常用单词",
1084
-    Type:"ENG",
1085
-    Select: "",
1086
-    List: [
1087
-      {
1088
-        ID: 111,
1089
-        Type: "Word",
1090
-        Name: "常用单词1",
1091
-        Name2: "词汇1~220",
1092
-        Finish: 0,
1093
-        Total: 44,
1094
-        Image: "../images/examine_subject_b001.png"
1095
-      },
1096
-      {
1097
-        ID: 112,
1098
-        Type: "Word",
1099
-        Name: "常用单词2",
1100
-        Name2: "词汇221~500",
1101
-        Finish: 0,
1102
-        Total: 56,
1103
-        Image: "../images/examine_subject_b002.png"
1104
-      },
1105
-      {
1106
-        ID: 113,
1107
-        Type: "Word",
1108
-        Name: "常用单词3",
1109
-        Name2: "词汇500~1000",
1110
-        Finish: 0,
1111
-        Total: 100,
1112
-        Image: "../images/examine_subject_b003.png"
1113
-      },
1114
-      {
1115
-        ID: 114,
1116
-        Type: "Word",
1117
-        Name: "常用单词4",
1118
-        Name2: "词汇1001~1500",
1119
-        Finish: 0,
1120
-        Total: 100,
1121
-        Image: "../images/examine_subject_b004.png"
1122
-      },
1123
-      {
1124
-        ID: 115,
1125
-        Type: "Word",
1126
-        Name: "常用单词5",
1127
-        Name2: "词汇1501~2000",
1128
-        Finish: 0,
1129
-        Total: 100,
1130
-        Image: "../images/examine_subject_b005.png"
1131
-      },
1132
-    ]
1133
-  },{
1134
-    Name: "新概念英语单词",
1135
-    Name2: "新概念英语单词",
1136
-    Type:"ENG",
1137
-    Select: "",
1138
-    List: [
1139
-      {
1140
-        ID: 121,
1141
-        Type: "Word",
1142
-        Name: "第一册",
1143
-        Name2: "词汇906",
1144
-        Finish: 0,
1145
-        Total: 230,
1146
-        Image: "../images/examine_subject_c001.png"
1147
-      },
1148
-      {
1149
-        ID: 122,
1150
-        Type: "Word",
1151
-        Name: "第二册",
1152
-        Name2: "词汇861",
1153
-        Finish: 0,
1154
-        Total: 192,
1155
-        Image: "../images/examine_subject_c002.png"
1156
-      },
1157
-      {
1158
-        ID: 123,
1159
-        Type: "Word",
1160
-        Name: "第三册",
1161
-        Name2: "词汇1054",
1162
-        Finish: 0,
1163
-        Total: 120,
1164
-        Image: "../images/examine_subject_c003.png"
1165
-      },
1166
-      {
1167
-        ID: 124,
1168
-        Type: "Word",
1169
-        Name: "第四册",
1170
-        Name2: "词汇777",
1171
-        Finish: 0,
1172
-        Total: 92,
1173
-        Image: "../images/examine_subject_c004.png"
1174
-      }
1175
-    ]
1176
-  },{
1177
-    Name: "剑桥英语单词",
1178
-    Name2: "剑桥英语单词",
1179
-    Type:"ENG",
1180
-    Select: "",
1181
-    List: [
1182
-      {
1183
-        ID: 133,
1184
-        Type: "Word",
1185
-        Name: "KET分类单词",
1186
-        Name2: "词汇1144",
1187
-        Finish: 0,
1188
-        Total: 48,
1189
-        Image: "../images/examine_subject_c001.png"
1190
-      },{
1191
-        ID: 134,
1192
-        Type: "Word",
1193
-        Name: "PET分类单词",
1194
-        Name2: "词汇1907",
1195
-        Finish: 0,
1196
-        Total: 46,
1197
-        Image: "../images/examine_subject_c002.png"
1198
-      }
1199
-    ]
1200
-  }],
1201 567
   arrPinyin: [
1202 568
     ['a1', 'ā', ['阿']],
1203 569
     ['a2', 'á', ['啊']],

+ 3 - 0
utils/cryptojs.js

@@ -1,3 +1,6 @@
1
+import BlockModes from '../utils/lib/BlockModes';
2
+import AES from '../utils/lib/AES';
3
+
1 4
 var Crypto = exports.Crypto = require('./lib/Crypto').Crypto;
2 5
 
3 6
 ['BlockModes', 'AES'].forEach(function (path) {

+ 261 - 270
utils/main.js

@@ -255,18 +255,18 @@ function EncryptUrl(str) {
255 255
     else
256 256
       str = "";
257 257
   }
258
-  
258
+
259 259
   if (str) {
260 260
     str = str.replace(/baidu.com/g, "#####1#####");
261 261
     str = str.replace(/iciba.com/g, "#####2#####");
262 262
     str = str.replace(/https:\/\/pinyin.kylx365.com\/sounds/g, "#####3#####");
263 263
     str = str.replace(/https:\/\/miaguo-1253256735.file.myqcloud.com/g, "#####4#####");
264
-    
264
+
265 265
     if (str.substr(0, 1) == "\n")
266 266
       str = str.substr(1);
267 267
   }
268 268
 
269
-  
269
+
270 270
   return str;
271 271
 }
272 272
 
@@ -342,10 +342,10 @@ function changeStringToView(field) {
342 342
 
343 343
               obj.ContentServer = obj.ContentServer.substring(obj.ContentServer.indexOf("]") + 1);
344 344
               obj.Content = getTempImage(obj.ContentServer);
345
-              if (obj.Content.lastIndexOf("fm=58")>=0)
346
-                obj.IsShowBishun=true;
347
-              else if (obj.Content.indexOf("hanyu-word-gif")>0)
348
-                obj.IsShowKaiti=true;
345
+              if (obj.Content.lastIndexOf("fm=58") >= 0)
346
+                obj.IsShowBishun = true;
347
+              else if (obj.Content.indexOf("hanyu-word-gif") > 0)
348
+                obj.IsShowKaiti = true;
349 349
               result.Images.push(obj.Content);
350 350
             }
351 351
             arrResult.push(obj);
@@ -629,7 +629,7 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
629 629
       List: arr,
630 630
     }, function (data) {
631 631
       if (isShowLoading) {
632
-        wx.hideLoading();        
632
+        wx.hideLoading();
633 633
         clearTimeout(dataSendTimeout);
634 634
       }
635 635
       if (data) {
@@ -648,7 +648,7 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
648 648
   }
649 649
 }
650 650
 
651
-function updateSearchList(obj,callback) {
651
+function updateSearchList(obj, callback) {
652 652
   var arr = wx.getStorageSync("SearchWord3");
653 653
   if (!arr)
654 654
     arr = [];
@@ -668,13 +668,13 @@ function updateSearchList(obj,callback) {
668 668
           break;
669 669
         }
670 670
       } else {
671
-        var b=true;
671
+        var b = true;
672 672
         if (obj.Type && arr[i].Type && arr[i].Type != obj.Type)
673
-          b=false;
673
+          b = false;
674 674
         if (obj.Author && arr[i].Author && arr[i].Author != obj.Author)
675
-          b=false;
676
-        
677
-        if (b){
675
+          b = false;
676
+
677
+        if (b) {
678 678
           obj.Value = arr[i].Value;
679 679
           arr.splice(i, 1);
680 680
           break;
@@ -694,7 +694,7 @@ function updateSearchList(obj,callback) {
694 694
   app.globalData.SearchItem = obj.Value;
695 695
   if (obj.TypeName)
696 696
     app.globalData.SearchItem.TypeName = obj.TypeName;
697
-  
697
+
698 698
   if (callback)
699 699
     callback();
700 700
 }
@@ -788,16 +788,16 @@ function getMemoryLevel(index, number, time) {
788 788
 }
789 789
 //得到要检验的汉字列表
790 790
 function GetHanziUnitWords(unitsID, testType, callback) {
791
-  var url='GetHanziUnitWords?UnitID=' + unitsID;
791
+  var url = 'GetHanziUnitWords?UnitID=' + unitsID;
792 792
   if (testType)
793
-    url+="&TestType="+testType;
793
+    url += "&TestType=" + testType;
794 794
   getData(url, function (data) {
795 795
     if (data) {
796 796
       var TaskList = [];
797 797
       var words = data;
798 798
 
799 799
       //若是单字
800
-      if (words[0].Pinyin){
800
+      if (words[0].Pinyin) {
801 801
         for (var k = 0; k < words.length; k++) {
802 802
           var taskInfo = {
803 803
             FontSize: 144,
@@ -817,22 +817,22 @@ function GetHanziUnitWords(unitsID, testType, callback) {
817 817
             ]
818 818
           };
819 819
           taskInfo.Word = words[k].Name;
820
-  
820
+
821 821
           var pinyinNormal = "(" + getPinyinNormal(words[k].Pinyin) + ")";
822 822
           var combineWords = common.ReplaceAllString(words[k].CombineWords, words[k].Name, words[k].Name + pinyinNormal);
823
-  
823
+
824 824
           taskInfo.ReadString = words[k].Name + pinyinNormal + "," + combineWords + "的" + words[k].Name + pinyinNormal;
825
-  
825
+
826 826
           if (testType == "read") {
827 827
             taskInfo.Content[0].Content = ["怎么念"];
828 828
             var question = words[k].CombineWords;
829 829
             question = common.ReplaceAllString(question, words[k].Name, "(" + words[k].Name + ")");
830 830
             taskInfo.Content[1].Content = question;
831
-  
832
-  
831
+
832
+
833 833
             var answer = "[读 src='" + taskInfo.ReadString + "']" + words[k].Pinyin + "[/读]";
834 834
             taskInfo.Content[2].Content = answer;
835
-  
835
+
836 836
             if (words[k].CombineWords.length > 6) {
837 837
               taskInfo.FontSize = 108;
838 838
               if (words[k].CombineWords.length > 10) {
@@ -841,16 +841,16 @@ function GetHanziUnitWords(unitsID, testType, callback) {
841 841
             }
842 842
           } else if (testType == "write") {
843 843
             taskInfo.Content[0].Content = ["怎么写"];
844
-  
844
+
845 845
             var question = words[k].CombineWords;
846 846
             //var question2 = common.ReplaceAllString(question, words[k].Name, words[k].Pinyin);
847
-            var question2= words[k].CombineWords2;
847
+            var question2 = words[k].CombineWords2;
848 848
             question = "[读 src='" + taskInfo.ReadString + "']" + question2 + "[/读]"
849 849
             taskInfo.Content[1].Content = question;
850 850
             var answer = words[k].Name;
851 851
             answer += "[图 w='650' h='650']" + words[k].BiShunUrl + "[/图]";
852 852
             taskInfo.Content[2].Content = answer;
853
-  
853
+
854 854
             if (question2.length > 6) {
855 855
               taskInfo.FontSize = 108;
856 856
               if (question2.length > 10) {
@@ -864,16 +864,15 @@ function GetHanziUnitWords(unitsID, testType, callback) {
864 864
           taskInfo.ContentNew = changeStringToView(taskInfo.Content);
865 865
           TaskList.push(taskInfo);
866 866
         }
867
-  
868
-      }
869
-      else{ //若是词语
867
+
868
+      } else { //若是词语
870 869
         for (var k = 0; k < words.length; k++) {
871
-          var taskInfo = words[k];          
870
+          var taskInfo = words[k];
872 871
           taskInfo.ContentNew = changeStringToView(taskInfo.Content);
873 872
           TaskList.push(taskInfo);
874 873
         }
875 874
       }
876
-      
875
+
877 876
       callback(TaskList);
878 877
     } else {
879 878
       callback([]);
@@ -895,18 +894,17 @@ function GetTestReportInfo(reportid, callback) {
895 894
         var userTestReportInfo = UserTestReport[n];
896 895
         var bookid = userTestReportInfo.BookID;
897 896
 
898
-        
897
+
899 898
         var arrEnglist = [];
900
-        if (bookid<110){
901
-          if (name1[1]=="英文字母"){
902
-            bookid=100;
903
-            wordStr="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
899
+        if (bookid < 110) {
900
+          if (name1[1] == "英文字母") {
901
+            bookid = 100;
902
+            wordStr = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
904 903
           }
905
-        }
906
-        else if (bookid>110 && bookid<120){
904
+        } else if (bookid > 110 && bookid < 120) {
907 905
           arrEnglist = wx.getStorageSync("EnglishAll");
908 906
           arrEnglist = JSON.parse(arrEnglist);
909
-          
907
+
910 908
           for (var i = 0; i < arrEnglist.length; i++) {
911 909
             if (arrEnglist[i].Name == name1[1]) {
912 910
               for (var j = 0; j < arrEnglist[i].Units.length; j++) {
@@ -917,7 +915,7 @@ function GetTestReportInfo(reportid, callback) {
917 915
               }
918 916
             }
919 917
           }
920
-          
918
+
921 919
         }
922 920
 
923 921
         var tempRight = "," + userTestReportInfo.TestRightStr + ",";
@@ -925,18 +923,16 @@ function GetTestReportInfo(reportid, callback) {
925 923
         var tempSkip = "," + userTestReportInfo.TestSkipStr + ",";
926 924
         var tempExist = "," + userTestReportInfo.TestExistStr + ",";
927 925
 
928
-        var unitsid="";
929
-        if (bookid>100 && bookid<110 && UserTestReport[n].Name[2]){
930
-          unitsid=Number(UserTestReport[n].Name[2]);
931
-        }
932
-        else if (bookid>120 && bookid<=124){
933
-          unitsid=Number(name2.replace("Lesson ",""));
934
-        }
935
-        else if (bookid>130 && bookid<=140 && UserTestReport[n].Name[2]){
936
-          unitsid=Number(UserTestReport[n].Name[2]);
926
+        var unitsid = "";
927
+        if (bookid > 100 && bookid < 110 && UserTestReport[n].Name[2]) {
928
+          unitsid = Number(UserTestReport[n].Name[2]);
929
+        } else if (bookid > 120 && bookid <= 124) {
930
+          unitsid = Number(name2.replace("Lesson ", ""));
931
+        } else if (bookid > 130 && bookid <= 140 && UserTestReport[n].Name[2]) {
932
+          unitsid = Number(UserTestReport[n].Name[2]);
937 933
         }
938 934
 
939
-        getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID+'&BookID='+bookid+'&LessonID='+unitsid+ '&Words=' + wordStr+"&TestType="+userTestReportInfo.TestType, function (data) {
935
+        getData('GetTestEnglishWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&LessonID=' + unitsid + '&Words=' + wordStr + "&TestType=" + userTestReportInfo.TestType, function (data) {
940 936
           if (data) {
941 937
             var result = {};
942 938
             result.ID = userTestReportInfo.ID;
@@ -950,13 +946,12 @@ function GetTestReportInfo(reportid, callback) {
950 946
             for (var k = 0; k < words.length; k++) {
951 947
               var taskInfo = words[k];
952 948
 
953
-              if (userTestReportInfo.TestType=="read"){
954
-                taskInfo.TagWidth=212;
955
-                taskInfo.FontSize=108;
956
-              }
957
-              else{
958
-                taskInfo.TagWidth=186;
959
-                taskInfo.FontSize=36;
949
+              if (userTestReportInfo.TestType == "read") {
950
+                taskInfo.TagWidth = 212;
951
+                taskInfo.FontSize = 108;
952
+              } else {
953
+                taskInfo.TagWidth = 186;
954
+                taskInfo.FontSize = 36;
960 955
               }
961 956
               taskInfo.ContentNew = changeStringToView(taskInfo.Content);
962 957
               if (tempRight.indexOf("," + taskInfo.Word + ",") >= 0)
@@ -990,8 +985,7 @@ function GetTestReportInfo(reportid, callback) {
990 985
             callback({});
991 986
           }
992 987
         });
993
-      } 
994
-      else if (name1[1].indexOf("拼音") >= 0) {
988
+      } else if (name1[1].indexOf("拼音") >= 0) {
995 989
         //console.log("拼音");
996 990
         var userTestReportInfo = UserTestReport[n];
997 991
         var bookid = userTestReportInfo.BookID;
@@ -1001,37 +995,37 @@ function GetTestReportInfo(reportid, callback) {
1001 995
         var tempSkip = "," + userTestReportInfo.TestSkipStr + ",";
1002 996
         var tempExist = "," + userTestReportInfo.TestExistStr + ",";
1003 997
 
1004
-        var unitsid="";
1005
-        var name2=userTestReportInfo.Name[1];
1006
-        if (bookid==43){
1007
-          switch(name2){
998
+        var unitsid = "";
999
+        var name2 = userTestReportInfo.Name[1];
1000
+        if (bookid == 43) {
1001
+          switch (name2) {
1008 1002
             case "声母1":
1009
-              unitsid=431;
1003
+              unitsid = 431;
1010 1004
               break;
1011 1005
             case "声母2":
1012
-              unitsid=432;
1006
+              unitsid = 432;
1013 1007
               break;
1014 1008
             case "声母3":
1015
-              unitsid=433;
1009
+              unitsid = 433;
1016 1010
               break;
1017 1011
             case "韵母1":
1018
-              unitsid=434;
1012
+              unitsid = 434;
1019 1013
               break;
1020 1014
             case "韵母2":
1021
-              unitsid=435;
1015
+              unitsid = 435;
1022 1016
               break;
1023 1017
             case "韵母3":
1024
-              unitsid=436;
1018
+              unitsid = 436;
1025 1019
               break;
1026 1020
             case "整体认读1":
1027
-              unitsid=437;
1021
+              unitsid = 437;
1028 1022
               break;
1029 1023
             case "整体认读2":
1030
-              unitsid=438;
1024
+              unitsid = 438;
1031 1025
               break;
1032 1026
           }
1033
-        }        
1034
-        getData('GetPinyinUnitWords?UserID='+app.globalData.userInfo.UserID+'&BookID='+bookid+'&UnitID='+unitsid+'&Word='+name2, function (data) {
1027
+        }
1028
+        getData('GetPinyinUnitWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&UnitID=' + unitsid + '&Word=' + name2, function (data) {
1035 1029
           if (data) {
1036 1030
             var result = {};
1037 1031
             result.ID = userTestReportInfo.ID;
@@ -1045,9 +1039,9 @@ function GetTestReportInfo(reportid, callback) {
1045 1039
             for (var k = 0; k < words.length; k++) {
1046 1040
               var taskInfo = words[k];
1047 1041
 
1048
-              taskInfo.TagWidth=230;
1049
-              taskInfo.FontSize=108;
1050
-              
1042
+              taskInfo.TagWidth = 230;
1043
+              taskInfo.FontSize = 108;
1044
+
1051 1045
               taskInfo.ContentNew = changeStringToView(taskInfo.Content);
1052 1046
               if (tempRight.indexOf("," + taskInfo.Word + ",") >= 0)
1053 1047
                 taskInfo.Result = 1;
@@ -1080,8 +1074,7 @@ function GetTestReportInfo(reportid, callback) {
1080 1074
             callback({});
1081 1075
           }
1082 1076
         });
1083
-      } 
1084
-      else if (name2=="古诗文") {
1077
+      } else if (name2 == "古诗文") {
1085 1078
         //todo
1086 1079
         //console.log("古诗文");
1087 1080
         var userTestReportInfo = UserTestReport[n];
@@ -1089,9 +1082,9 @@ function GetTestReportInfo(reportid, callback) {
1089 1082
         var tempWrong = "," + userTestReportInfo.TestWrongStr + ",";
1090 1083
         var tempSkip = "," + userTestReportInfo.TestSkipStr + ",";
1091 1084
         var tempExist = "," + userTestReportInfo.TestExistStr + ",";
1092
-        
1085
+
1093 1086
         getData('GetTestAncientPoetryList?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + userTestReportInfo.BookID, function (data) {
1094
-          
1087
+
1095 1088
           if (data) {
1096 1089
             var result = {};
1097 1090
             result.ID = userTestReportInfo.ID;
@@ -1102,12 +1095,12 @@ function GetTestReportInfo(reportid, callback) {
1102 1095
 
1103 1096
             var TaskList = [];
1104 1097
             for (var k = 0; k < data.length; k++) {
1105
-              var taskInfo = data[k];              
1106
-              taskInfo.TagWidth=336;
1107
-              if (taskInfo.Word.length>9)
1108
-                taskInfo.FontSize=48;
1098
+              var taskInfo = data[k];
1099
+              taskInfo.TagWidth = 336;
1100
+              if (taskInfo.Word.length > 9)
1101
+                taskInfo.FontSize = 48;
1109 1102
               else
1110
-                taskInfo.FontSize=64;
1103
+                taskInfo.FontSize = 64;
1111 1104
 
1112 1105
               taskInfo.ContentNew = changeStringToView(taskInfo.Content);
1113 1106
               if (tempRight.indexOf("," + taskInfo.Word + ",") >= 0)
@@ -1141,12 +1134,11 @@ function GetTestReportInfo(reportid, callback) {
1141 1134
             callback({});
1142 1135
           }
1143 1136
         });
1144
-        
1145
-      } 
1146
-      else {
1137
+
1138
+      } else {
1147 1139
         var obj = UserTestReport[n];
1148
-                
1149
-        if (obj.BookID>=43 && obj.BookID<=60)
1140
+
1141
+        if (obj.BookID >= 43 && obj.BookID <= 60)
1150 1142
           name1 = name1[0] + "生词" + name1[2].substr(0, 1);
1151 1143
         else
1152 1144
           name1 = name1[0] + name1[1].substr(2, 2) + "能力" + name1[2].substr(0, 1);
@@ -1172,7 +1164,7 @@ function GetTestReportInfo(reportid, callback) {
1172 1164
                     }
1173 1165
                     var result = {};
1174 1166
                     result.ID = reportid;
1175
-                    result.BookID=obj.BookID;
1167
+                    result.BookID = obj.BookID;
1176 1168
                     result.TestType = obj.TestType;
1177 1169
                     result.Name = obj.Name.join("#");
1178 1170
                     result.IsFinished = obj.IsFinished;
@@ -1227,7 +1219,7 @@ function getHanzi(callback) {
1227 1219
     title: '请稍候',
1228 1220
     mask: true,
1229 1221
   });
1230
-  
1222
+
1231 1223
   var time = wx.getStorageSync("HanziUpdateTime");
1232 1224
   getData('GetHanziAll3?UpdateTime=' + time, function (data) {
1233 1225
     wx.hideLoading();
@@ -1251,7 +1243,7 @@ function getEnglish(callback) {
1251 1243
     title: '请稍候',
1252 1244
     mask: true,
1253 1245
   });
1254
-  
1246
+
1255 1247
   var time = wx.getStorageSync("HanziUpdateTime");
1256 1248
   getData('GetEnglishAll3?UpdateTime=' + time, function (data) {
1257 1249
     wx.hideLoading();
@@ -1265,10 +1257,9 @@ function getEnglish(callback) {
1265 1257
       wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1266 1258
       wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1267 1259
       wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1268
-     
1260
+
1269 1261
       callback(true);
1270
-    }
1271
-    else{
1262
+    } else {
1272 1263
       callback(false);
1273 1264
     }
1274 1265
   });
@@ -1290,7 +1281,7 @@ function UploadUserConfig(callback) {
1290 1281
   param1.ColorIndexArr = wx.getStorageSync("ColorIndexArr").join(",");
1291 1282
   param1.IsFolderPractice = wx.getStorageSync("IsFolderPractice");
1292 1283
   param1.IsAutoSound = wx.getStorageSync("IsAutoSound");
1293
-  
1284
+
1294 1285
   var symboMain = wx.getStorageSync("SymbolMain");
1295 1286
   var symbol1 = [];
1296 1287
   for (var i = 0; i < symboMain.length; i++) {
@@ -1299,10 +1290,10 @@ function UploadUserConfig(callback) {
1299 1290
   symbol1 = JSON.stringify(symbol1);
1300 1291
   param1.SymbolList = symbol1;
1301 1292
 
1302
-  var folderOrder=wx.getStorageSync("FolderOrderStr");
1293
+  var folderOrder = wx.getStorageSync("FolderOrderStr");
1303 1294
   if (folderOrder)
1304 1295
     param1.FolderOrder = folderOrder;
1305
-  
1296
+
1306 1297
   //console.log(param1);
1307 1298
   that.postData('UploadUserConfig?Type=update&UserID=' + app.globalData.userInfo.UserID, param1, function (data) {
1308 1299
     if (callback) {
@@ -1341,7 +1332,7 @@ function getUserConfig() {
1341 1332
     wx.setStorageSync("FolderOrderStr", data.FolderOrder);
1342 1333
     wx.setStorageSync("IsFolderPractice", data.IsFolderPractice);
1343 1334
     wx.setStorageSync("IsAutoSound", data.IsAutoSound);
1344
-    
1335
+
1345 1336
     var symbol1 = [];
1346 1337
     if (data.SymbolList) {
1347 1338
       for (var i = 0; i < data.SymbolList.length; i++) {
@@ -1353,11 +1344,11 @@ function getUserConfig() {
1353 1344
     } else {
1354 1345
       symbol1 = app.globalData.SymbolMain;
1355 1346
     }
1356
-    if (symbol1.length>0){
1347
+    if (symbol1.length > 0) {
1357 1348
       wx.setStorageSync("SymboMain", symbol1);
1358 1349
       app.globalData.SymbolMain = symbol1;
1359 1350
     }
1360
-    
1351
+
1361 1352
   });
1362 1353
 }
1363 1354
 
@@ -1365,60 +1356,62 @@ function replaceCardInfoString(str) {
1365 1356
   var that = this;
1366 1357
   //str = str.replace(/\[图]/g, "");
1367 1358
   //str = str.replace(/\[\/图\]/g, "");
1368
-  
1369
-  var str2 = "";
1370
-  if (str.indexOf("[读 src=") >= 0) {
1371
-    str2 = str.substr(str.indexOf("[读 src="));
1372
-    str2 = str2.substring(0, str2.indexOf("]") + 1);
1373
-  }
1374
-  str = str.replace(str2, "");
1359
+  console.log(str);
1360
+  if (str && str!=null) {
1361
+    var str2 = "";
1362
+    if (str.indexOf("[读 src=") >= 0) {
1363
+      str2 = str.substr(str.indexOf("[读 src="));
1364
+      str2 = str2.substring(0, str2.indexOf("]") + 1);
1365
+    }
1366
+    str = str.replace(str2, "");
1375 1367
 
1376
-  if (str.indexOf("[/读") >= 0) {
1377
-    str2 = str.substr(str.indexOf("[/读"));
1378
-    str2 = str2.substring(0, 4);
1379
-  }
1380
-  str = str.replace(str2, "");
1381
-  
1368
+    if (str.indexOf("[/读") >= 0) {
1369
+      str2 = str.substr(str.indexOf("[/读"));
1370
+      str2 = str2.substring(0, 4);
1371
+    }
1372
+    str = str.replace(str2, "");
1382 1373
 
1383
-  if (str.indexOf("[读 src=") >= 0) {
1384
-    str2 = str.substr(str.indexOf("[读 src"));
1385
-    str2 = str2.substring(0, str2.indexOf("/读]") + 3);
1386
-  }
1387
-  str = str.replace(str2, "");
1388 1374
 
1389
-  if (str.indexOf("[/读") >= 0) {
1390
-    str2 = str.substr(str.indexOf("[/读"));
1391
-    str2 = str2.substring(0, 4);
1392
-  }
1393
-  str = str.replace(str2, "");
1394
-  
1395
-  str = str.replace(/\[读]/g, "");
1396
-  str = str.replace(/\[\/读\]/g, "");
1397
-
1398
-  var str3 = "";
1399
-  if (str.indexOf("[图") >= 0) {
1400
-    str3 = str.substr(str.indexOf("[图"));
1401
-    str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1402
-  }
1403
-  str = str.replace(str3, "");
1404
-  if (str.indexOf("[图") >= 0) {
1405
-    str3 = str.substr(str.indexOf("[图"));
1406
-    str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1407
-  }
1408
-  str = str.replace(str3, "");
1375
+    if (str.indexOf("[读 src=") >= 0) {
1376
+      str2 = str.substr(str.indexOf("[读 src"));
1377
+      str2 = str2.substring(0, str2.indexOf("/读]") + 3);
1378
+    }
1379
+    str = str.replace(str2, "");
1380
+
1381
+    if (str.indexOf("[/读") >= 0) {
1382
+      str2 = str.substr(str.indexOf("[/读"));
1383
+      str2 = str2.substring(0, 4);
1384
+    }
1385
+    str = str.replace(str2, "");
1409 1386
 
1410
-  str = str.replace(/\[线]/g, "");
1411
-  str = str.replace(/\[\/线\]/g, "");
1412
-  str = that.encryptUrl(str);
1387
+    str = str.replace(/\[读]/g, "");
1388
+    str = str.replace(/\[\/读\]/g, "");
1389
+
1390
+    var str3 = "";
1391
+    if (str.indexOf("[图") >= 0) {
1392
+      str3 = str.substr(str.indexOf("[图"));
1393
+      str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1394
+    }
1395
+    str = str.replace(str3, "");
1396
+    if (str.indexOf("[图") >= 0) {
1397
+      str3 = str.substr(str.indexOf("[图"));
1398
+      str3 = str3.substring(0, str3.indexOf("/图]") + 3);
1399
+    }
1400
+    str = str.replace(str3, "");
1401
+
1402
+    str = str.replace(/\[线]/g, "");
1403
+    str = str.replace(/\[\/线\]/g, "");
1404
+    str = that.encryptUrl(str);
1405
+  }
1413 1406
   return str;
1414 1407
 }
1415 1408
 
1416
-function searchInfomation(search,searchtype,author,shiciurl,callback){
1417
-  var WORD_LENGTH=18;
1409
+function searchInfomation(search, searchtype, author, shiciurl, callback) {
1410
+  var WORD_LENGTH = 18;
1418 1411
   wx.showLoading({
1419 1412
     title: '查询中',
1420 1413
   });
1421
-  var timeout=setTimeout(function () {
1414
+  var timeout = setTimeout(function () {
1422 1415
     wx.hideLoading();
1423 1416
   }, 5000);
1424 1417
 
@@ -1431,11 +1424,11 @@ function searchInfomation(search,searchtype,author,shiciurl,callback){
1431 1424
   if (shiciurl)
1432 1425
     url += "&ShiciUrl=" + shiciurl;
1433 1426
 
1434
-  
1427
+
1435 1428
   getData(url, function (data) {
1436 1429
     wx.hideLoading();
1437 1430
     clearTimeout(timeout);
1438
-    
1431
+
1439 1432
     if (data) {
1440 1433
       //console.log(data);
1441 1434
 
@@ -1475,7 +1468,7 @@ function searchInfomation(search,searchtype,author,shiciurl,callback){
1475 1468
           obj.TypeName = "诗词";
1476 1469
           obj.Content = data.CHN.PeomContent.join("").substr(0, WORD_LENGTH);
1477 1470
           obj.ShiciUrl = shiciurl;
1478
-          obj.TypeName="S";
1471
+          obj.TypeName = "S";
1479 1472
         } else if (data.CHN) {
1480 1473
           obj.Type = "zici";
1481 1474
           if (data.CHN.PinYin && data.CHN.PinYin[0] && data.CHN.PinYin[0].pinyin)
@@ -1489,9 +1482,9 @@ function searchInfomation(search,searchtype,author,shiciurl,callback){
1489 1482
           }
1490 1483
 
1491 1484
           if (obj.Key.length == 1)
1492
-              obj.TypeName = "Z";
1493
-            else
1494
-              obj.TypeName = "C";
1485
+            obj.TypeName = "Z";
1486
+          else
1487
+            obj.TypeName = "C";
1495 1488
         }
1496 1489
         if (data.ENG && !data.CHN) {
1497 1490
           obj.Type = "eng";
@@ -1507,11 +1500,10 @@ function searchInfomation(search,searchtype,author,shiciurl,callback){
1507 1500
         }
1508 1501
         app.globalData.TempSearchBackNumber = 2;
1509 1502
         //app.globalData.CardList=[];
1510
-        app.globalData.CardList2=[];
1511
-        
1512
-        callback([],obj);
1513
-      }
1514
-      else{
1503
+        app.globalData.CardList2 = [];
1504
+
1505
+        callback([], obj);
1506
+      } else {
1515 1507
         callback([]);
1516 1508
 
1517 1509
       }
@@ -1521,13 +1513,13 @@ function searchInfomation(search,searchtype,author,shiciurl,callback){
1521 1513
   });
1522 1514
 }
1523 1515
 
1524
-function downloadBishunKaitiImage(url,serverUrl,dataType,Fields,callback){
1525
-  var param={};
1526
-  param.Url=url;
1527
-  param.DataType=dataType;
1516
+function downloadBishunKaitiImage(url, serverUrl, dataType, Fields, callback) {
1517
+  var param = {};
1518
+  param.Url = url;
1519
+  param.DataType = dataType;
1528 1520
 
1529
-  if (param.Url==serverUrl){
1530
-    postData("GetBiShunByKaitiUrl",param, function (data) {
1521
+  if (param.Url == serverUrl) {
1522
+    postData("GetBiShunByKaitiUrl", param, function (data) {
1531 1523
       if (data) {
1532 1524
         wx.downloadFile({
1533 1525
           url: data, // 仅为示例,并非真实的资源
@@ -1536,36 +1528,34 @@ function downloadBishunKaitiImage(url,serverUrl,dataType,Fields,callback){
1536 1528
             if (res.statusCode === 200) {
1537 1529
               //console.log("serverUrl2:" + serverUrl);
1538 1530
               console.log(res.tempFilePath);
1539
-              callback(change(Fields,res.tempFilePath,param));
1531
+              callback(change(Fields, res.tempFilePath, param));
1540 1532
             }
1541 1533
           },
1542
-          complete(){
1543
-            
1534
+          complete() {
1535
+
1544 1536
           }
1545 1537
         });
1546 1538
       }
1547 1539
     });
1548
-  }
1549
-  else{
1550
-    callback(change(Fields,serverUrl,param));
1540
+  } else {
1541
+    callback(change(Fields, serverUrl, param));
1551 1542
   }
1552 1543
 
1553
-  function change(Fields,filepath,param){
1554
-    var iStart=0;
1555
-    if (Fields.length==4)
1556
-    iStart=1
1544
+  function change(Fields, filepath, param) {
1545
+    var iStart = 0;
1546
+    if (Fields.length == 4)
1547
+      iStart = 1
1557 1548
     for (var i = iStart; i < Fields.length; i++) {
1558 1549
       for (var j = 0; j < Fields[i].length; j++) {
1559 1550
         if (Fields[i][j].Type == "image") {
1560
-          if (Fields[i][j].Content==param.Url){
1551
+          if (Fields[i][j].Content == param.Url) {
1561 1552
             Fields[i][j].Content = filepath;
1562
-            if (param.DataType=="bishun"){
1563
-              Fields[i][j].IsShowKaiti=true;
1564
-              Fields[i][j].IsShowBishun=false;
1565
-            }
1566
-            else if (param.DataType=="kaiti"){
1567
-              Fields[i][j].IsShowKaiti=false;
1568
-              Fields[i][j].IsShowBishun=true;
1553
+            if (param.DataType == "bishun") {
1554
+              Fields[i][j].IsShowKaiti = true;
1555
+              Fields[i][j].IsShowBishun = false;
1556
+            } else if (param.DataType == "kaiti") {
1557
+              Fields[i][j].IsShowKaiti = false;
1558
+              Fields[i][j].IsShowBishun = true;
1569 1559
             }
1570 1560
           }
1571 1561
         }
@@ -1576,108 +1566,109 @@ function downloadBishunKaitiImage(url,serverUrl,dataType,Fields,callback){
1576 1566
 }
1577 1567
 
1578 1568
 function GetSoundError(str) {
1579
-  var arr=constant.arrSoundError;
1580
-  var result=str;
1581
-  for(var i=0;i<arr.length;i++){
1582
-      if (str.indexOf(arr[i].Word)>0){
1583
-          result=common.ReplaceAllString(str,arr[i].Word,arr[i].Sound);
1584
-          break;
1585
-      }
1586
-      else if (str==arr[i].Word){
1587
-        result=arr[i].Sound;
1588
-      }
1569
+  var arr = constant.arrSoundError;
1570
+  var result = str;
1571
+  for (var i = 0; i < arr.length; i++) {
1572
+    if (str.indexOf(arr[i].Word) > 0) {
1573
+      result = common.ReplaceAllString(str, arr[i].Word, arr[i].Sound);
1574
+      break;
1575
+    } else if (str == arr[i].Word) {
1576
+      result = arr[i].Sound;
1577
+    }
1589 1578
   }
1590 1579
   return result;
1591 1580
 }
1592 1581
 
1593
-function GetTestReportList(userID,callback){
1594
-  var GradeArr = constant.testGradeArr;
1595
-  for (var i = 0; i < GradeArr.length; i++) {
1596
-    for (var j = 0; j < GradeArr[i].List.length; j++) {
1597
-      GradeArr[i].List[j].Finish = 0;
1582
+function GetTestReportList(userID, callback) {
1583
+
1584
+  getData('GetTestGradeArr', function (GradeArr) {
1585
+    for (var i = 0; i < GradeArr.length; i++) {
1586
+      for (var j = 0; j < GradeArr[i].List.length; j++) {
1587
+        GradeArr[i].List[j].Finish = 0;
1588
+      }
1598 1589
     }
1599
-  }
1600
-  getData('GetTestReportList?UserID=' + userID, function (data) {
1601
-    if (data) {
1602
-      var dataTemp = [];
1603
-      for (var i = 0; i < data.length; i++) {
1604
-        for (var j = 0; j < dataTemp.length; j++) {
1605
-          if (dataTemp[j].Name[0] == data[i].Name[0] &&
1606
-            dataTemp[j].Name[1] == data[i].Name[1] &&
1607
-            dataTemp[j].TestType == data[i].TestType &&
1608
-            data[i].IsFinished == 1
1609
-          ) {
1610
-            dataTemp.splice(j, 1);
1611
-            break;
1590
+    getData('GetTestReportList?UserID=' + userID, function (data) {
1591
+      if (data) {
1592
+        var dataTemp = [];
1593
+        for (var i = 0; i < data.length; i++) {
1594
+          for (var j = 0; j < dataTemp.length; j++) {
1595
+            if (dataTemp[j].Name[0] == data[i].Name[0] &&
1596
+              dataTemp[j].Name[1] == data[i].Name[1] &&
1597
+              dataTemp[j].TestType == data[i].TestType &&
1598
+              data[i].IsFinished == 1
1599
+            ) {
1600
+              dataTemp.splice(j, 1);
1601
+              break;
1602
+            }
1612 1603
           }
1613
-        }
1614
-        dataTemp.push(data[i]);
1604
+          dataTemp.push(data[i]);
1615 1605
 
1616
-        if (data[i].Name[0].indexOf("英语")>=0 || data[i].Name[0].indexOf("语文词语")>=0 || data[i].Name[0].indexOf("识字 上学期")>=0 || data[i].Name[0].indexOf("拼音")>=0 || data[i].Name[1].indexOf("古诗文")>=0){
1617
-          if (data[i].TestRightStr){
1618
-            data[i].TestRightStr=data[i].TestRightStr.split(",");
1619
-          }
1620
-          if (data[i].TestWrongStr){
1621
-            data[i].TestWrongStr=data[i].TestWrongStr.split(",");
1622
-          }          
1623
-          if (data[i].TestSkipStr){
1624
-            data[i].TestSkipStr=data[i].TestSkipStr.split(",");
1625
-          }
1626
-          if (data[i].TestExistStr){
1627
-            data[i].TestExistStr=data[i].TestExistStr.split(",");
1606
+          if (data[i].Name[0].indexOf("英语") >= 0 || data[i].Name[0].indexOf("语文词语") >= 0 || data[i].Name[0].indexOf("识字 上学期") >= 0 || data[i].Name[0].indexOf("拼音") >= 0 || data[i].Name[1].indexOf("古诗文") >= 0) {
1607
+            if (data[i].TestRightStr) {
1608
+              data[i].TestRightStr = data[i].TestRightStr.split(",");
1609
+            }
1610
+            if (data[i].TestWrongStr) {
1611
+              data[i].TestWrongStr = data[i].TestWrongStr.split(",");
1612
+            }
1613
+            if (data[i].TestSkipStr) {
1614
+              data[i].TestSkipStr = data[i].TestSkipStr.split(",");
1615
+            }
1616
+            if (data[i].TestExistStr) {
1617
+              data[i].TestExistStr = data[i].TestExistStr.split(",");
1618
+            }
1628 1619
           }
1620
+
1621
+          if (!data[i].TestRightStr)
1622
+            data[i].TestRightStr = "";
1623
+          if (!data[i].TestWrongStr)
1624
+            data[i].TestWrongStr = "";
1625
+          if (!data[i].TestSkipStr)
1626
+            data[i].TestSkipStr = "";
1627
+          if (!data[i].TestExistStr)
1628
+            data[i].TestExistStr = "";
1629
+
1629 1630
         }
1630
-        
1631
-        if (!data[i].TestRightStr)
1632
-          data[i].TestRightStr="";
1633
-        if (!data[i].TestWrongStr)
1634
-          data[i].TestWrongStr="";
1635
-        if (!data[i].TestSkipStr)
1636
-          data[i].TestSkipStr="";
1637
-        if (!data[i].TestExistStr)
1638
-          data[i].TestExistStr="";
1639
-              
1640
-      }
1641 1631
 
1642
-      for (var i = 0; i < dataTemp.length; i++) {
1643
-        var name = dataTemp[i].Name[0].split(" ");
1644
-        for (var j = 0; j < GradeArr.length; j++) {
1645
-          var item = GradeArr[j];
1646
-          if (name[0] == item.Name) {
1647
-            for (var k = 0; k < item.List.length; k++) {
1648
-              
1649
-              //音标计算进度  
1650
-              if (item.List[k].ID==101 && dataTemp[i].BookID==101){
1651
-                for(var n=1;n<=4;n++){
1652
-                  if (Number(dataTemp[i].Name[2])==n && dataTemp[i].IsFinished==1)
1653
-                    item.List[k].Finish++;
1632
+        for (var i = 0; i < dataTemp.length; i++) {
1633
+          var name = dataTemp[i].Name[0].split(" ");
1634
+          for (var j = 0; j < GradeArr.length; j++) {
1635
+            var item = GradeArr[j];
1636
+            if (name[0] == item.Name) {
1637
+              for (var k = 0; k < item.List.length; k++) {
1638
+
1639
+                //音标计算进度  
1640
+                if (item.List[k].ID == 101 && dataTemp[i].BookID == 101) {
1641
+                  for (var n = 1; n <= 4; n++) {
1642
+                    if (Number(dataTemp[i].Name[2]) == n && dataTemp[i].IsFinished == 1)
1643
+                      item.List[k].Finish++;
1644
+                  }
1654 1645
                 }
1655
-              }
1656
-              //古诗词计算进度
1657
-              else if (item.List[k].ID==dataTemp[i].BookID && dataTemp[i].TestType=="recite" && dataTemp[i].IsFinished == 1)
1658
-                item.List[k].Finish=1;
1659
-              else{
1660
-                if (name[1] == item.List[k].Name && name[2] == item.List[k].Name2) {
1661
-                  if (dataTemp[i].IsFinished == 1)
1662
-                    item.List[k].Finish++;
1646
+                //古诗词计算进度
1647
+                else if (item.List[k].ID == dataTemp[i].BookID && dataTemp[i].TestType == "recite" && dataTemp[i].IsFinished == 1)
1648
+                  item.List[k].Finish = 1;
1649
+                else {
1650
+                  if (name[1] == item.List[k].Name && name[2] == item.List[k].Name2) {
1651
+                    if (dataTemp[i].IsFinished == 1)
1652
+                      item.List[k].Finish++;
1653
+                  }
1663 1654
                 }
1664 1655
               }
1665 1656
             }
1666 1657
           }
1667 1658
         }
1668
-      }
1669 1659
 
1670
-      for (var j = 0; j < GradeArr.length; j++) {
1671
-        var item = GradeArr[j];
1672
-        for (var k = 0; k < item.List.length; k++) {
1673
-          item.List[k].Finished = Math.round(100 * item.List[k].Finish / item.List[k].Total);
1674
-          item.List[k].NameStr=item.List[k].Name.replace("语文","");
1660
+        for (var j = 0; j < GradeArr.length; j++) {
1661
+          var item = GradeArr[j];
1662
+          for (var k = 0; k < item.List.length; k++) {
1663
+            item.List[k].Finished = Math.round(100 * item.List[k].Finish / item.List[k].Total);
1664
+            item.List[k].NameStr = item.List[k].Name.replace("语文", "");
1665
+          }
1675 1666
         }
1667
+        wx.setStorageSync("UserTestReport", data);
1668
+
1669
+        callback(data, GradeArr);
1676 1670
       }
1677
-      wx.setStorageSync("UserTestReport", data);
1678
-      
1679
-      callback(data,GradeArr);
1680
-    }
1671
+    });
1681 1672
   });
1682 1673
 }
1683 1674
 
@@ -1712,14 +1703,14 @@ module.exports = {
1712 1703
   buildInitData: buildInitData,
1713 1704
   getPinyinNormal: getPinyinNormal,
1714 1705
   getHanzi: getHanzi,
1715
-  getEnglish:getEnglish,
1706
+  getEnglish: getEnglish,
1716 1707
   GetHanziUnitWords: GetHanziUnitWords,
1717 1708
   GetTestReportInfo: GetTestReportInfo,
1718 1709
   getUserConfig: getUserConfig,
1719 1710
   getAwardData: getAwardData,
1720 1711
   replaceCardInfoString: replaceCardInfoString,
1721
-  searchInfomation:searchInfomation,
1722
-  downloadBishunKaitiImage:downloadBishunKaitiImage,
1723
-  GetSoundError:GetSoundError,
1724
-  GetTestReportList:GetTestReportList,
1712
+  searchInfomation: searchInfomation,
1713
+  downloadBishunKaitiImage: downloadBishunKaitiImage,
1714
+  GetSoundError: GetSoundError,
1715
+  GetTestReportList: GetTestReportList,
1725 1716
 }