chengjie 3 年之前
父节点
当前提交
fe128f0656
共有 44 个文件被更改,包括 1052 次插入468 次删除
  1. 1 1
      app.js
  2. 56 0
      app.wxss
  3. 3 0
      pages/index/index.js
  4. 43 5
      pages/main/add.js
  5. 18 4
      pages/main/add.wxml
  6. 1 1
      pages/main/add.wxss
  7. 28 1
      pages/main/addInfomation.js
  8. 26 32
      pages/main/addInfomation.wxml
  9. 163 142
      pages/main/addInfomationDetail.js
  10. 16 5
      pages/main/addInfomationDetail.wxml
  11. 194 181
      pages/main/default.js
  12. 14 1
      pages/main/default.wxml
  13. 2 1
      pages/main/default.wxss
  14. 14 0
      pages/main/systemsetting.js
  15. 4 0
      pages/main/systemsetting.wxml
  16. 2 2
      pages/other/newuser.js
  17. 二进制
      pages_agent/images/ad.png
  18. 二进制
      pages_agent/images/promotion_user_home_title02.png
  19. 10 3
      pages_agent/main/earnings_apply.js
  20. 7 5
      pages_agent/main/earnings_apply.wxml
  21. 4 0
      pages_agent/main/earnings_apply.wxss
  22. 29 1
      pages_agent/main/earnings_list.js
  23. 1 1
      pages_agent/main/earnings_list.json
  24. 18 2
      pages_agent/main/earnings_list.wxml
  25. 30 0
      pages_agent/main/earnings_list.wxss
  26. 9 0
      pages_agent/main/index.js
  27. 3 0
      pages_agent/main/index.wxml
  28. 79 8
      pages_agent/main/other_list.js
  29. 46 18
      pages_agent/main/other_list.wxml
  30. 54 0
      pages_agent/main/other_list.wxss
  31. 20 5
      pages_agent/main/result_list.js
  32. 8 7
      pages_agent/main/result_list.wxml
  33. 1 0
      pages_agent/main/result_list.wxss
  34. 1 0
      pages_agent/main/search_user.js
  35. 8 1
      pages_agent/main/search_user.wxml
  36. 17 1
      pages_agent/main/search_user.wxss
  37. 2 2
      pages_agent/main/user_index.js
  38. 29 22
      pages_agent/main/user_index.wxml
  39. 23 9
      pages_agent/main/user_index.wxss
  40. 2 1
      pages_agent/main/user_relation.wxml
  41. 4 4
      project.config.json
  42. 9 2
      project.private.config.json
  43. 31 0
      utils/main.js
  44. 22 0
      utils/util.js

+ 1 - 1
app.js

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

+ 56 - 0
app.wxss

@@ -117,3 +117,59 @@
117
     font-weight: 900;
117
     font-weight: 900;
118
     font-style: normal;
118
     font-style: normal;
119
 }
119
 }
120
+
121
+
122
+.IsHelpContainer{
123
+  position: fixed;
124
+  z-index: 100;
125
+  top:0;
126
+}
127
+
128
+.IsHelpContainer .IsHelpContainer0{
129
+  background-color:rgba(0,0,0,0.5);
130
+  position: absolute;
131
+  z-index: 100;
132
+}
133
+
134
+.IsHelpContainer .IsHelpContainerTop{
135
+  width:100%;
136
+  top:0;
137
+}
138
+
139
+.IsHelpContainer .IsHelpContainerLeft{
140
+  left:0;
141
+}
142
+
143
+.IsHelpContainer .IsHelpContainerRight{
144
+  right:0;
145
+  width:750rpx;
146
+}
147
+.IsHelpContainer .IsHelpContainerBottom{
148
+  width:100%;
149
+}
150
+
151
+.IsHelpContainer .HelpText1{
152
+  font-size: 32rpx;
153
+  color:#1e1e1e;
154
+  position: absolute;
155
+  background-color: #fff;
156
+  text-align: center;
157
+  border-radius: 20rpx;
158
+  padding: 20rpx;
159
+  z-index: 110;
160
+}
161
+
162
+.IsHelpContainer .HelpClose{
163
+  width:50rpx;
164
+  height:50rpx;
165
+  position: absolute;
166
+  top:30rpx;
167
+  background-color: #fff;
168
+  border-radius: 50%;
169
+  z-index: 110;
170
+}
171
+
172
+.IsHelpContainer .universalpic_del_gray_14x14{
173
+  width:28rpx;
174
+  height:28rpx;
175
+}

+ 3 - 0
pages/index/index.js

@@ -157,6 +157,9 @@ Page({
157
           gotoUrl: "../other/pay?PayType=7&EndDate="+options.EndDate, 
157
           gotoUrl: "../other/pay?PayType=7&EndDate="+options.EndDate, 
158
         }); 
158
         }); 
159
       } 
159
       } 
160
+      else if (options.type == "helpAddInfomation") { 
161
+        wx.setStorageSync('IsHelpAddInfomation', 1);
162
+      } 
160
     }
163
     }
