chengjie 3 роки тому
батько
коміт
336d477b3f
60 змінених файлів з 2740 додано та 510 видалено
  1. 1 1
      app.js
  2. 8 3
      app.json
  3. 1 0
      pages/index/index.js
  4. 2 2
      pages/index/index.wxml
  5. 5 1
      pages/index/index.wxss
  6. 10 11
      pages/main/add.js
  7. 1 1
      pages/main/add.wxss
  8. 4 0
      pages/main/default.wxss
  9. 27 85
      pages/main/detail.js
  10. 4 6
      pages/test/index.js
  11. 4 13
      pages/test/list.js
  12. BIN
      pages_agent/images/ad.png
  13. BIN
      pages_agent/images/promotion_index_userinfo.png
  14. BIN
      pages_agent/images/promotion_index_workbook.png
  15. BIN
      pages_agent/images/promotion_partner_home_title01.png
  16. 67 0
      pages_agent/main/earnings_apply.js
  17. 4 0
      pages_agent/main/earnings_apply.json
  18. 127 0
      pages_agent/main/earnings_apply.wxml
  19. 195 0
      pages_agent/main/earnings_apply.wxss
  20. 42 0
      pages_agent/main/earnings_list.js
  21. 0 0
      pages_agent/main/earnings_list.json
  22. 25 0
      pages_agent/main/earnings_list.wxml
  23. 1 1
      pages_agent/promotion/earnings_list.wxss
  24. 75 6
      pages_agent/main/index.js
  25. 2 2
      pages_agent/main/index.wxml
  26. 6 0
      pages_agent/main/message.js
  27. 3 3
      pages_agent/main/message.wxml
  28. 88 0
      pages_agent/main/other_list.js
  29. 4 0
      pages_agent/main/other_list.json
  30. 133 0
      pages_agent/main/other_list.wxml
  31. 311 0
      pages_agent/main/other_list.wxss
  32. 69 0
      pages_agent/main/result_list.js
  33. 4 0
      pages_agent/main/result_list.json
  34. 40 0
      pages_agent/main/result_list.wxml
  35. 136 0
      pages_agent/main/result_list.wxss
  36. 4 1
      pages_agent/promotion/earnings.js
  37. 4 0
      pages_agent/main/search_user.json
  38. 68 0
      pages_agent/main/search_user.wxml
  39. 350 0
      pages_agent/main/search_user.wxss
  40. 130 0
      pages_agent/main/user_index.js
  41. 0 0
      pages_agent/main/user_index.json
  42. 142 0
      pages_agent/main/user_index.wxml
  43. 118 24
      pages_agent/promotion/user_index.wxss
  44. 14 3
      pages_agent/promotion/user_index.js
  45. 4 0
      pages_agent/main/user_relation.json
  46. 41 0
      pages_agent/main/user_relation.wxml
  47. 138 0
      pages_agent/main/user_relation.wxss
  48. 47 58
      pages_agent/main/userinfo.js
  49. 39 33
      pages_agent/main/userinfo.wxml
  50. 66 44
      pages_agent/main/userinfo.wxss
  51. 8 1
      pages_agent/promotion/earnings_list.js
  52. 4 0
      pages_agent/main/withdraw_deposit.json
  53. 61 24
      pages_agent/promotion/earnings.wxml
  54. 48 7
      pages_agent/promotion/earnings.wxss
  55. 0 4
      pages_agent/promotion/earnings.json
  56. 0 45
      pages_agent/promotion/earnings_list.wxml
  57. 0 105
      pages_agent/promotion/user_index.wxml
  58. 3 3
      project.config.json
  59. 2 2
      project.private.config.json
  60. 50 21
      utils/main.js

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.1.58",
3
+    Version: "2.1.61",
4 4
     IsProduction: true,
5 5
     //IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",

+ 8 - 3
app.json