161
     this.setData({
164
     this.setData({
162
       IsRefresh: false,
165
       IsRefresh: false,

+ 43 - 5
pages/main/add.js

@@ -42,6 +42,7 @@ Page({
42
     IsFontsize: false,
42
     IsFontsize: false,
43
     IsCollect: 0,
43
     IsCollect: 0,
44
     BtnSaveSelectCss: "",
44
     BtnSaveSelectCss: "",
45
+    IsShowHelp:false,
45
   },
46
   },
46
   onReady: function () {
47
   onReady: function () {
47
     recorderManager = wx.getRecorderManager();
48
     recorderManager = wx.getRecorderManager();
@@ -257,6 +258,24 @@ Page({
257
     that.setBtnSaveCss();
258
     that.setBtnSaveCss();
258
 
259
 
259
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function () {});
260
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function () {});
261
+    
262
+    if (wx.getStorageSync("IsHelpAddInfomation")==1){
263
+      that.setData({
264
+        IsShowHelp:true,
265
+      });
266
+      if (that.data.Field[1]!="" && that.data.Field[1][0].Content && that.data.Field[1][0].Content=="lì害" && that.data.BtnSaveSelectCss=="MenuBtnSelect"){
267
+        main.ShowHelp(that,"#btnSave","up","点击下方“保存”按钮","Left");
268
+      }
269
+      else{
270
+        main.ShowHelp(that,"#btnSearch","down","点击上方“加资料”按钮","Left");
271
+      }
272
+    }
273
+    else{
274
+      that.setData({
275
+        IsShowHelp:false,
276
+      });
277
+    }
278
+      
260
   },
279
   },
261
   onHide: function () {
280
   onHide: function () {
262
     //用于恢复未保存的新题卡
281
     //用于恢复未保存的新题卡
@@ -484,6 +503,10 @@ Page({
484
                         image: "../images/universalpic_save_white_120x120.png",
503
                         image: "../images/universalpic_save_white_120x120.png",
485
                       });
504
                       });
486
                       changePattern(that);
505
                       changePattern(that);
506
+                      
507
+                      if (wx.getStorageSync("IsHelpAddInfomation")==1){
508
+                        that.closeHelp();
509
+                      }
487
                     }
510
                     }
488
                     isFirstAdd = false;
511
                     isFirstAdd = false;
489
                     that.initAddCard();
512
                     that.initAddCard();
@@ -1503,12 +1526,21 @@ Page({
1503
   },
1526
   },
1504
   goto: function (e) {
1527
   goto: function (e) {
1505
     var url = e.currentTarget.dataset.url;
1528
     var url = e.currentTarget.dataset.url;
1506
-    wx.navigateTo({
1507
-      url: url,
1508
-    });
1509
 
1529
 
1510
-    if (url == "./folderEdit?type=add") {
1511
-      isAddFolder = true;
1530
+    if (url == "../index/index?type=helpAddInfomation") {
1531
+      wx.setStorageSync('IsHelpAddInfomation', 1);
1532
+      wx.redirectTo({
1533
+        url: './default',
1534
+      });
1535
+    }
1536
+    else{
1537
+      wx.navigateTo({
1538
+        url: url,
1539
+      });
1540
+  
1541
+      if (url == "./folderEdit?type=add") {
1542
+        isAddFolder = true;
1543
+      }
1512
     }
1544
     }
1513
   },
1545
   },
1514
   showTagShow: function () {
1546
   showTagShow: function () {
@@ -1887,6 +1919,12 @@ Page({
1887
     app.globalData.TempStr = "deleteCard";
1919
     app.globalData.TempStr = "deleteCard";
1888
     this.onClose();
1920
     this.onClose();
1889
   },
1921
   },
1922
+  closeHelp:function(){
1923
+    this.setData({
1924
+      IsShowHelp:false,
1925
+    });
1926
+    wx.setStorageSync('IsHelpAddInfomation', 0);
1927
+  },
1890
   onShareAppMessage: function () {
1928
   onShareAppMessage: function () {
1891
     return {
1929
     return {
1892
       title: app.globalData.ShareTitle,
1930
       title: app.globalData.ShareTitle,

+ 18 - 4
pages/main/add.wxml

@@ -9,7 +9,7 @@
9
 			</view>
9
 			</view>
10
 		</view>
10
 		</view>
11
 		<view class="panelRight FlexRow">
11
 		<view class="panelRight FlexRow">
12
-			<view class="panelTopBtn" catchtap="onSearch">加资料</view>
12
+			<view id="btnSearch" class="panelTopBtn" catchtap="onSearch">加资料</view>
13
 			<view class="panelTop11 panelTop1 FlexColumn" catchtap="showPanel" data-type="help">
13
 			<view class="panelTop11 panelTop1 FlexColumn" catchtap="showPanel" data-type="help">
14
 				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
14
 				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
15
 			</view>
15
 			</view>
@@ -150,7 +150,7 @@
150
 			<view class="panelSave1" wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
150
 			<view class="panelSave1" wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
151
 
151
 
152
 			</view>
152
 			</view>
153
-			<view class='{{BtnSaveSelectCss}} panelSave2' bindtap="saveCard">
153
+			<view id="btnSave" class='{{BtnSaveSelectCss}} panelSave2' bindtap="saveCard">
154
 				保存
154
 				保存
155
 			</view>
155
 			</view>
156
 			<view class="panelSave1" bindtap="onPreview">
156
 			<view class="panelSave1" bindtap="onPreview">
@@ -340,7 +340,9 @@
340
 			<view class="HelpPanel111 FlexRow" catchtap="hiddenPanel">
340
 			<view class="HelpPanel111 FlexRow" catchtap="hiddenPanel">
341
 				<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
341
 				<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
342
 			</view>
342
 			</view>
343
-			<view></view>
343
+			<view class="panelTop11 panelTop1 FlexColumn" catchtap="goto" data-url="../index/index?type=helpAddInfomation">
344
+				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
345
+			</view>
344
 		</view>
346
 		</view>
345
 		<swiper class="HelpPanel2" indicator-dots="true" autoplay="true" interval="10000" duration="500">
347
 		<swiper class="HelpPanel2" indicator-dots="true" autoplay="true" interval="10000" duration="500">
346
 			<block wx:for="{{HelpArr}}" wx:key="*this">
348
 			<block wx:for="{{HelpArr}}" wx:key="*this">
@@ -494,4 +496,16 @@
494
 			<view class="panelHeight100_green"></view>
496
 			<view class="panelHeight100_green"></view>
495
 		</view>
497
 		</view>
496
 	</view>
498
 	</view>
497
-</view>
499
+</view>
500
+
501
+<view  wx:if="{{IsShowHelp}}" class="IsHelpContainer container FlexColumn" >
502
+  <view class="IsHelpContainerTop IsHelpContainer0" style='height:{{HelpTop}}px;'></view>
503
+  <view class="IsHelpContainerLeft IsHelpContainer0" style='top:{{HelpTop}}px;width:{{HelpWidth1}}px;height:{{HelpHeight1}}px;'></view>
504
+  <view class="IsHelpContainerRight IsHelpContainer0" style='top:{{HelpTop}}px;left:{{HelpLeft2}}px;width:{{HelpWidth2}}px;height:{{HelpHeight2}}px;'></view>
505
+  <view class="IsHelpContainerBottom IsHelpContainer0" style='top:{{HelpBottom}}px;height:{{Containnerheight}}px;'></view>
506
+  <view class="HelpText1" style='top:{{HelpTextTop}}px;'>{{HelpText}}</view>
507
+	<view class="HelpClose FlexColumn" style="{{HelpClosePos}}:30rpx;" catchtap="closeHelp">
508
+    <image class="universalpic_del_gray_14x14" src="../images/universalpic_del_gray_14x14.png"></image>
509
+  </view>
510
+</view>
511
+

+ 1 - 1
pages/main/add.wxss

@@ -1282,4 +1282,4 @@ page{
1282
   border:2rpx solid #5282FA;
1282
   border:2rpx solid #5282FA;
1283
   color:#fff;
1283
   color:#fff;
1284
   font-size:36rpx;
1284
   font-size:36rpx;
1285
-}
1285
+}

+ 28 - 1
pages/main/addInfomation.js

@@ -11,6 +11,7 @@ Page({
11
     SearchList: [],
11
     SearchList: [],
12
     SearchInfo: "",
12
     SearchInfo: "",
13
     IsMore:true,
13
     IsMore:true,
14
+    IsShowHelp:false,
14
   },
15
   },
15
   onLoad: function () {
16
   onLoad: function () {
16
     var that = this;
17
     var that = this;
@@ -50,6 +51,17 @@ Page({
50
       });
51
       });
51
     });
52
     });
52
 
53
 
54
+    if (wx.getStorageSync("IsHelpAddInfomation")==1){
55
+      that.setData({
56
+        IsShowHelp:true,
57
+      });
58
+      main.ShowHelp(that,"#input","down","在上方输入需要查找的\n词语。比如输入“厉害”,\n再点键盘右下的“搜索”");
59
+    }
60
+    else{
61
+      that.setData({
62
+        IsShowHelp:false,
63
+      });
64
+    }
53
   },
65
   },
54
   goto: function (e) {
66
   goto: function (e) {
55
     var url = e.currentTarget.dataset.url;
67
     var url = e.currentTarget.dataset.url;
@@ -82,8 +94,17 @@ Page({
82
 
94
 
83
   searchResult: function (e) {
95
   searchResult: function (e) {
84
     var that = this;
96
     var that = this;
85
-
86
     var search = that.data.SearchInfo;
97
     var search = that.data.SearchInfo;
98
+    
99
+    if (wx.getStorageSync("IsHelpAddInfomation")==1){
100
+      if (search!="厉害"){
101
+        wx.showToast({
102
+          title: '请输入“厉害”搜索',
103
+        });
104
+        return;
105
+      }
106
+    }
107
+
87
     if (e.currentTarget.dataset.search) {
108
     if (e.currentTarget.dataset.search) {
88
       search = e.currentTarget.dataset.search;
109
       search = e.currentTarget.dataset.search;
89
       that.setData({
110
       that.setData({
@@ -237,6 +258,12 @@ Page({
237
       IsMore:false,
258
       IsMore:false,
238
     });
259
     });
239
   },
260
   },
261
+  closeHelp:function(){
262
+    this.setData({
263
+      IsShowHelp:false,
264
+    });
265
+    wx.setStorageSync('IsHelpAddInfomation', 0);
266
+  },
240
   onShareAppMessage: function () {
267
   onShareAppMessage: function () {
241
     return {
268
     return {
242
       title: app.globalData.ShareTitle,
269
       title: app.globalData.ShareTitle,

+ 26 - 32
pages/main/addInfomation.wxml

@@ -1,16 +1,14 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panelTop FlexRow">
2
   <view class="panelTop FlexRow">
3
     <view class="panelLeft FlexRow">
3
     <view class="panelLeft FlexRow">
4
-      <view class="panelTopSearch FlexRow">
4
+      <view id="input" class="panelTopSearch FlexRow">
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
6
-        <input class='input'  always-embed="true"  maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}"
7
-          placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" />
6
+        <input class='input' always-embed="true" maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}" placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" />
8
         <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
7
         <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9
           <view class="clearData0 FlexRow">
8
           <view class="clearData0 FlexRow">
10
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
9
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11
           </view>
10
           </view>
12
         </view>
11
         </view>
13
-
14
       </view>
12
       </view>
15
     </view>
13
     </view>
16
     <view class="panelRight FlexRow">
14
     <view class="panelRight FlexRow">
@@ -60,19 +58,13 @@
60
         <view class="lineWidth720"></view>
58
         <view class="lineWidth720"></view>
61
       </view>
59
       </view>
62
       <view class="panelSearchData FlexRow" wx:for="{{SearchWord3}}" wx:key="index">
60
       <view class="panelSearchData FlexRow" wx:for="{{SearchWord3}}" wx:key="index">
63
-        <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn" bindtap='onSearchHistory'
64
-          data-index="{{index}}" data-type="SearchWord3">
65
-          <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
66
-            src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
67
-          <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
68
-            src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
69
-          <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27"
70
-            src='../images/universalpic_dictionary_shici_black_53x27.png' />
71
-          <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
72
-            src='../images/universalpic_dictionary_danci_black_53x28.png' />
61
+        <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn" bindtap='onSearchHistory' data-index="{{index}}" data-type="SearchWord3">
62
+          <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
63
+          <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
64
+          <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27" src='../images/universalpic_dictionary_shici_black_53x27.png' />
65
+          <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28" src='../images/universalpic_dictionary_danci_black_53x28.png' />
73
         </view>
66
         </view>
74
-        <view class="panelSearchData1 FlexColumn" bindtap='onSearchHistory' data-index="{{index}}"
75
-          data-type="SearchWord3">
67
+        <view class="panelSearchData1 FlexColumn" bindtap='onSearchHistory' data-index="{{index}}" data-type="SearchWord3">
76
           <view class="panelSearchDataText1">{{item.Key}}</view>
68
           <view class="panelSearchDataText1">{{item.Key}}</view>
77
           <view class="panelSearchDataText2">{{item.Remark}}</view>
69
           <view class="panelSearchDataText2">{{item.Remark}}</view>
78
           <view class="panelSearchDataText3">{{item.Content}}</view>
70
           <view class="panelSearchDataText3">{{item.Content}}</view>
@@ -92,18 +84,12 @@
92
     <view class="panelNullLine" wx:if="{{SearchList.length==0}}"></view>
84
     <view class="panelNullLine" wx:if="{{SearchList.length==0}}"></view>
93
     <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
85
     <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
94
       <view class="panelSearchDataOther FlexColumn">
86
       <view class="panelSearchDataOther FlexColumn">
95
-        <view class="panelSearchDataOther2 FlexRow"  wx:for="{{SearchList}}" wx:key="index"
96
-          bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}"
97
-          data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}" wx:if="{{(IsMore && index<4) || (!IsMore)}}">
87
+        <view class="panelSearchDataOther2 FlexRow" wx:for="{{SearchList}}" wx:key="index" bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}" data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}" wx:if="{{(IsMore && index<4) || (!IsMore)}}">
98
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
88
           <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
99
-            <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26"
100
-              src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
101
-            <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23"
102
-              src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
103
-            <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27"
104
-              src='../images/universalpic_dictionary_shici_black_53x27.png' />
105
-            <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
106
-              src='../images/universalpic_dictionary_danci_black_53x28.png' />
89
+            <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
90
+            <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
91
+            <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27" src='../images/universalpic_dictionary_shici_black_53x27.png' />
92
+            <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28" src='../images/universalpic_dictionary_danci_black_53x28.png' />
107
           </view>
93
           </view>
108
           <view class="panelSearchDataOther21 FlexColumn">
94
           <view class="panelSearchDataOther21 FlexColumn">
109
             <view class="panelSearchDataText1">{{item.Key}}</view>
95
             <view class="panelSearchDataText1">{{item.Key}}</view>
@@ -135,14 +121,11 @@
135
 
121
 
136
       <view class="panelSearchNull FlexColumn" wx:if="{{SearchCardList.length>0}}">
122
       <view class="panelSearchNull FlexColumn" wx:if="{{SearchCardList.length>0}}">
137
         <view class="panelSearchNull10 panelSearchNull1">您有 {{SearchCardList.length}} 张有关“{{SearchInfo}}”的题卡</view>
123
         <view class="panelSearchNull10 panelSearchNull1">您有 {{SearchCardList.length}} 张有关“{{SearchInfo}}”的题卡</view>
138
-        <view class="panelSearchData3 FlexRow" wx:for="{{SearchCardList}}" wx:key="index" bindtap="goto"
139
-          data-url="./preview?type=preview&id={{item.MiaoguoCardID}}">
124
+        <view class="panelSearchData3 FlexRow" wx:for="{{SearchCardList}}" wx:key="index" bindtap="goto" data-url="./preview?type=preview&id={{item.MiaoguoCardID}}">
140
           <image class="universalpic_card_gray_22x22" src='../images/universalpic_card_gray_22x22.png' />
125
           <image class="universalpic_card_gray_22x22" src='../images/universalpic_card_gray_22x22.png' />
141
 
126
 
142
           <view class="panelListItem FlexRow">
127
           <view class="panelListItem FlexRow">
143
-            <image class="panelListItem1Image" mode="aspectFill" src='{{item.ImageUrlTemp}}'
144
-              wx:if="{{item.ImageUrlServer}}" binderror="onBindError" data-id="{{item.MiaoguoCardID}}"
145
-              data-serverurl="{{item.ImageUrlServer}}" />
128
+            <image class="panelListItem1Image" mode="aspectFill" src='{{item.ImageUrlTemp}}' wx:if="{{item.ImageUrlServer}}" binderror="onBindError" data-id="{{item.MiaoguoCardID}}" data-serverurl="{{item.ImageUrlServer}}" />
146
             <view class="panelListItem11 FlexColumn">
129
             <view class="panelListItem11 FlexColumn">
147
               <view class="panelListItem11Name1">
130
               <view class="panelListItem11Name1">
148
                 {{item.Content[1].ContentStr}}
131
                 {{item.Content[1].ContentStr}}
@@ -159,4 +142,15 @@
159
   </block>
142
   </block>
160
 
143
 
161
   <view class="panelHeight60"></view>
144
   <view class="panelHeight60"></view>
145
+</view>
146
+
147
+<view wx:if="{{IsShowHelp}}" class="IsHelpContainer container FlexColumn">
148
+  <view class="IsHelpContainerTop IsHelpContainer0" style='height:{{HelpTop}}px;'></view>
149
+  <view class="IsHelpContainerLeft IsHelpContainer0" style='top:{{HelpTop}}px;width:{{HelpWidth1}}px;height:{{HelpHeight1}}px;'></view>
150
+  <view class="IsHelpContainerRight IsHelpContainer0" style='top:{{HelpTop}}px;left:{{HelpLeft2}}px;width:{{HelpWidth2}}px;height:{{HelpHeight2}}px;'></view>
151
+  <view class="IsHelpContainerBottom IsHelpContainer0" style='top:{{HelpBottom}}px;height:{{Containnerheight}}px;'></view>
152
+  <text class="HelpText1" style='top:{{HelpTextTop}}px;'>{{HelpText}}</text>
153
+  <view class="HelpClose FlexColumn" style="{{HelpClosePos}}:30rpx;" catchtap="closeHelp">
154
+    <image class="universalpic_del_gray_14x14" src="../images/universalpic_del_gray_14x14.png"></image>
155
+  </view>
162
 </view>
156
 </view>

+ 163 - 142
pages/main/addInfomationDetail.js

@@ -7,13 +7,13 @@ var hasStart = {};
7
 Page({
7
 Page({
8
   data: {
8
   data: {
9
     ImagePath: app.globalData.uploadImageUrl,
9
     ImagePath: app.globalData.uploadImageUrl,
10
-    IsShowHelp: 1,
11
     IsPoemRead: 0,
10
     IsPoemRead: 0,
12
     ShowKaiti: 0,
11
     ShowKaiti: 0,
13
-    ShowSoundMark:1,
12
+    ShowSoundMark: 1,
14
     CSS: {},
13
     CSS: {},
15
-    IsHelp:false,
16
-    HelpArr:["help_board_tips_zhidingduanluo","help_board_tips_tiaozhuanchaxun"],
14
+    IsHelp: false,
15
+    IsShowHelp: false,
16
+    HelpArr: ["help_board_tips_zhidingduanluo", "help_board_tips_tiaozhuanchaxun"],
17
   },
17
   },
18
   onLoad: function (options) {
18
   onLoad: function (options) {
19
     var that = this;
19
     var that = this;
@@ -25,6 +25,20 @@ Page({
25
     hasStart = {};
25
     hasStart = {};
26
 
26
 
27
   },
27
   },
28
+  onShow: function () {
29
+    var that = this;
30
+    if (wx.getStorageSync("IsHelpAddInfomation") == 1) {
31
+      that.setData({
32
+        IsShowHelp: true,
33
+      });
34
+      main.ShowHelp(that, "#helpTianKong0", "down", "选择拼音作为问题,点一下","Left");
35
+    }
36
+    else{
37
+      that.setData({
38
+        IsShowHelp:false,
39
+      });
40
+    }
41
+  },
28
   getList: function () {
42
   getList: function () {
29
     if (app.globalData.SearchItem) {
43
     if (app.globalData.SearchItem) {
30
       this.getListFinished(app.globalData.SearchItem);
44
       this.getListFinished(app.globalData.SearchItem);
@@ -42,21 +56,19 @@ Page({
42
         data.TypeName = "C";
56
         data.TypeName = "C";
43
     } else if (data.ENG) {
57
     } else if (data.ENG) {
44
       data.TypeName = "D";
58
       data.TypeName = "D";
45
-    }    
46
-    
59
+    }
60
+
47
     if (data.CHN && data.CHN.KaitiArr) {
61
     if (data.CHN && data.CHN.KaitiArr) {
48
-      if (data.CHN.KaitiArr.length==1){
49
-        data.CHN.KaitiWidth="";
62
+      if (data.CHN.KaitiArr.length == 1) {
63
+        data.CHN.KaitiWidth = "";
64
+      } else {
65
+        data.CHN.KaitiWidth = "panelItemSmall";
50
       }
66
       }
51
-      else{
52
-        data.CHN.KaitiWidth="panelItemSmall";
53
-      }
54
-      
55
-      if (data.CHN.BiShunArr2.length==1){
56
-        data.CHN.BiShunWidth="";
57
-      }
58
-      else{
59
-        data.CHN.BiShunWidth="panelItemSmall";
67
+
68
+      if (data.CHN.BiShunArr2.length == 1) {
69
+        data.CHN.BiShunWidth = "";
70
+      } else {
71
+        data.CHN.BiShunWidth = "panelItemSmall";
60
       }
72
       }
61
     }
73
     }
62
 
74
 
@@ -68,17 +80,29 @@ Page({
68
       }
80
       }
69
     }
81
     }
70
 
82
 
71
-    if (data.ENG && data.ENG.ExamplesSentences){
83
+    if (data.ENG && data.ENG.ExamplesSentences) {
72
       for (var i = 0; i < data.ENG.ExamplesSentences.length; i++) {
84
       for (var i = 0; i < data.ENG.ExamplesSentences.length; i++) {
73
         var item = data.ENG.ExamplesSentences[i];
85
         var item = data.ENG.ExamplesSentences[i];
74
-        var obj=[{ContentType:0,Content:""},{ContentType:1,Content:item[0]},{ContentType:2,Content:""},{ContentType:3,Content:""}];
75
-        var obj2=main.changeStringToView(obj);
76
-        var str=obj2.Field[1][0].Content;
86
+        var obj = [{
87
+          ContentType: 0,
88
+          Content: ""
89
+        }, {
90
+          ContentType: 1,
91
+          Content: item[0]
92
+        }, {
93
+          ContentType: 2,
94
+          Content: ""
95
+        }, {
96
+          ContentType: 3,
97
+          Content: ""
98
+        }];
99
+        var obj2 = main.changeStringToView(obj);
100
+        var str = obj2.Field[1][0].Content;
77
         item.push(str);
101
         item.push(str);
78
-        
79
-        
80
-        item[1]=common.ReplaceAllString(item[1],"<b>","");
81
-        item[1]=common.ReplaceAllString(item[1],"</b>","");
102
+
103
+
104
+        item[1] = common.ReplaceAllString(item[1], "<b>", "");
105
+        item[1] = common.ReplaceAllString(item[1], "</b>", "");
82
       }
106
       }
83
     }
107
     }
84
 
108
 
@@ -87,10 +111,8 @@ Page({
87
     })
111
     })
88
   },
112
   },
89
   getInputData: function (e) {
113
   getInputData: function (e) {
114
+    var that = this;
90
     //console.log("time1:"+new Date().getTime());
115
     //console.log("time1:"+new Date().getTime());
91
-    common.getStorageValue(this, "IsShowHelp", 0, function () {
92
-
93
-    });
94
 
116
 
95
     var type = e.currentTarget.dataset.type;
117
     var type = e.currentTarget.dataset.type;
96
     var css = e.currentTarget.dataset.css;
118
     var css = e.currentTarget.dataset.css;
@@ -110,7 +132,7 @@ Page({
110
       if (tag == "发音")
132
       if (tag == "发音")
111
         this.data.CSS[css].SoundMark = soundmark;
133
         this.data.CSS[css].SoundMark = soundmark;
112
 
134
 
113
-      if (tag == "默写" || tag=="拼音") {
135
+      if (tag == "默写" || tag == "拼音") {
114
         var soundmark = e.currentTarget.dataset.soundmark;
136
         var soundmark = e.currentTarget.dataset.soundmark;
115
         if (soundmark)
137
         if (soundmark)
116
           this.data.CSS[css].SoundMark = e.currentTarget.dataset.soundmark;
138
           this.data.CSS[css].SoundMark = e.currentTarget.dataset.soundmark;
@@ -121,16 +143,14 @@ Page({
121
         this.data.CSS[css].Number = app.globalData.TempFieldNumber;
143
         this.data.CSS[css].Number = app.globalData.TempFieldNumber;
122
         hasStart[css] = true;
144
         hasStart[css] = true;
123
       }
145
       }
124
-    }
125
-    else if (this.data.CSS[css].Number == "3") {
146
+    } else if (this.data.CSS[css].Number == "3") {
126
       this.data.CSS[css].Css1 = "";
147
       this.data.CSS[css].Css1 = "";
127
       this.data.CSS[css].Css2 = "";
148
       this.data.CSS[css].Css2 = "";
128
       this.data.CSS[css].Number = "";
149
       this.data.CSS[css].Number = "";
129
       this.data.CSS[css].Content = "";
150
       this.data.CSS[css].Content = "";
130
       this.data.CSS[css].Type = "";
151
       this.data.CSS[css].Type = "";
131
       this.data.CSS[css].Tag = "";
152
       this.data.CSS[css].Tag = "";
132
-    }
133
-    else {
153
+    } else {
134
       this.data.CSS[css].Number = Number(this.data.CSS[css].Number) + 1;
154
       this.data.CSS[css].Number = Number(this.data.CSS[css].Number) + 1;
135
     }
155
     }
136
     //console.log("time3:" + new Date().getTime());
156
     //console.log("time3:" + new Date().getTime());
@@ -138,6 +158,18 @@ Page({
138
       CSS: this.data.CSS,
158
       CSS: this.data.CSS,
139
     });
159
     });
140
     //console.log("time4:" + new Date().getTime());
160
     //console.log("time4:" + new Date().getTime());
161
+
162
+    if (wx.getStorageSync("IsHelpAddInfomation") == 1) {
163
+      that.setData({
164
+        IsShowHelp: true,
165
+      });
166
+      if (this.data.CSS[css].Number == 0)
167
+        main.ShowHelp(that, "#HelpHanZi", "down", "选择文字作为答案,\n点两下,注意是点两下","Left");
168
+      else if (this.data.CSS[css].Number == 1)
169
+        main.ShowHelp(that, "#HelpHanZi", "down", "选择文字作为答案,\n点两下,注意是点两下\n让左侧数字成为2","Left");
170
+      else if (this.data.CSS[css].Number == 2)
171
+        main.ShowHelp(that, "#btnAdd", "down", "请点“添加”按钮","Left");
172
+    }
141
   },
173
   },
142
   addData: function () {
174
   addData: function () {
143
     if (JSON.stringify(this.data.CSS) != "{}") {
175
     if (JSON.stringify(this.data.CSS) != "{}") {
@@ -174,39 +206,34 @@ Page({
174
               item.Content = main.encryptUrl(item.Content);
206
               item.Content = main.encryptUrl(item.Content);
175
 
207
 
176
               str = "[图]" + item.Content + "[/图]";
208
               str = "[图]" + item.Content + "[/图]";
177
-            }
178
-            else if (item.Type == "sound") {
209
+            } else if (item.Type == "sound") {
179
               str = "[读]" + item.Content + "[/读]";
210
               str = "[读]" + item.Content + "[/读]";
180
               if (item.Tag == "发音") {
211
               if (item.Tag == "发音") {
181
-                var strTemp=item.Content.substr(0,1);
182
-                if (this.data.ShowSoundMark=="1")
212
+                var strTemp = item.Content.substr(0, 1);
213
+                if (this.data.ShowSoundMark == "1")
183
                   str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
214
                   str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
184
                 else
215
                 else
185
-                  str = "[读 src='" + item.SoundMark + "']"+strTemp+"式[/读]";
186
-              }
187
-              else if (item.Tag == "拼音" || item.Tag == "默写") {
188
-                if (item.SoundMark){
189
-                  if (this.data.Result.CHN.HanZi){
190
-                    var sound=this.data.Result.CHN.HanZi;
191
-                    sound=main.GetSoundError(sound);
216
+                  str = "[读 src='" + item.SoundMark + "']" + strTemp + "式[/读]";
217
+              } else if (item.Tag == "拼音" || item.Tag == "默写") {
218
+                if (item.SoundMark) {
219
+                  if (this.data.Result.CHN.HanZi) {
220
+                    var sound = this.data.Result.CHN.HanZi;
221
+                    sound = main.GetSoundError(sound);
192
                     str = "[读 src='" + sound + "']" + item.Content + "[/读]";
222
                     str = "[读 src='" + sound + "']" + item.Content + "[/读]";
193
-                  }
194
-                  else
223
+                  } else
195
                     str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
224
                     str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
196
-                }
197
-                else{
198
-                  var sound=this.data.Result.CHN.HanZi+"("+ main.getPinyinNormal(item.Content) +")";
199
-                  sound=main.GetSoundError(sound);
200
-                  str = "[读 src='"+sound+"']" + item.Content + "[/读]";
225
+                } else {
226
+                  var sound = this.data.Result.CHN.HanZi + "(" + main.getPinyinNormal(item.Content) + ")";
227
+                  sound = main.GetSoundError(sound);
228
+                  str = "[读 src='" + sound + "']" + item.Content + "[/读]";
201
                 }
229
                 }
202
               }
230
               }
203
-            }
204
-            else {
205
-              if (item.Tag == "诗词" || item.Tag == "译文"){
206
-                if (common.checkIsArray(item.Content) 
207
-                  && common.checkIsArray(item.Content[0])){
231
+            } else {
232
+              if (item.Tag == "诗词" || item.Tag == "译文") {
233
+                if (common.checkIsArray(item.Content) &&
234
+                  common.checkIsArray(item.Content[0])) {
208
                   for (var j = 0; j < item.Content.length; j++) {
235
                   for (var j = 0; j < item.Content.length; j++) {
209
-                    if (common.checkIsArray(item.Content[j])){
236
+                    if (common.checkIsArray(item.Content[j])) {
210
                       item.Content[j] = item.Content[j].join("");
237
                       item.Content[j] = item.Content[j].join("");
211
                     }
238
                     }
212
                   }
239
                   }
@@ -214,53 +241,50 @@ Page({
214
                     str = item.Content.join("\n");
241
                     str = item.Content.join("\n");
215
                   else
242
                   else
216
                     str = item.Content;
243
                     str = item.Content;
217
-                }
218
-                else{
244
+                } else {
219
                   if (common.checkIsArray(item.Content))
245
                   if (common.checkIsArray(item.Content))
220
                     str = item.Content.join("");
246
                     str = item.Content.join("");
221
                   else
247
                   else
222
                     str = item.Content;
248
                     str = item.Content;
223
                 }
249
                 }
224
 
250
 
225
-                if (item.Tag == "诗词" && this.data.IsPoemRead==1){
226
-                  var arr=str.split("\n");
227
-                  var arr2=[];
228
-                  for(var j=0;j<arr.length;j++){
229
-                    arr2.push("[读]" +arr[j]+ "[/读]");
251
+                if (item.Tag == "诗词" && this.data.IsPoemRead == 1) {
252
+                  var arr = str.split("\n");
253
+                  var arr2 = [];
254
+                  for (var j = 0; j < arr.length; j++) {
255
+                    arr2.push("[读]" + arr[j] + "[/读]");
230
                   }
256
                   }
231
-                  str=arr2.join("\n");
257
+                  str = arr2.join("\n");
232
                 }
258
                 }
233
-              }
234
-              else
259
+              } else
235
                 str = item.Content;
260
                 str = item.Content;
236
             }
261
             }
237
 
262
 
238
-            if (this.data.Result && this.data.Result.CHN && this.data.Result.CHN.PinYin && this.data.Result.CHN.PinYin.length == 1){
239
-              if (item.Tag=="释义"){
240
-                str=str.substr(str.indexOf("[/读]")+4);
263
+            if (this.data.Result && this.data.Result.CHN && this.data.Result.CHN.PinYin && this.data.Result.CHN.PinYin.length == 1) {
264
+              if (item.Tag == "释义") {
265
+                str = str.substr(str.indexOf("[/读]") + 4);
241
               }
266
               }
242
             }
267
             }
243
 
268
 
244
-            if (list[i].Content[item.Number].Content){
245
-              if (item.Tag == "组词" || item.Tag == "近义词" || item.Tag == "反义词"){
269
+            if (list[i].Content[item.Number].Content) {
270
+              if (item.Tag == "组词" || item.Tag == "近义词" || item.Tag == "反义词") {
246
                 str = "\n" + str;
271
                 str = "\n" + str;
247
-              }
248
-              else{
272
+              } else {
249
                 str = "\n\n" + str;
273
                 str = "\n\n" + str;
250
               }
274
               }
251
             }
275
             }
252
 
276
 
253
             list[i].Content[item.Number].Content += str;
277
             list[i].Content[item.Number].Content += str;
254
 
278
 
255
-            if (list[i].Content[item.Number].Content.indexOf("\n\n")==0)
256
-              list[i].Content[item.Number].Content=list[i].Content[item.Number].Content.substr(2);
257
-            
258
-            if (item.Tag == "诗词"){
259
-              if (list[i].Content[item.Number].Content.indexOf("\n")>0 && list[i].Content[item.Number].Content.indexOf("[")!=0){
260
-                list[i].Content[item.Number].Content="\n\n"+list[i].Content[item.Number].Content;
279
+            if (list[i].Content[item.Number].Content.indexOf("\n\n") == 0)
280
+              list[i].Content[item.Number].Content = list[i].Content[item.Number].Content.substr(2);
281
+
282
+            if (item.Tag == "诗词") {
283
+              if (list[i].Content[item.Number].Content.indexOf("\n") > 0 && list[i].Content[item.Number].Content.indexOf("[") != 0) {
284
+                list[i].Content[item.Number].Content = "\n\n" + list[i].Content[item.Number].Content;
261
               }
285
               }
262
             }
286
             }
263
-            
287
+
264
           }
288
           }
265
           break;
289
           break;
266
         }
290
         }
@@ -270,22 +294,20 @@ Page({
270
       wx.navigateBack({
294
       wx.navigateBack({
271
         delta: app.globalData.TempSearchBackNumber,
295
         delta: app.globalData.TempSearchBackNumber,
272
       });
296
       });
273
-    }
274
-    else {
297
+    } else {
275
       wx.showToast({
298
       wx.showToast({
276
         title: '请选择内容',
299
         title: '请选择内容',
277
       })
300
       })
278
     }
301
     }
279
   },
302
   },
280
-  changeBishun:function(e){
281
-    var id=e.currentTarget.dataset.id;
303
+  changeBishun: function (e) {
304
+    var id = e.currentTarget.dataset.id;
282
 
305
 
283
-    if (id === "0"){
306
+    if (id === "0") {
284
       for (var i = 0; i < 6; i++) {
307
       for (var i = 0; i < 6; i++) {
285
         delete this.data.CSS["CHN_BiShunArr2_" + i];
308
         delete this.data.CSS["CHN_BiShunArr2_" + i];
286
       }
309
       }
287
-    }
288
-    else if (id === "1") {
310
+    } else if (id === "1") {
289
       for (var i = 0; i < 6; i++) {
311
       for (var i = 0; i < 6; i++) {
290
         delete this.data.CSS["CHN_KaitiArr_" + i];
312
         delete this.data.CSS["CHN_KaitiArr_" + i];
291
       }
313
       }
@@ -293,92 +315,90 @@ Page({
293
 
315
 
294
     this.setData({
316
     this.setData({
295
       ShowKaiti: id,
317
       ShowKaiti: id,
296
-      CSS:this.data.CSS,
318
+      CSS: this.data.CSS,
297
     });
319
     });
298
 
320
 
299
   },
321
   },
300
-  changeSoundMark:function(e){
301
-    var id=e.currentTarget.dataset.id;
322
+  changeSoundMark: function (e) {
323
+    var id = e.currentTarget.dataset.id;
302
     this.setData({
324
     this.setData({
303
       ShowSoundMark: id,
325
       ShowSoundMark: id,
304
     });
326
     });
305
   },
327
   },
306
   changeRead: function (e) {
328
   changeRead: function (e) {
307
     var id = e.currentTarget.dataset.id;
329
     var id = e.currentTarget.dataset.id;
308
-    var count=Object.getOwnPropertyNames(this.data.CSS).length;
309
-    for (var i=0;i<count;i++) {
330
+    var count = Object.getOwnPropertyNames(this.data.CSS).length;
331
+    for (var i = 0; i < count; i++) {
310
       delete this.data.CSS["CHN_PeomContent_" + i];
332
       delete this.data.CSS["CHN_PeomContent_" + i];
311
     }
333
     }
312
     delete this.data.CSS["CHN_PeomContent"];
334
     delete this.data.CSS["CHN_PeomContent"];
313
     this.setData({
335
     this.setData({
314
       IsPoemRead: id,
336
       IsPoemRead: id,
315
-      CSS:this.data.CSS,
337
+      CSS: this.data.CSS,
316
     });
338
     });
317
   },
339
   },
318
-  changeInfomation:function(e){
319
-    var word=e.currentTarget.dataset.word;
320
-    if (word.indexOf(";")>0){
321
-      word=word.substr(0,word.indexOf(";"));
340
+  changeInfomation: function (e) {
341
+    var word = e.currentTarget.dataset.word;
342
+    if (word.indexOf(";") > 0) {
343
+      word = word.substr(0, word.indexOf(";"));
322
     }
344
     }
323
     var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
345
     var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
324
     url += "&Word=" + word;
346
     url += "&Word=" + word;
325
     if (!e.currentTarget.dataset.ischn)
347
     if (!e.currentTarget.dataset.ischn)
326
       url += "&SearchType=zici";
348
       url += "&SearchType=zici";
327
-    
349
+
328
     wx.showLoading();
350
     wx.showLoading();
329
-    
351
+
330
     main.getData(url, function (data) {
352
     main.getData(url, function (data) {
331
       wx.hideLoading();
353
       wx.hideLoading();
332
-      if (data && (data.CHN || data.ENG)){
333
-        var obj={};
354
+      if (data && (data.CHN || data.ENG)) {
355
+        var obj = {};
334
         var len = 26;
356
         var len = 26;
335
-        obj.Value=data;
336
-          
337
-        if (data.CHN){
338
-          obj.Key=data.CHN.HanZi;
339
-          obj.Content=data.CHN.PinYin[0].explain;
340
-
341
-          if (obj.Key.length==1)
342
-            obj.TypeName="Z";
357
+        obj.Value = data;
358
+
359
+        if (data.CHN) {
360
+          obj.Key = data.CHN.HanZi;
361
+          obj.Content = data.CHN.PinYin[0].explain;
362
+
363
+          if (obj.Key.length == 1)
364
+            obj.TypeName = "Z";
343
           else
365
           else
344
-            obj.TypeName="C";
345
-          
346
-          obj.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+obj.Key;
347
-        
348
-        }
349
-        else if (data.ENG){
350
-          obj.Key=data.ENG.Word;
351
-          obj.TypeName="D";
366
+            obj.TypeName = "C";
367
+
368
+          obj.Url = "&UserID=" + app.globalData.userInfo.UserID + "&Word=" + obj.Key;
369
+
370
+        } else if (data.ENG) {
371
+          obj.Key = data.ENG.Word;
372
+          obj.TypeName = "D";
352
           if (data.ENG.Soundmark)
373
           if (data.ENG.Soundmark)
353
-            obj.Remark=data.ENG.Soundmark.Eng;
374
+            obj.Remark = data.ENG.Soundmark.Eng;
354
 
375
 
355
           if (data.ENG.Paraphrase && data.ENG.Paraphrase[0] && data.ENG.Paraphrase[0].ParaphraseList)
376
           if (data.ENG.Paraphrase && data.ENG.Paraphrase[0] && data.ENG.Paraphrase[0].ParaphraseList)
356
-            obj.Content=data.ENG.Paraphrase[0].ParaphraseList;
377
+            obj.Content = data.ENG.Paraphrase[0].ParaphraseList;
357
 
378
 
358
-          obj.Url="&UserID="+app.globalData.userInfo.UserID+"&Word="+obj.Key;
379
+          obj.Url = "&UserID=" + app.globalData.userInfo.UserID + "&Word=" + obj.Key;
359
         }
380
         }
360
-          
361
-        
362
-        if (data.CHN && data.CHN.PinYin && data.CHN.PinYin.length>0){
363
-          obj.Remark=data.CHN.PinYin[0].pinyin;
381
+
382
+
383
+        if (data.CHN && data.CHN.PinYin && data.CHN.PinYin.length > 0) {
384
+          obj.Remark = data.CHN.PinYin[0].pinyin;
364
         }
385
         }
365
 
386
 
366
         if (obj.Content && obj.Content.length > len)
387
         if (obj.Content && obj.Content.length > len)
367
-            obj.Content = obj.Content.substr(0, len) + "...";
388
+          obj.Content = obj.Content.substr(0, len) + "...";
368
 
389
 
369
         main.updateSearchList(obj);
390
         main.updateSearchList(obj);
370
-        
371
-        if (app.globalData.TempSearchBackNumber==0)
372
-          app.globalData.TempSearchBackNumber=1;
373
-        else if (app.globalData.TempSearchBackNumber>=1)
374
-          app.globalData.TempSearchBackNumber=2;
375
-        
391
+
392
+        if (app.globalData.TempSearchBackNumber == 0)
393
+          app.globalData.TempSearchBackNumber = 1;
394
+        else if (app.globalData.TempSearchBackNumber >= 1)
395
+          app.globalData.TempSearchBackNumber = 2;
396
+
376
 
397
 
377
         wx.redirectTo({
398
         wx.redirectTo({
378
           url: './addInfomationDetail',
399
           url: './addInfomationDetail',
379
         });
400
         });
380
-      }
381
-      else{
401
+      } else {
382
         wx.showToast({
402
         wx.showToast({
383
           title: '无资料',
403
           title: '无资料',
384
           image: "../images/universalpic_exclamation_white_120x120.png",
404
           image: "../images/universalpic_exclamation_white_120x120.png",
@@ -386,22 +406,23 @@ Page({
386
       }
406
       }
387
     });
407
     });
388
   },
408
   },
389
-  openHelp: function () {
390
-    this.setData({
391
-      IsShowHelp: 0,
392
-    });
393
-  },
394
-  showHelp: function () {
409
+  showHelp0: function () {
395
     var that = this;
410
     var that = this;
396
     that.setData({
411
     that.setData({
397
       IsHelp: true,
412
       IsHelp: true,
398
     });
413
     });
399
   },
414
   },
400
-  closeHelp: function () {
415
+  closeHelp0: function () {
401
     this.setData({
416
     this.setData({
402
       IsHelp: false,
417
       IsHelp: false,
403
     });
418
     });
404
   },
419
   },
420
+  closeHelp: function () {
421
+    this.setData({
422
+      IsShowHelp: false,
423
+    });
424
+    wx.setStorageSync('IsHelpAddInfomation', 0);
425
+  },
405
   onShareAppMessage: function () {
426
   onShareAppMessage: function () {
406
     return {
427
     return {
407
       title: app.globalData.ShareTitle,
428
       title: app.globalData.ShareTitle,
@@ -409,4 +430,4 @@ Page({
409
       imageUrl: app.globalData.ShareImage,
430
       imageUrl: app.globalData.ShareImage,
410
     }
431
     }
411
   },
432
   },
412
-})
433
+})

+ 16 - 5
pages/main/addInfomationDetail.wxml

@@ -12,10 +12,10 @@
12
       
12
       
13
     </view>
13
     </view>
14
     <view class="panelRight FlexRow">
14
     <view class="panelRight FlexRow">
15
-      <view class='panelTop1 FlexRow' catchtap='showHelp'>
15
+      <view class='panelTop1 FlexRow' catchtap='showHelp0'>
16
         <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
16
         <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
17
       </view>
17
       </view>
18
-      <view class='panelTop1 FlexRow' catchtap="addData">
18
+      <view id="btnAdd" class='panelTop1 FlexRow' catchtap="addData">
19
         <view class="panelTop3">添加</view>
19
         <view class="panelTop3">添加</view>
20
       </view>
20
       </view>
21
     </view>
21
     </view>
@@ -29,7 +29,7 @@
29
         <view class="panelTitle11">搜索内容</view>
29
         <view class="panelTitle11">搜索内容</view>
30
       </view>
30
       </view>
31
     </view>
31
     </view>
32
-    <view class="{{CSS.CHN_HanZi.Css1}} panelItem FlexRow" bindtap='getInputData' data-type="normal"
32
+    <view id="HelpHanZi" class="{{CSS.CHN_HanZi.Css1}} panelItem FlexRow" bindtap='getInputData' data-type="normal"
33
       data-content="{{Result.CHN.HanZi}}" data-css="CHN_HanZi">
33
       data-content="{{Result.CHN.HanZi}}" data-css="CHN_HanZi">
34
       <view class="FlexRow">
34
       <view class="FlexRow">
35
         <view class="{{CSS.CHN_HanZi.Css2}} panelSelect0">{{CSS.CHN_HanZi.Number}}</view>
35
         <view class="{{CSS.CHN_HanZi.Css2}} panelSelect0">{{CSS.CHN_HanZi.Number}}</view>
@@ -92,7 +92,7 @@
92
       <view class="panelTitle2">此格式便于做个别汉字默写练习</view>
92
       <view class="panelTitle2">此格式便于做个别汉字默写练习</view>
93
     </view>
93
     </view>
94
 
94
 
95
-    <view class="{{CSS['CHN_TianKong_'+index].Css1}} panelItem FlexRow" wx:for="{{Result.CHN.TianKong}}" wx:key="*this"
95
+    <view id="helpTianKong{{index}}" class="{{CSS['CHN_TianKong_'+index].Css1}} panelItem FlexRow" wx:for="{{Result.CHN.TianKong}}" wx:key="*this"
96
       bindtap='getInputData' data-type="sound" data-content="{{item}}" data-css="CHN_TianKong_{{index}}"
96
       bindtap='getInputData' data-type="sound" data-content="{{item}}" data-css="CHN_TianKong_{{index}}"
97
       data-pinyin="{{Result.CHN.PinYin[0].pinyin}}" data-soundmark="{{Result.CHN.PinyinTone}}" data-tag="默写">
97
       data-pinyin="{{Result.CHN.PinYin[0].pinyin}}" data-soundmark="{{Result.CHN.PinyinTone}}" data-tag="默写">
98
       <view class="FlexRow">
98
       <view class="FlexRow">
@@ -605,7 +605,7 @@
605
 <view wx:if="{{IsHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
605
 <view wx:if="{{IsHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
606
   <view class="HelpPanel1 FlexColumn">
606
   <view class="HelpPanel1 FlexColumn">
607
     <view class="HelpPanel11 FlexRow">
607
     <view class="HelpPanel11 FlexRow">
608
-      <view class="HelpPanel111 FlexRow" catchtap="closeHelp">
608
+      <view class="HelpPanel111 FlexRow" catchtap="closeHelp0">
609
         <image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
609
         <image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
610
       </view>
610
       </view>
611
       <view></view>
611
       <view></view>
@@ -621,4 +621,15 @@
621
       </block>
621
       </block>
622
     </swiper>
622
     </swiper>
623
   </view>
623
   </view>
624
+</view>
625
+
626
+<view wx:if="{{IsShowHelp}}" class="IsHelpContainer container FlexColumn">
627
+  <view class="IsHelpContainerTop IsHelpContainer0" style='height:{{HelpTop}}px;'></view>
628
+  <view class="IsHelpContainerLeft IsHelpContainer0" style='top:{{HelpTop}}px;width:{{HelpWidth1}}px;height:{{HelpHeight1}}px;'></view>
629
+  <view class="IsHelpContainerRight IsHelpContainer0" style='top:{{HelpTop}}px;left:{{HelpLeft2}}px;width:{{HelpWidth2}}px;height:{{HelpHeight2}}px;'></view>
630
+  <view class="IsHelpContainerBottom IsHelpContainer0" style='top:{{HelpBottom}}px;height:{{Containnerheight}}px;'></view>
631
+  <text class="HelpText1" style='top:{{HelpTextTop}}px;'>{{HelpText}}</text>
632
+  <view class="HelpClose FlexColumn" style="{{HelpClosePos}}:30rpx;" catchtap="closeHelp">
633
+    <image class="universalpic_del_gray_14x14" src="../images/universalpic_del_gray_14x14.png"></image>
634
+  </view>
624
 </view>
635
 </view>

+ 194 - 181
pages/main/default.js

@@ -14,9 +14,10 @@ Page({
14
     IsIPhoneX: app.globalData.IsIPhoneX,
14
     IsIPhoneX: app.globalData.IsIPhoneX,
15
     ImagePath: app.globalData.uploadImageUrl,
15
     ImagePath: app.globalData.uploadImageUrl,
16
     IsShowUserID: false,
16
     IsShowUserID: false,
17
-    VersionID:app.globalData.Version,
18
-    AwardDayNumber:0,
19
-    IsShowRemind:false,
17
+    VersionID: app.globalData.Version,
18
+    AwardDayNumber: 0,
19
+    IsShowRemind: false,
20
+    IsShowHelp: false,
20
   },
21
   },
21
   onPullDownRefresh: function () {
22
   onPullDownRefresh: function () {
22
     wx.redirectTo({
23
     wx.redirectTo({
@@ -39,8 +40,7 @@ Page({
39
     wx.showShareMenu({
40
     wx.showShareMenu({
40
       withShareTicket: true,
41
       withShareTicket: true,
41
       menus: ['shareAppMessage', 'shareTimeline']
42
       menus: ['shareAppMessage', 'shareTimeline']
42
-    })
43
-
43
+    });
44
   },
44
   },
45
   onHide: function () {
45
   onHide: function () {
46
     wx.hideLoading();
46
     wx.hideLoading();
@@ -53,50 +53,43 @@ Page({
53
           url: '../other/newuser',
53
           url: '../other/newuser',
54
         });
54
         });
55
       }
55
       }
56
-    }
57
-    else {
56
+    } else {
58
       wx.getSetting({
57
       wx.getSetting({
59
         success(res) {
58
         success(res) {
60
-          if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsMember==1 && app.globalData.userInfo.IsShow == 1){
59
+          if (app.globalData.userInfo.NickName == "陌生用户" && app.globalData.userInfo.IsMember == 1 && app.globalData.userInfo.IsShow == 1) {
61
             wx.navigateTo({
60
             wx.navigateTo({
62
               url: '../index/accredit',
61
               url: '../index/accredit',
63
             });
62
             });
64
-          }
65
-          else{
63
+          } else {
66
             if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
64
             if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
67
               if (app.globalData.userInfo.Subscribe == 1) {
65
               if (app.globalData.userInfo.Subscribe == 1) {
68
                 wx.navigateTo({
66
                 wx.navigateTo({
69
                   url: '../other/userbook',
67
                   url: '../other/userbook',
70
                 });
68
                 });
71
                 app.globalData.GotoUrl = "";
69
                 app.globalData.GotoUrl = "";
72
-              }
73
-              else {
70
+              } else {
74
                 wx.redirectTo({
71
                 wx.redirectTo({
75
                   url: '../other/newuser',
72
                   url: '../other/newuser',
76
                 });
73
                 });
77
               }
74
               }
78
-            }
79
-            else if (app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
75
+            } else if (app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
80
               if (app.globalData.GotoUrl.indexOf("../other/pay?PayType=6") >= 0) {
76
               if (app.globalData.GotoUrl.indexOf("../other/pay?PayType=6") >= 0) {
81
                 wx.navigateTo({
77
                 wx.navigateTo({
82
                   url: app.globalData.GotoUrl,
78
                   url: app.globalData.GotoUrl,
83
                 });
79
                 });
84
                 app.globalData.GotoUrl = "";
80
                 app.globalData.GotoUrl = "";
85
-              }
86
-              else {
81
+              } else {
87
                 var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
82
                 var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
88
                 var today = common.formatDateCHS(common.formatTime(new Date()));
83
                 var today = common.formatDateCHS(common.formatTime(new Date()));
89
                 if (productServiceTime < today) {
84
                 if (productServiceTime < today) {
90
                   wx.redirectTo({
85
                   wx.redirectTo({
91
                     url: '../other/userbook',
86
                     url: '../other/userbook',
92
                   });
87
                   });
93
-                }
94
-                else if (app.globalData.userInfo.ClassDayNumber < 0) {
88
+                } else if (app.globalData.userInfo.ClassDayNumber < 0) {
95
                   wx.redirectTo({
89
                   wx.redirectTo({
96
                     url: '../other/userbook',
90
                     url: '../other/userbook',
97
                   });
91
                   });
98
-                }
99
-                else if (app.globalData.GotoUrl) {
92
+                } else if (app.globalData.GotoUrl) {
100
                   //console.log(app.globalData.GotoUrl);
93
                   //console.log(app.globalData.GotoUrl);
101
                   wx.navigateTo({
94
                   wx.navigateTo({
102
                     url: app.globalData.GotoUrl,
95
                     url: app.globalData.GotoUrl,
@@ -105,9 +98,8 @@ Page({
105
                 }
98
                 }
106
               }
99
               }
107
 
100
 
108
-            }
109
-            else if (app.globalData.userInfo.IsShow == 0) {
110
-              main.buildInitData(function () { });
101
+            } else if (app.globalData.userInfo.IsShow == 0) {
102
+              main.buildInitData(function () {});
111
             }
103
             }
112
 
104
 
113
             that.setData({
105
             that.setData({
@@ -122,23 +114,33 @@ Page({
122
 
114
 
123
             if (res.authSetting['scope.record'] === true) {
115
             if (res.authSetting['scope.record'] === true) {
124
               app.globalData.IsRecorderAccredit = 1;
116
               app.globalData.IsRecorderAccredit = 1;
125
-            }
126
-            else if (res.authSetting['scope.record'] === false) {
117
+            } else if (res.authSetting['scope.record'] === false) {
127
               app.globalData.IsRecorderAccredit = -1;
118
               app.globalData.IsRecorderAccredit = -1;
128
             }
119
             }
129
 
120
 
130
           }
121
           }
131
-          
122
+
132
         }
123
         }
133
       });
124
       });
134
     }
125
     }
135
-    
136
-    app.globalData.TempStr2=null;
126
+
127
+    app.globalData.TempStr2 = null;
137
 
128
 
138
     wx.setNavigationBarColor({
129
     wx.setNavigationBarColor({
139
       frontColor: "#ffffff",
130
       frontColor: "#ffffff",
140
       backgroundColor: "#3157BA",
131
       backgroundColor: "#3157BA",
141
     });
132
     });
133
+
134
+    if (wx.getStorageSync("IsHelpAddInfomation") == 1) {
135
+      that.setData({
136
+        IsShowHelp: true,
137
+      });
138
+      main.ShowHelp(that, "#btnAdd", "up", "点击下方“添加题卡”按钮");
139
+    } else {
140
+      that.setData({
141
+        IsShowHelp: false,
142
+      });
143
+    }
142
   },
144
   },
143
   init: function () {
145
   init: function () {
144
     //显示练习模式
146
     //显示练习模式
@@ -153,8 +155,7 @@ Page({
153
     var arrColorIndex = wx.getStorageSync("ColorIndexArr");
155
     var arrColorIndex = wx.getStorageSync("ColorIndexArr");
154
     if (!arrColorIndex) {
156
     if (!arrColorIndex) {
155
       app.globalData.ColorIndex = common.random(1, 4);
157
       app.globalData.ColorIndex = common.random(1, 4);
156
-    }
157
-    else {
158
+    } else {
158
       app.globalData.ColorIndex = arrColorIndex[common.random(0, arrColorIndex.length - 1)];
159
       app.globalData.ColorIndex = arrColorIndex[common.random(0, arrColorIndex.length - 1)];
159
     }
160
     }
160
     //显示答案操作方式
161
     //显示答案操作方式
@@ -188,7 +189,7 @@ Page({
188
       wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
189
       wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
189
     }
190
     }
190
 
191
 
191
-    if (url == "../plan/studyplan" && this.data.DayNumber<=app.globalData.IsShowSettingRemind){
192
+    if (url == "../plan/studyplan" && this.data.DayNumber <= app.globalData.IsShowSettingRemind) {
192
       wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
193
       wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
193
     }
194
     }
194
   },
195
   },
@@ -201,8 +202,7 @@ Page({
201
           that.setData({
202
           that.setData({
202
             IsMaintain: 1,
203
             IsMaintain: 1,
203
           });
204
           });
204
-        }
205
-        else {
205
+        } else {
206
           var TodayTaskNumber = data.ListNew.length + data.ListReview.length + data.ListHistory.length;
206
           var TodayTaskNumber = data.ListNew.length + data.ListReview.length + data.ListHistory.length;
207
           that.setData({
207
           that.setData({
208
             DayNumber: data.DayNumber,
208
             DayNumber: data.DayNumber,
@@ -210,17 +210,16 @@ Page({
210
             IsStart: data.IsStart,
210
             IsStart: data.IsStart,
211
           });
211
           });
212
 
212
 
213
-          
213
+
214
 
214
 
215
           //是否显示提示任务量设置
215
           //是否显示提示任务量设置
216
-          if (that.data.DayNumber<=app.globalData.IsShowSettingRemind){
216
+          if (that.data.DayNumber <= app.globalData.IsShowSettingRemind) {
217
             var IsShowSettingRemind = wx.getStorageSync("IsShowSettingRemind");
217
             var IsShowSettingRemind = wx.getStorageSync("IsShowSettingRemind");
218
-            if (!IsShowSettingRemind || IsShowSettingRemind<that.data.DayNumber){
218
+            if (!IsShowSettingRemind || IsShowSettingRemind < that.data.DayNumber) {
219
               that.setData({
219
               that.setData({
220
                 IsShowSettingRemind: 1,
220
                 IsShowSettingRemind: 1,
221
               });
221
               });
222
-            }
223
-            else{
222
+            } else {
224
               that.setData({
223
               that.setData({
225
                 IsShowSettingRemind: 0,
224
                 IsShowSettingRemind: 0,
226
               });
225
               });
@@ -229,21 +228,20 @@ Page({
229
 
228
 
230
           //判断是否出现推广广告
229
           //判断是否出现推广广告
231
           common.getStorageValue(that, "IsShowMarketingTime", "2020-01-01 00:00:00", function () {
230
           common.getStorageValue(that, "IsShowMarketingTime", "2020-01-01 00:00:00", function () {
232
-            if (that.data.IsShowMarketingTime<common.formatTime(new Date())) {
233
-              main.getAwardData(function(data){
234
-                var award=data.Total-data.AwardDayNumber
231
+            if (that.data.IsShowMarketingTime < common.formatTime(new Date())) {
232
+              main.getAwardData(function (data) {
233
+                var award = data.Total - data.AwardDayNumber
235
                 that.setData({
234
                 that.setData({
236
                   IsShowRemind: true,
235
                   IsShowRemind: true,
237
-                  AwardDayNumber:award,
236
+                  AwardDayNumber: award,
238
                 });
237
                 });
239
               });
238
               });
240
 
239
 
241
-            }
242
-            else{
243
-              
244
-              if(app.globalData.MemoryLevel==0 && data.DayNumber>=8){
240
+            } else {
241
+
242
+              if (app.globalData.MemoryLevel == 0 && data.DayNumber >= 8) {
245
                 var IsShowPatternMenu = wx.getStorageSync("IsShowPatternMenu");
243
                 var IsShowPatternMenu = wx.getStorageSync("IsShowPatternMenu");
246
-                if (!IsShowPatternMenu){
244
+                if (!IsShowPatternMenu) {
247
                   wx.navigateTo({
245
                   wx.navigateTo({
248
                     url: '../other/menu?Type=1',
246
                     url: '../other/menu?Type=1',
249
                   });
247
                   });
@@ -253,7 +251,7 @@ Page({
253
             }
251
             }
254
           });
252
           });
255
 
253
 
256
-          
254
+
257
         }
255
         }
258
       });
256
       });
259
     });
257
     });
@@ -275,8 +273,7 @@ Page({
275
       wx.navigateTo({
273
       wx.navigateTo({
276
         url: '../other/recover',
274
         url: '../other/recover',
277
       });
275
       });
278
-    }
279
-    else {
276
+    } else {
280
       that.setData({
277
       that.setData({
281
         IsTempCardNoSaved: false,
278
         IsTempCardNoSaved: false,
282
       });
279
       });
@@ -286,65 +283,59 @@ Page({
286
       });
283
       });
287
     }
284
     }
288
   },
285
   },
289
-  
286
+
290
   gotoReLaunch: function (e) {
287
   gotoReLaunch: function (e) {
291
-    var url=e.currentTarget.dataset.url;
288
+    var url = e.currentTarget.dataset.url;
292
     wx.reLaunch({
289
     wx.reLaunch({
293
       url: url,
290
       url: url,
294
     });
291
     });
295
   },
292
   },
296
-  showUserID:function(){
293
+  showUserID: function () {
297
     var that = this;
294
     var that = this;
298
-    if (app.globalData.userInfo.UserID == 1
299
-      || app.globalData.userInfo.UserID == 3 
300
-      || app.globalData.userInfo.UserID == 4) {
301
-      
302
-      var userid=2;
303
-      if (app.globalData.userInfo.UserID>=3)
295
+    if (app.globalData.userInfo.UserID == 1 ||
296
+      app.globalData.userInfo.UserID == 3 ||
297
+      app.globalData.userInfo.UserID == 4) {
298
+
299
+      var userid = 2;
300
+      if (app.globalData.userInfo.UserID >= 3)
304
         userid = app.globalData.userInfo.UserID;
301
         userid = app.globalData.userInfo.UserID;
305
 
302
 
306
       that.setData({
303
       that.setData({
307
         IsShowUserID: true,
304
         IsShowUserID: true,
308
-        ChangeUserID:userid,
305
+        ChangeUserID: userid,
309
       });
306
       });
310
     }
307
     }
311
   },
308
   },
312
   onKeyInput: function (e) {
309
   onKeyInput: function (e) {
313
     var id = e.detail.value;
310
     var id = e.detail.value;
314
     var usertype = e.currentTarget.dataset.type;
311
     var usertype = e.currentTarget.dataset.type;
315
-    
312
+
316
     var that = this;
313
     var that = this;
317
-    if (usertype=="userid"){
314
+    if (usertype == "userid") {
318
       that.setData({
315
       that.setData({
319
         ChangeUserID: id,
316
         ChangeUserID: id,
320
       });
317
       });
321
-    }
322
-    else if (usertype=="newuserid"){
318
+    } else if (usertype == "newuserid") {
323
       that.setData({
319
       that.setData({
324
         ChangeNewUserID: id,
320
         ChangeNewUserID: id,
325
       });
321
       });
326
-    }
327
-    else if (usertype=="introduceruserid"){
322
+    } else if (usertype == "introduceruserid") {
328
       that.setData({
323
       that.setData({
329
         ChangeIntroducerUserID: id,
324
         ChangeIntroducerUserID: id,
330
       });
325
       });
331
-    }
332
-    else if (usertype=="versionid"){
326
+    } else if (usertype == "versionid") {
333
       that.setData({
327
       that.setData({
334
         VersoinID: id,
328
         VersoinID: id,
335
       });
329
       });
336
-    }
337
-    else if (usertype=="groupuserid"){
330
+    } else if (usertype == "groupuserid") {
338
       that.setData({
331
       that.setData({
339
         ChangeGroupUserID: id,
332
         ChangeGroupUserID: id,
340
       });
333
       });
341
-    }
342
-    else if (usertype=="refunduserid"){
334
+    } else if (usertype == "refunduserid") {
343
       that.setData({
335
       that.setData({
344
         RefundUserID: id,
336
         RefundUserID: id,
345
       });
337
       });
346
-    }
347
-    else if (usertype=="refundremark"){
338
+    } else if (usertype == "refundremark") {
348
       that.setData({
339
       that.setData({
349
         RefundRemark: id,
340
         RefundRemark: id,
350
       });
341
       });
@@ -352,77 +343,85 @@ Page({
352
   },
343
   },
353
   setSelectUser: function (e) {
344
   setSelectUser: function (e) {
354
     var that = this;
345
     var that = this;
355
-    if (app.globalData.userInfo.UserID == 1
356
-      || app.globalData.userInfo.UserID == 2 
357
-      || app.globalData.userInfo.UserID == 3 
358
-      || app.globalData.userInfo.UserID == 4) {
346
+    if (app.globalData.userInfo.UserID == 1 ||
347
+      app.globalData.userInfo.UserID == 2 ||
348
+      app.globalData.userInfo.UserID == 3 ||
349
+      app.globalData.userInfo.UserID == 4) {
359
       var userid = that.data.ChangeUserID;
350
       var userid = that.data.ChangeUserID;
360
       wx.setStorageSync("UserID", userid);
351
       wx.setStorageSync("UserID", userid);
361
-      
352
+
362
       app.globalData.userInfo.UserID = userid;
353
       app.globalData.userInfo.UserID = userid;
363
-      var fieldStr="&FieldStr=NickName,ProductServiceTime,AvatarUrl";
364
-      that.getUserInfo(userid,fieldStr,function(data){
354
+      var fieldStr = "";
355
+      that.getUserInfo(userid, fieldStr, function (data) {
365
         wx.setNavigationBarTitle({
356
         wx.setNavigationBarTitle({
366
           title: data.NickName
357
           title: data.NickName
367
         });
358
         });
368
         main.getUserConfig();
359
         main.getUserConfig();
369
-        app.globalData.userInfo.ProductServiceTime=data.ProductServiceTime;
370
-        
371
-        if (app.globalData.userInfo.UserID!=2){
372
-          app.globalData.userInfo.NickName=data.NickName;
373
-          app.globalData.userInfo.AvatarUrl=data.AvatarUrl;
360
+        app.globalData.userInfo.ProductServiceTime = data.ProductServiceTime;
361
+
362
+        if (app.globalData.userInfo.UserID != 2) {
363
+          app.globalData.userInfo.NickName = data.NickName;
364
+          app.globalData.userInfo.AvatarUrl = data.AvatarUrl;
365
+        }
366
+        if (data.IsPromoter > 0) {
367
+          app.globalData.userInfo.IsPromoter = data.IsPromoter;
368
+          app.globalData.userInfo.PromotionLimitDays = data.PromotionLimitDays;
369
+          app.globalData.userInfo.PromotionLimitTime = data.PromotionLimitTime;
370
+          app.globalData.userInfo.WXServiceCharge = data.WXServiceCharge;
371
+          app.globalData.userInfo.IndividualIncomeTax = data.IndividualIncomeTax;
372
+          app.globalData.userInfo.WXAccount = data.WXAccount;
373
+          app.globalData.userInfo.RealName = data.RealName;
374
+          app.globalData.userInfo.IntroducerNickName = data.IntroducerNickName;
375
+          app.globalData.userInfo.IntroducerAvatarUrl = data.IntroducerAvatarUrl;
374
         }
376
         }
375
       });
377
       });
376
-      
378
+
377
       that.setData({
379
       that.setData({
378
         IsShowUserID: false,
380
         IsShowUserID: false,
379
       });
381
       });
380
       that.onShow();
382
       that.onShow();
381
     }
383
     }
382
   },
384
   },
383
-  getUserInfoFunction:function(e){
385
+  getUserInfoFunction: function (e) {
384
     var that = this;
386
     var that = this;
385
-    var userid=e.currentTarget.dataset.id;
386
-    var type1=e.currentTarget.dataset.type;
387
-    var fieldStr="&FieldStr=NickName,AvatarUrl";
388
-    if (userid){
389
-      that.getUserInfo(userid,fieldStr,function(data){
390
-        if (type1==0){
387
+    var userid = e.currentTarget.dataset.id;
388
+    var type1 = e.currentTarget.dataset.type;
389
+    var fieldStr = "&FieldStr=NickName,AvatarUrl";
390
+    if (userid) {
391
+      that.getUserInfo(userid, fieldStr, function (data) {
392
+        if (type1 == 0) {
391
           that.setData({
393
           that.setData({
392
             NewUserAvatar: data.AvatarUrl,
394
             NewUserAvatar: data.AvatarUrl,
393
             NewUserNickName: data.NickName,
395
             NewUserNickName: data.NickName,
394
           });
396
           });
395
-        }
396
-        else if (type1==1){
397
+        } else if (type1 == 1) {
397
           that.setData({
398
           that.setData({
398
             IntroducerAvatar: data.AvatarUrl,
399
             IntroducerAvatar: data.AvatarUrl,
399
             IntroducerNickName: data.NickName,
400
             IntroducerNickName: data.NickName,
400
           });
401
           });
401
-        }
402
-        else if (type1==2){
402
+        } else if (type1 == 2) {
403
           that.setData({
403
           that.setData({
404
             GroupUserAvatar: data.AvatarUrl,
404
             GroupUserAvatar: data.AvatarUrl,
405
             GroupUserNickName: data.NickName,
405
             GroupUserNickName: data.NickName,
406
           });
406
           });
407
-        }
408
-        else if (type1==3){
407
+        } else if (type1 == 3) {
409
           that.setData({
408
           that.setData({
410
             RefundUserAvatar: data.AvatarUrl,
409
             RefundUserAvatar: data.AvatarUrl,
411
             RefundUserNickName: data.NickName,
410
             RefundUserNickName: data.NickName,
412
           });
411
           });
413
           var url = "GetUserPayList?UserID=" + userid;
412
           var url = "GetUserPayList?UserID=" + userid;
414
-            main.getData(url, function (data) {
415
-              if (data) {
416
-                that.setData({
417
-                  PayList: data,
418
-                });
419
-              }
420
-            });
421
-          }
413
+          main.getData(url, function (data) {
414
+            if (data) {
415
+              that.setData({
416
+                PayList: data,
417
+              });
418
+            }
419
+          });
420
+        }
422
       });
421
       });
423
     }
422
     }
424
   },
423
   },
425
-  getUserInfo:function(userID,fieldStr,callback){
424
+  getUserInfo: function (userID, fieldStr, callback) {
426
     var url = "GetMiaoguoWXUserInfo?UserID=" + userID + fieldStr;
425
     var url = "GetMiaoguoWXUserInfo?UserID=" + userID + fieldStr;
427
     main.getData(url, function (data) {
426
     main.getData(url, function (data) {
428
       if (data) {
427
       if (data) {
@@ -432,87 +431,87 @@ Page({
432
   },
431
   },
433
   setUserGroup: function (e) {
432
   setUserGroup: function (e) {
434
     var that = this;
433
     var that = this;
435
-    if (that.data.ChangeGroupUserID){
436
-      if (app.globalData.userInfo.UserID == 1
437
-        || app.globalData.userInfo.UserID == 2 
438
-        || app.globalData.userInfo.UserID == 3 
439
-        || app.globalData.userInfo.UserID == 4) {
440
-          var id=e.currentTarget.dataset.id;
441
-          var url = "UpdateUserMemberInfo?UserID=" + that.data.ChangeGroupUserID + "&GroupID="+id;
442
-          main.getData(url, function (data) {
443
-            that.setData({
444
-              ChangeGroupUserID: null,
445
-              GroupUserAvatar:null,
446
-            });
447
-            wx.showToast({
448
-              title: '群更改成功',
449
-            })
434
+    if (that.data.ChangeGroupUserID) {
435
+      if (app.globalData.userInfo.UserID == 1 ||
436
+        app.globalData.userInfo.UserID == 2 ||
437
+        app.globalData.userInfo.UserID == 3 ||
438
+        app.globalData.userInfo.UserID == 4) {
439
+        var id = e.currentTarget.dataset.id;
440
+        var url = "UpdateUserMemberInfo?UserID=" + that.data.ChangeGroupUserID + "&GroupID=" + id;
441
+        main.getData(url, function (data) {
442
+          that.setData({
443
+            ChangeGroupUserID: null,
444
+            GroupUserAvatar: null,
450
           });
445
           });
446
+          wx.showToast({
447
+            title: '群更改成功',
448
+          })
449
+        });
451
       }
450
       }
452
     }
451
     }
453
   },
452
   },
454
   setUserIntroducer: function (e) {
453
   setUserIntroducer: function (e) {
455
     var that = this;
454
     var that = this;
456
-    if (that.data.ChangeNewUserID && that.data.ChangeIntroducerUserID){
457
-      if (app.globalData.userInfo.UserID == 1
458
-        || app.globalData.userInfo.UserID == 2 
459
-        || app.globalData.userInfo.UserID == 3 
460
-        || app.globalData.userInfo.UserID == 4) {
461
-          var url = "UpdateIntroducer?UserID=" + that.data.ChangeNewUserID + "&Introducer="+that.data.ChangeIntroducerUserID;
462
-          main.getData(url, function (data) {
463
-            that.setData({
464
-              ChangeNewUserID: null,
465
-              ChangeIntroducerUserID: null,
466
-              NewUserAvatar:null,
467
-              IntroducerAvatar:null,
468
-            });
469
-            wx.showToast({
470
-              title: '介绍人更改成功',
471
-            })
455
+    if (that.data.ChangeNewUserID && that.data.ChangeIntroducerUserID) {
456
+      if (app.globalData.userInfo.UserID == 1 ||
457
+        app.globalData.userInfo.UserID == 2 ||
458
+        app.globalData.userInfo.UserID == 3 ||
459
+        app.globalData.userInfo.UserID == 4) {
460
+        var url = "UpdateIntroducer?UserID=" + that.data.ChangeNewUserID + "&Introducer=" + that.data.ChangeIntroducerUserID;
461
+        main.getData(url, function (data) {
462
+          that.setData({
463
+            ChangeNewUserID: null,
464
+            ChangeIntroducerUserID: null,
465
+            NewUserAvatar: null,
466
+            IntroducerAvatar: null,
472
           });
467
           });
468
+          wx.showToast({
469
+            title: '介绍人更改成功',
470
+          })
471
+        });
473
       }
472
       }
474
     }
473
     }
475
   },
474
   },
476
-  selectPayItem:function(e){
477
-    var that=this;
478
-    var id=e.currentTarget.dataset.id;
479
-    var list=that.data.PayList;
480
-    for(var i=0;i<list.length;i++){
481
-      if (list[i].TradeNo==id)
482
-        list[i].IsSelected="1";
475
+  selectPayItem: function (e) {
476
+    var that = this;
477
+    var id = e.currentTarget.dataset.id;
478
+    var list = that.data.PayList;
479
+    for (var i = 0; i < list.length; i++) {
480
+      if (list[i].TradeNo == id)
481
+        list[i].IsSelected = "1";
483
       else
482
       else
484
-        list[i].IsSelected="";
483
+        list[i].IsSelected = "";
485
     }
484
     }
486
     that.setData({
485
     that.setData({
487
-      PayList:list,
486
+      PayList: list,
488
     });
487
     });
489
   },
488
   },
490
-  setRefund:function(){
491
-    var that=this;
492
-    var str="",TradeNo="",Remark="";
493
-
494
-    var list=that.data.PayList;
495
-    for(var i=0;i<list.length;i++){
496
-      if (list[i].IsSelected=="1"){
497
-        str='确认给【'+that.data.RefundUserNickName+"】退款 ";
498
-        str+=list[i].Money+"元,";
499
-        str+="交易编号:"+list[i].TradeNo;
500
-        TradeNo=list[i].TradeNo;
501
-        Remark=that.data.RefundRemark;
489
+  setRefund: function () {
490
+    var that = this;
491
+    var str = "",
492
+      TradeNo = "",
493
+      Remark = "";
494
+
495
+    var list = that.data.PayList;
496
+    for (var i = 0; i < list.length; i++) {
497
+      if (list[i].IsSelected == "1") {
498
+        str = '确认给【' + that.data.RefundUserNickName + "】退款 ";
499
+        str += list[i].Money + "元,";
500
+        str += "交易编号:" + list[i].TradeNo;
501
+        TradeNo = list[i].TradeNo;
502
+        Remark = that.data.RefundRemark;
502
         break;
503
         break;
503
       }
504
       }
504
     }
505
     }
505
-    if (!str){
506
+    if (!str) {
506
       wx.showToast({
507
       wx.showToast({
507
         title: '请列表中选择',
508
         title: '请列表中选择',
508
       });
509
       });
509
-    }
510
-    else if (!that.data.RefundRemark){
510
+    } else if (!that.data.RefundRemark) {
511
       wx.showToast({
511
       wx.showToast({
512
         title: '请输入退款备注',
512
         title: '请输入退款备注',
513
       });
513
       });
514
-    }
515
-    else{
514
+    } else {
516
       wx.showModal({
515
       wx.showModal({
517
         title: '退款确认',
516
         title: '退款确认',
518
         showCancel: true,
517
         showCancel: true,
@@ -521,19 +520,18 @@ Page({
521
         confirmText: '确认',
520
         confirmText: '确认',
522
         success(res) {
521
         success(res) {
523
           if (res.confirm) {
522
           if (res.confirm) {
524
-            var url = "RefundUser?UserID=" + that.data.RefundUserID + "&TradeNo="+TradeNo+"&Remark="+Remark;
523
+            var url = "RefundUser?UserID=" + that.data.RefundUserID + "&TradeNo=" + TradeNo + "&Remark=" + Remark;
525
             main.getData(url, function (data) {
524
             main.getData(url, function (data) {
526
               wx.showToast({
525
               wx.showToast({
527
                 title: '退款完成',
526
                 title: '退款完成',
528
               });
527
               });
529
             });
528
             });
530
-            
531
           }
529
           }
532
         }
530
         }
533
       });
531
       });
534
     }
532
     }
535
   },
533
   },
536
-  closeRemind:function(){
534
+  closeRemind: function () {
537
     this.setData({
535
     this.setData({
538
       IsShowRemind: false,
536
       IsShowRemind: false,
539
     });
537
     });
@@ -541,24 +539,39 @@ Page({
541
     //判断每30天是否是高级模式
539
     //判断每30天是否是高级模式
542
     wx.removeStorageSync('IsShowPatternMenu');
540
     wx.removeStorageSync('IsShowPatternMenu');
543
   },
541
   },
544
-  setVersionStart:function(e){
545
-    var flag=e.currentTarget.dataset.flag;
546
-    var versionid=e.currentTarget.dataset.versionid;
547
-    var url = "UpdateVersionStatus?ProgramID=166&Version="+versionid+"&Flag=" + flag;
542
+  setVersionStart: function (e) {
543
+    var flag = e.currentTarget.dataset.flag;
544
+    var versionid = e.currentTarget.dataset.versionid;
545
+    var url = "UpdateVersionStatus?ProgramID=166&Version=" + versionid + "&Flag=" + flag;
548
     main.getData(url, function (data) {
546
     main.getData(url, function (data) {
549
       wx.showToast({
547
       wx.showToast({
550
         title: '修改成功!',
548
         title: '修改成功!',
551
       })
549
       })
552
     });
550
     });
553
   },
551
   },
554
-  onShareAppMessage: function () {
555
-    return {
556
-      title: app.globalData.ShareTitle,
557
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
558
-      imageUrl: app.globalData.ShareImage,
559
-    }
560
-  },
561
   onShareTimeline: function () {
552
   onShareTimeline: function () {
562
     return this.onShareAppMessage();
553
     return this.onShareAppMessage();
563
   },
554
   },
564
-})
555
+  closeHelp: function () {
556
+    this.setData({
557
+      IsShowHelp: false,
558
+    });
559
+    wx.setStorageSync('IsHelpAddInfomation', 0);
560
+  },
561
+  onShareAppMessage: function () {
562
+    if (wx.getStorageSync("IsHelpAddInfomation") == 1) {
563
+      return {
564
+        title: "题卡制作【加资料】教程",
565
+        path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + "&type=helpAddInfomation",
566
+        imageUrl: app.globalData.uploadImageUrl + "web/program_screenshot_lesson_a0204.png",
567
+      }
568
+    } else {
569
+      return {
570
+        title: app.globalData.ShareTitle,
571
+        path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
572
+        imageUrl: app.globalData.ShareImage,
573
+      }
574
+    }
575
+  },
576
+
577
+})

+ 14 - 1
pages/main/default.wxml

@@ -28,7 +28,7 @@
28
       <view class='panelBottom11 FlexColumn'>
28
       <view class='panelBottom11 FlexColumn'>
29
         <view class='text5'>练习</view>
29
         <view class='text5'>练习</view>
30
       </view>
30
       </view>
31
-      <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../main/add?type=add&id=0">
31
+      <view id="btnAdd" class='panelBottom11 FlexColumn' catchtap="goto" data-url="../main/add?type=add&id=0">
32
         <image class="tabbar_add_red_70x70" src='../images/tabbar_add_red_70x70.png' />
32
         <image class="tabbar_add_red_70x70" src='../images/tabbar_add_red_70x70.png' />
33
       </view>
33
       </view>
34
       <view class='panelBottom11 FlexColumn' catchtap='gotoReLaunch' data-url="../main/cardmain">
34
       <view class='panelBottom11 FlexColumn' catchtap='gotoReLaunch' data-url="../main/cardmain">
@@ -142,3 +142,16 @@
142
     <image class="practise_index_board_close" catchtap="closeRemind" src='../images/practise_index_board_close.png' />
142
     <image class="practise_index_board_close" catchtap="closeRemind" src='../images/practise_index_board_close.png' />
143
   </view>
143
   </view>
144
 </view>
144
 </view>
145
+
146
+<view  wx:if="{{IsShowHelp}}" class="IsHelpContainer container FlexColumn" >
147
+  <view class="IsHelpContainerTop IsHelpContainer0" style='height:{{HelpTop}}px;'></view>
148
+  <view class="IsHelpContainerLeft IsHelpContainer0" style='top:{{HelpTop}}px;width:{{HelpWidth1}}px;height:{{HelpHeight1}}px;'></view>
149
+  <view class="IsHelpContainerRight IsHelpContainer0" style='top:{{HelpTop}}px;left:{{HelpLeft2}}px;height:{{HelpHeight2}}px;'></view>
150
+  <view class="IsHelpContainerBottom IsHelpContainer0" style='top:{{HelpBottom}}px;height:{{Containnerheight}}px;'></view>
151
+  <view class="HelpText1" style='top:{{HelpTextTop}}px;'>{{HelpText}}</view>
152
+
153
+  <view class="HelpClose FlexColumn" style="{{HelpClosePos}}:30rpx;" catchtap="closeHelp">
154
+    <image class="universalpic_del_gray_14x14" src="../images/universalpic_del_gray_14x14.png"></image>
155
+  </view>
156
+</view>
157
+

+ 2 - 1
pages/main/default.wxss

@@ -450,4 +450,5 @@ page{
450
   font-size:28rpx;
450
   font-size:28rpx;
451
   text-align: left;
451
   text-align: left;
452
   padding-left: 20rpx;
452
   padding-left: 20rpx;
453
-}
453
+}
454
+

+ 14 - 0
pages/main/systemsetting.js

@@ -18,6 +18,7 @@ Page({
18
       Version: app.globalData.Version,
18
       Version: app.globalData.Version,
19
       IsShow: app.globalData.userInfo.IsShow,
19
       IsShow: app.globalData.userInfo.IsShow,
20
       ShowUserID:app.globalData.userInfo.ShowUserID,
20
       ShowUserID:app.globalData.userInfo.ShowUserID,
21
+      IsPromoter:app.globalData.userInfo.IsPromoter,
21
     });
22
     });
22
 
23
 
23
     common.getStorageValue(this, "HasSound", true, function () {
24
     common.getStorageValue(this, "HasSound", true, function () {
@@ -46,6 +47,19 @@ Page({
46
       });
47
       });
47
     }
48
     }
48
   },
49
   },
50
+  goto: function (e) {
51
+    var url = e.currentTarget.dataset.url;
52
+    var gotoType = e.currentTarget.dataset.type;
53
+    if (!gotoType) {
54
+      wx.navigateTo({
55
+        url: url,
56
+      });
57
+    } else {
58
+      wx.redirectTo({
59
+        url: url,
60
+      })
61
+    }
62
+  },
49
   switch1Change(e) {
63
   switch1Change(e) {
50
     var that = this;
64
     var that = this;
51
     that.data.HasSound = e.detail.value;
65
     that.data.HasSound = e.detail.value;

+ 4 - 0
pages/main/systemsetting.wxml

@@ -22,6 +22,10 @@
22
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
22
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
23
     </view>
23
     </view>
24
   </view>
24
   </view>
25
+  <view wx:if="{{IsPromoter>0}}" class='lineFooter'></view>
26
+  <view wx:if="{{IsPromoter>0}}" class="panelItem00 panelItem FlexRow" bindtap='goto' data-url="../../pages_agent/main/user_index?AgentCategory=promotion">
27
+    返现推广计划(测试版)
28
+  </view>  
25
   <view class='lineFooter'></view>
29
   <view class='lineFooter'></view>
26
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
30
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
27
     重新获取用户信息
31
     重新获取用户信息

+ 2 - 2
pages/other/newuser.js

@@ -104,12 +104,12 @@ Page({
104
     var that=this;
104
     var that=this;
105
     var isPlay=!that.data.IsPlay;
105
     var isPlay=!that.data.IsPlay;
106
     if (isPlay){
106
     if (isPlay){
107
-      that.data.List[8].Image="bm_sy_banner-zc_pause.png";
107
+      that.data.List[10].Image="bm_sy_banner-zc_pause.png";
108
       backgroundAudioManager.title = "暖暖爸致辞";
108
       backgroundAudioManager.title = "暖暖爸致辞";
109
       backgroundAudioManager.src = app.globalData.uploadImageUrl+"web/_lesson/nuannuanbazhici.m4a";
109
       backgroundAudioManager.src = app.globalData.uploadImageUrl+"web/_lesson/nuannuanbazhici.m4a";
110
     }
110
     }
111
     else{
111
     else{
112
-      that.data.List[8].Image="bm_sy_banner-zc_play.png";
112
+      that.data.List[10].Image="bm_sy_banner-zc_play.png";
113
       backgroundAudioManager.pause();
113
       backgroundAudioManager.pause();
114
     }
114
     }
115
     that.setData({
115
     that.setData({

二进制
pages_agent/images/ad.png


二进制
pages_agent/images/promotion_user_home_title02.png


+ 10 - 3
pages_agent/main/earnings_apply.js

@@ -33,17 +33,24 @@ Page({
33
     var url="GetMiaoguoAgentPayList?UserID=" + app.globalData.userInfo.UserID+"&RecordID="+that.data.RecordID+"&AgentCategory="+that.data.AgentCategory;
33
     var url="GetMiaoguoAgentPayList?UserID=" + app.globalData.userInfo.UserID+"&RecordID="+that.data.RecordID+"&AgentCategory="+that.data.AgentCategory;
34
     main.getData(url, function (data) {
34
     main.getData(url, function (data) {
35
       if (data) {
35
       if (data) {
36
-        var list1=[],list2=[];
36
+        var list1=[],list2=[],Len=0;
37
         for(var i=0;i<data.length;i++){
37
         for(var i=0;i<data.length;i++){
38
-          if (data[i].Status==-1)
38
+          if (data[i].Money<0)
39
             list1.push(data[i]);
39
             list1.push(data[i]);
40
-          else if (data[i].Status==1)
40
+          else {
41
             list2.push(data[i]);
41
             list2.push(data[i]);
42
+            if (that.data.AgentCategory=="ambassador")
43
+              Len+=data[i].List.length;
44
+          }
42
         }
45
         }
43
 
46
 
47
+        if (that.data.AgentCategory!="ambassador")
48
+          Len=list2.length;
49
+
44
         that.setData({
50
         that.setData({
45
           List1:list1,
51
           List1:list1,
46
           List2:list2,
52
           List2:list2,
53
+          Len:Len,
47
         });
54
         });
48
       }
55
       }
49
     });
56
     });

+ 7 - 5
pages_agent/main/earnings_apply.wxml

@@ -1,8 +1,10 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
   <view class="panel1 FlexColumn">
2
   <view class="panel1 FlexColumn">
3
-    <view class="text1">审核通过</view>
4
-    <view class="text2">{{Info.RealMoney}}</view>
5
-    <view class="text3">到帐金额</view>
3
+    <view class="text1" wx:if="{{Info.IsCheck==1}}">审核通过</view>
4
+    <view class="text1_0 text1" wx:if="{{Info.IsCheck==0}}">等待审核</view>
5
+    <view class="text2" wx:if="{{Info.IsCheck==1}}">{{Info.RealMoney}}</view>
6
+    <view class="text2" wx:if="{{Info.IsCheck==0}}">{{Info.RealMoneyPlan}}</view>
7
+    <view class="text3">到账金额</view>
6
     <view class="line"></view>
8
     <view class="line"></view>
7
     <view class="panel11 FlexColumn">
9
     <view class="panel11 FlexColumn">
8
       <view class="panel111 FlexRow">
10
       <view class="panel111 FlexRow">
@@ -15,7 +17,7 @@
15
       </view>
17
       </view>
16
       <view class="panel113 FlexRow">
18
       <view class="panel113 FlexRow">
17
         <view class="text4">批复时间</view>
19
         <view class="text4">批复时间</view>
18
-        <view class="text5"><block wx:if="{{Info.CheckTime}}">{{Info.CheckTime}}</block></view>
20
+        <view class="text5"><block wx:if="{{Info.CheckTime}}">{{Info.CheckTime}}</block><block wx:if="{{!Info.CheckTime}}">72小时内做出批复</block></view>
19
       </view>
21
       </view>
20
     </view>
22
     </view>
21
     <view class="line2"></view>
23
     <view class="line2"></view>
@@ -72,7 +74,7 @@
72
   </view>
74
   </view>
73
 
75
 
74
   <view class="panel3 FlexRow">
76
   <view class="panel3 FlexRow">
75
-    <text class="text9"><text class="Number1">{{List2.length}}</text> 条收益记录</text>
77
+    <text class="text9"><text class="Number1">{{Len}}</text> 条收益记录</text>
76
     <text></text>
78
     <text></text>
77
   </view>
79
   </view>
78
 
80
 

+ 4 - 0
pages_agent/main/earnings_apply.wxss

@@ -11,6 +11,10 @@
11
   color:#4D4D4D;
11
   color:#4D4D4D;
12
 }
12
 }
13
 
13
 
14
+.text1_0{
15
+  color:#FE6659;
16
+}
17
+
14
 .text2{
18
 .text2{
15
   font-size: 64rpx;
19
   font-size: 64rpx;
16
   margin-top: 10rpx;
20
   margin-top: 10rpx;

+ 29 - 1
pages_agent/main/earnings_list.js

@@ -13,6 +13,7 @@ Page({
13
     that.setData({
13
     that.setData({
14
       Containnerheight: main.getWindowHeight(),
14
       Containnerheight: main.getWindowHeight(),
15
       AgentCategory:options.AgentCategory,
15
       AgentCategory:options.AgentCategory,
16
+      IsCheck:options.IsCheck,
16
     });
17
     });
17
 
18
 
18
     that.init();
19
     that.init();
@@ -22,8 +23,29 @@ Page({
22
     var list=app.globalData.EarningsList.List1;
23
     var list=app.globalData.EarningsList.List1;
23
     if (that.data.AgentCategory=="ambassador")
24
     if (that.data.AgentCategory=="ambassador")
24
       list=app.globalData.EarningsList.List2;
25
       list=app.globalData.EarningsList.List2;
26
+
27
+    var arr=[];
28
+    for(var i=0;i<list.length;i++){
29
+      if (that.data.IsCheck==list[i].IsCheck || that.data.IsCheck=="all"){
30
+        arr.push(list[i]);
31
+      }
32
+    }
33
+
34
+    var SelectMenuCss1="",SelectMenuCss2="",SelectMenuCss3="";
35
+    if (that.data.IsCheck=="all"){
36
+      SelectMenuCss1="selectItem";
37
+    }
38
+    else if (that.data.IsCheck=="0"){
39
+      SelectMenuCss2="selectItem";
40
+    }
41
+    else if (that.data.IsCheck=="1"){
42
+      SelectMenuCss3="selectItem";
43
+    }
25
     that.setData({
44
     that.setData({
26
-      List: list,
45
+      SelectMenuCss1:SelectMenuCss1,
46
+      SelectMenuCss2:SelectMenuCss2,
47
+      SelectMenuCss3:SelectMenuCss3,
48
+      List: arr,
27
     });
49
     });
28
   },
50
   },
29
   goto: function (e) {
51
   goto: function (e) {
@@ -32,6 +54,12 @@ Page({
32
       url: url,
54
       url: url,
33
     });
55
     });
34
   },
56
   },
57
+  onMenu:function(e){
58
+    this.setData({
59
+      IsCheck:e.currentTarget.dataset.id,
60
+    });
61
+    this.init();
62
+  },
35
   onShareAppMessage: function () {
63
   onShareAppMessage: function () {
36
     return {
64
     return {
37
       title: app.globalData.ShareTitle,
65
       title: app.globalData.ShareTitle,

+ 1 - 1
pages_agent/main/earnings_list.json

@@ -1,4 +1,4 @@
1
 {
1
 {
2
-  "navigationBarTitleText": "收益记录",
2
+  "navigationBarTitleText": "历史账单",
3
   "backgroundColor": "#F2F2F2"
3
   "backgroundColor": "#F2F2F2"
4
 }
4
 }

+ 18 - 2
pages_agent/main/earnings_list.wxml

@@ -1,15 +1,31 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+    <view class="panelTop FlexRow">
3
+      <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="all">
4
+        <view class="{{SelectMenuCss1}} text0">全部</view>
5
+        <view class="{{SelectMenuCss1}}BG line1"></view>
6
+      </view>
7
+      <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="0">
8
+        <view class="{{SelectMenuCss2}} text0">审核中</view>
9
+        <view class="{{SelectMenuCss2}}BG line1"></view>
10
+      </view>
11
+      <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
12
+        <view class="{{SelectMenuCss3}} text0">通过</view>
13
+        <view class="{{SelectMenuCss3}}BG line1"></view>
14
+      </view>
15
+    </view>
16
+    <view style="height:100rpx;"></view>
17
+  
2
   <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="*this">
18
   <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="*this">
3
     <view class="text10 text1" wx:if="{{item.IsCheck==0}}">等待审核</view>
19
     <view class="text10 text1" wx:if="{{item.IsCheck==0}}">等待审核</view>
4
     <view class="text1" wx:if="{{item.IsCheck==1}}">审核通过</view>
20
     <view class="text1" wx:if="{{item.IsCheck==1}}">审核通过</view>
5
     <view class="text2" wx:if="{{item.IsCheck==0}}">{{item.ApplyMoney}}</view>
21
     <view class="text2" wx:if="{{item.IsCheck==0}}">{{item.ApplyMoney}}</view>
6
     <view class="text2" wx:if="{{item.IsCheck==1}}">{{item.RealMoney}}</view>
22
     <view class="text2" wx:if="{{item.IsCheck==1}}">{{item.RealMoney}}</view>
7
-    <view class="text3">到帐金额</view>
23
+    <view class="text3">到金额</view>
8
     <view class="line"></view>
24
     <view class="line"></view>
9
     <view class="panel11 FlexColumn">
25
     <view class="panel11 FlexColumn">
10
       <view class="panel111 FlexRow">
26
       <view class="panel111 FlexRow">
11
         <view class="text4">申请单号</view>
27
         <view class="text4">申请单号</view>
12
-        <view class="text5">{{item.ID}}</view>
28
+        <text class="text5" user-select="true">{{item.ID}}</text>
13
       </view>
29
       </view>
14
       <view class="panel112 FlexRow">
30
       <view class="panel112 FlexRow">
15
         <view class="text4">申请时间</view>
31
         <view class="text4">申请时间</view>

+ 30 - 0
pages_agent/main/earnings_list.wxss

@@ -1,3 +1,33 @@
1
+.panelTop{
2
+  position: fixed;
3
+  top:0;
4
+  width:100%;
5
+  background-color: #fff;
6
+  z-index: 10;
7
+}
8
+
9
+.panelTop1{
10
+  width:250rpx;
11
+  height:100rpx;
12
+  justify-content: flex-end;
13
+}
14
+
15
+.text0{
16
+  font-size: 36rpx;
17
+}
18
+.line1{
19
+  width:144rpx;
20
+  height:10rpx;
21
+  background-color: #fff;
22
+  margin-top:10rpx;
23
+}
24
+.selectItem{
25
+  color: #5282FA;
26
+}
27
+.selectItemBG{
28
+  background-color: #5282FA;
29
+}
30
+
1
 .panel1{
31
 .panel1{
2
   width:711rpx;
32
   width:711rpx;
3
   margin-top: 60rpx;
33
   margin-top: 60rpx;

+ 9 - 0
pages_agent/main/index.js

@@ -79,6 +79,11 @@ Page({
79
             data.IdentityCard="";
79
             data.IdentityCard="";
80
           if (!data.Phone)
80
           if (!data.Phone)
81
             data.Phone="";
81
             data.Phone="";
82
+
83
+          if (!data.WXAccount)
84
+            data.WXAccount="";
85
+          if (!data.RealName)
86
+            data.RealName="";
82
             
87
             
83
           app.globalData.userInfo = data;
88
           app.globalData.userInfo = data;
84
           that.setData({
89
           that.setData({
@@ -106,6 +111,10 @@ Page({
106
       wx.setNavigationBarTitle({
111
       wx.setNavigationBarTitle({
107
         title: data.NickName
112
         title: data.NickName
108
       });
113
       });
114
+      if (!data.WXAccount)
115
+        data.WXAccount="";
116
+      if (!data.RealName)
117
+        data.RealName="";
109
       app.globalData.userInfo=data;
118
       app.globalData.userInfo=data;
110
       that.setData({
119
       that.setData({
111
         IsPromoter:app.globalData.userInfo.IsPromoter,
120
         IsPromoter:app.globalData.userInfo.IsPromoter,

+ 3 - 0
pages_agent/main/index.wxml

@@ -27,8 +27,11 @@
27
     <button class="btn" bindtap="setSelectUser" data-userid="4398">slyicecream</button>
27
     <button class="btn" bindtap="setSelectUser" data-userid="4398">slyicecream</button>
28
     <button class="btn" bindtap="setSelectUser" data-userid="14983">小云</button>
28
     <button class="btn" bindtap="setSelectUser" data-userid="14983">小云</button>
29
     <button class="btn" bindtap="setSelectUser" data-userid="14822">管璐瑶</button>
29
     <button class="btn" bindtap="setSelectUser" data-userid="14822">管璐瑶</button>
30
+    <button class="btn" bindtap="setSelectUser" data-userid="10541">忠丽</button>
30
     <button class="btn" bindtap="setSelectUser" data-userid="14850">艾小西</button>
31
     <button class="btn" bindtap="setSelectUser" data-userid="14850">艾小西</button>
31
     <button class="btn" bindtap="setSelectUser" data-userid="14818">甲子</button>
32
     <button class="btn" bindtap="setSelectUser" data-userid="14818">甲子</button>
33
+    <button class="btn" bindtap="setSelectUser" data-userid="15655">大肉丁</button>
34
+    <button class="btn" bindtap="setSelectUser" data-userid="16109">堃堃</button>
32
   </view>
35
   </view>
33
   
36
   
34
 </view>
37
 </view>

+ 79 - 8
pages_agent/main/other_list.js

@@ -17,6 +17,7 @@ Page({
17
       IsWithdraw:false,
17
       IsWithdraw:false,
18
       IsPromotion:false,
18
       IsPromotion:false,
19
       User:app.globalData.userInfo,
19
       User:app.globalData.userInfo,
20
+      RefundTotal:0,
20
     });
21
     });
21
 
22
 
22
     wx.setNavigationBarTitle({
23
     wx.setNavigationBarTitle({
@@ -32,8 +33,8 @@ Page({
32
     if (that.data.ListType=="近期报名"){
33
     if (that.data.ListType=="近期报名"){
33
       that.setData({
34
       that.setData({
34
         Info: app.globalData.NewUserApplyArray,
35
         Info: app.globalData.NewUserApplyArray,
35
-        Len:app.globalData.NewUserApplyArray.List.length,
36
       });
36
       });
37
+      getLen(that,app.globalData.NewUserApplyArray.List);
37
     }
38
     }
38
     else if (that.data.ListType=="预估新增收益"){
39
     else if (that.data.ListType=="预估新增收益"){
39
       that.setData({
40
       that.setData({
@@ -41,45 +42,84 @@ Page({
41
         Len:app.globalData.EstimatedNewRevenue.Length,
42
         Len:app.globalData.EstimatedNewRevenue.Length,
42
         Total:"0",
43
         Total:"0",
43
       });
44
       });
45
+      getLen(that,app.globalData.EstimatedNewRevenue.List);
44
     }
46
     }
45
     else if (that.data.ListType=="可提现收益"){
47
     else if (that.data.ListType=="可提现收益"){
46
       that.setData({
48
       that.setData({
47
         Info: app.globalData.WithdrawableEarnings,
49
         Info: app.globalData.WithdrawableEarnings,
48
-        Len:app.globalData.WithdrawableEarnings.Length,
49
         Total:app.globalData.WithdrawableEarnings.Total,
50
         Total:app.globalData.WithdrawableEarnings.Total,
50
       });
51
       });
52
+      getLen(that,app.globalData.WithdrawableEarnings.List);
53
+
54
+      //查看是否有退款返还奖励
55
+      url="GetRefundList?AgentCategory="+that.data.AgentCategory;
56
+      url+="&UserID=" + app.globalData.userInfo.UserID;
57
+      main.getData(url, function (data) {
58
+        if (data) {
59
+          var list=data.List;
60
+          var num=0,refundTotal=0;
61
+          for(var i=0;i<list.length;i++){
62
+            if (list[i].IsPay===0 && list[i].Money>0){
63
+              num++;
64
+              refundTotal+=list[i].Money;
65
+            }
66
+          }
67
+          that.setData({
68
+            RefundNum:num,
69
+            RefundTotal:refundTotal,
70
+          });
71
+        }
72
+      });
51
     }
73
     }
52
     else{
74
     else{
53
       if (that.data.ListType=="退款记录")
75
       if (that.data.ListType=="退款记录")
54
         url="GetRefundList?AgentCategory="+that.data.AgentCategory;
76
         url="GetRefundList?AgentCategory="+that.data.AgentCategory;
55
       else if (that.data.ListType=="未续费记录")
77
       else if (that.data.ListType=="未续费记录")
56
-        url="GetIntroducerUserList2?ListType="+that.data.ListType;
78
+        url="GetIntroducerUserList2?ListType="+that.data.ListType+"&AgentCategory="+that.data.AgentCategory;
57
       else if (that.data.ListType=="报名步骤没做完")
79
       else if (that.data.ListType=="报名步骤没做完")
58
-        url="GetIntroducerUserList2?ListType="+that.data.ListType;
80
+        url="GetIntroducerUserList2?ListType="+that.data.ListType+"&AgentCategory="+that.data.AgentCategory;
59
       
81
       
60
       url+="&UserID=" + app.globalData.userInfo.UserID;
82
       url+="&UserID=" + app.globalData.userInfo.UserID;
61
 
83
 
62
       main.getData(url, function (data) {
84
       main.getData(url, function (data) {
63
-        wx.hideLoading();
64
         if (data) {
85
         if (data) {
86
+
65
           that.setData({
87
           that.setData({
66
             Info: data,
88
             Info: data,
67
-            Len:data.List.length,
68
           });
89
           });
90
+          getLen(that,data.List);
91
+          
69
         }
92
         }
70
       });
93
       });
71
     }
94
     }
95
+
96
+    function getLen(obj,list){
97
+      var len=0;
98
+        
99
+      if (that.data.AgentCategory=="ambassador"){
100
+        for(var i=0;i<list.length;i++){
101
+          len+=list[i].List.length;
102
+        }
103
+      }
104
+      else
105
+        len= list.length;
106
+
107
+      that.setData({
108
+        Len:len,
109
+      });
110
+    }
72
   },
111
   },
73
   showWithdraw:function(e){
112
   showWithdraw:function(e){
74
     this.setData({
113
     this.setData({
75
       IsWithdraw:!this.data.IsWithdraw,
114
       IsWithdraw:!this.data.IsWithdraw,
115
+      TotalAll:common.formatMoney(Number(this.data.Total)-this.data.RefundTotal),
76
     });
116
     });
77
   },
117
   },
78
   applyPay:function(e){
118
   applyPay:function(e){
79
     var that=this;
119
     var that=this;
80
     if (that.data.Total<1){
120
     if (that.data.Total<1){
81
       wx.showToast({
121
       wx.showToast({
82
-        title: '不足1元不能提现',
122
+        title: '满1元才能提现',
83
         mask: true,
123
         mask: true,
84
         image: "../../pages/images/universalpic_exclamation_white_120x120.png",
124
         image: "../../pages/images/universalpic_exclamation_white_120x120.png",
85
       });
125
       });
@@ -97,7 +137,7 @@ Page({
97
             wx.hideLoading();
137
             wx.hideLoading();
98
             app.globalData.EarningsList = data;
138
             app.globalData.EarningsList = data;
99
             wx.redirectTo({
139
             wx.redirectTo({
100
-              url: "earnings_list?AgentCategory="+that.data.AgentCategory,
140
+              url: "earnings_list?IsCheck=0&AgentCategory="+that.data.AgentCategory,
101
             });
141
             });
102
           }
142
           }
103
         });
143
         });
@@ -108,6 +148,37 @@ Page({
108
   onPullDownRefresh: function () {
148
   onPullDownRefresh: function () {
109
     wx.stopPullDownRefresh();
149
     wx.stopPullDownRefresh();
110
   },
150
   },
151
+  goto: function (e) {
152
+    var url = e.currentTarget.dataset.url;
153
+    var gotoType = e.currentTarget.dataset.type;
154
+
155
+    var ispay=e.currentTarget.dataset.ispay;
156
+    if (url.indexOf("earnings_apply")>=0 && ispay==undefined){
157
+      return;
158
+    }
159
+    if (!gotoType) {
160
+      wx.navigateTo({
161
+        url: url,
162
+      });
163
+    } else {
164
+      wx.redirectTo({
165
+        url: url,
166
+      })
167
+    }
168
+  },
169
+
170
+  ShowImage:function(e){
171
+    var url=e.currentTarget.dataset.url;
172
+    wx.downloadFile({
173
+      url: url,
174
+      success(res) {
175
+        wx.previewImage({
176
+          current: res.tempFilePath, // 当前显示图片的http链接
177
+          urls: [res.tempFilePath] // 需要预览的图片http链接列表
178
+        });
179
+      }
180
+    });
181
+  },
111
   onShareAppMessage: function () {
182
   onShareAppMessage: function () {
112
     return {
183
     return {
113
       title: app.globalData.ShareTitle,
184
       title: app.globalData.ShareTitle,

+ 46 - 18
pages_agent/main/other_list.wxml

@@ -4,13 +4,31 @@
4
     <view class="panel11 FlexColumn">
4
     <view class="panel11 FlexColumn">
5
       <text class="text1">{{Info.Description}}</text>
5
       <text class="text1">{{Info.Description}}</text>
6
     </view>
6
     </view>
7
-    <view class="panel12 FlexRow" bindtap="goto" data-url="{{Info.ReadmeUrl}}" wx:if="{{Info.Readme}}">
7
+    <view class="panel12 FlexRow" bindtap="ShowImage" data-url="{{Info.ReadmeUrl}}" wx:if="{{Info.Readme}}">
8
       <view class="text2">{{Info.Readme}}</view>
8
       <view class="text2">{{Info.Readme}}</view>
9
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
9
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10
     </view>
10
     </view>
11
   </view>
11
   </view>
12
+
13
+  <view class="panelRefund FlexColumn" wx:if="{{ListType=='可提现收益' && RefundNum}}">
14
+    <view class="panelRefund1 FlexRow">
15
+      <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
16
+      <view class="text10">您有 {{RefundNum}} 笔退款,返还奖励后,剩余收益可提现。</view>
17
+    </view>
18
+    <view class="panelRefund2 FlexRow" bindtap='goto' data-url="other_list?AgentCategory={{AgentCategory}}&ListType=退款记录">
19
+      <view class="text10">查看退款记录</view>
20
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
21
+    </view>
22
+  </view>
23
+
12
   <view class="panel2 FlexRow">
24
   <view class="panel2 FlexRow">
13
-    <text class="text3"><text class="Number1">{{Len}}</text> 条记录</text>
25
+    <text class="text3" wx:if="{{Len>0}}"><text class="Number1">{{Len}}</text> 条记录</text>
26
+    <text class="text3" wx:if="{{Len==0 && ListType=='预估新增收益'}}">近期暂无用户续费</text>
27
+    <text class="text3" wx:if="{{Len==0 && ListType=='可提现收益'}}">暂无奖励</text>
28
+    <text class="text3" wx:if="{{Len==0 && ListType=='退款记录'}}">暂无用户退款</text>
29
+    <text class="text3" wx:if="{{Len==0 && ListType=='未续费记录'}}">暂无未续费用户</text>
30
+    <text class="text3" wx:if="{{Len==0 && ListType=='近期报名'}}">近期没有用户完成报名</text>
31
+    <text class="text3" wx:if="{{Len==0 && ListType=='报名步骤没做完'}}">暂无报名步骤没做完的用户</text>
14
     <text class="text8" wx:if="{{Total>0}}">收益 <text class="Number1">{{Total}}</text></text>
32
     <text class="text8" wx:if="{{Total>0}}">收益 <text class="Number1">{{Total}}</text></text>
15
     <text wx:if="{{Total==0}}"></text>
33
     <text wx:if="{{Total==0}}"></text>
16
   </view>
34
   </view>
@@ -20,7 +38,7 @@
20
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
38
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
21
         <view class="lineWidth720"></view>
39
         <view class="lineWidth720"></view>
22
       </view>
40
       </view>
23
-      <view class="panelItem FlexRow">
41
+      <view class="panelItem FlexRow" bindtap="goto" data-ispay="{{item.IsPay}}" data-url="earnings_apply?RecordID={{item.RecordID}}&AgentCategory={{AgentCategory}}">
24
         <view class="Left FlexRow">
42
         <view class="Left FlexRow">
25
           <image src='{{item.AvatarUrl}}' class="avatar" />
43
           <image src='{{item.AvatarUrl}}' class="avatar" />
26
           <view class="panelItem1 FlexColumn">
44
           <view class="panelItem1 FlexColumn">
@@ -28,10 +46,15 @@
28
             <view class="text5">{{item.Remark}}</view>
46
             <view class="text5">{{item.Remark}}</view>
29
           </view>
47
           </view>
30
         </view>
48
         </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>
49
+        <view class="Right FlexRow">
50
+          <view class="Right1 FlexColumn">
51
+            <view class="text6" wx:if="{{item.Remark2}}">{{item.Remark2}}</view>
52
+            <view class="text7" wx:if="{{item.Remark3}}">{{item.Remark3}}</view>
53
+            <view class="Number2" wx:if="{{item.Money && !item.Remark4}}">{{item.Money}}</view>
54
+            <view class="text6" wx:if="{{item.Remark4 && item.IsPay!==0}}">{{item.Remark4}}</view>
55
+            <view class="text61" wx:if="{{item.Remark4 && item.IsPay===0}}">{{item.Remark4}}</view>
56
+          </view>
57
+          <image wx:if="{{item.IsPay==1}}" src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
35
         </view>
58
         </view>
36
       </view>
59
       </view>
37
     </block>
60
     </block>
@@ -49,7 +72,7 @@
49
         <view class="lineWidthAll FlexRow" wx:if="{{indexChild>0}}">
72
         <view class="lineWidthAll FlexRow" wx:if="{{indexChild>0}}">
50
           <view class="lineWidth720"></view>
73
           <view class="lineWidth720"></view>
51
         </view>
74
         </view>
52
-        <view class="panelItem FlexRow">
75
+        <view class="panelItem FlexRow" bindtap="goto" data-ispay="{{item.IsPay}}" data-url="earnings_apply?RecordID={{item.RecordID}}&AgentCategory={{AgentCategory}}">
53
           <view class="Left FlexRow">
76
           <view class="Left FlexRow">
54
             <image src='{{itemChild.AvatarUrl}}' class="avatar" />
77
             <image src='{{itemChild.AvatarUrl}}' class="avatar" />
55
             <view class="panelItem1 FlexColumn">
78
             <view class="panelItem1 FlexColumn">
@@ -57,10 +80,15 @@
57
               <view class="text5">{{itemChild.Remark}}</view>
80
               <view class="text5">{{itemChild.Remark}}</view>
58
             </view>
81
             </view>
59
           </view>
82
           </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>
83
+          <view class="Right FlexRow">
84
+            <view class="Right1 FlexColumn">
85
+              <view class="text6" wx:if="{{itemChild.Remark2}}">{{itemChild.Remark2}}</view>
86
+              <view class="text7" wx:if="{{itemChild.Remark3}}">{{itemChild.Remark3}}</view>
87
+              <view class="Number2" wx:if="{{itemChild.Money && !itemChild.Remark4}}">{{itemChild.Money}}</view>
88
+              <view class="text6" wx:if="{{itemChild.Remark4 && itemChild.IsPay!==0}}">{{itemChild.Remark4}}</view>
89
+              <view class="text61" wx:if="{{itemChild.Remark4 && itemChild.IsPay===0}}">{{itemChild.Remark4}}</view>
90
+            </view>
91
+            <image wx:if="{{item.IsPay==1}}" src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
64
           </view>
92
           </view>
65
         </view>
93
         </view>
66
       </block>
94
       </block>
@@ -68,7 +96,7 @@
68
     </view>
96
     </view>
69
   </view>
97
   </view>
70
   <view style="height:150rpx;"></view>
98
   <view style="height:150rpx;"></view>
71
-  <view class="panelBottom FlexColumn" wx:if="{{ListType=='可提现收益' && Len>0}}" bindtap="showWithdraw">
99
+  <view class="panelBottom FlexColumn" wx:if="{{ListType=='可提现收益'}}" bindtap="showWithdraw">
72
     <view class="btn">申请提现</view>
100
     <view class="btn">申请提现</view>
73
   </view>
101
   </view>
74
 </view>
102
 </view>
@@ -82,27 +110,27 @@
82
         <view class="text53">提现金额</view>
110
         <view class="text53">提现金额</view>
83
       </view>
111
       </view>
84
       <view class="panel511 FlexColumn">
112
       <view class="panel511 FlexColumn">
85
-        <view class="text52">{{Total}}</view>
113
+        <view class="text52">{{TotalAll}}</view>
86
         <view class="text53">到账金额</view>
114
         <view class="text53">到账金额</view>
87
       </view>
115
       </view>
88
     </view>
116
     </view>
89
-    <view class="panel52 FlexRow" wx:if="{{false}}">
117
+    <view class="panel52 FlexRow" wx:if="{{RefundNum}}">
90
       <view class="Left FlexRow">
118
       <view class="Left FlexRow">
91
         <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
119
         <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
92
         <view class="text53">已扣除因退款返还奖励金额</view>
120
         <view class="text53">已扣除因退款返还奖励金额</view>
93
       </view>
121
       </view>
94
-      <view class="text54">0</view>
122
+      <view class="text54">{{RefundTotal}}</view>
95
     </view>
123
     </view>
96
     <view class="panel53 FlexRow">
124
     <view class="panel53 FlexRow">
97
       <view class="text54">微信支付平台交易手续费</view>
125
       <view class="text54">微信支付平台交易手续费</view>
98
-      <view class="text54">{{User.WXServiceCharge}}</view>
126
+      <view class="text54">{{User.WXServiceCharge}}%</view>
99
     </view>
127
     </view>
100
     <view class="lineWidthAll FlexRow">
128
     <view class="lineWidthAll FlexRow">
101
       <view class="lineWidth680"></view>
129
       <view class="lineWidth680"></view>
102
     </view>
130
     </view>
103
     <view class="panel53 FlexRow">
131
     <view class="panel53 FlexRow">
104
       <view class="text54">代缴个人所得税</view>
132
       <view class="text54">代缴个人所得税</view>
105
-      <view class="text54">{{User.IndividualIncomeTax}}</view>
133
+      <view class="text54">{{User.IndividualIncomeTax}}%</view>
106
     </view>
134
     </view>
107
     <view class="lineWidthAll FlexRow">
135
     <view class="lineWidthAll FlexRow">
108
       <view class="lineWidth680"></view>
136
       <view class="lineWidth680"></view>

+ 54 - 0
pages_agent/main/other_list.wxss

@@ -101,6 +101,17 @@
101
   color:#4D4D4D;
101
   color:#4D4D4D;
102
 }
102
 }
103
 
103
 
104
+.Number2{
105
+  font-family: 'Roboto-Black';
106
+  font-size:28rpx;
107
+  color:#4D4D4D;
108
+}
109
+.Number3{
110
+  font-family: 'Roboto-Black';
111
+  font-size:28rpx;
112
+  color:#FE6659;
113
+}
114
+
104
 .panel3{
115
 .panel3{
105
   width:100%;
116
   width:100%;
106
   flex-wrap: wrap;
117
   flex-wrap: wrap;
@@ -170,6 +181,9 @@
170
   margin-top: 6rpx;
181
   margin-top: 6rpx;
171
 }
182
 }
172
 .Right{
183
 .Right{
184
+  justify-content: flex-end;
185
+}
186
+.Right1{
173
   margin-right: 30rpx;
187
   margin-right: 30rpx;
174
   align-items: flex-end;
188
   align-items: flex-end;
175
   height:141rpx;
189
   height:141rpx;
@@ -178,6 +192,10 @@
178
   font-size: 24rpx;
192
   font-size: 24rpx;
179
   color:#4D4D4D;
193
   color:#4D4D4D;
180
 }
194
 }
195
+.text61{
196
+  font-size: 24rpx;
197
+  color:#FE6659;
198
+}
181
 .footer{
199
 .footer{
182
   width:100%;
200
   width:100%;
183
   height:232rpx;
201
   height:232rpx;
@@ -308,4 +326,40 @@
308
   text-align: center;
326
   text-align: center;
309
   color:#fff;
327
   color:#fff;
310
   font-size: 48rpx;
328
   font-size: 48rpx;
329
+}
330
+
331
+.universalpic_exclamation_orange_40x40{
332
+  width:40rpx;
333
+  height: 40rpx;
334
+}
335
+
336
+.panelRefund{
337
+  width:710rpx;
338
+  margin-top: 60rpx;
339
+}
340
+.panelRefund1{
341
+  width:100%;
342
+  border-top-left-radius: 20rpx;
343
+  border-top-right-radius: 20rpx;
344
+  background-color: #FFE4B6;
345
+  height:100rpx;
346
+  font-size:22rpx;
347
+  color:#4D4D4D;
348
+  justify-content: flex-start;
349
+}
350
+
351
+.text10{
352
+  margin-left: 30rpx;
353
+}
354
+
355
+.panelRefund2{
356
+  width:100%;
357
+  border-bottom-left-radius: 20rpx;
358
+  border-bottom-right-radius: 20rpx;
359
+  background-color: #FFF;
360
+  height:100rpx;
361
+  font-size:28rpx;
362
+  font-weight: 400;
363
+  color:#4D4D4D;
364
+  justify-content: space-between;
311
 }
365
 }

+ 20 - 5
pages_agent/main/result_list.js

@@ -2,6 +2,7 @@ import common from '../../utils/util';
2
 import main from '../../utils/main';
2
 import main from '../../utils/main';
3
 
3
 
4
 const app = getApp();
4
 const app = getApp();
5
+var downloadData={};
5
 
6
 
6
 Page({
7
 Page({
7
   data: {
8
   data: {
@@ -45,14 +46,16 @@ Page({
45
     }
46
     }
46
     main.getData(url, function (data) {
47
     main.getData(url, function (data) {
47
       if (data) {
48
       if (data) {
49
+        downloadData=data;
50
+        var info=data;
48
         if (that.data.ListType=="团队动态"){
51
         if (that.data.ListType=="团队动态"){
49
           if (that.data.SelectMenuCss1=="selectItem")
52
           if (that.data.SelectMenuCss1=="selectItem")
50
-            data.List=data.List1;
53
+            info=data.团队能量;
51
           else if (id==2)
54
           else if (id==2)
52
-            data.List=data.List2;
55
+            info=data.其他;
53
         }
56
         }
54
         that.setData({
57
         that.setData({
55
-          Info:data,
58
+          Info:info,
56
         });
59
         });
57
       }
60
       }
58
     });
61
     });
@@ -95,11 +98,11 @@ Page({
95
     var SelectMenuCss1="",SelectMenuCss2="";
98
     var SelectMenuCss1="",SelectMenuCss2="";
96
     if (id==1){
99
     if (id==1){
97
       SelectMenuCss1="selectItem";
100
       SelectMenuCss1="selectItem";
98
-      that.data.Info.List=that.data.Info.List1;
101
+      that.data.Info=downloadData.团队能量;
99
     }
102
     }
100
     else if (id==2){
103
     else if (id==2){
101
       SelectMenuCss2="selectItem";
104
       SelectMenuCss2="selectItem";
102
-      that.data.Info.List=that.data.Info.List2;
105
+      that.data.Info=downloadData.其他;
103
     }
106
     }
104
     this.setData({
107
     this.setData({
105
       SelectMenuCss1:SelectMenuCss1,
108
       SelectMenuCss1:SelectMenuCss1,
@@ -107,6 +110,18 @@ Page({
107
       Info:  that.data.Info
110
       Info:  that.data.Info
108
     });
111
     });
109
   },
112
   },
113
+  ShowImage:function(e){
114
+    var url=e.currentTarget.dataset.url;
115
+    wx.downloadFile({
116
+      url: url,
117
+      success(res) {
118
+        wx.previewImage({
119
+          current: res.tempFilePath, // 当前显示图片的http链接
120
+          urls: [res.tempFilePath] // 需要预览的图片http链接列表
121
+        });
122
+      }
123
+    });
124
+  },
110
   onShareAppMessage: function () {
125
   onShareAppMessage: function () {
111
     return {
126
     return {
112
       title: app.globalData.ShareTitle,
127
       title: app.globalData.ShareTitle,

+ 8 - 7
pages_agent/main/result_list.wxml

@@ -2,7 +2,7 @@
2
   <block wx:if="{{!IsPromotion && ListType=='团队动态'}}">
2
   <block wx:if="{{!IsPromotion && ListType=='团队动态'}}">
3
     <view class="panelTop FlexRow">
3
     <view class="panelTop FlexRow">
4
       <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
4
       <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
5
-        <view class="{{SelectMenuCss1}} text0">队能量</view>
5
+        <view class="{{SelectMenuCss1}} text0">队能量</view>
6
         <view class="{{SelectMenuCss1}}BG line1"></view>
6
         <view class="{{SelectMenuCss1}}BG line1"></view>
7
       </view>
7
       </view>
8
       <view class="panelTop2 panelTop1 FlexColumn" catchtap="onMenu" data-id="2">
8
       <view class="panelTop2 panelTop1 FlexColumn" catchtap="onMenu" data-id="2">
@@ -16,21 +16,22 @@
16
     <view style="height:100rpx;"></view>
16
     <view style="height:100rpx;"></view>
17
   </block>
17
   </block>
18
 
18
 
19
-
20
   <view class="panel1 FlexColumn">
19
   <view class="panel1 FlexColumn">
21
     <view class="panel11 FlexColumn">
20
     <view class="panel11 FlexColumn">
22
       <text class="text1">{{Info.Description}}</text>
21
       <text class="text1">{{Info.Description}}</text>
23
     </view>
22
     </view>
24
-    <view class="panel12 FlexRow"  wx:if="{{!IsPromotion && Info.Readme}}">
25
-      <view class="text2">大使工作规则</view>
23
+    <view class="panel12 FlexRow"  wx:if="{{!IsPromotion && Info.Readme}}" bindtap="ShowImage" data-url="{{Info.ReadmeUrl}}">
24
+      <view class="text2">{{Info.Readme}}</view>
26
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
25
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
27
     </view>
26
     </view>
28
   </view>
27
   </view>
29
   <view class="panel2 FlexRow">
28
   <view class="panel2 FlexRow">
30
-    <text class="text3"><text class="Number1">{{Info.List.length}}</text> 条记录</text>
29
+    <text class="text3" wx:if="{{Info.List.length>0}}"><text class="Number1">{{Info.List.length}}</text> 位用户</text>
30
+    <text class="text3" wx:if="{{Info.List.length==0 && ListType=='成果记录'}}">暂无成果</text>
31
+    <text class="text3" wx:if="{{Info.List.length==0 && ListType=='团队动态'}}">团队中没有符合条件的成员</text>
31
     <text></text>
32
     <text></text>
32
   </view>
33
   </view>
33
-  <view class="panel3 FlexRow">
34
+  <view class="panel3 FlexRow" >
34
     <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this" bindtap="gotoRecord" data-userid="{{item.UserID}}" >
35
     <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this" bindtap="gotoRecord" data-userid="{{item.UserID}}" >
35
       <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
36
       <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
36
       <view class="text4" wx:if="{{item.IsRebate==1 || !IsPromotion}}">{{item.NickName}}</view>
37
       <view class="text4" wx:if="{{item.IsRebate==1 || !IsPromotion}}">{{item.NickName}}</view>
@@ -42,5 +43,5 @@
42
       </view>
43
       </view>
43
     </view>
44
     </view>
44
   </view>
45
   </view>
45
-  <view class="footer"></view>
46
+  <view class="footer" wx:if="{{Info.List.length>0}}"></view>
46
 </view>
47
 </view>

+ 1 - 0
pages_agent/main/result_list.wxss

@@ -60,6 +60,7 @@
60
 .text1{
60
 .text1{
61
   margin-top: 30rpx;
61
   margin-top: 30rpx;
62
   width:650rpx;
62
   width:650rpx;
63
+  margin-bottom: 30rpx;
63
 }
64
 }
64
 
65
 
65
 .panel12{
66
 .panel12{

+ 1 - 0
pages_agent/main/search_user.js

@@ -74,6 +74,7 @@ Page({
74
           if (data.length==0){
74
           if (data.length==0){
75
             that.setData({
75
             that.setData({
76
               IsNull:true,
76
               IsNull:true,
77
+              IsList:true,
77
             });
78
             });
78
           }
79
           }
79
           else{
80
           else{

+ 8 - 1
pages_agent/main/search_user.wxml

@@ -44,8 +44,14 @@
44
       <view class="panelItemSearchNull" wx:if="{{SearchTextList2.length==0}}">暂无内容,搜一次就有了</view>
44
       <view class="panelItemSearchNull" wx:if="{{SearchTextList2.length==0}}">暂无内容,搜一次就有了</view>
45
 
45
 
46
     </view>
46
     </view>
47
+    <view class="panelFooter" style='min-height:{{Containnerheight}}rpx;'></view>
47
   </block>
48
   </block>
48
-  <block wx:if="{{IsList}}">
49
+  <block wx:if="{{IsNull}}">
50
+    <view class="text1">没有</view>
51
+    <text class="text2">请搜微信名字(昵称),\n请去掉名字里的表情符号再搜。\n无法搜索微信号。</text>
52
+  </block>
53
+  
54
+  <block wx:if="{{IsList && List.length>0}}">
49
     <view class="panel2 FlexColumn" style='min-height:{{Containnerheight-100}}rpx;'>
55
     <view class="panel2 FlexColumn" style='min-height:{{Containnerheight-100}}rpx;'>
50
       <view class="panelItem FlexRow" wx:for="{{List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
56
       <view class="panelItem FlexRow" wx:for="{{List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
51
         <view class="Left FlexRow">
57
         <view class="Left FlexRow">
@@ -56,5 +62,6 @@
56
       </view>
62
       </view>
57
     </view>
63
     </view>
58
   </block>
64
   </block>
65
+  
59
 
66
 
60
 </view>
67
 </view>

+ 17 - 1
pages_agent/main/search_user.wxss

@@ -1,5 +1,5 @@
1
 .container{
1
 .container{
2
-  background-color: #fff;
2
+  background-color: #f0f0f0;
3
 }
3
 }
4
 .panelTop {
4
 .panelTop {
5
   width: 100%;
5
   width: 100%;
@@ -347,4 +347,20 @@
347
   width:16rpx;
347
   width:16rpx;
348
   height:26rpx;
348
   height:26rpx;
349
   margin-right: 30rpx;
349
   margin-right: 30rpx;
350
+}
351
+
352
+.panelFooter{
353
+  width: 100%;
354
+  background-color: #fff;
355
+}
356
+
357
+.text1{
358
+  margin-top: 400rpx;
359
+  font-size:48rpx;
360
+  color:#4D4D4D;
361
+}
362
+.text2{
363
+  font-size:28rpx;
364
+  color:#4D4D4D;
365
+  text-align: center;
350
 }
366
 }

+ 2 - 2
pages_agent/main/user_index.js

@@ -51,7 +51,7 @@ Page({
51
   init: function () {
51
   init: function () {
52
     var that = this;
52
     var that = this;
53
     if (that.data.AgentCategory == "promotion") {
53
     if (that.data.AgentCategory == "promotion") {
54
-      var url = "GetIntroducerUserList2?ListType=近期报名";
54
+      var url = "GetIntroducerUserList2?ListType=近期报名&AgentCategory=" + that.data.AgentCategory;
55
       url += "&UserID=" + app.globalData.userInfo.UserID;
55
       url += "&UserID=" + app.globalData.userInfo.UserID;
56
 
56
 
57
       main.getData(url, function (data) {
57
       main.getData(url, function (data) {
@@ -64,7 +64,7 @@ Page({
64
       });
64
       });
65
     }
65
     }
66
 
66
 
67
-    //收益记录
67
+    //历史账单
68
     var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
68
     var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
69
     main.getData(url, function (data) {
69
     main.getData(url, function (data) {
70
       if (data) {
70
       if (data) {

+ 29 - 22
pages_agent/main/user_index.wxml

@@ -1,34 +1,38 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color: {{BackColor}};'>
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">
2
+  <view class="panel0 FlexRow" wx:if="{{User.IsPromoter==1 && IsPromotion}}">
3
+    <view class="panel01Left panel01 FlexRow">
4
       <view>直属推荐</view>
4
       <view>直属推荐</view>
5
     </view>
5
     </view>
6
-    <view wx:if="{{IsPromotion}}" class="panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador" data-type="d">
6
+    <view class="panel01Right panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=ambassador" data-type="d">
7
       <view>大使计划</view>
7
       <view>大使计划</view>
8
     </view>
8
     </view>
9
-    <view wx:if="{{!IsPromotion}}" class="panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion" data-type="d">
9
+  </view>
10
+
11
+  <view class="panel0 FlexRow" wx:if="{{User.IsPromoter==1 && !IsPromotion}}">
12
+    <view class="panel02Left panel01 FlexRow" bindtap='goto' data-url="user_index?AgentCategory=promotion" data-type="d">
10
       <view>直属推荐</view>
13
       <view>直属推荐</view>
11
     </view>
14
     </view>
12
-    <view wx:if="{{!IsPromotion}}" class="panel02Right panel01 FlexRow">
15
+    <view class="panel02Right panel01 FlexRow">
13
       <view>大使计划</view>
16
       <view>大使计划</view>
14
     </view>
17
     </view>
15
   </view>
18
   </view>
19
+
16
   <image src='{{User.AvatarUrl}}' class="avatar" />
20
   <image src='{{User.AvatarUrl}}' class="avatar" />
17
   <image wx:if="{{IsPromotion}}" src='../images/promotion_user_home_title01.png' class="promotion_user_home_title01" />
21
   <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" />
22
   <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>
23
+  <view wx:if="{{IsPromotion}}" class="text2" bindtap='goto' data-url="earnings_list?IsCheck=1&AgentCategory={{AgentCategory}}">{{Total}}</view>
24
+  <view wx:if="{{!IsPromotion}}" class="text1" >{{Total}}</view>
21
 
25
 
22
-  <blocl wx:if="{{!IsPromotion}}">
26
+  <blocl wx:if="{{!IsPromotion}}" bindtap='goto' data-url="earnings_list?IsCheck=1&AgentCategory={{AgentCategory}}">
23
     <view class="text9">大使收益</view>
27
     <view class="text9">大使收益</view>
24
     <view class="text10">{{Total2}}</view>
28
     <view class="text10">{{Total2}}</view>
25
   </blocl>
29
   </blocl>
26
 
30
 
27
 
31
 
28
-  <scroll-view wx:if="{{IsPromotion}}" class="panelAD" scroll-x="true" bindscroll="scroll">
32
+  <!-- <scroll-view wx:if="{{IsPromotion}}" class="panelAD" scroll-x="true" bindscroll="scroll">
29
     <image src='../images/ad.png' class="adImage" />
33
     <image src='../images/ad.png' class="adImage" />
30
     <image src='../images/ad.png' class="adImage" />
34
     <image src='../images/ad.png' class="adImage" />
31
-  </scroll-view>
35
+  </scroll-view> -->
32
 
36
 
33
   <view class="panelTitle FlexRow" wx:if="{{IsPromotion}}">
37
   <view class="panelTitle FlexRow" wx:if="{{IsPromotion}}">
34
     <image src='../images/promotion_user_home_title02.png' class="promotion_user_home_title01" />
38
     <image src='../images/promotion_user_home_title02.png' class="promotion_user_home_title01" />
@@ -44,14 +48,14 @@
44
         <view class="text3">{{WithdrawableEarningsTotal}}</view>
48
         <view class="text3">{{WithdrawableEarningsTotal}}</view>
45
         <view class="text4">可提现收益</view>
49
         <view class="text4">可提现收益</view>
46
       </view>
50
       </view>
47
-      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}">
51
+      <view class="panel112 FlexColumn" bindtap='goto' data-url="earnings_list?IsCheck=0&AgentCategory={{AgentCategory}}">
48
         <view class="text3">{{WithdrawableEarnings}}</view>
52
         <view class="text3">{{WithdrawableEarnings}}</view>
49
-        <view class="text4">即将到</view>
53
+        <view class="text4">即将到</view>
50
       </view>
54
       </view>
51
     </view>
55
     </view>
52
     <view class="panel2_0 panel2 FlexRow">
56
     <view class="panel2_0 panel2 FlexRow">
53
-      <view class="panel21 FlexRow" bindtap='goto' data-url="earnings_list?AgentCategory={{AgentCategory}}">
54
-        收益记录
57
+      <view class="panel21 FlexRow" bindtap='goto' data-url="earnings_list?IsCheck=all&AgentCategory={{AgentCategory}}">
58
+        历史账单
55
       </view>
59
       </view>
56
       <view class="line"></view>
60
       <view class="line"></view>
57
       <view class="panel21 FlexRow" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
61
       <view class="panel21 FlexRow" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
@@ -65,18 +69,20 @@
65
   </view>
69
   </view>
66
 
70
 
67
   <view class="panel12 panel1 FlexRow">
71
   <view class="panel12 panel1 FlexRow">
68
-    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
72
+    <!-- <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
69
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
73
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
70
       <view class="text8">
74
       <view class="text8">
71
         大使计划规则
75
         大使计划规则
72
       </view>
76
       </view>
73
-    </view>
77
+    </view> -->
74
     <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}" bindtap="goto" data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队动态">
78
     <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}" bindtap="goto" data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队动态">
75
       <image src='../images/promotion_index_workbook.png' class="promotion_index_rules" />
79
       <image src='../images/promotion_index_workbook.png' class="promotion_index_rules" />
76
       <view class="text8">
80
       <view class="text8">
77
         团队动态
81
         团队动态
78
       </view>
82
       </view>
79
     </view>
83
     </view>
84
+
85
+    <!-- 
80
     <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">
86
     <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">
81
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
87
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
82
       <view class="text8">
88
       <view class="text8">
@@ -101,7 +107,8 @@
101
         消息中心
107
         消息中心
102
       </view>
108
       </view>
103
       <view class="textMessage">新消息</view>
109
       <view class="textMessage">新消息</view>
104
-    </view>
110
+    </view> 
111
+    -->
105
   </view>
112
   </view>
106
 
113
 
107
   <block wx:if="{{IsPromotion}}">
114
   <block wx:if="{{IsPromotion}}">
@@ -119,14 +126,14 @@
119
       <view class="panel13 panel1 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=报名步骤没做完">
126
       <view class="panel13 panel1 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=报名步骤没做完">
120
         <text class="text6">别让这些朋友掉队\n在报名的路上</text>
127
         <text class="text6">别让这些朋友掉队\n在报名的路上</text>
121
       </view>
128
       </view>
122
-      <view class="panel14 panel1 FlexRow" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=未续费记录">
123
-        <text class="text7">问问这些\n朋友为什么\n没续费</text>
129
+      <view class="panel14 panel1 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=未续费记录">
130
+        <text class="text6">暂未续费\n的朋友</text>
124
       </view>
131
       </view>
125
     </view>
132
     </view>
126
   </block>
133
   </block>
127
 
134
 
128
-
129
-  <view class="textBottom FlexRow" style="color:{{FrontColor}};">
135
+  <view style="height:100rpx;"></view>
136
+  <!-- <view class="textBottom FlexRow" style="color:{{FrontColor}};">
130
     <view class="panel21 FlexRow" bindtap='goto' data-url="index">
137
     <view class="panel21 FlexRow" bindtap='goto' data-url="index">
131
       返回活动
138
       返回活动
132
     </view>
139
     </view>
@@ -138,5 +145,5 @@
138
     <view class="panel21 FlexRow" bindtap='gotoIndex'>
145
     <view class="panel21 FlexRow" bindtap='gotoIndex'>
139
       返回秒过
146
       返回秒过
140
     </view>
147
     </view>
141
-  </view>
148
+  </view> -->
142
 </view>
149
 </view>

+ 23 - 9
pages_agent/main/user_index.wxss

@@ -9,17 +9,16 @@
9
   width:500rpx;
9
   width:500rpx;
10
   height:110rpx;
10
   height:110rpx;
11
   margin-top: 30rpx;
11
   margin-top: 30rpx;
12
-  background-color: #AB4E05;
13
   border-radius: 20rpx;
12
   border-radius: 20rpx;
14
 }
13
 }
15
 
14
 
16
 .panel01{
15
 .panel01{
17
   font-size:36rpx;
16
   font-size:36rpx;
18
-  color:#FC7406;
17
+  background-color:#FC7406;
19
   width:250rpx;
18
   width:250rpx;
20
 }
19
 }
21
 
20
 
22
-.panel02Left{
21
+.panel01Left{
23
   color:#fff;
22
   color:#fff;
24
   background-color: #793703;
23
   background-color: #793703;
25
   height:110rpx;
24
   height:110rpx;
@@ -27,9 +26,26 @@
27
   border-bottom-left-radius: 20rpx;
26
   border-bottom-left-radius: 20rpx;
28
 }
27
 }
29
 
28
 
29
+.panel02Left{
30
+  color:#fff;
31
+  background-color: #B27F00;
32
+  height:110rpx;
33
+  border-top-left-radius: 20rpx;
34
+  border-bottom-left-radius: 20rpx;
35
+  color:#FFB808;
36
+}
37
+
38
+.panel01Right{
39
+  color:#fff;
40
+  background-color: #AB4E05;
41
+  height:110rpx;
42
+  border-top-right-radius: 20rpx;
43
+  border-bottom-right-radius: 20rpx;
44
+  color:#FC7406;
45
+}
30
 .panel02Right{
46
 .panel02Right{
31
   color:#fff;
47
   color:#fff;
32
-  background-color: #793703;
48
+  background-color: #6E4E00;
33
   height:110rpx;
49
   height:110rpx;
34
   border-top-right-radius: 20rpx;
50
   border-top-right-radius: 20rpx;
35
   border-bottom-right-radius: 20rpx;
51
   border-bottom-right-radius: 20rpx;
@@ -221,6 +237,7 @@
221
   height:210rpx;
237
   height:210rpx;
222
   justify-content: flex-end;
238
   justify-content: flex-end;
223
   align-items: flex-start;
239
   align-items: flex-start;
240
+  background-color: #CAF1FB;
224
 }
241
 }
225
 .text6{
242
 .text6{
226
   margin: 0 0 30rpx 30rpx;
243
   margin: 0 0 30rpx 30rpx;
@@ -230,11 +247,8 @@
230
   width:260rpx;
247
   width:260rpx;
231
   height:210rpx;
248
   height:210rpx;
232
   background-color: #F7E1D1;
249
   background-color: #F7E1D1;
233
-  justify-content: flex-start;
234
-}
235
-.text7{
236
-  margin: 0 0 0 30rpx;
237
-  font-size:34rpx;
250
+  justify-content: flex-end;
251
+  align-items: flex-start;
238
 }
252
 }
239
 
253
 
240
 .Null1{
254
 .Null1{

+ 2 - 1
pages_agent/main/user_relation.wxml

@@ -24,7 +24,8 @@
24
   </block>
24
   </block>
25
   <view class="panel3 FlexColumn">
25
   <view class="panel3 FlexColumn">
26
     <text class="text5">Ta的直属推荐</text>
26
     <text class="text5">Ta的直属推荐</text>
27
-    <text class="text6"><text class="Number1" >{{Info.List.length}}</text>位用户</text>
27
+    <text class="text6" wx:if="{{Info.List.length>0}}"><text class="Number1" >{{Info.List.length}}</text>位用户</text>
28
+    <text class="text6" wx:if="{{Info.List.length==0}}">暂无成果</text>
28
   </view>
29
   </view>
29
   <view class="panel4 FlexRow" wx:if="{{Info.List.length>0}}">
30
   <view class="panel4 FlexRow" wx:if="{{Info.List.length>0}}">
30
     <view class="panel41 FlexColumn" wx:for="{{Info.List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
31
     <view class="panel41 FlexColumn" wx:for="{{Info.List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">

+ 4 - 4
project.config.json

@@ -18,15 +18,15 @@
18
     "checkSiteMap": true,
18
     "checkSiteMap": true,
19
     "uploadWithSourceMap": true,
19
     "uploadWithSourceMap": true,
20
     "compileHotReLoad": true,
20
     "compileHotReLoad": true,
21
-    "useMultiFrameRuntime": false,
22
-    "useApiHook": false,
23
-    "useApiHostProcess": false,
21
+    "useMultiFrameRuntime": true,
22
+    "useApiHook": true,
23
+    "useApiHostProcess": true,
24
     "babelSetting": {
24
     "babelSetting": {
25
       "ignore": [],
25
       "ignore": [],
26
       "disablePlugins": [],
26
       "disablePlugins": [],
27
       "outputPath": ""
27
       "outputPath": ""
28
     },
28
     },
29
-    "useIsolateContext": false,
29
+    "useIsolateContext": true,
30
     "userConfirmedBundleSwitch": false,
30
     "userConfirmedBundleSwitch": false,
31
     "packNpmManually": false,
31
     "packNpmManually": false,
32
     "packNpmRelationList": [],
32
     "packNpmRelationList": [],

+ 9 - 2
project.private.config.json

@@ -20,10 +20,10 @@
20
           "scene": null
20
           "scene": null
21
         },
21
         },
22
         {
22
         {
23
-          "id": 1,
24
           "name": "pages/index/index",
23
           "name": "pages/index/index",
25
           "pathName": "pages/index/index",
24
           "pathName": "pages/index/index",
26
-          "query": "type=activity&ActivityID=2&EndTime=2019年10月07日&EarlyBirdTimeStart=2019年09月23日&EarlyBirdTimeEnd=2019年10月05日",
25
+          "query": "type=helpAddInfomation",
26
+          "launchMode": "default",
27
           "scene": 1007
27
           "scene": 1007
28
         },
28
         },
29
         {
29
         {
@@ -37,6 +37,13 @@
37
           "name": "推广",
37
           "name": "推广",
38
           "pathName": "pages_agent/main/index",
38
           "pathName": "pages_agent/main/index",
39
           "query": "",
39
           "query": "",
40
+          "launchMode": "default",
41
+          "scene": null
42
+        },
43
+        {
44
+          "name": "",
45
+          "pathName": "pages_agent/main/other_list",
46
+          "query": "AgentCategory=promotion&ListType=%E5%8F%AF%E6%8F%90%E7%8E%B0%E6%94%B6%E7%9B%8A",
40
           "scene": null,
47
           "scene": null,
41
           "launchMode": "default"
48
           "launchMode": "default"
42
         }
49
         }

+ 31 - 0
utils/main.js

@@ -1672,6 +1672,36 @@ function GetTestReportList(userID, callback) {
1672
   });
1672
   });
1673
 }
1673
 }
1674
 
1674
 
1675
+
1676
+function showHelp(obj,myClass,textTopDirection,helpText,closePos){
1677
+  setTimeout(function(){
1678
+    wx.createSelectorQuery().select(myClass).boundingClientRect(function (rect) {
1679
+      console.log("rect.left:"+rect.left);
1680
+      console.log("rect.top:"+rect.top);
1681
+      console.log("rect.width:"+rect.width);
1682
+      console.log("rect.height:"+rect.height);
1683
+      var textTop=rect.bottom+5;
1684
+      if (textTopDirection=="up")
1685
+        textTop=rect.top-47;
1686
+
1687
+      if (!closePos)
1688
+        closePos="Right";
1689
+      obj.setData({
1690
+        HelpTop:rect.top,
1691
+        HelpWidth1:rect.left,
1692
+        HelpHeight1:rect.height,
1693
+        HelpLeft2:rect.right,
1694
+        HelpHeight2:rect.height,
1695
+        HelpBottom:rect.bottom-1,
1696
+        HelpTextTop:textTop,
1697
+        HelpText:helpText,
1698
+        HelpClosePos:closePos,
1699
+      });
1700
+    }).exec();
1701
+  },500);
1702
+  
1703
+}
1704
+
1675
 module.exports = {
1705
 module.exports = {
1676
   getData: getData,
1706
   getData: getData,
1677
   postData: postData,
1707
   postData: postData,
@@ -1713,4 +1743,5 @@ module.exports = {
1713
   downloadBishunKaitiImage: downloadBishunKaitiImage,
1743
   downloadBishunKaitiImage: downloadBishunKaitiImage,
1714
   GetSoundError: GetSoundError,
1744
   GetSoundError: GetSoundError,
1715
   GetTestReportList: GetTestReportList,
1745
   GetTestReportList: GetTestReportList,
1746
+  ShowHelp:showHelp,
1716
 }
1747
 }

+ 22 - 0
utils/util.js

@@ -371,6 +371,27 @@ function IsNumber(value) {//判断是否是数字,true:是,false:不是
371
   return !isNaN(value);
371
   return !isNaN(value);
372
 }
372
 }
373
 
373
 
374
+function formatMoney(money) {
375
+  var result;
376
+  if (money == 0)
377
+      result = "0.00";
378
+  else {
379
+      result = Math.round(money).toString();
380
+      //console.log("1:"+result);
381
+      if (result.indexOf(".") >= 0) {
382
+          if (result.substr(result.indexOf(".")).length < 3)
383
+              result += "0";
384
+      }
385
+      else {
386
+          result += ".00";
387
+      }
388
+      //console.log("2:"+result);
389
+
390
+  }
391
+
392
+  return result;
393
+}
394
+
374
 module.exports = {
395
 module.exports = {
375
   formatTime: formatTime,
396
   formatTime: formatTime,
376
   formatDateCHS: formatDateCHS,
397
   formatDateCHS: formatDateCHS,
@@ -395,4 +416,5 @@ module.exports = {
395
   IsNumber:IsNumber,
416
   IsNumber:IsNumber,
396
   checkIsArray: checkIsArray,
417
   checkIsArray: checkIsArray,
397
   formatDateENG: formatDateENG,
418
   formatDateENG: formatDateENG,
419
+  formatMoney:formatMoney
398
 }
420
 }