@@ -79,9 +79,14 @@
79 79
     {
80 80
       "root": "pages_agent",
81 81
       "pages": [
82
-        "promotion/earnings_list",
83
-        "promotion/earnings",
84
-        "promotion/user_index",
82
+        "main/search_user",
83
+        "main/user_relation",
84
+        "main/withdraw_deposit",
85
+        "main/result_list",
86
+        "main/other_list",
87
+        "main/earnings_apply",
88
+        "main/earnings_list",
89
+        "main/user_index",
85 90
         "main/message_info",
86 91
         "main/message",
87 92
         "main/userinfo",

+ 1 - 0
pages/index/index.js

@@ -273,6 +273,7 @@ Page({
273 273
               timeoutRedirect=setTimeout(function () {
274 274
                 console.log("Time5:" + new Date().getTime());
275 275
                 clearTimeout(timeout1);
276
+                clearTimeout(timeout3);
276 277
                 app.globalData.FolderList=[];
277 278
                 wx.redirectTo({
278 279
                   url: url,

+ 2 - 2
pages/index/index.wxml

@@ -5,7 +5,7 @@
5 5
     <image class="img" mode="aspectFit" src="../images/program_start_tips0{{Sentence}}.png"></image>
6 6
   </view>
7 7
   <block wx:if="{{IsRefresh}}">
8
-    <view class="text2">网络繁忙,请稍后再试</view>
9
-    <view class="btn" bindtap='onPullDownRefresh'>重启</view>
8
+    <text class="text2">如多次刷新无效,\n请<text class="text3">重启微信</text>排除本地网络故障</text>
9
+    <view class="btn" bindtap='onPullDownRefresh'>刷新</view>
10 10
   </block>
11 11
 </view>

+ 5 - 1
pages/index/index.wxss

@@ -31,13 +31,17 @@
31 31
 .text2{
32 32
   font-size:28rpx;
33 33
   position: fixed;
34
-  top:500rpx;
34
+  top:460rpx;
35 35
   text-align: center;
36 36
   color:#1e1e1e;
37 37
   z-index: 10;
38 38
   font-weight: 400;
39 39
 }
40 40
 
41
+.text3{
42
+  color:#FE6659;
43
+}
44
+
41 45
 .img{
42 46
   width:400rpx;
43 47
   height:150rpx;

+ 10 - 11
pages/main/add.js

@@ -11,7 +11,6 @@ var arrSoundMark = [];
11 11
 var isUnload = true;
12 12
 var isEdit = true;
13 13
 var isSave = true;
14
-var interval;
15 14
 var timeoutUploadImage = 0;
16 15
 var intervalRecorder = 0; //录音计时器
17 16
 var recorderManager;
@@ -307,7 +306,6 @@ Page({
307 306
       app.globalData.CardList = list;
308 307
       wx.removeStorageSync("TempCardInfo");
309 308
     }
310
-    clearInterval(interval);
311 309
     clearTimeout(timeoutUploadImage);
312 310
     clearInterval(intervalRecorder);
313 311
 
@@ -641,13 +639,13 @@ Page({
641 639
       }, 30000);
642 640
     }
643 641
 
644
-    interval = setInterval(function () {
645
-      //console.log(arrResult.length);
642
+    //检查是否上传成功
643
+    setTimeout(function () {
644
+      console.log(arrResult.length);
645
+      console.log(arrSource.length);
646 646
       if (arrResult.length >= arrSource.length) {
647
-        wx.hideLoading();
648 647
         //console.log("arrResult:" + JSON.stringify(arrResult));
649 648
 
650
-        clearInterval(interval);
651 649
         var success = true;
652 650
 
653 651
         var ari = 0;
@@ -664,10 +662,11 @@ Page({
664 662
               }
665 663
               console.log("serverUrl:" + serverUrl);
666 664
               //console.log("tempUrl:" + tempUrl);
667
-              if (serverUrl == "")
668
-                serverUrl = main.getServerImage(tempUrl);
665
+              // if (serverUrl == "")
666
+              //   serverUrl = main.getServerImage(tempUrl);
667
+
668
+              // main.saveTempImage(serverUrl, tempUrl);
669 669
 
670
-              main.saveTempImage(serverUrl, tempUrl);
671 670
               arr[i][j].Content = serverUrl;
672 671
               arr[i][j].ContentServer = serverUrl;
673 672
 
@@ -681,7 +680,7 @@ Page({
681 680
         //console.log(JSON.stringify(arr));
682 681
         callback(success, arr);
683 682
       }
684
-    }, 500);
683
+    }, 2000);
685 684
   },
686 685
   uploadFileToServer: function (file, callback) {
687 686
     var url = common.Encrypt("MiaoguoUploadFile2");
@@ -697,8 +696,8 @@ Page({
697 696
             wx.downloadFile({
698 697
               url: err.result.Target,
699 698
               success(res) {
699
+                wx.hideLoading();
700 700
                 if (res.statusCode != 200) {
701
-                  wx.hideLoading();
702 701
                   wx.showModal({
703 702
                     title: '上传图片可能失败',
704 703
                     showCancel: false,

+ 1 - 1
pages/main/add.wxss

@@ -1032,7 +1032,7 @@ page{
1032 1032
   width:690rpx;
1033 1033
   height:211rpx;
1034 1034
   font-size:48rpx;
1035
-  columns: #4d4d4d;
1035
+  color: #4d4d4d;
1036 1036
   border-radius: 10rpx;
1037 1037
   background-color: #e3e3e3;
1038 1038
   margin-top:30rpx;

+ 4 - 0
pages/main/default.wxss

@@ -1,3 +1,7 @@
1
+page{
2
+  background-color: #3157ba;
3
+}
4
+
1 5
 .container {
2 6
   background-color: #3157ba;
3 7
 }

+ 27 - 85
pages/main/detail.js

@@ -28,7 +28,7 @@ var currentFolderStart = false;
28 28
 var timeoutPlayAudio;
29 29
 var tempPlayUrl = "";
30 30
 var tempPlayUrlLocal = "";
31
-var timeoutEveryCard = 0;
31
+var timeoutEveryCard = [];
32 32
 var timeoutHide = 0;
33 33
 
34 34
 var arrAutoAudio = [];
@@ -173,8 +173,9 @@ Page({
173 173
     main.getData(url, function (data) {});
174 174
   },
175 175
   onUnload: function () {
176
+    var that=this;
176 177
     clearInterval(intervalSound);
177
-    clearTimeout(timeoutEveryCard);
178
+    that.clearTimeoutEveryCard();
178 179
     clearTimeout(timeoutHide);
179 180
     listTaskFinished = [];
180 181
 
@@ -309,7 +310,9 @@ Page({
309 310
       arrImage = TaskList[0].ContentNew.Images;
310 311
       arrImage2 = TaskList[0].ContentNew.Images2;
311 312
 
312
-      that.autoAudioPlayInit();
313
+      setTimeout(function(){
314
+        that.autoAudioPlayInit();
315
+      },1000);
313 316
       taskInfo = TaskList[0];
314 317
 
315 318
 
@@ -494,7 +497,7 @@ Page({
494 497
       url: './add?type=edit1&id=' + TaskList[0].MiaoguoCardID,
495 498
     });
496 499
     isExit = false;
497
-    clearTimeout(timeoutEveryCard);
500
+    that.clearTimeoutEveryCard();
498 501
   },
499 502
   //回到上一张题卡
500 503
   gotoPrev: function () {
@@ -844,8 +847,8 @@ Page({
844 847
   timeCompute: function () {
845 848
     var that = this;
846 849
     timeStart = new Date();
847
-    clearTimeout(timeoutEveryCard);
848
-    timeoutEveryCard = setTimeout(function () {
850
+    that.clearTimeoutEveryCard();
851
+    var timeoutEveryCardNumber = setTimeout(function () {
849 852
       //计算暂停时已经用掉的时长
850 853
       timeHistory += common.diffDate("s", timeStart, new Date());
851 854
       console.log("timeHistory:" + timeHistory);
@@ -859,7 +862,7 @@ Page({
859 862
           showCancel: false,
860 863
           confirmText: "知道了",
861 864
           success(res) {
862
-            clearTimeout(timeoutEveryCard);
865
+            that.clearTimeoutEveryCard();
863 866
             clearTimeout(timeoutHide);
864 867
             if (res.confirm) {
865 868
               that.timeCompute();
@@ -869,6 +872,7 @@ Page({
869 872
       }
870 873
 
871 874
     }, app.globalData.CardWaitTimeMax * 60 * 1000);
875
+    timeoutEveryCard.push(timeoutEveryCardNumber);
872 876
   },
873 877
   setFinallyResult: function () {
874 878
     var that = this;
@@ -881,7 +885,7 @@ Page({
881 885
       Recommend: 0,
882 886
       IsMore: false,
883 887
     });
884
-    clearTimeout(timeoutEveryCard);
888
+    that.clearTimeoutEveryCard();
885 889
     that.setSoundFile(1);
886 890
     main.UpdateMiaoguoCardTodayAll(true, function () {
887 891
       listTaskFinished = [];
@@ -947,6 +951,7 @@ Page({
947 951
     });
948 952
   },
949 953
   showNumberContainner: function () {
954
+    var that=this;
950 955
     if (!this.data.Title) {
951 956
       this.setData({
952 957
         IsShowNumberInfo: true,
@@ -956,7 +961,7 @@ Page({
956 961
       this.setData({
957 962
         Title: "进度",
958 963
       });
959
-      clearTimeout(timeoutEveryCard);
964
+      that.clearTimeoutEveryCard();
960 965
     }
961 966
   },
962 967
   closeNumberContainner: function () {
@@ -1039,6 +1044,7 @@ Page({
1039 1044
     });
1040 1045
   },
1041 1046
   onMore: function () {
1047
+    var that=this;
1042 1048
     for (var i = 0; i < this.data.FontSizeArray.length; i++) {
1043 1049
       if (this.data.FontSizeArray[i].Value == this.data.TaskInfo.FontSize)
1044 1050
         this.data.FontSizeArray[i].CSS = "color:#1E1E1E;background-color:" + this.data.Color.LineColor + ";border:3rpx solid " + this.data.Color.LineColor + ";";
@@ -1050,7 +1056,7 @@ Page({
1050 1056
       FontSizeArray: this.data.FontSizeArray,
1051 1057
       Title: "调节",
1052 1058
     });
1053
-    clearTimeout(timeoutEveryCard);
1059
+    that.clearTimeoutEveryCard();
1054 1060
   },
1055 1061
   showOtherButton: function () {
1056 1062
     var animation = wx.createAnimation();
@@ -1127,7 +1133,9 @@ Page({
1127 1133
     this.closeNumberContainner();
1128 1134
   },
1129 1135
   onClose: function () {
1136
+    var that=this;
1130 1137
     console.log("close");
1138
+    that.clearTimeoutEveryCard();
1131 1139
     wx.navigateBack({
1132 1140
       delta: 1,
1133 1141
     });
@@ -1268,76 +1276,6 @@ Page({
1268 1276
               };
1269 1277
 
1270 1278
             });
1271
-
1272
-          // var canvas = wx.createCanvasContext("shareCanvas", that);
1273
-          // canvas.setFillStyle(main.getShareImageBackColor());
1274
-          // canvas.fillRect(360, 0, 600, 360);
1275
-          // canvas.drawImage(res.tempFilePath, 0, 0, 360, 360);
1276
-          // canvas.drawImage("../images/universalpic_screenshot_jl_bgimage_360x360.png", 0, 0, 360, 360);
1277
-          // canvas.fillStyle = "#ffffff";
1278
-          // canvas.setTextBaseline('top');
1279
-          // canvas.setFontSize(24);
1280
-          // canvas.fillText(app.globalData.userInfo.NickName, 30, 282);
1281
-
1282
-          // var today = common.formatTime(new Date(), ".", true);
1283
-          // canvas.setFontSize(18);
1284
-          // canvas.fillText(today, 30, 315);
1285
-
1286
-          // canvas.setFontSize(20);
1287
-          // canvas.fillText("秒过学习", 390, 30);
1288
-          // canvas.setFontSize(44);
1289
-          // canvas.fillText("勤勉接力", 390, 58);
1290
-          // canvas.setFontSize(20);
1291
-          // canvas.fillText("见证成长", 390, 120);
1292
-
1293
-          // canvas.setFontSize(68);
1294
-          // if (!that.data.TodayTime)
1295
-          //   that.data.TodayTime = 0;
1296
-
1297
-          // canvas.fillText(that.data.TodayTime, 390, 148);
1298
-
1299
-          // canvas.font = "normal 500 68px caption";
1300
-          // var metrics = canvas.measureText(that.data.TodayTime.toString());
1301
-          // //console.log(JSON.stringify(metrics));
1302
-
1303
-          // var h = 179;
1304
-          // if (app.globalData.IsIOS)
1305
-          //   h = 176;
1306
-          // canvas.font = "normal 500 32px caption";
1307
-          // canvas.fillText("分钟", 393 + Math.round(metrics.width), h);
1308
-
1309
-
1310
-          // canvas.setFontSize(20);
1311
-          // canvas.fillText("迄今已接力", 390, 267);
1312
-          // canvas.setFontSize(32);
1313
-          // canvas.fillText(app.globalData.TaskToday.DayNumber + "次", 390, 295);
1314
-          // //console.log("生成前");
1315
-          // canvas.draw(1, function (n) {
1316
-          //   //console.log("生成后1");
1317
-          //   wx.canvasToTempFilePath({
1318
-          //     x: 0,
1319
-          //     y: 0,
1320
-          //     width: 600,
1321
-          //     height: 360,
1322
-          //     destWidth: 600,
1323
-          //     destHeight: 360,
1324
-          //     canvasId: 'shareCanvas',
1325
-          //     success: function (res2) {
1326
-          //       wx.hideLoading();
1327
-          //       //console.log("生成后2");
1328
-          //       wx.previewImage({
1329
-          //         current: res2.tempFilePath, // 当前显示图片的http链接
1330
-          //         urls: [res2.tempFilePath] // 需要预览的图片http链接列表
1331
-          //       });
1332
-
1333
-          //       main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID, function (data) {});
1334
-          //     },
1335
-          //     fail: function (e) {
1336
-          //       wx.hideLoading();
1337
-          //       //console.log("生成错误:"+e);
1338
-          //     }
1339
-          //   })
1340
-          // });
1341 1279
         } else {
1342 1280
           wx.hideLoading();
1343 1281
         }
@@ -1463,7 +1401,6 @@ Page({
1463 1401
         }
1464 1402
       });
1465 1403
       arrAutoAudio.splice(0, 1);
1466
-
1467 1404
     }
1468 1405
   },
1469 1406
   autoAudioPlayEnd: function () {
@@ -1552,8 +1489,10 @@ Page({
1552 1489
         success(res) {
1553 1490
           wx.hideLoading();
1554 1491
           tempPlayUrlLocal = res.tempFilePath;
1555
-          that.audioCtx.setSrc(res.tempFilePath);
1556
-          that.audioCtx.play();
1492
+          // that.audioCtx.setSrc(res.tempFilePath);
1493
+          // that.audioCtx.play();
1494
+          innerAudioContext1.src = res.tempFilePath;
1495
+          innerAudioContext1.play();
1557 1496
           tempPlayUrl = url;
1558 1497
         },
1559 1498
         fail(err) {
@@ -1597,8 +1536,11 @@ Page({
1597 1536
       url: url,
1598 1537
     });
1599 1538
   },
1600
-  getNull: function () {
1601
-
1539
+  clearTimeoutEveryCard: function () {
1540
+    for(var i=0;i<timeoutEveryCard.length;i++){
1541
+      clearTimeout(timeoutEveryCard[i]);
1542
+    }
1543
+    timeoutEveryCard=[];
1602 1544
   },
1603 1545
   //获取导航栏高度
1604 1546
   getBarInfo(e) {

+ 4 - 6
pages/test/index.js

@@ -25,12 +25,10 @@ Page({
25 25
       Subject: "CHN",
26 26
     });
27 27
 
28
-    main.getHanzi(function (arr) {
29
-      if (!arr) {
30
-        wx.removeStorageSync("HanziUpdateTime");
31
-        wx.removeStorageSync("HanziAll");
32
-        main.getHanzi(function (arr) {});
33
-      }
28
+    main.getHanzi(function () {
29
+      main.getEnglish(function () {
30
+      
31
+      });
34 32
     });
35 33
   },
36 34
   onShow: function () {

+ 4 - 13
pages/test/list.js

@@ -19,20 +19,11 @@ Page({
19 19
       Name1: options.name1,
20 20
     });
21 21
     isClick = true;
22
-    main.getHanzi(function (arr) {
23
-      if (!arr) {
24
-        wx.removeStorageSync("HanziUpdateTime");
25
-        wx.removeStorageSync("HanziAll");
26
-        wx.removeStorageSync("NewConceptEngList");
27
-        wx.removeStorageSync("CambridgeEngList");
28
-        wx.removeStorageSync("PhoneticEngList");
29
-        main.getHanzi(function (arr) {
30
-          that.init();
31
-        });
32
-      } else {
22
+    main.getHanzi(function () {
23
+      main.getEnglish(function () {
33 24
         that.init();
34
-      }
35
-      isStart=false;
25
+        isStart=false;
26
+      });
36 27
     });
37 28
   },
38 29
   onUnload:function(){

BIN
pages_agent/images/ad.png


BIN
pages_agent/images/promotion_index_userinfo.png


BIN
pages_agent/images/promotion_index_workbook.png


BIN
pages_agent/images/promotion_partner_home_title01.png


+ 67 - 0
pages_agent/main/earnings_apply.js

@@ -0,0 +1,67 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    
9
+  },
10
+  onLoad: function (options) {
11
+    var that = this;
12
+    
13
+    that.setData({
14
+      Containnerheight: main.getWindowHeight(),
15
+      RecordID:options.RecordID,
16
+      AgentCategory:options.AgentCategory,
17
+    });
18
+    that.init();
19
+  },
20
+  init:function(){
21
+    var that = this;
22
+    var list=app.globalData.EarningsList.List1;
23
+    if (that.data.AgentCategory=="ambassador")
24
+      list=app.globalData.EarningsList.List2;
25
+    for(var i=0;i<list.length;i++){
26
+      if (list[i].ID==that.data.RecordID){
27
+        that.setData({
28
+          Info:list[i],
29
+        });
30
+        break;
31
+      }
32
+    }
33
+    var url="GetMiaoguoAgentPayList?UserID=" + app.globalData.userInfo.UserID+"&RecordID="+that.data.RecordID+"&AgentCategory="+that.data.AgentCategory;
34
+    main.getData(url, function (data) {
35
+      if (data) {
36
+        var list1=[],list2=[];
37
+        for(var i=0;i<data.length;i++){
38
+          if (data[i].Status==-1)
39
+            list1.push(data[i]);
40
+          else if (data[i].Status==1)
41
+            list2.push(data[i]);
42
+        }
43
+
44
+        that.setData({
45
+          List1:list1,
46
+          List2:list2,
47
+        });
48
+      }
49
+    });
50
+  },
51
+  getID:function(e){
52
+    var id=e.currentTarget.dataset.id;
53
+    wx.setClipboardData({
54
+      data: id.toString(),
55
+      success (res) {
56
+        
57
+      }
58
+    });
59
+  },
60
+  onShareAppMessage: function () {
61
+    return {
62
+      title: app.globalData.ShareTitle,
63
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
64
+      imageUrl: app.globalData.ShareImage,
65
+    }
66
+  },
67
+})

+ 4 - 0
pages_agent/main/earnings_apply.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "提现申请单",
3
+  "backgroundColor": "#F2F2F2"
4
+}

+ 127 - 0
pages_agent/main/earnings_apply.wxml

@@ -0,0 +1,127 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panel1 FlexColumn">
3
+    <view class="text1">审核通过</view>
4
+    <view class="text2">{{Info.RealMoney}}</view>
5
+    <view class="text3">到帐金额</view>
6
+    <view class="line"></view>
7
+    <view class="panel11 FlexColumn">
8
+      <view class="panel111 FlexRow">
9
+        <view class="text4">申请单号</view>
10
+        <view class="text5">{{Info.ID}}</view>
11
+      </view>
12
+      <view class="panel112 FlexRow">
13
+        <view class="text4">申请时间</view>
14
+        <view class="text5">{{Info.ApplyTime}}</view>
15
+      </view>
16
+      <view class="panel113 FlexRow">
17
+        <view class="text4">批复时间</view>
18
+        <view class="text5">{{Info.CheckTime}}</view>
19
+      </view>
20
+    </view>
21
+    <view class="line2"></view>
22
+    <view class="panel12 FlexRow" bindtap="getID" data-id="{{Info.ID}}">
23
+      <view class="text6">复制单号</view>
24
+    </view>
25
+  </view>
26
+
27
+  <view class="panel1 FlexColumn">
28
+    <view class="panel21 FlexRow">
29
+      <view class="text7">提现金额</view>
30
+      <view class="text8">{{Info.RealMoney}}</view>
31
+    </view>
32
+    <view class="line"></view>
33
+    <view class="panel11 FlexColumn">
34
+      <view class="panel22 panel111 FlexRow">
35
+        <view class="text4">微信支付平台交易手续费</view>
36
+        <view class="text5">{{Info.WXServiceCharge}}</view>
37
+      </view>
38
+      <view class="panel22 panel113 FlexRow">
39
+        <view class="text4">代缴个人所得税</view>
40
+        <view class="text5">{{Info.IndividualIncomeTax}}</view>
41
+      </view>
42
+    </view>
43
+    <view class="line"></view>
44
+    <view class="panel11 FlexColumn">
45
+      <view class="panel22 panel111 FlexRow">
46
+        <view class="text4">收款方式</view>
47
+        <view class="text5">{{Info.PaymentTerm}}</view>
48
+      </view>
49
+      <view class="panel22 panel112 FlexRow">
50
+        <view class="text4">收款人微信帐号</view>
51
+        <view class="text5">{{Info.PayeeWechatAccount}}</view>
52
+      </view>
53
+      <view class="panel22 panel113 FlexRow">
54
+        <view class="text4">收款帐号真实姓名</view>
55
+        <view class="text5">{{Info.RealName}}</view>
56
+      </view>
57
+    </view>
58
+  </view>
59
+  <view class="panel3 FlexRow" wx:if="{{List1.length>0}}">
60
+    <text class="text9"><text class="Number1">{{List1.length}}</text> 条退款记录</text>
61
+    <text></text>
62
+  </view>
63
+  <view class="panel4 FlexRow" wx:for="{{List1}}" wx:key="index">
64
+    <view class="panel41 FlexRow">
65
+      <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
66
+      <view class="panel411 FlexColumn">
67
+        <text class="text10">{{item.NickName}}</text>
68
+        <text class="text11">{{item.RefundTime}}</text>
69
+      </view>
70
+    </view>
71
+    <text class="Number3 Number2">{{item.Money}}</text>
72
+  </view>
73
+
74
+  <view class="panel3 FlexRow">
75
+    <text class="text9"><text class="Number1">{{List2.length}}</text> 条收益记录</text>
76
+    <text></text>
77
+  </view>
78
+
79
+  <!-- 推广用户 -->
80
+  <block wx:if="{{AgentCategory!='ambassador'}}" wx:for="{{List2}}" wx:key="index">
81
+    <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
82
+      <view class="lineWidth720"></view>
83
+    </view>
84
+    <view class="panel4 FlexRow">
85
+      <view class="panel41 FlexRow">
86
+        <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
87
+        <view class="panel411 FlexColumn">
88
+          <text class="text10">{{item.NickName}}</text>
89
+          <text class="text11">{{item.PayEndTime}}</text>
90
+        </view>
91
+      </view>
92
+      <text class="Number2">{{item.Money}}</text>
93
+    </view>
94
+  </block>
95
+
96
+  <!-- 大使用户 -->
97
+  <view wx:if="{{AgentCategory=='ambassador'}}" style="width: 100%;" wx:for="{{List2}}" wx:key="index" class="panelItem0 FlexColumn">
98
+    <view class="nullLine" wx:if="{{index>0}}"></view>
99
+    <view class="panelItem2 panelItem FlexRow">
100
+      <image src='{{item.IntroducerAvatarUrl}}' class="avatar2" />
101
+      <view class="text9">{{item.IntroducerNickName}} 的推荐</view>
102
+    </view>
103
+
104
+    <view class="lineWidthAll FlexRow">
105
+      <view class="lineWidth750"></view>
106
+    </view>
107
+
108
+    <block wx:for="{{item.List}}" wx:key="indexChild" wx:for-item="itemChild" wx:for-index="indexChild">
109
+      <view class="lineWidthAll FlexRow" wx:if="{{indexChild>0}}">
110
+        <view class="lineWidth720"></view>
111
+      </view>
112
+      <view class="panel4 FlexRow">
113
+        <view class="panel41 FlexRow">
114
+          <image src='{{itemChild.AvatarUrl}}' class="product_icon_mg_70x70" />
115
+          <view class="panel411 FlexColumn">
116
+            <text class="text10">{{itemChild.NickName}}</text>
117
+            <text class="text11">{{itemChild.PayEndTime}}</text>
118
+          </view>
119
+        </view>
120
+        <text class="Number2">{{itemChild.Money}}</text>
121
+      </view>
122
+    </block>
123
+  </view>
124
+  <view style="height:100rpx;"></view>
125
+
126
+
127
+</view>

+ 195 - 0
pages_agent/main/earnings_apply.wxss

@@ -0,0 +1,195 @@
1
+.panel1{
2
+  width:711rpx;
3
+  margin-top: 60rpx;
4
+  background-color: #fff;
5
+  border-radius: 20rpx;
6
+}
7
+
8
+.text1{
9
+  font-size: 36rpx;
10
+  margin-top: 40rpx;
11
+  color:#4D4D4D;
12
+}
13
+
14
+.text2{
15
+  font-size: 64rpx;
16
+  margin-top: 10rpx;
17
+  color:#4D4D4D;
18
+  font-family: 'Roboto-Black';
19
+}
20
+
21
+.text3{
22
+  font-size: 28rpx;
23
+  color:#4D4D4D;
24
+  margin-bottom: 30rpx;
25
+}
26
+.line{
27
+  width:650rpx;
28
+  height:1rpx;
29
+  background-color: #e3e3e3;
30
+}
31
+.panel11{
32
+  width:100%;
33
+  justify-content: flex-start;
34
+}
35
+
36
+.panel111{
37
+  margin: 30rpx 0 0 0;
38
+  width:650rpx;
39
+  justify-content: flex-start;
40
+}
41
+.panel112{
42
+  margin: 20rpx 0 0 0;
43
+  width:650rpx;
44
+  justify-content: flex-start;
45
+}
46
+.panel113{
47
+  margin: 20rpx 0 30rpx 0;
48
+  width:650rpx;
49
+  justify-content: flex-start;
50
+}
51
+
52
+.text4{
53
+  font-size: 24rpx;
54
+  color:#787878;
55
+  font-weight: 400;
56
+}
57
+.text5{
58
+  font-size: 24rpx;
59
+  color:#4D4D4D;
60
+  margin-left: 30rpx;
61
+}
62
+
63
+.panel12{
64
+  width:100%;
65
+  height: 100rpx;
66
+}
67
+
68
+.text6{
69
+  font-size: 28rpx;
70
+  color: #1e1e1e;
71
+  margin-left: 30rpx;
72
+  font-weight: 400;
73
+}
74
+.line2{
75
+  width:100%;
76
+  height:1rpx;
77
+  background-color: #e3e3e3;
78
+}
79
+
80
+.Arrow{
81
+  width:16rpx;
82
+  height:26rpx;
83
+  margin-right: 30rpx;
84
+}
85
+
86
+.panel21{
87
+  width:100%;
88
+  height:93rpx;
89
+  justify-content: space-between;
90
+  font-size:24rpx;
91
+}
92
+
93
+.text7{
94
+  font-size: 24rpx;
95
+  color: #787878;
96
+  margin-left: 30rpx;
97
+  font-weight: 400;
98
+}
99
+.text8{
100
+  font-size: 24rpx;
101
+  color: #4d4d4d;
102
+  margin-right: 30rpx;
103
+}
104
+
105
+.panel22{
106
+  justify-content: space-between;
107
+}
108
+
109
+
110
+.panel3{
111
+  width: 100%;
112
+  justify-content: space-between;
113
+  margin: 60rpx 0 30rpx 0;
114
+}
115
+
116
+.text9{
117
+  margin-left: 30rpx;
118
+  font-size: 32rpx;
119
+  color:#4D4D4D;
120
+}
121
+.Number1{
122
+  font-family: 'Roboto-Black';
123
+  font-size:36rpx;
124
+  color:#4D4D4D;
125
+}
126
+
127
+.product_icon_mg_70x70{
128
+  width:80rpx;
129
+  height:80rpx;
130
+  border-radius: 20rpx;
131
+}
132
+
133
+
134
+.panel4{
135
+  width: 100%;
136
+  justify-content: space-between;
137
+  height:140rpx;
138
+  background-color: #fff;
139
+}
140
+
141
+.panel41{
142
+  margin-left:30rpx;
143
+}
144
+.panel411{
145
+  margin-left:20rpx;
146
+  align-items: flex-start;
147
+}
148
+
149
+.text10{
150
+  color:#4D4D4D;
151
+  font-size:28rpx;
152
+  font-weight: 400;
153
+}
154
+
155
+.text11{
156
+  color:#9B9B9B;
157
+  font-size:20rpx;
158
+}
159
+
160
+.Number2{
161
+  font-family: 'Roboto-Black';
162
+  font-size:28rpx;
163
+  color:#4D4D4D;
164
+  margin-right: 30rpx;
165
+}
166
+.Number3{
167
+  color:#FE6659; 
168
+}
169
+
170
+
171
+.nullLine{
172
+  width:100%;
173
+  height:20rpx;
174
+  background-color: #f2f2f2;
175
+}
176
+
177
+.panelItem2{
178
+  justify-content: flex-start;
179
+  height:111rpx;
180
+  width:100%;
181
+  background-color: #fff;
182
+}
183
+
184
+.avatar2{
185
+  width:50rpx;
186
+  height:50rpx;
187
+  border-radius: 50%;
188
+  margin-left: 30rpx;
189
+}
190
+
191
+.text9{
192
+  font-size: 24rpx;
193
+  margin-left: 20rpx;
194
+  color:#4D4D4D;
195
+}

+ 42 - 0
pages_agent/main/earnings_list.js

@@ -0,0 +1,42 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    
9
+  },
10
+  onLoad: function (options) {
11
+    var that = this;
12
+    
13
+    that.setData({
14
+      Containnerheight: main.getWindowHeight(),
15
+      AgentCategory:options.AgentCategory,
16
+    });
17
+
18
+    that.init();
19
+  },
20
+  init:function(){
21
+    var that = this;
22
+    var list=app.globalData.EarningsList.List1;
23
+    if (that.data.AgentCategory=="ambassador")
24
+      list=app.globalData.EarningsList.List2;
25
+    that.setData({
26
+      List: list,
27
+    });
28
+  },
29
+  goto: function (e) {
30
+    var url = e.currentTarget.dataset.url;
31
+    wx.navigateTo({
32
+      url: url,
33
+    });
34
+  },
35
+  onShareAppMessage: function () {
36
+    return {
37
+      title: app.globalData.ShareTitle,
38
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
39
+      imageUrl: app.globalData.ShareImage,
40
+    }
41
+  },
42
+})

pages_agent/promotion/earnings_list.json → pages_agent/main/earnings_list.json


+ 25 - 0
pages_agent/main/earnings_list.wxml

@@ -0,0 +1,25 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="*this">
3
+    <view class="text10 text1" wx:if="{{item.IsCheck==0}}">等待审核</view>
4
+    <view class="text1" wx:if="{{item.IsCheck==1}}">审核通过</view>
5
+    <view class="text2">{{item.RealMoney}}</view>
6
+    <view class="text3">到帐金额</view>
7
+    <view class="line"></view>
8
+    <view class="panel11 FlexColumn">
9
+      <view class="panel111 FlexRow">
10
+        <view class="text4">申请单号</view>
11
+        <view class="text5">{{item.ID}}</view>
12
+      </view>
13
+      <view class="panel112 FlexRow">
14
+        <view class="text4">申请时间</view>
15
+        <view class="text5">{{item.ApplyTime}}</view>
16
+      </view>
17
+    </view>
18
+    <view class="line2"></view>
19
+    <view class="panel12 FlexRow" bindtap='goto' data-url="earnings_apply?RecordID={{item.ID}}&AgentCategory={{AgentCategory}}">
20
+      <view class="text6">查看申请单详情</view>
21
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
22
+    </view>
23
+  </view>
24
+  <view style="height:100rpx;"></view>
25
+</view>

+ 1 - 1
pages_agent/promotion/earnings_list.wxss

@@ -68,7 +68,7 @@
68 68
 
69 69
 .text6{
70 70
   font-size: 28rpx;
71
-  columns: #1e1e1e;
71
+  color: #1e1e1e;
72 72
   margin-left: 30rpx;
73 73
   font-weight: 400;
74 74
 }

+ 75 - 6
pages_agent/main/index.js

@@ -5,19 +5,88 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    
8
+
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
12
-    
12
+
13 13
     that.setData({
14 14
       Containnerheight: main.getWindowHeight(),
15 15
     });
16
+
17
+    that.getUserInfo(); 
18
+  },
19
+  //得到用户信息
20
+  getUserInfo: function () {
21
+    var that = this
22
+    //调用登录接口
23
+    wx.login({
24
+      success: function (res0) {
25
+        app.globalData.userInfo = {};
26
+        app.globalData.userInfo.Code = res0.code;
27
+        console.log("Time2:" + new Date().getTime());
28
+        app.globalData.userInfo.nickName = "陌生用户";
29
+        app.globalData.userInfo.language = "";
30
+        app.globalData.userInfo.gender = "0";
31
+        app.globalData.userInfo.city = "";
32
+        app.globalData.userInfo.province = "";
33
+        app.globalData.userInfo.country = "";
34
+        app.globalData.userInfo.avatarUrl = "../../pages/images/universalpic_face_default_blue_120x120.png";
35
+        that.login(app.globalData.userInfo);
36
+      },
37
+      fail: function () {}
38
+    });
16 39
   },
17
-  goto:function(){
18
-      wx.navigateTo({
19
-        url: '../other/paycustom',
40
+
41
+  login: function (param) {
42
+    var that = this;
43
+    main.getLocalHost(function () {
44
+      main.postData('MiaoguoLogin?IsPromotion=true', {
45
+        Code: param.Code,
46
+        NickName: param.nickName,
47
+        Language: param.language,
48
+        Gender: param.gender,
49
+        City: param.city,
50
+        Province: param.province,
51
+        Country: param.country,
52
+        AvatarUrl: param.avatarUrl,
53
+        Introducer: app.globalData.introducer,
54
+        UserSource: app.globalData.userSource,
55
+        SourceID: app.globalData.SourceID,
56
+        LastUserSource: app.globalData.userSource,
57
+        Brand: app.globalData.systemInfo.brand,
58
+        Model: app.globalData.systemInfo.model,
59
+        PixelRatio: app.globalData.systemInfo.pixelRatio,
60
+        ScreenWidth: app.globalData.systemInfo.screenWidth,
61
+        ScreenHeight: app.globalData.systemInfo.screenHeight,
62
+        WindowWidth: app.globalData.systemInfo.windowWidth,
63
+        WindowHeight: app.globalData.systemInfo.windowHeight,
64
+        WXLanguage: app.globalData.systemInfo.language,
65
+        WXVersion: app.globalData.systemInfo.version,
66
+        System: app.globalData.systemInfo.system,
67
+        Platform: app.globalData.systemInfo.platform,
68
+        SDKVersion: app.globalData.systemInfo.SDKVersion,
69
+        ProgramVersion: app.globalData.Version,
70
+      }, function (data) {
71
+        console.log("Time4:" + new Date().getTime());
72
+        if (!data) {
73
+          timeout3 = setTimeout(function () {
74
+            that.getUserInfo();
75
+            console.log("reboot:" + new Date().getTime());
76
+          }, 2000);
77
+        } else {
78
+          app.globalData.userInfo = data;
79
+          //console.log(data);          
80
+        }
20 81
       });
82
+    });
83
+  },
84
+
85
+  goto: function (e) {
86
+    var url = e.currentTarget.dataset.url;
87
+    wx.navigateTo({
88
+      url: url,
89
+    });
21 90
   },
22 91
   onShareAppMessage: function () {
23 92
     return {
@@ -26,4 +95,4 @@ Page({
26 95
       imageUrl: app.globalData.ShareImage,
27 96
     }
28 97
   },
29
-})
98
+})

+ 2 - 2
pages_agent/main/index.wxml

@@ -1,6 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panelHeight"></view>
3
-  <view class="panel1 FlexRow" bindtap='goto'>
3
+  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion">
4 4
     <view class="panel11 FlexRow">
5 5
       <image src='../../pages/images/product_icon_mg_70x70.png' class="product_icon_mg_70x70" />
6 6
       <view class="panel111">秒过推广计划</view>
@@ -9,7 +9,7 @@
9 9
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10 10
     </view>
11 11
   </view>
12
-  <view class="panel1 FlexRow" bindtap='goto'>
12
+  <view class="panel1 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador">
13 13
     <view class="panel11 FlexRow">
14 14
       <image src='../../pages/images/product_icon_mg_70x70.png' class="product_icon_mg_70x70" />
15 15
       <view class="panel111">秒过大使计划</view>

+ 6 - 0
pages_agent/main/message.js

@@ -14,6 +14,12 @@ Page({
14 14
       Containnerheight: main.getWindowHeight(),
15 15
     });
16 16
   },
17
+  goto: function (e) {
18
+    var url = e.currentTarget.dataset.url;
19
+    wx.navigateTo({
20
+      url: url,
21
+    });
22
+  },
17 23
   onShareAppMessage: function () {
18 24
     return {
19 25
       title: app.globalData.ShareTitle,

+ 3 - 3
pages_agent/main/message.wxml

@@ -1,6 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panelHeight"></view>
3
-  <view class="panel1 FlexRow" bindtap='goto'>
3
+  <view class="panel1 FlexRow" bindtap='goto' data-url="message_info">
4 4
     <view class="panel11 FlexColumn">
5 5
       <view class="panel110"></view>
6 6
       <view class="panel111">新消息未读</view>
@@ -12,7 +12,7 @@
12 12
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
13 13
     </view>
14 14
   </view>
15
-  <view class="panel1 FlexRow" bindtap='goto'>
15
+  <view class="panel1 FlexRow" bindtap='goto' data-url="message_info">
16 16
     <view class="panel11 FlexColumn">
17 17
       <view class="panel110"></view>
18 18
       <view class="panel111">新消息未读</view>
@@ -24,7 +24,7 @@
24 24
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
25 25
     </view>
26 26
   </view>
27
-  <view class="panel1 FlexRow" bindtap='goto'>
27
+  <view class="panel1 FlexRow" bindtap='goto' data-url="message_info">
28 28
     <view class="panel11 FlexColumn">
29 29
       <view class="panel110"></view>
30 30
       <view class="panel112_2 panel112">财务通知</view>

+ 88 - 0
pages_agent/main/other_list.js

@@ -0,0 +1,88 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    
9
+  },
10
+  onLoad: function (options) {
11
+    var that = this;
12
+    
13
+    that.setData({
14
+      Containnerheight: main.getWindowHeight(),
15
+      ListType:options.ListType,
16
+      AgentCategory:options.AgentCategory,
17
+      IsWithdraw:false,
18
+      IsPromotion:false,
19
+      User:app.globalData.userInfo,
20
+    });
21
+
22
+    wx.setNavigationBarTitle({
23
+      title: that.data.ListType
24
+    });
25
+
26
+    this.getList();
27
+  },
28
+  getList:function(e){
29
+    var that = this;
30
+
31
+    var url="";
32
+    if (that.data.ListType=="近期报名"){
33
+      that.setData({
34
+        Info: app.globalData.NewUserApplyArray,
35
+        Len:app.globalData.NewUserApplyArray.List.length,
36
+      });
37
+    }
38
+    else if (that.data.ListType=="预估新增收益"){
39
+      that.setData({
40
+        Info: app.globalData.EstimatedNewRevenue,
41
+        Len:app.globalData.EstimatedNewRevenue.Length,
42
+        Total:"0",
43
+      });
44
+    }
45
+    else if (that.data.ListType=="可提现收益"){
46
+      that.setData({
47
+        Info: app.globalData.WithdrawableEarnings,
48
+        Len:app.globalData.WithdrawableEarnings.Length,
49
+        Total:app.globalData.WithdrawableEarnings.Total,
50
+      });
51
+    }
52
+    else{
53
+      if (that.data.ListType=="退款记录")
54
+        url="GetRefundList?AgentCategory="+that.data.AgentCategory;
55
+      else if (that.data.ListType=="未续费记录")
56
+        url="GetIntroducerUserList2?ListType="+that.data.ListType;
57
+      else if (that.data.ListType=="报名步骤没做完")
58
+        url="GetIntroducerUserList2?ListType="+that.data.ListType;
59
+      
60
+      url+="&UserID=" + app.globalData.userInfo.UserID;
61
+
62
+      main.getData(url, function (data) {
63
+        wx.hideLoading();
64
+        if (data) {
65
+          that.setData({
66
+            Info: data,
67
+            Len:data.List.length,
68
+          });
69
+        }
70
+      });
71
+    }
72
+  },
73
+  showWithdraw:function(e){
74
+    this.setData({
75
+      IsWithdraw:!this.data.IsWithdraw,
76
+    });
77
+  },
78
+  onPullDownRefresh: function () {
79
+    wx.stopPullDownRefresh();
80
+  },
81
+  onShareAppMessage: function () {
82
+    return {
83
+      title: app.globalData.ShareTitle,
84
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
85
+      imageUrl: app.globalData.ShareImage,
86
+    }
87
+  },
88
+})

+ 4 - 0
pages_agent/main/other_list.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "其他记录",
3
+  "backgroundColor": "#F2F2F2"
4
+}

+ 133 - 0
pages_agent/main/other_list.wxml

@@ -0,0 +1,133 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+
3
+  <view class="panel1 FlexColumn" wx:if="{{Info.Description}}">
4
+    <view class="panel11 FlexColumn">
5
+      <text class="text1">{{Info.Description}}</text>
6
+    </view>
7
+    <view class="panel12 FlexRow" bindtap="goto" data-url="{{Info.ReadmeUrl}}" wx:if="{{Info.Readme}}">
8
+      <view class="text2">{{Info.Readme}}</view>
9
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10
+    </view>
11
+  </view>
12
+  <view class="panel2 FlexRow">
13
+    <text class="text3"><text class="Number1">{{Len}}</text> 条记录</text>
14
+    <text class="text8" wx:if="{{Total>0}}">收益 <text class="Number1">{{Total}}</text></text>
15
+    <text wx:if="{{Total==0}}"></text>
16
+  </view>
17
+  <view class="panel3 FlexRow">
18
+    <!-- 推广用户 -->
19
+    <block wx:if="{{AgentCategory=='promotion'}}" wx:for="{{Info.List}}" wx:key="index">
20
+      <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
21
+        <view class="lineWidth720"></view>
22
+      </view>
23
+      <view class="panelItem FlexRow">
24
+        <view class="Left FlexRow">
25
+          <image src='{{item.AvatarUrl}}' class="avatar" />
26
+          <view class="panelItem1 FlexColumn">
27
+            <view class="text4">{{item.NickName}}</view>
28
+            <view class="text5">{{item.Remark}}</view>
29
+          </view>
30
+        </view>
31
+        <view class="Right FlexColumn">
32
+          <view class="Number2" wx:if="{{item.Money}}">{{item.Money}}</view>
33
+          <view class="text6" wx:if="{{item.Remark2}}">{{item.Remark2}}</view>
34
+          <view class="text7" wx:if="{{item.Remark3}}">{{item.Remark3}}</view>
35
+        </view>
36
+      </view>
37
+    </block>
38
+    <!-- 大使用户 -->
39
+    <view wx:if="{{AgentCategory=='ambassador' && Len>0}}" wx:for="{{Info.List}}" wx:key="*this" class="panelItem0 FlexColumn">
40
+      <view class="nullLine" wx:if="{{index>0}}"></view>
41
+      <view class="panelItem2 panelItem FlexRow">
42
+        <image src='{{item.IntroducerAvatarUrl}}' class="avatar2" />
43
+        <view class="text9">{{item.IntroducerNickName}} 的推荐</view>
44
+      </view>
45
+      <view class="lineWidthAll FlexRow">
46
+        <view class="lineWidth750"></view>
47
+      </view>
48
+      <block wx:for="{{item.List}}" wx:key="indexChild" wx:for-item="itemChild" wx:for-index="indexChild">
49
+        <view class="lineWidthAll FlexRow" wx:if="{{indexChild>0}}">
50
+          <view class="lineWidth720"></view>
51
+        </view>
52
+        <view class="panelItem FlexRow">
53
+          <view class="Left FlexRow">
54
+            <image src='{{itemChild.AvatarUrl}}' class="avatar" />
55
+            <view class="panelItem1 FlexColumn">
56
+              <view class="text4">{{itemChild.NickName}}</view>
57
+              <view class="text5">{{itemChild.Remark}}</view>
58
+            </view>
59
+          </view>
60
+          <view class="Right FlexColumn">
61
+            <view class="Number2" wx:if="{{itemChild.Money}}">{{itemChild.Money}}</view>
62
+            <view class="text6" wx:if="{{itemChild.Remark2}}">{{itemChild.Remark2}}</view>
63
+            <view class="text7" wx:if="{{itemChild.Remark3}}">{{itemChild.Remark3}}</view>
64
+          </view>
65
+        </view>
66
+      </block>
67
+
68
+    </view>
69
+  </view>
70
+  <view style="height:150rpx;"></view>
71
+  <view class="panelBottom FlexColumn" wx:if="{{ListType=='可提现收益' && Len>0}}" bindtap="showWithdraw">
72
+    <view class="btn">申请提现</view>
73
+  </view>
74
+</view>
75
+
76
+<view wx:if="{{IsWithdraw}}" class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
77
+  <view class="panel5 FlexColumn">
78
+    <view class="text51">申请提现</view>
79
+    <view class="panel51 FlexRow">
80
+      <view class="panel511 FlexColumn">
81
+        <view class="text52">{{Total}}</view>
82
+        <view class="text53">提现金额</view>
83
+      </view>
84
+      <view class="panel511 FlexColumn">
85
+        <view class="text52">{{Total}}</view>
86
+        <view class="text53">到账金额</view>
87
+      </view>
88
+    </view>
89
+    <view class="panel52 FlexRow">
90
+      <view class="Left FlexRow">
91
+        <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
92
+        <view class="text53">已扣除因退款返还奖励金额</view>
93
+      </view>
94
+      <view class="text54">0</view>
95
+    </view>
96
+    <view class="panel53 FlexRow">
97
+      <view class="text54">微信支付平台交易手续费</view>
98
+      <view class="text54">{{User.WXServiceCharge}}</view>
99
+    </view>
100
+    <view class="lineWidthAll FlexRow">
101
+      <view class="lineWidth680"></view>
102
+    </view>
103
+    <view class="panel53 FlexRow">
104
+      <view class="text54">代缴个人所得税</view>
105
+      <view class="text54">{{User.IndividualIncomeTax}}</view>
106
+    </view>
107
+    <view class="lineWidthAll FlexRow">
108
+      <view class="lineWidth680"></view>
109
+    </view>
110
+    <view class="panel53 FlexRow">
111
+      <view class="text54">收款方式</view>
112
+      <view class="text54">微信钱包</view>
113
+    </view>
114
+    <view class="lineWidthAll FlexRow">
115
+      <view class="lineWidth680"></view>
116
+    </view>
117
+    <view class="panel53 FlexRow">
118
+      <view class="text54">收款人微信帐号</view>
119
+      <view class="text54">{{User.WXAccount}}</view>
120
+    </view>
121
+    <view class="lineWidthAll FlexRow">
122
+      <view class="lineWidth680"></view>
123
+    </view>
124
+    <view class="panel53 FlexRow">
125
+      <view class="text54">收款人帐号真实姓名</view>
126
+      <view class="text54">{{User.RealName}}</view>
127
+    </view>
128
+    <view class="btn2">确认</view>
129
+
130
+  </view>
131
+  <view class="btnCancel" bindtap="showWithdraw">取消</view>
132
+
133
+</view>

+ 311 - 0
pages_agent/main/other_list.wxss

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

+ 69 - 0
pages_agent/main/result_list.js

@@ -0,0 +1,69 @@
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
+    SelectMenuCss1:"selectItem",
10
+    SelectMenuCss2:"",
11
+  },
12
+  onLoad: function (options) {
13
+    var that = this;
14
+    var isPromotion=false;
15
+    if (options.AgentCategory=="promotion"){
16
+      isPromotion=true;
17
+    }
18
+
19
+    that.setData({
20
+      Containnerheight: main.getWindowHeight(),
21
+      IsPromotion:isPromotion,
22
+      ListType:options.ListType,
23
+    });
24
+
25
+    wx.setNavigationBarTitle({
26
+      title: that.data.ListType
27
+    });
28
+
29
+    this.getList();
30
+  },
31
+  getList:function(e){
32
+    var that = this;
33
+
34
+    var url="";
35
+    url="GetIntroducerUserList2?ListType="+that.data.ListType;
36
+    url+="&UserID=" + app.globalData.userInfo.UserID;
37
+
38
+    main.getData(url, function (data) {
39
+      wx.hideLoading();
40
+      if (data) {
41
+        that.setData({
42
+          Info:data,
43
+        });
44
+      }
45
+    });
46
+  },
47
+  onPullDownRefresh: function () {
48
+    wx.stopPullDownRefresh();
49
+  },
50
+  onMenu:function(e){
51
+    var id=e.currentTarget.dataset.id;
52
+    var SelectMenuCss1="",SelectMenuCss2="";
53
+    if (id==1)
54
+      SelectMenuCss1="selectItem";
55
+    else if (id==2)
56
+      SelectMenuCss2="selectItem";
57
+    this.setData({
58
+      SelectMenuCss1:SelectMenuCss1,
59
+      SelectMenuCss2:SelectMenuCss2,
60
+    });
61
+  },
62
+  onShareAppMessage: function () {
63
+    return {
64
+      title: app.globalData.ShareTitle,
65
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
66
+      imageUrl: app.globalData.ShareImage,
67
+    }
68
+  },
69
+})

+ 4 - 0
pages_agent/main/result_list.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "成果记录",
3
+  "backgroundColor": "#F2F2F2"
4
+}

+ 40 - 0
pages_agent/main/result_list.wxml

@@ -0,0 +1,40 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{!IsPromotion}}">
3
+    <view class="panelTop FlexRow">
4
+      <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
5
+        <view class="{{SelectMenuCss1}} text0">团队贡献</view>
6
+        <view class="{{SelectMenuCss1}}BG line1"></view>
7
+      </view>
8
+      <view class="panelTop2 panelTop1 FlexColumn" catchtap="onMenu" data-id="2">
9
+        <view class="{{SelectMenuCss2}} text0">其他</view>
10
+        <view class="{{SelectMenuCss2}}BG line1"></view>
11
+      </view>
12
+      <view class="panelTop3 panelTop1 FlexColumn">
13
+        <image src='../../pages/images/universalpic_magnifier_black_30x30.png' class="universalpic_magnifier_black_30x30" />
14
+      </view>
15
+    </view>
16
+    <view style="height:100rpx;"></view>
17
+  </block>
18
+
19
+
20
+  <view class="panel1 FlexColumn">
21
+    <view class="panel11 FlexColumn">
22
+      <text class="text1">{{Info.Description}}</text>
23
+    </view>
24
+    <view class="panel12 FlexRow"  wx:if="{{!IsPromotion}}">
25
+      <view class="text2">大使工作规则</view>
26
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
27
+    </view>
28
+  </view>
29
+  <view class="panel2 FlexRow">
30
+    <text class="text3"><text class="Number1">{{Info.List.length}}</text> 条记录</text>
31
+    <text></text>
32
+  </view>
33
+  <view class="panel3 FlexRow">
34
+    <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this">
35
+      <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
36
+      <view class="text4">{{item.NickName}}</view>
37
+    </view>
38
+  </view>
39
+  <view class="footer"></view>
40
+</view>

+ 136 - 0
pages_agent/main/result_list.wxss

@@ -0,0 +1,136 @@
1
+.panelTop{
2
+  position: fixed;
3
+  top:0;
4
+  width:100%;
5
+  background-color: #fff;
6
+}
7
+
8
+.panelTop1{
9
+  width:400rpx;
10
+  height:100rpx;
11
+  justify-content: flex-end;
12
+}
13
+
14
+.panelTop2{
15
+  width:200rpx;
16
+}
17
+
18
+.panelTop3{
19
+  width:150rpx;
20
+  justify-content: center;
21
+}
22
+
23
+.text0{
24
+  font-size: 36rpx;
25
+}
26
+.line1{
27
+  width:144rpx;
28
+  height:10rpx;
29
+  background-color: #fff;
30
+  margin-top:10rpx;
31
+}
32
+.selectItem{
33
+  color: #5282FA;
34
+}
35
+.selectItemBG{
36
+  background-color: #5282FA;
37
+}
38
+
39
+.universalpic_magnifier_black_30x30{
40
+  width:30rpx;
41
+  height:30rpx;
42
+  margin-top: 15rpx;
43
+}
44
+
45
+.panel1{
46
+  width:710rpx;
47
+  margin: 60rpx 0 0 0;
48
+  background-color: #fff;
49
+  border-radius: 20rpx;
50
+}
51
+
52
+.panel11{
53
+  width:100%;
54
+  font-size: 22rpx;
55
+  font-weight: 400;
56
+  min-height: 178rpx;
57
+  justify-content: flex-start;
58
+}
59
+
60
+.text1{
61
+  margin-top: 30rpx;
62
+  width:650rpx;
63
+}
64
+
65
+.panel12{
66
+  width:100%;
67
+  height: 100rpx;
68
+  justify-content: space-between;
69
+
70
+  border-top:1rpx solid #e3e3e3;
71
+}
72
+
73
+.text2{
74
+  font-size: 28rpx;
75
+  font-weight: 400;
76
+  margin-left: 30rpx;
77
+}
78
+
79
+.Arrow{
80
+  width:16rpx;
81
+  height:26rpx;
82
+  margin-right: 30rpx;
83
+}
84
+
85
+
86
+.panel2{
87
+  width: 100%;
88
+  justify-content: space-between;
89
+  margin: 60rpx 0 30rpx 0;
90
+}
91
+
92
+.text3{
93
+  margin-left: 30rpx;
94
+  font-size: 36rpx;
95
+  color:#4D4D4D;
96
+}
97
+.Number1{
98
+  font-family: 'Roboto-Black';
99
+  font-size:36rpx;
100
+  color:#4D4D4D;
101
+}
102
+
103
+.panel3{
104
+  width:100%;
105
+  flex-wrap: wrap;
106
+  justify-content: flex-start;
107
+  align-items: flex-start;
108
+  background-color: #fff;
109
+}
110
+
111
+.panel31{
112
+  width:150rpx;
113
+  min-height:168rpx;
114
+  justify-content: flex-start;
115
+}
116
+
117
+.product_icon_mg_70x70{
118
+  width:80rpx;
119
+  height:80rpx;
120
+  border-radius: 20rpx;
121
+  margin-top: 30rpx;
122
+}
123
+
124
+.text4{
125
+  width:110rpx;
126
+  font-size:20rpx;
127
+  font-weight: 400;
128
+  text-align: center;
129
+  margin-top:20rpx;
130
+}
131
+
132
+.footer{
133
+  width:100%;
134
+  height:232rpx;
135
+  background-color: #fff;
136
+}

+ 4 - 1
pages_agent/promotion/earnings.js

@@ -5,7 +5,7 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    
8
+    IsList:true,
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
@@ -13,6 +13,9 @@ Page({
13 13
     that.setData({
14 14
       Containnerheight: main.getWindowHeight(),
15 15
     });
16
+
17
+    common.getStorageValue(that, "SearchTextList", [], function () {});
18
+  
16 19
   },
17 20
   onPullDownRefresh: function () {
18 21
     wx.stopPullDownRefresh();

+ 4 - 0
pages_agent/main/search_user.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "搜队员",
3
+  "backgroundColor": "#F2F2F2"
4
+}

+ 68 - 0
pages_agent/main/search_user.wxml

@@ -0,0 +1,68 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panelTop FlexRow">
3
+    <view class="panelLeft FlexRow">
4
+      <view class="panelTopSearch FlexRow">
5
+        <image class="universalpic_magnifier_gray_30x30" src='../../pages/images/universalpic_magnifier_gray_30x30.png' />
6
+        <input class='input' always-embed="true" maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" bindblur="onBindblur" value="{{SearchInfo}}" placeholder="输入微信名字(不支付表情和微信号)" confirm-type="search" bindconfirm="onSearch" bindfocus="onFocus" />
7
+
8
+        <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9
+          <view class="clearData0 FlexRow">
10
+            <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11
+          </view>
12
+        </view>
13
+
14
+      </view>
15
+    </view>
16
+    <view class="panelRight FlexRow">
17
+      <view class='panelTop1 FlexRow' bindtap="close">
18
+        <view class="panelTop3">取消</view>
19
+      </view>
20
+    </view>
21
+  </view>
22
+  <view class="panelTopNull"></view>
23
+  <block wx:if="{{!IsList}}">
24
+    <view class="panel1 FlexColumn">
25
+      <view class="panel11 FlexRow">
26
+        <view class="panel11Left">
27
+          搜过的内容
28
+        </view>
29
+        <view class="panel11Right FlexRow" bindtap='deleteItem'>
30
+          <image class="universalpic_dustbin_black_24x30" src='../../pages/images/universalpic_dustbin_black_24x30.png' />
31
+        </view>
32
+      </view>
33
+    </view>
34
+    <view class="lineWidthAll FlexRow">
35
+      <view class="lineWidth720"></view>
36
+    </view>
37
+    <view class='panelItemSearch0 FlexRow'>
38
+      <scroll-view wx:if="{{SearchTextList.length>0}}" scroll-x="true" class="panelBtnSmall">
39
+        <view class="btn0"></view>
40
+        <view class="btn" catchtap="onSearch" wx:for="{{SearchTextList}}" wx:key="index" data-search="{{item}}">{{item}}
41
+        </view>
42
+      </scroll-view>
43
+
44
+      <view class="panelItemSearchNull" wx:if="{{SearchTextList.length==0}}">暂无内容,搜一次就有了</view>
45
+
46
+    </view>
47
+  </block>
48
+  <block wx:if="{{IsList}}">
49
+    <view class="panel2 FlexColumn" style='min-height:{{Containnerheight-100}}rpx;'>
50
+      <view class="panelItem FlexRow">
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>
62
+        </view>
63
+        <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
64
+      </view>
65
+    </view>
66
+  </block>
67
+
68
+</view>

+ 350 - 0
pages_agent/main/search_user.wxss

@@ -0,0 +1,350 @@
1
+.container{
2
+  background-color: #fff;
3
+}
4
+.panelTop {
5
+  width: 100%;
6
+  height:100rpx;
7
+  background-color: #fff;
8
+  justify-content: space-between;
9
+  position: fixed;
10
+  top:0;
11
+}
12
+.panelTopNull {
13
+  width: 100%;
14
+  height:100rpx;
15
+}
16
+
17
+
18
+.panelLeft {
19
+  margin-left: 20rpx;
20
+  justify-content: flex-start;
21
+}
22
+.panelRight {
23
+  margin-right: 20rpx;
24
+  justify-content: flex-end;
25
+}
26
+
27
+.panelTopSearch{
28
+  width:600rpx;
29
+  height:70rpx;
30
+  background-color: #F2F2F2;
31
+  border-radius: 14rpx;
32
+  justify-content: flex-start;
33
+  position: relative;
34
+}
35
+
36
+.panelItemSearchNull{
37
+  margin: 25rpx 0 40rpx 30rpx;
38
+  font-size: 24rpx;
39
+  color:#787878;
40
+}
41
+
42
+.universalpic_magnifier_gray_30x30{
43
+  width:30rpx;
44
+  height:30rpx;
45
+  margin-left: 30rpx;
46
+}
47
+.panelTopSearchText{
48
+  font-size: 28rpx;
49
+  font-weight: 400;
50
+  margin-left: 20rpx;
51
+}
52
+.input{
53
+  margin-left: 20rpx;
54
+  font-size:28rpx;
55
+  font-weight: 400;
56
+  width:450rpx;
57
+  height:30rpx;
58
+}
59
+
60
+.clearData{
61
+  width:80rpx;
62
+  height:70rpx;
63
+  position: absolute;
64
+  top:0rpx;
65
+  right:0rpx;
66
+}
67
+
68
+.clearData0{
69
+  width:40rpx;
70
+  height:40rpx;
71
+  border-radius: 50%;
72
+  background-color: #D2D2D2;
73
+}
74
+
75
+.universalpic_close_black_16x16{
76
+  width:16rpx;
77
+  height:16rpx;
78
+}
79
+
80
+.panelTop1 {
81
+  width:80rpx;
82
+  height:80rpx;
83
+
84
+  font-size: 28rpx;
85
+  font-weight: 400;
86
+}
87
+.panelTop3 {
88
+  font-size: 28rpx;
89
+  font-weight: 500;
90
+}
91
+
92
+.panel1{
93
+  width:100%;
94
+  margin-top: 60rpx;
95
+  background-color: #fff;
96
+}
97
+
98
+.panel11{
99
+  width:100%;
100
+  justify-content: space-between;
101
+  margin-bottom: 15rpx;
102
+}
103
+
104
+.panel10{
105
+  margin-top: 40rpx;
106
+  margin-bottom: 30rpx;
107
+}
108
+
109
+.panel11Left{
110
+  margin-left: 30rpx;
111
+  font-size:32rpx;
112
+  align-items: flex-start;
113
+  color:#4D4D4D;
114
+}
115
+
116
+.panel111{
117
+  font-size:20rpx;
118
+  color:#787878;
119
+}
120
+
121
+.panel11Right{
122
+  width:80rpx;
123
+  height:80rpx;
124
+}
125
+
126
+.universalpic_dustbin_black_24x30{
127
+  width:24rpx;
128
+  height:30rpx;
129
+}
130
+
131
+.panelItemSearch0 {
132
+  width: 100%;
133
+  justify-content: flex-start;
134
+  font-size: 24rpx;
135
+  background-color: #fff;
136
+  flex-wrap: wrap;
137
+}
138
+
139
+.panelBtnSmall {
140
+  z-index: 10;
141
+  width:100%;
142
+  background-color: #fff;
143
+  display: flex;
144
+  white-space: nowrap;
145
+}
146
+
147
+.panelBtnSmall .btn0 {
148
+  width: 10rpx;
149
+  display: inline-block;
150
+  margin-right: 20rpx;
151
+}
152
+
153
+.panelBtnSmall .btn {
154
+  background-color: #fff;
155
+  border: 2rpx solid #E3E3E3;
156
+  color: #1e1e1e;
157
+  border-radius: 10rpx;
158
+  text-align: center;
159
+  line-height: 69rpx;
160
+  height: 69rpx;
161
+  margin-top: 30rpx;
162
+  margin-right: 20rpx;
163
+  padding: 0 20rpx;
164
+  font-size: 24rpx;
165
+  display: inline-block;
166
+}
167
+
168
+.panelNull{
169
+  width: 100%;
170
+  margin-top:180rpx;
171
+}
172
+
173
+.universalpic_card_none_gray_90x84{
174
+  width:90rpx;
175
+  height:84rpx;
176
+  margin-bottom: 30rpx;
177
+}
178
+
179
+.panelNullText{
180
+  color:#4D4D4D;
181
+  font-size: 32rpx;
182
+}
183
+
184
+.panelAdd{
185
+  width:360rpx;
186
+  height:100rpx;
187
+  border:2rpx solid #E3E3E3;
188
+  border-radius: 10rpx;
189
+  margin: 60rpx 0 180rpx 0;
190
+}
191
+
192
+.universalpic_add_black_30x30{
193
+  width:30rpx;
194
+  height: 30rpx;
195
+  margin-left: 10rpx;
196
+}
197
+
198
+.panelAddText{
199
+  font-size: 28rpx;
200
+  font-weight: 400;
201
+  margin-left: 20rpx;
202
+}
203
+
204
+.universalpic_indicator_right_gray{
205
+  width:16rpx;
206
+  height:26rpx;
207
+  margin-right: 30rpx;
208
+}
209
+
210
+.panelSearching{
211
+  width:100%;
212
+  justify-content: flex-start;
213
+  align-items: flex-start;
214
+}
215
+
216
+.panelSearching1{
217
+  font-size:28rpx;
218
+  color:#787878;
219
+  margin: 16rpx 0 0 30rpx;
220
+}
221
+
222
+.panelSearchNull{
223
+  width:100%;
224
+  justify-content: flex-start;
225
+  align-items: flex-start;
226
+}
227
+
228
+.panelSearchNull1{
229
+  font-size:28rpx;
230
+  color:#4D4D4D;
231
+  margin: 16rpx 0 0 30rpx;
232
+}
233
+.panelSearchNull2{
234
+  font-size:20rpx;
235
+  color:#787878;
236
+  margin: 4rpx 0 0 30rpx;
237
+}
238
+
239
+.panelSearchData{
240
+  width:690rpx;
241
+  justify-content: flex-start;
242
+  margin: 30rpx 0 0 30rpx;
243
+  align-items: flex-start;
244
+}
245
+
246
+.panelSearchDataImage{
247
+  width:100rpx;
248
+  height:116rpx;
249
+  border-radius: 6rpx;
250
+}
251
+
252
+.panelSearchDataImageZ{
253
+  background-color: #FFE6DB;
254
+}
255
+
256
+.panelSearchDataImageC{
257
+  background-color: #F7EFBE;
258
+}
259
+.panelSearchDataImageS{
260
+  background-color: #EDDDFF;
261
+}
262
+
263
+.panelSearchDataImageD{
264
+  background-color: #C9EFF9;
265
+}
266
+
267
+
268
+.universalpic_dictionary_ciyu_black_55x23{
269
+  width:55rpx;
270
+  height:23rpx;
271
+}
272
+.universalpic_dictionary_hanzi_black_54x26{
273
+  width:54rpx;
274
+  height:26rpx;
275
+}
276
+.universalpic_dictionary_shici_black_53x27{
277
+  width:53rpx;
278
+  height:27rpx;
279
+}
280
+.universalpic_dictionary_danci_black_53x28{
281
+  width:53rpx;
282
+  height:28rpx;
283
+}
284
+
285
+.panelSearchData1{
286
+  width:560rpx;
287
+  align-items: flex-start;
288
+  margin-left: 30rpx;
289
+  border-bottom: 1rpx solid #E3E3E3;
290
+}
291
+
292
+.panelSearchDataText1{
293
+  width: 520rpx;
294
+  font-size: 30rpx;
295
+}
296
+
297
+.panelSearchDataText2{
298
+  width: 520rpx;
299
+  font-size: 22rpx;
300
+  font-weight: 400;
301
+  margin: 8rpx 0;
302
+}
303
+
304
+.panelSearchDataText3{
305
+  width: 520rpx;
306
+  font-size: 20rpx;
307
+  color:#787878;
308
+  margin-bottom: 30rpx;
309
+}
310
+
311
+.panelHeight60{
312
+  width:100%;
313
+  height:60rpx;
314
+}
315
+
316
+.panel2{
317
+  width:100%;
318
+  background-color: #f2f2f2;
319
+  justify-content: flex-start;
320
+  padding-top:60rpx;
321
+}
322
+
323
+.panelItem{
324
+  width:710rpx;
325
+  height:110rpx;
326
+  border-radius: 20rpx;
327
+  background-color: #fff;
328
+  justify-content: space-between;
329
+  margin-bottom: 30rpx;
330
+}
331
+
332
+.avatar{
333
+  width:50rpx;
334
+  height:50rpx;
335
+  border-radius: 20rpx;
336
+  margin-left:30rpx;
337
+}
338
+
339
+.panelItem1{
340
+  font-size: 28rpx;
341
+  font-weight: 400;
342
+  color:#4D4D4D;
343
+  margin-left: 20rpx;
344
+}
345
+
346
+.Arrow{
347
+  width:16rpx;
348
+  height:26rpx;
349
+  margin-right: 30rpx;
350
+}

+ 130 - 0
pages_agent/main/user_index.js

@@ -0,0 +1,130 @@
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 = false;
14
+    var title = "秒过大使计划";
15
+    var backColor = "#FFB808";
16
+    var frontColor = "#000000";
17
+    var frontColor2 = "#2e2e2e";
18
+    if (options.AgentCategory == "promotion") {
19
+      isPromotion = true;
20
+      title = "秒过推广计划";
21
+      backColor = "#FC7406";
22
+      frontColor = "#ffffff";
23
+      frontColor2 = "#ffffff";
24
+    }
25
+
26
+    that.setData({
27
+      Containnerheight: main.getWindowHeight(),
28
+      IsPromotion: isPromotion,
29
+      BackColor: backColor,
30
+      User: app.globalData.userInfo,
31
+      AgentCategory: options.AgentCategory,
32
+      FrontColor: frontColor2,
33
+    });
34
+
35
+    wx.setNavigationBarTitle({
36
+      title: title
37
+    });
38
+    wx.setBackgroundColor({
39
+      backgroundColor: backColor,
40
+    });
41
+    wx.setNavigationBarColor({
42
+      backgroundColor: backColor,
43
+      backgroundColorTop: backColor,
44
+      backgroundColorBottom: backColor,
45
+      frontColor: frontColor,
46
+    });
47
+
48
+    this.init();
49
+
50
+  },
51
+  init: function () {
52
+    var that = this;
53
+    if (that.data.AgentCategory == "promotion") {
54
+      var url = "GetIntroducerUserList2?ListType=近期报名";
55
+      url += "&UserID=" + app.globalData.userInfo.UserID;
56
+
57
+      main.getData(url, function (data) {
58
+        if (data) {
59
+          that.setData({
60
+            NewUserCount: data.List.length,
61
+          });
62
+          app.globalData.NewUserApplyArray = data;
63
+        }
64
+      });
65
+    }
66
+
67
+    var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
68
+    main.getData(url, function (data) {
69
+      if (data) {
70
+        that.setData({
71
+          Total: data.Total,
72
+          Total1: data.Total1,
73
+          Total2: data.Total2,
74
+          WithdrawableEarnings: data.WithdrawableEarnings,
75
+        });
76
+        app.globalData.EarningsList = data;
77
+      }
78
+    });
79
+
80
+    //预估新增收益
81
+    var url = url="GetMiaoguoEstimatedNewRevenueList?AgentCategory="+that.data.AgentCategory+"&UserID=" + app.globalData.userInfo.UserID+"&IsDue=0";
82
+    main.getData(url, function (data) {
83
+      if (data) {
84
+        that.setData({
85
+          EstimatedNewRevenueTotal: Math.round(data.Total),
86
+        });
87
+        app.globalData.EstimatedNewRevenue = data;
88
+      }
89
+    });
90
+    //可提现收益
91
+    var url = url="GetMiaoguoEstimatedNewRevenueList?AgentCategory="+that.data.AgentCategory+"&UserID=" + app.globalData.userInfo.UserID+"&IsDue=1";
92
+    main.getData(url, function (data) {
93
+      if (data) {
94
+        that.setData({
95
+          WithdrawableEarningsTotal: Math.round(data.Total),
96
+        });
97
+        app.globalData.WithdrawableEarnings = data;
98
+      }
99
+    });
100
+  },
101
+  onPullDownRefresh: function () {
102
+    wx.stopPullDownRefresh();
103
+    this.init();
104
+  },
105
+  goto: function (e) {
106
+    var url = e.currentTarget.dataset.url;
107
+    var gotoType = e.currentTarget.dataset.type;
108
+    if (!gotoType) {
109
+      wx.navigateTo({
110
+        url: url,
111
+      });
112
+    } else {
113
+      wx.redirectTo({
114
+        url: url,
115
+      })
116
+    }
117
+  },
118
+  gotoIndex: function () {
119
+    wx.reLaunch({
120
+      url: '../../pages/index/index',
121
+    })
122
+  },
123
+  onShareAppMessage: function () {
124
+    return {
125
+      title: app.globalData.ShareTitle,
126
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
127
+      imageUrl: app.globalData.ShareImage,
128
+    }
129
+  },
130
+})

pages_agent/promotion/user_index.json → pages_agent/main/user_index.json


+ 142 - 0
pages_agent/main/user_index.wxml

@@ -0,0 +1,142 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color: {{BackColor}};'>
2
+  <view class="panel0 FlexRow" wx:if="{{User.IsPromoter==1}}">
3
+    <view wx:if="{{IsPromotion}}" class="panel02Left panel01 FlexRow">
4
+      <view>直属推荐</view>
5
+    </view>
6
+    <view wx:if="{{IsPromotion}}" class="panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador" data-type="d">
7
+      <view>大使计划</view>
8
+    </view>
9
+    <view wx:if="{{!IsPromotion}}" class="panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion" data-type="d">
10
+      <view>直属推荐</view>
11
+    </view>
12
+    <view wx:if="{{!IsPromotion}}" class="panel02Right panel01 FlexRow">
13
+      <view>大使计划</view>
14
+    </view>
15
+  </view>
16
+  <image src='{{User.AvatarUrl}}' class="avatar" />
17
+  <image wx:if="{{IsPromotion}}" src='../images/promotion_user_home_title01.png' class="promotion_user_home_title01" />
18
+  <image wx:if="{{!IsPromotion}}" src='../images/promotion_partner_home_title01.png' class="promotion_user_home_title01" />
19
+  <view wx:if="{{IsPromotion}}" class="text2">{{Total}}</view>
20
+  <view wx:if="{{!IsPromotion}}" class="text1">{{Total}}</view>
21
+  <scroll-view wx:if="{{IsPromotion}}" class="panelAD" scroll-x="true" bindscroll="scroll">
22
+    <image src='../images/ad.png' class="adImage" />
23
+    <image src='../images/ad.png' class="adImage" />
24
+  </scroll-view>
25
+
26
+  <view class="panelTitle FlexRow" wx:if="{{IsPromotion}}">
27
+    <image src='../images/promotion_user_home_title02.png' class="promotion_user_home_title01" />
28
+  </view>
29
+  <view class="Null1" wx:if="{{!IsPromotion}}"></view>
30
+  <view class="panel1 FlexColumn">
31
+    <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>
35
+      </view>
36
+      <view class="panel112 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=可提现收益">
37
+        <view class="text3">{{WithdrawableEarningsTotal}}</view>
38
+        <view class="text4">可提现收益</view>
39
+      </view>
40
+      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}" wx:if="{{IsPromotion}}">
41
+        <view class="text3">{{WithdrawableEarnings}}</view>
42
+        <view class="text4">即将到帐</view>
43
+      </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
+    </view>
49
+    <view class="panel2_0 panel2 FlexRow">
50
+      <view class="panel21 FlexRow" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}">
51
+        收益记录
52
+      </view>
53
+      <view class="line"></view>
54
+      <view class="panel21 FlexRow" wx:if="{{IsPromotion}}" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
55
+        成果记录
56
+      </view>
57
+      <view class="panel21 FlexRow" wx:if="{{!IsPromotion}}" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队能量">
58
+        团队能量
59
+      </view>
60
+      <view class="line"></view>
61
+      <view class="panel21 FlexRow" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=退款记录">
62
+        退款记录
63
+      </view>
64
+    </view>
65
+  </view>
66
+
67
+  <view class="panel12 panel1 FlexRow">
68
+    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
69
+      <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
70
+      <view class="text8">
71
+        大使计划规则
72
+      </view>
73
+    </view>
74
+    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
75
+      <image src='../images/promotion_index_workbook.png' class="promotion_index_rules" />
76
+      <view class="text8">
77
+        大使工作手册
78
+      </view>
79
+    </view>
80
+    <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">
81
+      <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
82
+      <view class="text8">
83
+        推广计划规则
84
+      </view>
85
+    </view>
86
+    <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">
87
+      <image src='../images/promotion_index_code.png' class="promotion_index_rules" />
88
+      <view class="text8">
89
+        我的推广物料
90
+      </view>
91
+    </view>
92
+    <view class="panel112 FlexColumn" bindtap='goto' data-url="userinfo?AgentCategory={{AgentCategory}}">
93
+      <image src='../images/promotion_index_userinfo.png' class="promotion_index_rules" />
94
+      <view class="text8">
95
+        用户信息
96
+      </view>
97
+    </view>
98
+    <view class="panel112 FlexColumn" bindtap='goto' data-url="message">
99
+      <image src='../images/promotion_index_message.png' class="promotion_index_rules" />
100
+      <view class="text8">
101
+        消息中心
102
+      </view>
103
+      <view class="textMessage">新消息</view>
104
+    </view>
105
+  </view>
106
+
107
+  <block wx:if="{{IsPromotion}}">
108
+    <view class="panelTitle FlexRow">
109
+      <image src='../images/promotion_user_home_title03.png' class="promotion_user_home_title01" />
110
+    </view>
111
+    <view class="panel1 FlexColumn">
112
+      <view class="panel111 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=近期报名">
113
+        <view class="text3">{{NewUserCount}}</view>
114
+        <view class="text4">新报名的朋友</view>
115
+      </view>
116
+    </view>
117
+
118
+    <view class="panel3 FlexRow">
119
+      <view class="panel13 panel1 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=报名步骤没做完">
120
+        <text class="text6">别让这些朋友掉队\n在报名的路上</text>
121
+      </view>
122
+      <view class="panel14 panel1 FlexRow" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=未续费记录">
123
+        <text class="text7">问问这些\n朋友为什么\n没续费</text>
124
+      </view>
125
+    </view>
126
+  </block>
127
+
128
+
129
+  <view class="textBottom FlexRow" style="color:{{FrontColor}};">
130
+    <view class="panel21 FlexRow" bindtap='goto' data-url="index">
131
+      返回活动
132
+    </view>
133
+    <view class="line2 line"></view>
134
+    <view class="panel21 FlexRow">
135
+      联系客服
136
+    </view>
137
+    <view class="line2 line"></view>
138
+    <view class="panel21 FlexRow" bindtap='gotoIndex'>
139
+      返回秒过
140
+    </view>
141
+  </view>
142
+</view>

+ 118 - 24
pages_agent/promotion/user_index.wxss

@@ -5,64 +5,127 @@
5 5
   background-color: #FC7406;
6 6
 }
7 7
 
8
+.panel0{
9
+  width:500rpx;
10
+  height:110rpx;
11
+  margin-top: 30rpx;
12
+  background-color: #AB4E05;
13
+  border-radius: 20rpx;
14
+}
15
+
16
+.panel01{
17
+  font-size:36rpx;
18
+  color:#FC7406;
19
+  width:250rpx;
20
+}
21
+
22
+.panel02Left{
23
+  color:#fff;
24
+  background-color: #793703;
25
+  height:110rpx;
26
+  border-top-left-radius: 20rpx;
27
+  border-bottom-left-radius: 20rpx;
28
+}
29
+
30
+.panel02Right{
31
+  color:#fff;
32
+  background-color: #793703;
33
+  height:110rpx;
34
+  border-top-right-radius: 20rpx;
35
+  border-bottom-right-radius: 20rpx;
36
+}
37
+
8 38
 .avatar{
9
-  width:200rpx;
10
-  height:200rpx;
39
+  width:160rpx;
40
+  height:160rpx;
11 41
   margin-top: 60rpx;
12
-  border-radius: 20rpx;
42
+  border-radius: 50%;
13 43
 }
14 44
 
15
-.text1{
16
-  font-size:48rpx;
45
+.promotion_user_home_title01{
46
+  width:200rpx;
47
+  height:67rpx;
17 48
   margin-top: 30rpx;
18 49
 }
19 50
 
51
+.text1{
52
+  font-size:96rpx;
53
+  font-family: 'Roboto-Black';
54
+  color:#2E2E2E;
55
+}
20 56
 .text2{
21
-  font-size:128rpx;
57
+  font-size:96rpx;
22 58
   font-family: 'Roboto-Black';
23 59
 }
24 60
 
61
+.panelAD{
62
+  width:710rpx;
63
+  height:230rpx;
64
+  margin-top: 60rpx;
65
+  white-space: nowrap;
66
+}
67
+
68
+.adImage{
69
+  width:710rpx;
70
+  height:230rpx;
71
+  display: inline-block;
72
+}
73
+
74
+.panelTitle{
75
+  width:650rpx;
76
+  justify-content: flex-start;
77
+  margin-top: 50rpx;
78
+}
25 79
 
26 80
 .panel1{
27 81
   width:710rpx;
28 82
   background-color: #F2F2F2;
29 83
   border-radius: 20rpx;
30 84
   color:#4D4D4D;
31
-  margin: 60rpx 0 0 0;
85
+  margin: 30rpx 0 0 0;
32 86
   justify-content: flex-start;
33 87
   box-shadow: 0 20rpx 0 0 rgba(0,0,0,0.1);
34 88
 }
35 89
 
36
-.panel11{
37
-  align-items: flex-start;
90
+.panel12{
91
+  margin-top: 40rpx;
92
+  flex-wrap: wrap;
38 93
 }
39 94
 
95
+
40 96
 .panel111{
41
-  width:238rpx;
42
-  height:188rpx;
43
-  justify-content: flex-start;
97
+  width:355rpx;
98
+  height:208rpx;
99
+}
100
+
101
+.panel112{
102
+  width:236rpx;
103
+  height:203rpx;
44 104
   position: relative;
45 105
 }
46 106
 
107
+
47 108
 .text3{
48 109
   font-size:64rpx;
49 110
   font-family: 'Roboto-Black';
50
-  color:#1E1E1E;
51
-  margin-top: 40rpx;
111
+  color:#4d4d4d;
52 112
 }
53 113
 .text4{
54 114
   font-size:24rpx;
55 115
   margin-top: 10rpx;
56 116
 }
117
+.text8{
118
+  font-size:24rpx;
119
+  margin-top: 22rpx;
120
+}
57 121
 
58 122
 .line{
59 123
   width:4rpx;
60 124
   height:40rpx;
61 125
   background-color: #4D4D4D;
62
-  margin-top: 60rpx;
63 126
 }
64 127
 .line2{
65
-  margin-top: 54rpx;
128
+  background-color: #FD9949;
66 129
 }
67 130
 
68 131
 .universalpic_indicator_right_deepgray{
@@ -80,17 +143,23 @@
80 143
 .panel2_0{
81 144
   background-color: #2e2e2e; 
82 145
   color:#fff;
146
+  border-bottom-left-radius: 20rpx;
147
+  border-bottom-right-radius: 20rpx;
83 148
 }
84 149
 .panel2_1{
85 150
   border-top:1rpx solid #e3e3e3;
86 151
   border-bottom-left-radius: 20rpx;
87 152
   border-bottom-right-radius: 20rpx;
88 153
   background-color: #fff;
154
+  justify-content: center;
155
+  font-size: 28rpx;
156
+  font-weight: 400;
89 157
 }
90 158
 .panel21{
91
-  margin-left: 30rpx;
92 159
   font-size: 28rpx;
93 160
   font-weight: 400;
161
+  width:238rpx;
162
+  min-height: 100rpx;
94 163
 }
95 164
 .Arrow{
96 165
   width:16rpx;
@@ -98,10 +167,6 @@
98 167
   margin-right: 30rpx;
99 168
 }
100 169
 
101
-.panel1_0{
102
-  margin-top: 50rpx;
103
-}
104
-
105 170
 .text5{
106 171
   font-size:36rpx;
107 172
   margin-top: 40rpx;
@@ -110,13 +175,12 @@
110 175
 .promotion_index_rules{
111 176
   width:46rpx;
112 177
   height:46rpx;
113
-  margin: 52rpx 0 12rpx 0;
114 178
 }
115 179
 
116 180
 .textMessage{
117 181
   position: absolute;
118 182
   top:20rpx;
119
-  right:20rpx;
183
+  left:40rpx;
120 184
   width:80rpx;
121 185
   height:36rpx;
122 186
   line-height: 36rpx;
@@ -131,5 +195,35 @@
131 195
 .textBottom{
132 196
   font-size:28rpx;
133 197
   color:#fff;
134
-  margin: 100rpx 0 60rpx 0;
198
+  margin: 70rpx 0 60rpx 0;
199
+}
200
+
201
+.panel3{
202
+  width:710rpx;
203
+  margin-top: 10rpx;
204
+  justify-content: space-between;
205
+}
206
+.panel13{
207
+  width:430rpx;
208
+  height:210rpx;
209
+  justify-content: flex-end;
210
+  align-items: flex-start;
211
+}
212
+.text6{
213
+  margin: 0 0 30rpx 30rpx;
214
+  font-size:34rpx;
215
+}
216
+.panel14{
217
+  width:260rpx;
218
+  height:210rpx;
219
+  background-color: #F7E1D1;
220
+  justify-content: flex-start;
221
+}
222
+.text7{
223
+  margin: 0 0 0 30rpx;
224
+  font-size:34rpx;
225
+}
226
+
227
+.Null1{
228
+  height:30rpx;
135 229
 }

+ 14 - 3
pages_agent/promotion/user_index.js

@@ -5,13 +5,24 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    
8
+    List: [{
9
+      NickName: "昵称1"
10
+    }, {
11
+      NickName: "昵称2"
12
+    }, {
13
+      NickName: "昵称3"
14
+    }, {
15
+      NickName: "本人"
16
+    }],
9 17
   },
10 18
   onLoad: function (options) {
11 19
     var that = this;
12
-    
20
+
21
+    that.data.List[that.data.List.length-1].IsMe="IsMe";
22
+
13 23
     that.setData({
14 24
       Containnerheight: main.getWindowHeight(),
25
+      List:that.data.List,
15 26
     });
16 27
   },
17 28
   onPullDownRefresh: function () {
@@ -24,4 +35,4 @@ Page({
24 35
       imageUrl: app.globalData.ShareImage,
25 36
     }
26 37
   },
27
-})
38
+})

+ 4 - 0
pages_agent/main/user_relation.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "队员详情",
3
+  "backgroundColor": "#F2F2F2"
4
+}

+ 41 - 0
pages_agent/main/user_relation.wxml

@@ -0,0 +1,41 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panel1 FlexRow">
3
+    <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
4
+    <view class="text1">宏壮-主持策划18835883876</view>
5
+  </view>
6
+  <view class="panel2 FlexRow">
7
+    <text class="text2">Ta与我的关系</text>
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>
17
+      </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>
23
+      </view>
24
+    </view>
25
+  </block>
26
+  <view class="panel3 FlexColumn">
27
+    <text class="text5">Ta的直属推荐</text>
28
+    <text class="text6"><text class="Number1" >24</text>位用户</text>
29
+  </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>
34
+      <view class="text8 FlexRow">
35
+        <view class="Number2">5</view>
36
+        <view class="line2"></view>
37
+        <view class="Number2">12</view>
38
+      </view>
39
+    </view>
40
+  </view>
41
+</view>

+ 138 - 0
pages_agent/main/user_relation.wxss

@@ -0,0 +1,138 @@
1
+.panel1{
2
+  width:100%;
3
+  height: 110rpx;
4
+  justify-content: flex-start;
5
+  background-color: #fff;
6
+}
7
+
8
+.avatar{
9
+  width:50rpx;
10
+  height:50rpx;
11
+  border-radius: 20rpx;
12
+  margin-left: 30rpx;
13
+}
14
+
15
+.text1{
16
+  font-size: 28rpx;
17
+  font-weight: 400;
18
+  margin-left: 22rpx;
19
+  color: #4d4d4d;
20
+}
21
+
22
+.panel2{
23
+  width: 100%;
24
+  justify-content: flex-start;
25
+  margin: 60rpx 0 30rpx 0;
26
+}
27
+
28
+.text2{
29
+  font-size: 36rpx;
30
+  margin: 0 30rpx;
31
+  color: #4d4d4d;
32
+}
33
+
34
+.panelItem{
35
+  width:100%;
36
+  height:110rpx;
37
+  background-color: #fff;
38
+  justify-content: space-between;
39
+}
40
+
41
+.avatar2{
42
+  width:50rpx;
43
+  height:50rpx;
44
+  border-radius: 50%;
45
+  margin-left: 30rpx;
46
+}
47
+
48
+.text3{
49
+  font-size: 28rpx;
50
+  margin-left: 20rpx;
51
+  color: #4d4d4d;
52
+}
53
+
54
+.text4{
55
+  font-size: 28rpx;
56
+  margin-right: 30rpx;
57
+  color: #787878;
58
+}
59
+
60
+.IsMe{
61
+  background-color: #FFE4B6;
62
+}
63
+
64
+.panel3{
65
+  width: 100%;
66
+  justify-content: flex-start;
67
+  height:190rpx;
68
+  align-items: flex-start;
69
+}
70
+
71
+
72
+.text5{
73
+  font-size: 36rpx;
74
+  margin: 60rpx 30rpx 0 30rpx;
75
+  color: #4d4d4d;
76
+}
77
+.text6{
78
+  font-size: 36rpx;
79
+  margin: 0 30rpx 0 30rpx;
80
+  color: #4d4d4d;
81
+}
82
+
83
+.Number1{
84
+  font-family: 'Roboto-Black';
85
+  font-size:36rpx;
86
+  color:#4D4D4D;
87
+  margin-right: 6rpx;
88
+}
89
+
90
+.panel4{
91
+  width: 100%;
92
+  min-height:372rpx;
93
+  background-color: #fff;
94
+  flex-wrap: wrap;
95
+  justify-content: flex-start;
96
+  align-items: flex-start;
97
+}
98
+
99
+
100
+.panel41{
101
+  width:150rpx;
102
+  min-height:168rpx;
103
+  justify-content: flex-start;
104
+}
105
+
106
+.product_icon_mg_70x70{
107
+  width:80rpx;
108
+  height:80rpx;
109
+  border-radius: 20rpx;
110
+  margin-top: 30rpx;
111
+}
112
+
113
+.text7{
114
+  width:110rpx;
115
+  font-size:20rpx;
116
+  font-weight: 400;
117
+  text-align: center;
118
+  margin-top:20rpx;
119
+}
120
+
121
+.text8{
122
+  width:110rpx;
123
+  font-size:20rpx;
124
+  font-weight: 400;
125
+  text-align: center;
126
+}
127
+
128
+.line2{
129
+  width:2rpx;
130
+  height:14rpx;
131
+  background-color: #d2d2d2;
132
+  margin: 0 6rpx;
133
+}
134
+.Number2{
135
+  font-family: 'Roboto-Black';
136
+  color:#4D4D4D;
137
+  margin: 6rpx;
138
+}

+ 47 - 58
pages_agent/main/userinfo.js

@@ -1,66 +1,55 @@
1
-// pages_agent/main/userinfo.js
2
-Page({
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3 3
 
4
-  /**
5
-   * 页面的初始数据
6
-   */
7
-  data: {
4
+const app = getApp();
8 5
 
6
+Page({
7
+  data: {
8
+    IsPromotion:false,
9 9
   },
10
-
11
-  /**
12
-   * 生命周期函数--监听页面加载
13
-   */
14 10
   onLoad: function (options) {
15
-
16
-  },
17
-
18
-  /**
19
-   * 生命周期函数--监听页面初次渲染完成
20
-   */
21
-  onReady: function () {
22
-
23
-  },
24
-
25
-  /**
26
-   * 生命周期函数--监听页面显示
27
-   */
28
-  onShow: function () {
29
-
30
-  },
31
-
32
-  /**
33
-   * 生命周期函数--监听页面隐藏
34
-   */
35
-  onHide: function () {
36
-
11
+    var that = this;
12
+    
13
+    var isPromotion=false;
14
+    var title="大使";
15
+    var backColor="#FFB808";
16
+    var frontColor="#2E2E2E";
17
+    var frontColor2="#000000";
18
+    if (options.AgentCategory=="promotion"){
19
+      isPromotion=true;
20
+      title="推广";
21
+      backColor="#FC7406";
22
+      frontColor="#ffffff";
23
+      frontColor2="#000000";
24
+    }
25
+
26
+    that.setData({
27
+      Containnerheight: main.getWindowHeight(),
28
+      IsPromotion:isPromotion,
29
+      BackColor:backColor,
30
+      FrontColor:frontColor,
31
+      Title:title,
32
+      User:app.globalData.userInfo,
33
+    });
34
+
35
+    wx.setBackgroundColor({
36
+      backgroundColor: backColor,
37
+    });
38
+    wx.setNavigationBarColor({
39
+      backgroundColor: backColor,
40
+      backgroundColorTop:backColor,
41
+      backgroundColorBottom:backColor,
42
+      frontColor: frontColor2,
43
+    })
37 44
   },
38
-
39
-  /**
40
-   * 生命周期函数--监听页面卸载
41
-   */
42
-  onUnload: function () {
43
-
44
-  },
45
-
46
-  /**
47
-   * 页面相关事件处理函数--监听用户下拉动作
48
-   */
49 45
   onPullDownRefresh: function () {
50
-
46
+    wx.stopPullDownRefresh();
51 47
   },
52
-
53
-  /**
54
-   * 页面上拉触底事件的处理函数
55
-   */
56
-  onReachBottom: function () {
57
-
58
-  },
59
-
60
-  /**
61
-   * 用户点击右上角分享
62
-   */
63 48
   onShareAppMessage: function () {
64
-
65
-  }
66
-})
49
+    return {
50
+      title: app.globalData.ShareTitle,
51
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
52
+      imageUrl: app.globalData.ShareImage,
53
+    }
54
+  },
55
+})

+ 39 - 33
pages_agent/main/userinfo.wxml

@@ -1,64 +1,70 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panel1_1 panel1 FlexColumn">
3
-    <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
4
-    <view class="text1">昵称</view>
5
-    <view class="panel11 FlexColumn">
6
-      <view class="text2">正式用户</view>
7
-      <view class="panel111 FlexRow">
8
-        <view class="panel1111 FlexColumn">
9
-          <view class="text3">2021.11.04</view>
10
-          <view class="text4">首次续费时间</view>
11
-        </view>
12
-        <view class="line"></view>
13
-        <view class="panel1111 FlexColumn">
14
-          <view class="text3">2021.11.04</view>
15
-          <view class="text4">首次续费时间</view>
16
-        </view>
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color: {{BackColor}};'>
2
+  <view class="panel1_1 panel1 FlexColumn" style="background-color: {{BackColor}};color:{{FrontColor}}">
3
+    <image src='{{User.AvatarUrl}}' class="avatar" />
4
+    <view class="text1">{{User.NickName}}</view>
5
+    <text class="text2">您是已参加{{Title}}计划的\n正式用户</text>
6
+    <view class="panel11 FlexRow">
7
+      <view class="panel111 FlexColumn">
8
+        <view class="Number1">{{User.PromotionLimitTime}}</view>
9
+        <view class="text3">资格有效期</view>
10
+      </view>
11
+      <view wx:if="{{IsPromotion}}" class="line"></view>
12
+      <view wx:if="{{!IsPromotion}}" class="line2 line"></view>
13
+      <view class="panel112 FlexColumn">
14
+        <view class="Number1">{{User.PromotionLimitDays}}</view>
15
+        <view class="text3">剩余天数</view>
17 16
       </view>
18 17
     </view>
18
+    <text class="text4">这里有一段对资格有效期的说明 ARIA vocal collection15曲アリア OP, ED, 挿入歌 / 牧野由依, ROUND TABLE feat. Nino, 河井英里 etc.</text>
19
+    <block wx:if="{{IsPromotion && (User.Introducer>0 && User.Introducer!=6)}}">
20
+      <text class="text5">我的推荐人</text>
21
+      <view class="btn FlexRow">
22
+        <image src='{{User.IntroducerAvatarUrl}}' class="avatar2" />
23
+        <view class="text7">{{User.IntroducerNickName}}</view>
24
+      </view>
25
+    </block>
19 26
   </view>
20 27
   <view class="panel2 FlexColumn">
28
+    
21 29
     <view class="panel2Item FlexRow">
22
-      <view>推广计划资格有效期</view>
23
-      <view>2021年11月04日</view>
30
+      <view class="text6">收款人微信帐号</view>
31
+      <view>{{User.WXAccount}}</view>
24 32
     </view>
25 33
     <view class="lineWidthAll FlexRow">
26 34
       <view class="lineWidth720"></view>
27 35
     </view>
28
-    <view class="panel2Item2 panel2Item FlexRow">
29
-      <view>离失去推广收益资格还剩</view>
30
-      <view>1天</view>
31
-      <text class="text5">这里有一段对资格有效期的说明\nARIA vocal collection(15曲)アリア OP, ED, 挿入歌 / 牧野由依, ROUND TABLE feat. Nino, 河井英里 etc.</text>
36
+    <view class="panel2Item FlexRow">
37
+      <view class="text6">收款帐号真实姓名</view>
38
+      <view>{{User.RealName}}</view>
32 39
     </view>
33 40
     <view class="lineWidthAll FlexRow">
34 41
       <view class="lineWidth720"></view>
35 42
     </view>
36 43
     <view class="panel2Item FlexRow">
37
-      <view>微信支付平台交易手续费</view>
38
-      <view>0.6%</view>
44
+      <view class="text6">收款帐号身份证</view>
45
+      <view>{{User.IdentityCard}}</view>
39 46
     </view>
40 47
     <view class="lineWidthAll FlexRow">
41 48
       <view class="lineWidth720"></view>
42 49
     </view>
43 50
     <view class="panel2Item FlexRow">
44
-      <view>代缴个人所得税</view>
45
-      <view>6%</view>
51
+      <view class="text6">收款帐号联系电话</view>
52
+      <view>{{User.Phone}}</view>
46 53
     </view>
54
+
47 55
     <view class="lineWidthAll FlexRow">
48 56
       <view class="lineWidth720"></view>
49 57
     </view>
50 58
     <view class="panel2Item FlexRow">
51
-      <view>收款人微信帐号</view>
52
-      <view>一泓清水@体脂管理</view>
59
+      <view class="text6">微信支付平台交易手续费</view>
60
+      <view>{{User.WXServiceCharge}}</view>
53 61
     </view>
54 62
     <view class="lineWidthAll FlexRow">
55 63
       <view class="lineWidth720"></view>
56 64
     </view>
57 65
     <view class="panel2Item FlexRow">
58
-      <view>收款帐号真实姓名</view>
59
-      <view>天不怕</view>
66
+      <view class="text6">代缴个人所得税</view>
67
+      <view>{{User.IndividualIncomeTax}}</view>
60 68
     </view>
61
-  </view>    
62
-  
63
-  
69
+  </view>  
64 70
 </view>

+ 66 - 44
pages_agent/main/userinfo.wxss

@@ -3,68 +3,92 @@
3 3
   justify-content: flex-start;
4 4
   color:#fff;
5 5
 }
6
-.panel1_1{
7
-  background-color: #FC7406;
8
-}
9
-.panel1_2{
10
-  background-color: #FFB808;
11
-}
12 6
 .avatar{
13
-  width:200rpx;
14
-  height:200rpx;
7
+  width:160rpx;
8
+  height:160rpx;
15 9
   margin-top: 60rpx;
16
-  border-radius: 20rpx;
10
+  border-radius: 50%;
17 11
 }
18 12
 
19 13
 .text1{
20
-  font-size:32rpx;
21
-  margin-top: 20rpx;
14
+  font-size:38rpx;
15
+  margin-top: 30rpx;
16
+}
17
+.text2{
18
+  font-size:28rpx;
19
+  margin-top: 30rpx;
20
+  text-align: center;
22 21
 }
23 22
 
24 23
 .panel11{
25
-  width:710rpx;
26
-  height:245rpx;
27
-  background-color: #F2F2F2;
28
-  border-radius: 20rpx;
29
-  color:#4D4D4D;
30
-  margin: 60rpx 0 80rpx 0;
31
-  justify-content: flex-start;
32
-
33
-  box-shadow: 0 20rpx 0 0 rgba(0,0,0,0.1);
34
-}
35
-.text2{
36
-  font-size:36rpx;
37
-  margin-top:40rpx;
24
+  width:610rpx;
25
+  margin-top: 43rpx;
26
+  justify-content: space-between;
27
+  align-items: flex-start;
38 28
 }
39 29
 
40 30
 .panel111{
41
-  margin-top: 20rpx;
31
+  width:446rpx;
42 32
   align-items: flex-start;
43 33
 }
44
-
45
-.panel1111{
46
-  width:300rpx;
47
-  height:85rpx;
34
+.line{
35
+  width: 4rpx;
36
+  height:40rpx;
37
+  background-color: #FD9949;
38
+  margin-top: 8rpx;
39
+}
40
+.line2{
41
+  background-color: #FFD56E;
42
+}
43
+.panel112{
44
+  width:160rpx;
45
+  align-items: flex-end;
46
+}
47
+.Number1{
48
+  font-family: 'Roboto-Black';
49
+  font-size:48rpx;
48 50
 }
49 51
 
50 52
 .text3{
51
-  font-size:36rpx;
52
-  font-family: 'Roboto-Black';
53
+  font-size:24rpx;
54
+  margin-top: 4rpx;
53 55
 }
54 56
 .text4{
55
-  font-size:24rpx;
56
-  margin-top: 10rpx;
57
+  font-size:22rpx;
58
+  margin-top: 30rpx;
59
+  width:610rpx;
57 60
 }
58 61
 
59
-.line{
60
-  width:4rpx;
61
-  height:40rpx;
62
-  background-color: #4D4D4D;
62
+.text5{
63
+  width:610rpx;
64
+  font-size: 28rpx;
65
+  margin-top: 60rpx;
66
+  text-align: center;
67
+}
68
+
69
+.btn{
70
+  width:610rpx;
71
+  height:100rpx;
72
+  border-radius: 20rpx;
73
+  background-color: #fff;
74
+  margin:30rpx 0 0 0;
75
+}
76
+
77
+.avatar2{
78
+  border-radius: 50%;
79
+  width:50rpx;
80
+  height:50rpx;
81
+  margin-right: 20rpx;
82
+}
83
+.text7{
84
+  color:#787878;
85
+  font-size: 28rpx;
63 86
 }
64 87
 
65 88
 .panel2{
66 89
   width:100%;
67 90
   background-color: #fff;
91
+  margin-top: 80rpx;
68 92
 }
69 93
 
70 94
 .panel2Item{
@@ -72,17 +96,15 @@
72 96
   min-height:100rpx;
73 97
   justify-content: space-between;
74 98
   font-size: 28rpx;
75
-  font-weight: 400;
76 99
   flex-wrap: wrap;
77 100
 }
78 101
 
79 102
 .panel2Item2{
80 103
   height:189rpx;
104
+  color:#787878;
81 105
 }
82 106
 
83
-.text5{
84
-  width:690rpx;
85
-  font-size: 20rpx;
86
-  font-weight: 500;
87
-}
88
-
107
+.text6{
108
+  font-weight: 400;
109
+  color:#4D4D4D;
110
+}

+ 8 - 1
pages_agent/promotion/earnings_list.js

@@ -5,14 +5,21 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    
8
+    IsPromotion:false,
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
12 12
     
13
+    var isPromotion=true;
14
+    if (options.AgentCategory=="promotion"){
15
+      isPromotion=true;
16
+    }
17
+
13 18
     that.setData({
14 19
       Containnerheight: main.getWindowHeight(),
20
+      IsPromotion:isPromotion,
15 21
     });
22
+
16 23
   },
17 24
   onPullDownRefresh: function () {
18 25
     wx.stopPullDownRefresh();

+ 4 - 0
pages_agent/main/withdraw_deposit.json

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

+ 61 - 24
pages_agent/promotion/earnings.wxml

@@ -10,15 +10,17 @@
10 10
     </view>
11 11
   </view>
12 12
 
13
-  <view class="panel4 FlexRow">
14
-    <view class="Left FlexRow">
13
+  <view class="panel4 FlexColumn">
14
+    <view class="panel41 FlexRow">
15 15
       <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
16
-      <view class="panel41 FlexColumn">
17
-        <view class="text8">您有1笔退款,返还奖励后,剩余收益可提现。</view>
18
-        <view class="text4">查看退款记录</view>
19
-      </view>
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" />
20 22
     </view>
21
-    <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
23
+
22 24
   </view>
23 25
 
24 26
   <view class="panel2 FlexRow">
@@ -26,28 +28,63 @@
26 28
     <text class="text7">收益 <text class="Number1">960.00</text></text>
27 29
   </view>
28 30
   <view class="panel3 FlexColumn">
29
-    <block wx:for="{{[1,2,3,4,5]}}" wx:key="index">
31
+    <!-- 推广 -->
32
+    <block wx:if="{{!IsPromotion}}" wx:for="{{[1,2,3,4,5]}}" wx:key="index">
30 33
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
31 34
         <view class="lineWidth720"></view>
32 35
       </view>
33
-      <view class="panelItem FlexRow" >
34
-      <view class="Left FlexRow">
35
-        <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
36
-        <view class="panelItem1 FlexColumn">
37
-          <view class="text4">昵称</view>
38
-          <view class="text5">续费 2021年11月04日 08:20</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>
39 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>
40 59
       </view>
41
-      <view class="Right FlexColumn">
42
-        <block wx:if="{{false}}">
43
-          <view class="text6">等待生效</view>
44
-          <view class="text5">2021年11月04日 08:20</view>
45
-        </block>
46
-        <view class="Number1" wx:if="{{true}}">30.00</view>
60
+      <view class="lineWidthAll FlexRow">
61
+        <view class="lineWidth750"></view>
47 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>
48 84
     </view>
49
-    </block>
50
-    
85
+
86
+
87
+
51 88
   </view>
52 89
   <view style="height:150rpx;"></view>
53 90
   <view class="panelBottom FlexColumn">
@@ -55,7 +92,7 @@
55 92
   </view>
56 93
 </view>
57 94
 
58
-<view class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
95
+<view wx:if="{{false}}" class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
59 96
   <view class="panel5 FlexColumn">
60 97
     <view class="text51">申请提现</view>
61 98
     <view class="panel51 FlexRow">
@@ -108,7 +145,7 @@
108 145
       <view class="text54">张三</view>
109 146
     </view>
110 147
     <view class="btn2">确认</view>
111
-    
148
+
112 149
   </view>
113 150
   <view class="btnCancel">取消</view>
114 151
 

+ 48 - 7
pages_agent/promotion/earnings.wxss

@@ -39,11 +39,9 @@
39 39
 
40 40
 .panel4{
41 41
   width:710rpx;
42
-  height:143rpx;
43 42
   border-radius: 20rpx;
44 43
   background-color: #fff;
45 44
   margin: 0 0 60rpx 0;
46
-  justify-content: space-between;
47 45
 }
48 46
 
49 47
 .universalpic_exclamation_orange_40x40{
@@ -68,19 +66,37 @@
68 66
   color:#4D4D4D;
69 67
 }
70 68
 .Number1{
69
+  font-family: 'Roboto-Black';
70
+  font-size:36rpx;
71
+  color:#4D4D4D;
72
+}
73
+.Number2{
71 74
   font-family: 'Roboto-Black';
72 75
   font-size:28rpx;
73 76
   color:#4D4D4D;
74 77
 }
75 78
 
76 79
 .panel41{
77
-  align-items: flex-start;
78
-  margin-left: 20rpx;
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;
79 95
 }
80 96
 .text8{
81
-  font-size: 24rpx;
82
-  color:#1E1E1E;
83
-  margin-bottom: 10rpx;
97
+  font-size: 22rpx;
98
+  color: #4d4d4d;
99
+  margin-left: 30rpx;
84 100
 }
85 101
 
86 102
 .panel3{
@@ -90,6 +106,12 @@
90 106
   margin-top: 30rpx;
91 107
 }
92 108
 
109
+.nullLine{
110
+  width:100%;
111
+  height:20rpx;
112
+  background-color: #f2f2f2;
113
+}
114
+
93 115
 .panelItem{
94 116
   width: 100%;
95 117
   height:141rpx;
@@ -103,6 +125,24 @@
103 125
   margin-left: 30rpx;
104 126
 }
105 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
+
106 146
 .panelItem1{
107 147
   align-items: flex-start;
108 148
   margin-left: 20rpx;
@@ -112,6 +152,7 @@
112 152
   font-size: 28rpx;
113 153
   color:#4D4D4D;
114 154
   font-weight: 400;
155
+  margin-left: 30rpx;
115 156
 }
116 157
 .text5{
117 158
   font-size: 20rpx;

+ 0 - 4
pages_agent/promotion/earnings.json

@@ -1,4 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "预估新增收益",
3
-  "backgroundColor": "#F2F2F2"
4
-}

+ 0 - 45
pages_agent/promotion/earnings_list.wxml

@@ -1,45 +0,0 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panel1 FlexColumn" bindtap='goto'>
3
-    <view class="text10 text1">等待审核</view>
4
-    <view class="text2">166.24</view>
5
-    <view class="text3">到帐金额</view>
6
-    <view class="line"></view>
7
-    <view class="panel11 FlexColumn">
8
-      <view class="panel111 FlexRow">
9
-        <view class="text4">申请单号</view>
10
-        <view class="text5">123456789</view>
11
-      </view>
12
-      <view class="panel112 FlexRow">
13
-        <view class="text4">申请时间</view>
14
-        <view class="text5">2021年11月04日 08:20</view>
15
-      </view>
16
-    </view>
17
-    <view class="line2"></view>
18
-    <view class="panel12 FlexRow">
19
-      <view class="text6">查看申请单详情</view>
20
-      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
21
-    </view>
22
-  </view>
23
-
24
-  <view class="panel1 FlexColumn" bindtap='goto'>
25
-    <view class="text1">审核通过</view>
26
-    <view class="text2">66.84</view>
27
-    <view class="text3">到帐金额</view>
28
-    <view class="line"></view>
29
-    <view class="panel11 FlexColumn">
30
-      <view class="panel111 FlexRow">
31
-        <view class="text4">申请单号</view>
32
-        <view class="text5">123456789</view>
33
-      </view>
34
-      <view class="panel112 FlexRow">
35
-        <view class="text4">申请时间</view>
36
-        <view class="text5">2021年11月04日 08:20</view>
37
-      </view>
38
-    </view>
39
-    <view class="line2"></view>
40
-    <view class="panel12 FlexRow">
41
-      <view class="text6">查看申请单详情</view>
42
-      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
43
-    </view>
44
-  </view>
45
-</view>

+ 0 - 105
pages_agent/promotion/user_index.wxml

@@ -1,105 +0,0 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-    <image src='../../pages/images/product_icon_mg_70x70.png' class="avatar" />
3
-    <view class="text1">累计收益</view>
4
-    <view class="text2">166.24</view>
5
-    
6
-    <view class="panel1 FlexColumn">
7
-      <view class="panel11 FlexRow">
8
-        <view class="panel111 FlexColumn">
9
-          <view class="text3">60</view>
10
-          <view class="text4 FlexRow">
11
-            <view class="universalpic_indicator_right_deepgray"></view>
12
-            <view>预估新增收益</view>
13
-            <image src='../images/universalpic_indicator_right_deepgray.png' class="universalpic_indicator_right_deepgray" />
14
-          </view>
15
-        </view>
16
-        <view class="line"></view>
17
-        <view class="panel111 FlexColumn">
18
-          <view class="text3">260</view>
19
-          <view class="text4 FlexRow">
20
-            <view class="universalpic_indicator_right_deepgray"></view>
21
-            <view>可提现收益</view>
22
-            <image src='../images/universalpic_indicator_right_deepgray.png' class="universalpic_indicator_right_deepgray" />
23
-          </view>
24
-        </view>
25
-        <view class="line"></view>
26
-        <view class="panel111 FlexColumn">
27
-          <view class="text3">12</view>
28
-          <view class="text4 FlexRow">
29
-            <view class="universalpic_indicator_right_deepgray"></view>
30
-            <view>已结清人数</view>
31
-            <image src='../images/universalpic_indicator_right_deepgray.png' class="universalpic_indicator_right_deepgray" />
32
-          </view>
33
-        </view>
34
-      </view>
35
-      <view class="panel2_0 panel2 FlexRow">
36
-        <view class="panel21 FlexRow">
37
-          收益记录
38
-        </view>
39
-        <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
40
-      </view>
41
-      <view class="panel2_1 panel2 FlexRow">
42
-        <view class="panel21 FlexRow">
43
-          其它情况
44
-        </view>
45
-        <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
46
-      </view>
47
-    </view>
48
-
49
-    <view class="panel1_0 panel1 FlexColumn">
50
-      <view class="text5">潜在收益</view>
51
-      <view class="panel11 FlexRow">
52
-        <view class="panel111 FlexColumn">
53
-          <view class="text3">17</view>
54
-          <view class="text4 FlexRow">
55
-            <view class="universalpic_indicator_right_deepgray"></view>
56
-            <view>新报名</view>
57
-            <image src='../images/universalpic_indicator_right_deepgray.png' class="universalpic_indicator_right_deepgray" />
58
-          </view>
59
-        </view>
60
-        <view class="line"></view>
61
-        <view class="panel111 FlexColumn">
62
-          <view class="text3">0</view>
63
-          <view class="text4 FlexRow">
64
-            <view class="universalpic_indicator_right_deepgray"></view>
65
-            <view>新访客</view>
66
-            <image src='../images/universalpic_indicator_right_deepgray.png' class="universalpic_indicator_right_deepgray" />
67
-          </view>
68
-        </view>
69
-      </view>
70
-    </view>
71
-
72
-    <view class="panel1_0 panel1 FlexColumn">
73
-      <view class="panel11 FlexRow">
74
-        <view class="panel111 FlexColumn">
75
-          <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
76
-          <view class="text4 FlexRow">
77
-            <view>推广计划规则</view>
78
-          </view>
79
-        </view>
80
-        <view class="line2 line"></view>
81
-        <view class="panel111 FlexColumn">
82
-          <image src='../images/promotion_index_code.png' class="promotion_index_rules" />
83
-          <view class="text4 FlexRow">
84
-            <view>我的推广物料</view>
85
-          </view>
86
-        </view>
87
-        <view class="line2 line"></view>
88
-        <view class="panel111 FlexColumn">
89
-          <image src='../images/promotion_index_message.png' class="promotion_index_rules" />
90
-          <view class="text4 FlexRow">
91
-            <view>消息中心</view>
92
-          </view>
93
-          <view class="textMessage">新消息</view>
94
-        </view>
95
-      </view>
96
-      <view class="panel2_1 panel2 FlexRow">
97
-        <view class="panel21 FlexRow">
98
-          联系客服
99
-        </view>
100
-        <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
101
-      </view>
102
-    </view>
103
-
104
-    <view class="textBottom">返回秒过活动首页</view>
105
-</view>

+ 3 - 3
project.config.json

@@ -17,7 +17,7 @@
17 17
     "checkInvalidKey": true,
18 18
     "checkSiteMap": true,
19 19
     "uploadWithSourceMap": true,
20
-    "compileHotReLoad": true,
20
+    "compileHotReLoad": false,
21 21
     "useMultiFrameRuntime": true,
22 22
     "useApiHook": true,
23 23
     "useApiHostProcess": true,
@@ -32,9 +32,9 @@
32 32
     "packNpmRelationList": [],
33 33
     "minifyWXSS": true,
34 34
     "disableUseStrict": false,
35
+    "minifyWXML": true,
35 36
     "showES6CompileOption": false,
36
-    "useCompilerPlugins": false,
37
-    "minifyWXML": true
37
+    "useCompilerPlugins": false
38 38
   },
39 39
   "compileType": "miniprogram",
40 40
   "libVersion": "2.20.2",

+ 2 - 2
project.private.config.json

@@ -34,8 +34,8 @@
34 34
           "scene": null
35 35
         },
36 36
         {
37
-          "name": "pages_agent/promotion/earnings_list",
38
-          "pathName": "pages_agent/promotion/earnings_list",
37
+          "name": "推广",
38
+          "pathName": "pages_agent/main/index",
39 39
           "query": "",
40 40
           "scene": null
41 41
         }

+ 50 - 21
utils/main.js

@@ -608,9 +608,6 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
608 608
     clearTimeout(dataSendTimeout);
609 609
     dataSendTimeout = setTimeout(function () {
610 610
       wx.hideLoading();
611
-      wx.reLaunch({
612
-        url: '../index/index',
613
-      })
614 611
     }, 60000);
615 612
   }
616 613
   var list = wx.getStorageSync("ListTaskFinished");
@@ -632,7 +629,7 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
632 629
       List: arr,
633 630
     }, function (data) {
634 631
       if (isShowLoading) {
635
-        wx.hideLoading();
632
+        wx.hideLoading();        
636 633
         clearTimeout(dataSendTimeout);
637 634
       }
638 635
       if (data) {
@@ -846,8 +843,8 @@ function GetHanziUnitWords(unitsID, testType, callback) {
846 843
             taskInfo.Content[0].Content = ["怎么写"];
847 844
   
848 845
             var question = words[k].CombineWords;
849
-            var question2 = common.ReplaceAllString(question, words[k].Name, words[k].Pinyin);
850
-  
846
+            //var question2 = common.ReplaceAllString(question, words[k].Name, words[k].Pinyin);
847
+            var question2= words[k].CombineWords2;
851 848
             question = "[读 src='" + taskInfo.ReadString + "']" + question2 + "[/读]"
852 849
             taskInfo.Content[1].Content = question;
853 850
             var answer = words[k].Name;
@@ -1232,29 +1229,47 @@ function getHanzi(callback) {
1232 1229
   });
1233 1230
   
1234 1231
   var time = wx.getStorageSync("HanziUpdateTime");
1235
-  getData('GetHanziAll2?HasEnglish=true&HasHanziWrite=true&UpdateTime=' + time, function (data) {
1232
+  getData('GetHanziAll3?UpdateTime=' + time, function (data) {
1236 1233
     wx.hideLoading();
1237 1234
     if (data) {
1238 1235
       var arr = [];
1239 1236
       if (data.List) {
1240 1237
         arr = common.Decrypt(data.List);
1241 1238
         wx.setStorageSync("HanziAll", arr);
1242
-
1243
-        var arrEng = common.Decrypt(data.EngList);
1244
-        var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1245
-        var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1246
-        var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1247
-        wx.setStorageSync("EnglishAll", arrEng);
1248
-        wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1249
-        wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1250
-        wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1251 1239
         wx.setStorageSync("HanziUpdateTime", data.UpdateTime);
1240
+        callback(true);
1252 1241
       } else {
1253
-        arr = wx.getStorageSync("HanziAll");
1254
-        if (arr)
1255
-          arr = JSON.parse(arr);
1242
+        callback(false);
1256 1243
       }
1257
-      callback(arr);
1244
+    }
1245
+  });
1246
+}
1247
+
1248
+function getEnglish(callback) {
1249
+  var that = this;
1250
+  wx.showLoading({
1251
+    title: '请稍候',
1252
+    mask: true,
1253
+  });
1254
+  
1255
+  var time = wx.getStorageSync("HanziUpdateTime");
1256
+  getData('GetEnglishAll3?UpdateTime=' + time, function (data) {
1257
+    wx.hideLoading();
1258
+    if (data.EngList) {
1259
+      var arrEng = common.Decrypt(data.EngList);
1260
+      var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1261
+      var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1262
+      var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1263
+      wx.setStorageSync("EnglishAll", arrEng);
1264
+      wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1265
+      wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1266
+      wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1267
+      wx.setStorageSync("EnglishUpdateTime", data.UpdateTime);
1268
+     
1269
+      callback(true);
1270
+    }
1271
+    else{
1272
+      callback(false);
1258 1273
     }
1259 1274
   });
1260 1275
 }
@@ -1354,9 +1369,16 @@ function replaceCardInfoString(str) {
1354 1369
   var str2 = "";
1355 1370
   if (str.indexOf("[读 src=") >= 0) {
1356 1371
     str2 = str.substr(str.indexOf("[读 src="));
1357
-    str2 = str2.substring(0, str2.indexOf("/读]") + 3);
1372
+    str2 = str2.substring(0, str2.indexOf("]") + 1);
1373
+  }
1374
+  str = str.replace(str2, "");
1375
+
1376
+  if (str.indexOf("[/读") >= 0) {
1377
+    str2 = str.substr(str.indexOf("[/读"));
1378
+    str2 = str2.substring(0, 4);
1358 1379
   }
1359 1380
   str = str.replace(str2, "");
1381
+  
1360 1382
 
1361 1383
   if (str.indexOf("[读 src=") >= 0) {
1362 1384
     str2 = str.substr(str.indexOf("[读 src"));
@@ -1364,6 +1386,12 @@ function replaceCardInfoString(str) {
1364 1386
   }
1365 1387
   str = str.replace(str2, "");
1366 1388
 
1389
+  if (str.indexOf("[/读") >= 0) {
1390
+    str2 = str.substr(str.indexOf("[/读"));
1391
+    str2 = str2.substring(0, 4);
1392
+  }
1393
+  str = str.replace(str2, "");
1394
+  
1367 1395
   str = str.replace(/\[读]/g, "");
1368 1396
   str = str.replace(/\[\/读\]/g, "");
1369 1397
 
@@ -1684,6 +1712,7 @@ module.exports = {
1684 1712
   buildInitData: buildInitData,
1685 1713
   getPinyinNormal: getPinyinNormal,
1686 1714
   getHanzi: getHanzi,
1715
+  getEnglish:getEnglish,
1687 1716
   GetHanziUnitWords: GetHanziUnitWords,
1688 1717
   GetTestReportInfo: GetTestReportInfo,
1689 1718
   getUserConfig: getUserConfig,