chengjie 3 years ago
parent
commit
fe128f0656
44 changed files with 1052 additions and 468 deletions
  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. BIN
      pages_agent/images/ad.png
  18. BIN
      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 1
 App({
2 2
   globalData: {
3
-    Version: "2.1.64",
3
+    Version: "2.1.65",
4 4
     //IsProduction: true,
5 5
     IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",

+ 56 - 0
app.wxss

@@ -117,3 +117,59 @@
117 117
     font-weight: 900;
118 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 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 164
     this.setData({
162 165
       IsRefresh: false,

+ 43 - 5
pages/main/add.js

@@ -42,6 +42,7 @@ Page({
42 42
     IsFontsize: false,
43 43
     IsCollect: 0,
44 44
     BtnSaveSelectCss: "",
45
+    IsShowHelp:false,
45 46
   },
46 47
   onReady: function () {
47 48
     recorderManager = wx.getRecorderManager();
@@ -257,6 +258,24 @@ Page({
257 258
     that.setBtnSaveCss();
258 259
 
259 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 280
   onHide: function () {
262 281
     //用于恢复未保存的新题卡
@@ -484,6 +503,10 @@ Page({
484 503
                         image: "../images/universalpic_save_white_120x120.png",
485 504
                       });
486 505
                       changePattern(that);
506
+                      
507
+                      if (wx.getStorageSync("IsHelpAddInfomation")==1){
508
+                        that.closeHelp();
509
+                      }
487 510
                     }
488 511
                     isFirstAdd = false;
489 512
                     that.initAddCard();
@@ -1503,12 +1526,21 @@ Page({
1503 1526
   },
1504 1527
   goto: function (e) {
1505 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 1546
   showTagShow: function () {
@@ -1887,6 +1919,12 @@ Page({
1887 1919
     app.globalData.TempStr = "deleteCard";
1888 1920
     this.onClose();
1889 1921
   },
1922
+  closeHelp:function(){
1923
+    this.setData({
1924
+      IsShowHelp:false,
1925
+    });
1926
+    wx.setStorageSync('IsHelpAddInfomation', 0);
1927
+  },
1890 1928
   onShareAppMessage: function () {
1891 1929
     return {
1892 1930
       title: app.globalData.ShareTitle,

+ 18 - 4
pages/main/add.wxml

@@ -9,7 +9,7 @@
9 9
 			</view>
10 10
 		</view>
11 11
 		<view class="panelRight FlexRow">
12
-			<view class="panelTopBtn" catchtap="onSearch">加资料</view>
12
+			<view id="btnSearch" class="panelTopBtn" catchtap="onSearch">加资料</view>
13 13
 			<view class="panelTop11 panelTop1 FlexColumn" catchtap="showPanel" data-type="help">
14 14
 				<image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
15 15
 			</view>
@@ -150,7 +150,7 @@
150 150
 			<view class="panelSave1" wx:if="{{UpdateType!='add' && UpdateType!='add2'}}">
151 151
 
152 152
 			</view>
153
-			<view class='{{BtnSaveSelectCss}} panelSave2' bindtap="saveCard">
153
+			<view id="btnSave" class='{{BtnSaveSelectCss}} panelSave2' bindtap="saveCard">
154 154
 				保存
155 155
 			</view>
156 156
 			<view class="panelSave1" bindtap="onPreview">
@@ -340,7 +340,9 @@
340 340
 			<view class="HelpPanel111 FlexRow" catchtap="hiddenPanel">
341 341
 				<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
342 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 346
 		</view>
345 347
 		<swiper class="HelpPanel2" indicator-dots="true" autoplay="true" interval="10000" duration="500">
346 348
 			<block wx:for="{{HelpArr}}" wx:key="*this">
@@ -494,4 +496,16 @@
494 496
 			<view class="panelHeight100_green"></view>
495 497
 		</view>
496 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 1282
   border:2rpx solid #5282FA;
1283 1283
   color:#fff;
1284 1284
   font-size:36rpx;
1285
-}
1285
+}

+ 28 - 1
pages/main/addInfomation.js

@@ -11,6 +11,7 @@ Page({
11 11
     SearchList: [],
12 12
     SearchInfo: "",
13 13
     IsMore:true,
14
+    IsShowHelp:false,
14 15
   },
15 16
   onLoad: function () {
16 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 66
   goto: function (e) {
55 67
     var url = e.currentTarget.dataset.url;
@@ -82,8 +94,17 @@ Page({
82 94
 
83 95
   searchResult: function (e) {
84 96
     var that = this;
85
-
86 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 108
     if (e.currentTarget.dataset.search) {
88 109
       search = e.currentTarget.dataset.search;
89 110
       that.setData({
@@ -237,6 +258,12 @@ Page({
237 258
       IsMore:false,
238 259
     });
239 260
   },
261
+  closeHelp:function(){
262
+    this.setData({
263
+      IsShowHelp:false,
264
+    });
265
+    wx.setStorageSync('IsHelpAddInfomation', 0);
266
+  },
240 267
   onShareAppMessage: function () {
241 268
     return {
242 269
       title: app.globalData.ShareTitle,

+ 26 - 32
pages/main/addInfomation.wxml

@@ -1,16 +1,14 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panelTop FlexRow">
3 3
     <view class="panelLeft FlexRow">
4
-      <view class="panelTopSearch FlexRow">
4
+      <view id="input" class="panelTopSearch FlexRow">
5 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 7
         <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
9 8
           <view class="clearData0 FlexRow">
10 9
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
11 10
           </view>
12 11
         </view>
13
-
14 12
       </view>
15 13
     </view>
16 14
     <view class="panelRight FlexRow">
@@ -60,19 +58,13 @@
60 58
         <view class="lineWidth720"></view>
61 59
       </view>
62 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 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 68
           <view class="panelSearchDataText1">{{item.Key}}</view>
77 69
           <view class="panelSearchDataText2">{{item.Remark}}</view>
78 70
           <view class="panelSearchDataText3">{{item.Content}}</view>
@@ -92,18 +84,12 @@
92 84
     <view class="panelNullLine" wx:if="{{SearchList.length==0}}"></view>
93 85
     <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
94 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 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 93
           </view>
108 94
           <view class="panelSearchDataOther21 FlexColumn">
109 95
             <view class="panelSearchDataText1">{{item.Key}}</view>
@@ -135,14 +121,11 @@
135 121
 
136 122
       <view class="panelSearchNull FlexColumn" wx:if="{{SearchCardList.length>0}}">
137 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 125
           <image class="universalpic_card_gray_22x22" src='../images/universalpic_card_gray_22x22.png' />
141 126
 
142 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 129
             <view class="panelListItem11 FlexColumn">
147 130
               <view class="panelListItem11Name1">
148 131
                 {{item.Content[1].ContentStr}}
@@ -159,4 +142,15 @@
159 142
   </block>
160 143
 
161 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 156
 </view>

+ 163 - 142
pages/main/addInfomationDetail.js

@@ -7,13 +7,13 @@ var hasStart = {};
7 7
 Page({
8 8
   data: {
9 9
     ImagePath: app.globalData.uploadImageUrl,
10
-    IsShowHelp: 1,
11 10
     IsPoemRead: 0,
12 11
     ShowKaiti: 0,
13
-    ShowSoundMark:1,
12
+    ShowSoundMark: 1,
14 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 18
   onLoad: function (options) {
19 19
     var that = this;
@@ -25,6 +25,20 @@ Page({
25 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 42
   getList: function () {
29 43
     if (app.globalData.SearchItem) {
30 44
       this.getListFinished(app.globalData.SearchItem);
@@ -42,21 +56,19 @@ Page({
42 56
         data.TypeName = "C";
43 57
     } else if (data.ENG) {
44 58
       data.TypeName = "D";
45
-    }    
46
-    
59
+    }
60
+
47 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 84
       for (var i = 0; i < data.ENG.ExamplesSentences.length; i++) {
73 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 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 113
   getInputData: function (e) {
114
+    var that = this;
90 115
     //console.log("time1:"+new Date().getTime());
91
-    common.getStorageValue(this, "IsShowHelp", 0, function () {
92
-
93
-    });
94 116
 
95 117
     var type = e.currentTarget.dataset.type;
96 118
     var css = e.currentTarget.dataset.css;
@@ -110,7 +132,7 @@ Page({
110 132
       if (tag == "发音")
111 133
         this.data.CSS[css].SoundMark = soundmark;
112 134
 
113
-      if (tag == "默写" || tag=="拼音") {
135
+      if (tag == "默写" || tag == "拼音") {
114 136
         var soundmark = e.currentTarget.dataset.soundmark;
115 137
         if (soundmark)
116 138
           this.data.CSS[css].SoundMark = e.currentTarget.dataset.soundmark;
@@ -121,16 +143,14 @@ Page({
121 143
         this.data.CSS[css].Number = app.globalData.TempFieldNumber;
122 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 147
       this.data.CSS[css].Css1 = "";
127 148
       this.data.CSS[css].Css2 = "";
128 149
       this.data.CSS[css].Number = "";
129 150
       this.data.CSS[css].Content = "";
130 151
       this.data.CSS[css].Type = "";
131 152
       this.data.CSS[css].Tag = "";
132
-    }
133
-    else {
153
+    } else {
134 154
       this.data.CSS[css].Number = Number(this.data.CSS[css].Number) + 1;
135 155
     }
136 156
     //console.log("time3:" + new Date().getTime());
@@ -138,6 +158,18 @@ Page({
138 158
       CSS: this.data.CSS,
139 159
     });
140 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 174
   addData: function () {
143 175
     if (JSON.stringify(this.data.CSS) != "{}") {
@@ -174,39 +206,34 @@ Page({
174 206
               item.Content = main.encryptUrl(item.Content);
175 207
 
176 208
               str = "[图]" + item.Content + "[/图]";
177
-            }
178
-            else if (item.Type == "sound") {
209
+            } else if (item.Type == "sound") {
179 210
               str = "[读]" + item.Content + "[/读]";
180 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 214
                   str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
184 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 222
                     str = "[读 src='" + sound + "']" + item.Content + "[/读]";
193
-                  }
194
-                  else
223
+                  } else
195 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 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 237
                       item.Content[j] = item.Content[j].join("");
211 238
                     }
212 239
                   }
@@ -214,53 +241,50 @@ Page({
214 241
                     str = item.Content.join("\n");
215 242
                   else
216 243
                     str = item.Content;
217
-                }
218
-                else{
244
+                } else {
219 245
                   if (common.checkIsArray(item.Content))
220 246
                     str = item.Content.join("");
221 247
                   else
222 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 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 271
                 str = "\n" + str;
247
-              }
248
-              else{
272
+              } else {
249 273
                 str = "\n\n" + str;
250 274
               }
251 275
             }
252 276
 
253 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 289
           break;
266 290
         }
@@ -270,22 +294,20 @@ Page({
270 294
       wx.navigateBack({
271 295
         delta: app.globalData.TempSearchBackNumber,
272 296
       });
273
-    }
274
-    else {
297
+    } else {
275 298
       wx.showToast({
276 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 307
       for (var i = 0; i < 6; i++) {
285 308
         delete this.data.CSS["CHN_BiShunArr2_" + i];
286 309
       }
287
-    }
288
-    else if (id === "1") {
310
+    } else if (id === "1") {
289 311
       for (var i = 0; i < 6; i++) {
290 312
         delete this.data.CSS["CHN_KaitiArr_" + i];
291 313
       }
@@ -293,92 +315,90 @@ Page({
293 315
 
294 316
     this.setData({
295 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 324
     this.setData({
303 325
       ShowSoundMark: id,
304 326
     });
305 327
   },
306 328
   changeRead: function (e) {
307 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 332
       delete this.data.CSS["CHN_PeomContent_" + i];
311 333
     }
312 334
     delete this.data.CSS["CHN_PeomContent"];
313 335
     this.setData({
314 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 345
     var url = 'GetMiaoguoAISearch2?UserID=' + app.globalData.userInfo.UserID;
324 346
     url += "&Word=" + word;
325 347
     if (!e.currentTarget.dataset.ischn)
326 348
       url += "&SearchType=zici";
327
-    
349
+
328 350
     wx.showLoading();
329
-    
351
+
330 352
     main.getData(url, function (data) {
331 353
       wx.hideLoading();
332
-      if (data && (data.CHN || data.ENG)){
333
-        var obj={};
354
+      if (data && (data.CHN || data.ENG)) {
355
+        var obj = {};
334 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 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 373
           if (data.ENG.Soundmark)
353
-            obj.Remark=data.ENG.Soundmark.Eng;
374
+            obj.Remark = data.ENG.Soundmark.Eng;
354 375
 
355 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 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 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 398
         wx.redirectTo({
378 399
           url: './addInfomationDetail',
379 400
         });
380
-      }
381
-      else{
401
+      } else {
382 402
         wx.showToast({
383 403
           title: '无资料',
384 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 410
     var that = this;
396 411
     that.setData({
397 412
       IsHelp: true,
398 413
     });
399 414
   },
400
-  closeHelp: function () {
415
+  closeHelp0: function () {
401 416
     this.setData({
402 417
       IsHelp: false,
403 418
     });
404 419
   },
420
+  closeHelp: function () {
421
+    this.setData({
422
+      IsShowHelp: false,
423
+    });
424
+    wx.setStorageSync('IsHelpAddInfomation', 0);
425
+  },
405 426
   onShareAppMessage: function () {
406 427
     return {
407 428
       title: app.globalData.ShareTitle,
@@ -409,4 +430,4 @@ Page({
409 430
       imageUrl: app.globalData.ShareImage,
410 431
     }
411 432
   },
412
-})
433
+})

+ 16 - 5
pages/main/addInfomationDetail.wxml

@@ -12,10 +12,10 @@
12 12
       
13 13
     </view>
14 14
     <view class="panelRight FlexRow">
15
-      <view class='panelTop1 FlexRow' catchtap='showHelp'>
15
+      <view class='panelTop1 FlexRow' catchtap='showHelp0'>
16 16
         <image class="universalpic_light_black_22x30" src='../images/universalpic_light_black_22x30.png' />
17 17
       </view>
18
-      <view class='panelTop1 FlexRow' catchtap="addData">
18
+      <view id="btnAdd" class='panelTop1 FlexRow' catchtap="addData">
19 19
         <view class="panelTop3">添加</view>
20 20
       </view>
21 21
     </view>
@@ -29,7 +29,7 @@
29 29
         <view class="panelTitle11">搜索内容</view>
30 30
       </view>
31 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 33
       data-content="{{Result.CHN.HanZi}}" data-css="CHN_HanZi">
34 34
       <view class="FlexRow">
35 35
         <view class="{{CSS.CHN_HanZi.Css2}} panelSelect0">{{CSS.CHN_HanZi.Number}}</view>
@@ -92,7 +92,7 @@
92 92
       <view class="panelTitle2">此格式便于做个别汉字默写练习</view>
93 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 96
       bindtap='getInputData' data-type="sound" data-content="{{item}}" data-css="CHN_TianKong_{{index}}"
97 97
       data-pinyin="{{Result.CHN.PinYin[0].pinyin}}" data-soundmark="{{Result.CHN.PinyinTone}}" data-tag="默写">
98 98
       <view class="FlexRow">
@@ -605,7 +605,7 @@
605 605
 <view wx:if="{{IsHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
606 606
   <view class="HelpPanel1 FlexColumn">
607 607
     <view class="HelpPanel11 FlexRow">
608
-      <view class="HelpPanel111 FlexRow" catchtap="closeHelp">
608
+      <view class="HelpPanel111 FlexRow" catchtap="closeHelp0">
609 609
         <image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
610 610
       </view>
611 611
       <view></view>
@@ -621,4 +621,15 @@
621 621
       </block>
622 622
     </swiper>
623 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 635
 </view>

+ 194 - 181
pages/main/default.js

@@ -14,9 +14,10 @@ Page({
14 14
     IsIPhoneX: app.globalData.IsIPhoneX,
15 15
     ImagePath: app.globalData.uploadImageUrl,
16 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 22
   onPullDownRefresh: function () {
22 23
     wx.redirectTo({
@@ -39,8 +40,7 @@ Page({
39 40
     wx.showShareMenu({
40 41
       withShareTicket: true,
41 42
       menus: ['shareAppMessage', 'shareTimeline']
42
-    })
43
-
43
+    });
44 44
   },
45 45
   onHide: function () {
46 46
     wx.hideLoading();
@@ -53,50 +53,43 @@ Page({
53 53
           url: '../other/newuser',
54 54
         });
55 55
       }
56
-    }
57
-    else {
56
+    } else {
58 57
       wx.getSetting({
59 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 60
             wx.navigateTo({
62 61
               url: '../index/accredit',
63 62
             });
64
-          }
65
-          else{
63
+          } else {
66 64
             if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
67 65
               if (app.globalData.userInfo.Subscribe == 1) {
68 66
                 wx.navigateTo({
69 67
                   url: '../other/userbook',
70 68
                 });
71 69
                 app.globalData.GotoUrl = "";
72
-              }
73
-              else {
70
+              } else {
74 71
                 wx.redirectTo({
75 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 76
               if (app.globalData.GotoUrl.indexOf("../other/pay?PayType=6") >= 0) {
81 77
                 wx.navigateTo({
82 78
                   url: app.globalData.GotoUrl,
83 79
                 });
84 80
                 app.globalData.GotoUrl = "";
85
-              }
86
-              else {
81
+              } else {
87 82
                 var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
88 83
                 var today = common.formatDateCHS(common.formatTime(new Date()));
89 84
                 if (productServiceTime < today) {
90 85
                   wx.redirectTo({
91 86
                     url: '../other/userbook',
92 87
                   });
93
-                }
94
-                else if (app.globalData.userInfo.ClassDayNumber < 0) {
88
+                } else if (app.globalData.userInfo.ClassDayNumber < 0) {
95 89
                   wx.redirectTo({
96 90
                     url: '../other/userbook',
97 91
                   });
98
-                }
99
-                else if (app.globalData.GotoUrl) {
92
+                } else if (app.globalData.GotoUrl) {
100 93
                   //console.log(app.globalData.GotoUrl);
101 94
                   wx.navigateTo({
102 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 105
             that.setData({
@@ -122,23 +114,33 @@ Page({
122 114
 
123 115
             if (res.authSetting['scope.record'] === true) {
124 116
               app.globalData.IsRecorderAccredit = 1;
125
-            }
126
-            else if (res.authSetting['scope.record'] === false) {
117
+            } else if (res.authSetting['scope.record'] === false) {
127 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 129
     wx.setNavigationBarColor({
139 130
       frontColor: "#ffffff",
140 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 145
   init: function () {
144 146
     //显示练习模式
@@ -153,8 +155,7 @@ Page({
153 155
     var arrColorIndex = wx.getStorageSync("ColorIndexArr");
154 156
     if (!arrColorIndex) {
155 157
       app.globalData.ColorIndex = common.random(1, 4);
156
-    }
157
-    else {
158
+    } else {
158 159
       app.globalData.ColorIndex = arrColorIndex[common.random(0, arrColorIndex.length - 1)];
159 160
     }
160 161
     //显示答案操作方式
@@ -188,7 +189,7 @@ Page({
188 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 193
       wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
193 194
     }
194 195
   },
@@ -201,8 +202,7 @@ Page({
201 202
           that.setData({
202 203
             IsMaintain: 1,
203 204
           });
204
-        }
205
-        else {
205
+        } else {
206 206
           var TodayTaskNumber = data.ListNew.length + data.ListReview.length + data.ListHistory.length;
207 207
           that.setData({
208 208
             DayNumber: data.DayNumber,
@@ -210,17 +210,16 @@ Page({
210 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 217
             var IsShowSettingRemind = wx.getStorageSync("IsShowSettingRemind");
218
-            if (!IsShowSettingRemind || IsShowSettingRemind<that.data.DayNumber){
218
+            if (!IsShowSettingRemind || IsShowSettingRemind < that.data.DayNumber) {
219 219
               that.setData({
220 220
                 IsShowSettingRemind: 1,
221 221
               });
222
-            }
223
-            else{
222
+            } else {
224 223
               that.setData({
225 224
                 IsShowSettingRemind: 0,
226 225
               });
@@ -229,21 +228,20 @@ Page({
229 228
 
230 229
           //判断是否出现推广广告
231 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 234
                 that.setData({
236 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 243
                 var IsShowPatternMenu = wx.getStorageSync("IsShowPatternMenu");
246
-                if (!IsShowPatternMenu){
244
+                if (!IsShowPatternMenu) {
247 245
                   wx.navigateTo({
248 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 273
       wx.navigateTo({
276 274
         url: '../other/recover',
277 275
       });
278
-    }
279
-    else {
276
+    } else {
280 277
       that.setData({
281 278
         IsTempCardNoSaved: false,
282 279
       });
@@ -286,65 +283,59 @@ Page({
286 283
       });
287 284
     }
288 285
   },
289
-  
286
+
290 287
   gotoReLaunch: function (e) {
291
-    var url=e.currentTarget.dataset.url;
288
+    var url = e.currentTarget.dataset.url;
292 289
     wx.reLaunch({
293 290
       url: url,
294 291
     });
295 292
   },
296
-  showUserID:function(){
293
+  showUserID: function () {
297 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 301
         userid = app.globalData.userInfo.UserID;
305 302
 
306 303
       that.setData({
307 304
         IsShowUserID: true,
308
-        ChangeUserID:userid,
305
+        ChangeUserID: userid,
309 306
       });
310 307
     }
311 308
   },
312 309
   onKeyInput: function (e) {
313 310
     var id = e.detail.value;
314 311
     var usertype = e.currentTarget.dataset.type;
315
-    
312
+
316 313
     var that = this;
317
-    if (usertype=="userid"){
314
+    if (usertype == "userid") {
318 315
       that.setData({
319 316
         ChangeUserID: id,
320 317
       });
321
-    }
322
-    else if (usertype=="newuserid"){
318
+    } else if (usertype == "newuserid") {
323 319
       that.setData({
324 320
         ChangeNewUserID: id,
325 321
       });
326
-    }
327
-    else if (usertype=="introduceruserid"){
322
+    } else if (usertype == "introduceruserid") {
328 323
       that.setData({
329 324
         ChangeIntroducerUserID: id,
330 325
       });
331
-    }
332
-    else if (usertype=="versionid"){
326
+    } else if (usertype == "versionid") {
333 327
       that.setData({
334 328
         VersoinID: id,
335 329
       });
336
-    }
337
-    else if (usertype=="groupuserid"){
330
+    } else if (usertype == "groupuserid") {
338 331
       that.setData({
339 332
         ChangeGroupUserID: id,
340 333
       });
341
-    }
342
-    else if (usertype=="refunduserid"){
334
+    } else if (usertype == "refunduserid") {
343 335
       that.setData({
344 336
         RefundUserID: id,
345 337
       });
346
-    }
347
-    else if (usertype=="refundremark"){
338
+    } else if (usertype == "refundremark") {
348 339
       that.setData({
349 340
         RefundRemark: id,
350 341
       });
@@ -352,77 +343,85 @@ Page({
352 343
   },
353 344
   setSelectUser: function (e) {
354 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 350
       var userid = that.data.ChangeUserID;
360 351
       wx.setStorageSync("UserID", userid);
361
-      
352
+
362 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 356
         wx.setNavigationBarTitle({
366 357
           title: data.NickName
367 358
         });
368 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 379
       that.setData({
378 380
         IsShowUserID: false,
379 381
       });
380 382
       that.onShow();
381 383
     }
382 384
   },
383
-  getUserInfoFunction:function(e){
385
+  getUserInfoFunction: function (e) {
384 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 393
           that.setData({
392 394
             NewUserAvatar: data.AvatarUrl,
393 395
             NewUserNickName: data.NickName,
394 396
           });
395
-        }
396
-        else if (type1==1){
397
+        } else if (type1 == 1) {
397 398
           that.setData({
398 399
             IntroducerAvatar: data.AvatarUrl,
399 400
             IntroducerNickName: data.NickName,
400 401
           });
401
-        }
402
-        else if (type1==2){
402
+        } else if (type1 == 2) {
403 403
           that.setData({
404 404
             GroupUserAvatar: data.AvatarUrl,
405 405
             GroupUserNickName: data.NickName,
406 406
           });
407
-        }
408
-        else if (type1==3){
407
+        } else if (type1 == 3) {
409 408
           that.setData({
410 409
             RefundUserAvatar: data.AvatarUrl,
411 410
             RefundUserNickName: data.NickName,
412 411
           });
413 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 425
     var url = "GetMiaoguoWXUserInfo?UserID=" + userID + fieldStr;
427 426
     main.getData(url, function (data) {
428 427
       if (data) {
@@ -432,87 +431,87 @@ Page({
432 431
   },
433 432
   setUserGroup: function (e) {
434 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 453
   setUserIntroducer: function (e) {
455 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 482
       else
484
-        list[i].IsSelected="";
483
+        list[i].IsSelected = "";
485 484
     }
486 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 503
         break;
503 504
       }
504 505
     }
505
-    if (!str){
506
+    if (!str) {
506 507
       wx.showToast({
507 508
         title: '请列表中选择',
508 509
       });
509
-    }
510
-    else if (!that.data.RefundRemark){
510
+    } else if (!that.data.RefundRemark) {
511 511
       wx.showToast({
512 512
         title: '请输入退款备注',
513 513
       });
514
-    }
515
-    else{
514
+    } else {
516 515
       wx.showModal({
517 516
         title: '退款确认',
518 517
         showCancel: true,
@@ -521,19 +520,18 @@ Page({
521 520
         confirmText: '确认',
522 521
         success(res) {
523 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 524
             main.getData(url, function (data) {
526 525
               wx.showToast({
527 526
                 title: '退款完成',
528 527
               });
529 528
             });
530
-            
531 529
           }
532 530
         }
533 531
       });
534 532
     }
535 533
   },
536
-  closeRemind:function(){
534
+  closeRemind: function () {
537 535
     this.setData({
538 536
       IsShowRemind: false,
539 537
     });
@@ -541,24 +539,39 @@ Page({
541 539
     //判断每30天是否是高级模式
542 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 546
     main.getData(url, function (data) {
549 547
       wx.showToast({
550 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 552
   onShareTimeline: function () {
562 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 28
       <view class='panelBottom11 FlexColumn'>
29 29
         <view class='text5'>练习</view>
30 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 32
         <image class="tabbar_add_red_70x70" src='../images/tabbar_add_red_70x70.png' />
33 33
       </view>
34 34
       <view class='panelBottom11 FlexColumn' catchtap='gotoReLaunch' data-url="../main/cardmain">
@@ -142,3 +142,16 @@
142 142
     <image class="practise_index_board_close" catchtap="closeRemind" src='../images/practise_index_board_close.png' />
143 143
   </view>
144 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 450
   font-size:28rpx;
451 451
   text-align: left;
452 452
   padding-left: 20rpx;
453
-}
453
+}
454
+

+ 14 - 0
pages/main/systemsetting.js

@@ -18,6 +18,7 @@ Page({
18 18
       Version: app.globalData.Version,
19 19
       IsShow: app.globalData.userInfo.IsShow,
20 20
       ShowUserID:app.globalData.userInfo.ShowUserID,
21
+      IsPromoter:app.globalData.userInfo.IsPromoter,
21 22
     });
22 23
 
23 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 63
   switch1Change(e) {
50 64
     var that = this;
51 65
     that.data.HasSound = e.detail.value;

+ 4 - 0
pages/main/systemsetting.wxml

@@ -22,6 +22,10 @@
22 22
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
23 23
     </view>
24 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 29
   <view class='lineFooter'></view>
26 30
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
27 31
     重新获取用户信息

+ 2 - 2
pages/other/newuser.js

@@ -104,12 +104,12 @@ Page({
104 104
     var that=this;
105 105
     var isPlay=!that.data.IsPlay;
106 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 108
       backgroundAudioManager.title = "暖暖爸致辞";
109 109
       backgroundAudioManager.src = app.globalData.uploadImageUrl+"web/_lesson/nuannuanbazhici.m4a";
110 110
     }
111 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 113
       backgroundAudioManager.pause();
114 114
     }
115 115
     that.setData({

BIN
pages_agent/images/ad.png


BIN
pages_agent/images/promotion_user_home_title02.png


+ 10 - 3
pages_agent/main/earnings_apply.js

@@ -33,17 +33,24 @@ Page({
33 33
     var url="GetMiaoguoAgentPayList?UserID=" + app.globalData.userInfo.UserID+"&RecordID="+that.data.RecordID+"&AgentCategory="+that.data.AgentCategory;
34 34
     main.getData(url, function (data) {
35 35
       if (data) {
36
-        var list1=[],list2=[];
36
+        var list1=[],list2=[],Len=0;
37 37
         for(var i=0;i<data.length;i++){
38
-          if (data[i].Status==-1)
38
+          if (data[i].Money<0)
39 39
             list1.push(data[i]);
40
-          else if (data[i].Status==1)
40
+          else {
41 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 50
         that.setData({
45 51
           List1:list1,
46 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 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 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 8
     <view class="line"></view>
7 9
     <view class="panel11 FlexColumn">
8 10
       <view class="panel111 FlexRow">
@@ -15,7 +17,7 @@
15 17
       </view>
16 18
       <view class="panel113 FlexRow">
17 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 21
       </view>
20 22
     </view>
21 23
     <view class="line2"></view>
@@ -72,7 +74,7 @@
72 74
   </view>
73 75
 
74 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 78
     <text></text>
77 79
   </view>
78 80
 

+ 4 - 0
pages_agent/main/earnings_apply.wxss

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

+ 29 - 1
pages_agent/main/earnings_list.js

@@ -13,6 +13,7 @@ Page({
13 13
     that.setData({
14 14
       Containnerheight: main.getWindowHeight(),
15 15
       AgentCategory:options.AgentCategory,
16
+      IsCheck:options.IsCheck,
16 17
     });
17 18
 
18 19
     that.init();
@@ -22,8 +23,29 @@ Page({
22 23
     var list=app.globalData.EarningsList.List1;
23 24
     if (that.data.AgentCategory=="ambassador")
24 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 44
     that.setData({
26
-      List: list,
45
+      SelectMenuCss1:SelectMenuCss1,
46
+      SelectMenuCss2:SelectMenuCss2,
47
+      SelectMenuCss3:SelectMenuCss3,
48
+      List: arr,
27 49
     });
28 50
   },
29 51
   goto: function (e) {
@@ -32,6 +54,12 @@ Page({
32 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 63
   onShareAppMessage: function () {
36 64
     return {
37 65
       title: app.globalData.ShareTitle,

+ 1 - 1
pages_agent/main/earnings_list.json

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

+ 18 - 2
pages_agent/main/earnings_list.wxml

@@ -1,15 +1,31 @@
1 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 18
   <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="*this">
3 19
     <view class="text10 text1" wx:if="{{item.IsCheck==0}}">等待审核</view>
4 20
     <view class="text1" wx:if="{{item.IsCheck==1}}">审核通过</view>
5 21
     <view class="text2" wx:if="{{item.IsCheck==0}}">{{item.ApplyMoney}}</view>
6 22
     <view class="text2" wx:if="{{item.IsCheck==1}}">{{item.RealMoney}}</view>
7
-    <view class="text3">到帐金额</view>
23
+    <view class="text3">到金额</view>
8 24
     <view class="line"></view>
9 25
     <view class="panel11 FlexColumn">
10 26
       <view class="panel111 FlexRow">
11 27
         <view class="text4">申请单号</view>
12
-        <view class="text5">{{item.ID}}</view>
28
+        <text class="text5" user-select="true">{{item.ID}}</text>
13 29
       </view>
14 30
       <view class="panel112 FlexRow">
15 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 31
 .panel1{
2 32
   width:711rpx;
3 33
   margin-top: 60rpx;

+ 9 - 0
pages_agent/main/index.js

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

+ 3 - 0
pages_agent/main/index.wxml

@@ -27,8 +27,11 @@
27 27
     <button class="btn" bindtap="setSelectUser" data-userid="4398">slyicecream</button>
28 28
     <button class="btn" bindtap="setSelectUser" data-userid="14983">小云</button>
29 29
     <button class="btn" bindtap="setSelectUser" data-userid="14822">管璐瑶</button>
30
+    <button class="btn" bindtap="setSelectUser" data-userid="10541">忠丽</button>
30 31
     <button class="btn" bindtap="setSelectUser" data-userid="14850">艾小西</button>
31 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 35
   </view>
33 36
   
34 37
 </view>

+ 79 - 8
pages_agent/main/other_list.js

@@ -17,6 +17,7 @@ Page({
17 17
       IsWithdraw:false,
18 18
       IsPromotion:false,
19 19
       User:app.globalData.userInfo,
20
+      RefundTotal:0,
20 21
     });
21 22
 
22 23
     wx.setNavigationBarTitle({
@@ -32,8 +33,8 @@ Page({
32 33
     if (that.data.ListType=="近期报名"){
33 34
       that.setData({
34 35
         Info: app.globalData.NewUserApplyArray,
35
-        Len:app.globalData.NewUserApplyArray.List.length,
36 36
       });
37
+      getLen(that,app.globalData.NewUserApplyArray.List);
37 38
     }
38 39
     else if (that.data.ListType=="预估新增收益"){
39 40
       that.setData({
@@ -41,45 +42,84 @@ Page({
41 42
         Len:app.globalData.EstimatedNewRevenue.Length,
42 43
         Total:"0",
43 44
       });
45
+      getLen(that,app.globalData.EstimatedNewRevenue.List);
44 46
     }
45 47
     else if (that.data.ListType=="可提现收益"){
46 48
       that.setData({
47 49
         Info: app.globalData.WithdrawableEarnings,
48
-        Len:app.globalData.WithdrawableEarnings.Length,
49 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 74
     else{
53 75
       if (that.data.ListType=="退款记录")
54 76
         url="GetRefundList?AgentCategory="+that.data.AgentCategory;
55 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 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 82
       url+="&UserID=" + app.globalData.userInfo.UserID;
61 83
 
62 84
       main.getData(url, function (data) {
63
-        wx.hideLoading();
64 85
         if (data) {
86
+
65 87
           that.setData({
66 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 112
   showWithdraw:function(e){
74 113
     this.setData({
75 114
       IsWithdraw:!this.data.IsWithdraw,
115
+      TotalAll:common.formatMoney(Number(this.data.Total)-this.data.RefundTotal),
76 116
     });
77 117
   },
78 118
   applyPay:function(e){
79 119
     var that=this;
80 120
     if (that.data.Total<1){
81 121
       wx.showToast({
82
-        title: '不足1元不能提现',
122
+        title: '满1元才能提现',
83 123
         mask: true,
84 124
         image: "../../pages/images/universalpic_exclamation_white_120x120.png",
85 125
       });
@@ -97,7 +137,7 @@ Page({
97 137
             wx.hideLoading();
98 138
             app.globalData.EarningsList = data;
99 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 148
   onPullDownRefresh: function () {
109 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 182
   onShareAppMessage: function () {
112 183
     return {
113 184
       title: app.globalData.ShareTitle,

+ 46 - 18
pages_agent/main/other_list.wxml

@@ -4,13 +4,31 @@
4 4
     <view class="panel11 FlexColumn">
5 5
       <text class="text1">{{Info.Description}}</text>
6 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 8
       <view class="text2">{{Info.Readme}}</view>
9 9
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10 10
     </view>
11 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 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 32
     <text class="text8" wx:if="{{Total>0}}">收益 <text class="Number1">{{Total}}</text></text>
15 33
     <text wx:if="{{Total==0}}"></text>
16 34
   </view>
@@ -20,7 +38,7 @@
20 38
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
21 39
         <view class="lineWidth720"></view>
22 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 42
         <view class="Left FlexRow">
25 43
           <image src='{{item.AvatarUrl}}' class="avatar" />
26 44
           <view class="panelItem1 FlexColumn">
@@ -28,10 +46,15 @@
28 46
             <view class="text5">{{item.Remark}}</view>
29 47
           </view>
30 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 58
         </view>
36 59
       </view>
37 60
     </block>
@@ -49,7 +72,7 @@
49 72
         <view class="lineWidthAll FlexRow" wx:if="{{indexChild>0}}">
50 73
           <view class="lineWidth720"></view>
51 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 76
           <view class="Left FlexRow">
54 77
             <image src='{{itemChild.AvatarUrl}}' class="avatar" />
55 78
             <view class="panelItem1 FlexColumn">
@@ -57,10 +80,15 @@
57 80
               <view class="text5">{{itemChild.Remark}}</view>
58 81
             </view>
59 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 92
           </view>
65 93
         </view>
66 94
       </block>
@@ -68,7 +96,7 @@
68 96
     </view>
69 97
   </view>
70 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 100
     <view class="btn">申请提现</view>
73 101
   </view>
74 102
 </view>
@@ -82,27 +110,27 @@
82 110
         <view class="text53">提现金额</view>
83 111
       </view>
84 112
       <view class="panel511 FlexColumn">
85
-        <view class="text52">{{Total}}</view>
113
+        <view class="text52">{{TotalAll}}</view>
86 114
         <view class="text53">到账金额</view>
87 115
       </view>
88 116
     </view>
89
-    <view class="panel52 FlexRow" wx:if="{{false}}">
117
+    <view class="panel52 FlexRow" wx:if="{{RefundNum}}">
90 118
       <view class="Left FlexRow">
91 119
         <image src='../../pages/images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
92 120
         <view class="text53">已扣除因退款返还奖励金额</view>
93 121
       </view>
94
-      <view class="text54">0</view>
122
+      <view class="text54">{{RefundTotal}}</view>
95 123
     </view>
96 124
     <view class="panel53 FlexRow">
97 125
       <view class="text54">微信支付平台交易手续费</view>
98
-      <view class="text54">{{User.WXServiceCharge}}</view>
126
+      <view class="text54">{{User.WXServiceCharge}}%</view>
99 127
     </view>
100 128
     <view class="lineWidthAll FlexRow">
101 129
       <view class="lineWidth680"></view>
102 130
     </view>
103 131
     <view class="panel53 FlexRow">
104 132
       <view class="text54">代缴个人所得税</view>
105
-      <view class="text54">{{User.IndividualIncomeTax}}</view>
133
+      <view class="text54">{{User.IndividualIncomeTax}}%</view>
106 134
     </view>
107 135
     <view class="lineWidthAll FlexRow">
108 136
       <view class="lineWidth680"></view>

+ 54 - 0
pages_agent/main/other_list.wxss

@@ -101,6 +101,17 @@
101 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 115
 .panel3{
105 116
   width:100%;
106 117
   flex-wrap: wrap;
@@ -170,6 +181,9 @@
170 181
   margin-top: 6rpx;
171 182
 }
172 183
 .Right{
184
+  justify-content: flex-end;
185
+}
186
+.Right1{
173 187
   margin-right: 30rpx;
174 188
   align-items: flex-end;
175 189
   height:141rpx;
@@ -178,6 +192,10 @@
178 192
   font-size: 24rpx;
179 193
   color:#4D4D4D;
180 194
 }
195
+.text61{
196
+  font-size: 24rpx;
197
+  color:#FE6659;
198
+}
181 199
 .footer{
182 200
   width:100%;
183 201
   height:232rpx;
@@ -308,4 +326,40 @@
308 326
   text-align: center;
309 327
   color:#fff;
310 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 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
+var downloadData={};
5 6
 
6 7
 Page({
7 8
   data: {
@@ -45,14 +46,16 @@ Page({
45 46
     }
46 47
     main.getData(url, function (data) {
47 48
       if (data) {
49
+        downloadData=data;
50
+        var info=data;
48 51
         if (that.data.ListType=="团队动态"){
49 52
           if (that.data.SelectMenuCss1=="selectItem")
50
-            data.List=data.List1;
53
+            info=data.团队能量;
51 54
           else if (id==2)
52
-            data.List=data.List2;
55
+            info=data.其他;
53 56
         }
54 57
         that.setData({
55
-          Info:data,
58
+          Info:info,
56 59
         });
57 60
       }
58 61
     });
@@ -95,11 +98,11 @@ Page({
95 98
     var SelectMenuCss1="",SelectMenuCss2="";
96 99
     if (id==1){
97 100
       SelectMenuCss1="selectItem";
98
-      that.data.Info.List=that.data.Info.List1;
101
+      that.data.Info=downloadData.团队能量;
99 102
     }
100 103
     else if (id==2){
101 104
       SelectMenuCss2="selectItem";
102
-      that.data.Info.List=that.data.Info.List2;
105
+      that.data.Info=downloadData.其他;
103 106
     }
104 107
     this.setData({
105 108
       SelectMenuCss1:SelectMenuCss1,
@@ -107,6 +110,18 @@ Page({
107 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 125
   onShareAppMessage: function () {
111 126
     return {
112 127
       title: app.globalData.ShareTitle,

+ 8 - 7
pages_agent/main/result_list.wxml

@@ -2,7 +2,7 @@
2 2
   <block wx:if="{{!IsPromotion && ListType=='团队动态'}}">
3 3
     <view class="panelTop FlexRow">
4 4
       <view class="panelTop1 FlexColumn" catchtap="onMenu" data-id="1">
5
-        <view class="{{SelectMenuCss1}} text0">队能量</view>
5
+        <view class="{{SelectMenuCss1}} text0">队能量</view>
6 6
         <view class="{{SelectMenuCss1}}BG line1"></view>
7 7
       </view>
8 8
       <view class="panelTop2 panelTop1 FlexColumn" catchtap="onMenu" data-id="2">
@@ -16,21 +16,22 @@
16 16
     <view style="height:100rpx;"></view>
17 17
   </block>
18 18
 
19
-
20 19
   <view class="panel1 FlexColumn">
21 20
     <view class="panel11 FlexColumn">
22 21
       <text class="text1">{{Info.Description}}</text>
23 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 25
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
27 26
     </view>
28 27
   </view>
29 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 32
     <text></text>
32 33
   </view>
33
-  <view class="panel3 FlexRow">
34
+  <view class="panel3 FlexRow" >
34 35
     <view class="panel31 FlexColumn" wx:for="{{Info.List}}" wx:key="*this" bindtap="gotoRecord" data-userid="{{item.UserID}}" >
35 36
       <image src='{{item.AvatarUrl}}' class="product_icon_mg_70x70" />
36 37
       <view class="text4" wx:if="{{item.IsRebate==1 || !IsPromotion}}">{{item.NickName}}</view>
@@ -42,5 +43,5 @@
42 43
       </view>
43 44
     </view>
44 45
   </view>
45
-  <view class="footer"></view>
46
+  <view class="footer" wx:if="{{Info.List.length>0}}"></view>
46 47
 </view>

+ 1 - 0
pages_agent/main/result_list.wxss

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

+ 1 - 0
pages_agent/main/search_user.js

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

+ 8 - 1
pages_agent/main/search_user.wxml

@@ -44,8 +44,14 @@
44 44
       <view class="panelItemSearchNull" wx:if="{{SearchTextList2.length==0}}">暂无内容,搜一次就有了</view>
45 45
 
46 46
     </view>
47
+    <view class="panelFooter" style='min-height:{{Containnerheight}}rpx;'></view>
47 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 55
     <view class="panel2 FlexColumn" style='min-height:{{Containnerheight-100}}rpx;'>
50 56
       <view class="panelItem FlexRow" wx:for="{{List}}" wx:key="index" bindtap="goto" data-url="user_relation?UserID={{item.UserID}}">
51 57
         <view class="Left FlexRow">
@@ -56,5 +62,6 @@
56 62
       </view>
57 63
     </view>
58 64
   </block>
65
+  
59 66
 
60 67
 </view>

+ 17 - 1
pages_agent/main/search_user.wxss

@@ -1,5 +1,5 @@
1 1
 .container{
2
-  background-color: #fff;
2
+  background-color: #f0f0f0;
3 3
 }
4 4
 .panelTop {
5 5
   width: 100%;
@@ -347,4 +347,20 @@
347 347
   width:16rpx;
348 348
   height:26rpx;
349 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 51
   init: function () {
52 52
     var that = this;
53 53
     if (that.data.AgentCategory == "promotion") {
54
-      var url = "GetIntroducerUserList2?ListType=近期报名";
54
+      var url = "GetIntroducerUserList2?ListType=近期报名&AgentCategory=" + that.data.AgentCategory;
55 55
       url += "&UserID=" + app.globalData.userInfo.UserID;
56 56
 
57 57
       main.getData(url, function (data) {
@@ -64,7 +64,7 @@ Page({
64 64
       });
65 65
     }
66 66
 
67
-    //收益记录
67
+    //历史账单
68 68
     var url = "GetMiaoguoAgentRecordList?UserID=" + app.globalData.userInfo.UserID + "&AgentCategory=" + that.data.AgentCategory;
69 69
     main.getData(url, function (data) {
70 70
       if (data) {

+ 29 - 22
pages_agent/main/user_index.wxml

@@ -1,34 +1,38 @@
1 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 4
       <view>直属推荐</view>
5 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 7
       <view>大使计划</view>
8 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 13
       <view>直属推荐</view>
11 14
     </view>
12
-    <view wx:if="{{!IsPromotion}}" class="panel02Right panel01 FlexRow">
15
+    <view class="panel02Right panel01 FlexRow">
13 16
       <view>大使计划</view>
14 17
     </view>
15 18
   </view>
19
+
16 20
   <image src='{{User.AvatarUrl}}' class="avatar" />
17 21
   <image wx:if="{{IsPromotion}}" src='../images/promotion_user_home_title01.png' class="promotion_user_home_title01" />
18 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 27
     <view class="text9">大使收益</view>
24 28
     <view class="text10">{{Total2}}</view>
25 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 33
     <image src='../images/ad.png' class="adImage" />
30 34
     <image src='../images/ad.png' class="adImage" />
31
-  </scroll-view>
35
+  </scroll-view> -->
32 36
 
33 37
   <view class="panelTitle FlexRow" wx:if="{{IsPromotion}}">
34 38
     <image src='../images/promotion_user_home_title02.png' class="promotion_user_home_title01" />
@@ -44,14 +48,14 @@
44 48
         <view class="text3">{{WithdrawableEarningsTotal}}</view>
45 49
         <view class="text4">可提现收益</view>
46 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 52
         <view class="text3">{{WithdrawableEarnings}}</view>
49
-        <view class="text4">即将到</view>
53
+        <view class="text4">即将到</view>
50 54
       </view>
51 55
     </view>
52 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 59
       </view>
56 60
       <view class="line"></view>
57 61
       <view class="panel21 FlexRow" bindtap='goto' data-url="result_list?AgentCategory={{AgentCategory}}&ListType=成果记录">
@@ -65,18 +69,20 @@
65 69
   </view>
66 70
 
67 71
   <view class="panel12 panel1 FlexRow">
68
-    <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
72
+    <!-- <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}">
69 73
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
70 74
       <view class="text8">
71 75
         大使计划规则
72 76
       </view>
73
-    </view>
77
+    </view> -->
74 78
     <view class="panel112 FlexColumn" wx:if="{{!IsPromotion}}" bindtap="goto" data-url="result_list?AgentCategory={{AgentCategory}}&ListType=团队动态">
75 79
       <image src='../images/promotion_index_workbook.png' class="promotion_index_rules" />
76 80
       <view class="text8">
77 81
         团队动态
78 82
       </view>
79 83
     </view>
84
+
85
+    <!-- 
80 86
     <view class="panel112 FlexColumn" wx:if="{{IsPromotion}}">
81 87
       <image src='../images/promotion_index_rules.png' class="promotion_index_rules" />
82 88
       <view class="text8">
@@ -101,7 +107,8 @@
101 107
         消息中心
102 108
       </view>
103 109
       <view class="textMessage">新消息</view>
104
-    </view>
110
+    </view> 
111
+    -->
105 112
   </view>
106 113
 
107 114
   <block wx:if="{{IsPromotion}}">
@@ -119,14 +126,14 @@
119 126
       <view class="panel13 panel1 FlexColumn" bindtap='goto' data-url="other_list?AgentCategory=promotion&ListType=报名步骤没做完">
120 127
         <text class="text6">别让这些朋友掉队\n在报名的路上</text>
121 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 131
       </view>
125 132
     </view>
126 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 137
     <view class="panel21 FlexRow" bindtap='goto' data-url="index">
131 138
       返回活动
132 139
     </view>
@@ -138,5 +145,5 @@
138 145
     <view class="panel21 FlexRow" bindtap='gotoIndex'>
139 146
       返回秒过
140 147
     </view>
141
-  </view>
148
+  </view> -->
142 149
 </view>

+ 23 - 9
pages_agent/main/user_index.wxss

@@ -9,17 +9,16 @@
9 9
   width:500rpx;
10 10
   height:110rpx;
11 11
   margin-top: 30rpx;
12
-  background-color: #AB4E05;
13 12
   border-radius: 20rpx;
14 13
 }
15 14
 
16 15
 .panel01{
17 16
   font-size:36rpx;
18
-  color:#FC7406;
17
+  background-color:#FC7406;
19 18
   width:250rpx;
20 19
 }
21 20
 
22
-.panel02Left{
21
+.panel01Left{
23 22
   color:#fff;
24 23
   background-color: #793703;
25 24
   height:110rpx;
@@ -27,9 +26,26 @@
27 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 46
 .panel02Right{
31 47
   color:#fff;
32
-  background-color: #793703;
48
+  background-color: #6E4E00;
33 49
   height:110rpx;
34 50
   border-top-right-radius: 20rpx;
35 51
   border-bottom-right-radius: 20rpx;
@@ -221,6 +237,7 @@
221 237
   height:210rpx;
222 238
   justify-content: flex-end;
223 239
   align-items: flex-start;
240
+  background-color: #CAF1FB;
224 241
 }
225 242
 .text6{
226 243
   margin: 0 0 30rpx 30rpx;
@@ -230,11 +247,8 @@
230 247
   width:260rpx;
231 248
   height:210rpx;
232 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 254
 .Null1{

+ 2 - 1
pages_agent/main/user_relation.wxml

@@ -24,7 +24,8 @@
24 24
   </block>
25 25
   <view class="panel3 FlexColumn">
26 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 29
   </view>
29 30
   <view class="panel4 FlexRow" wx:if="{{Info.List.length>0}}">
30 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 18
     "checkSiteMap": true,
19 19
     "uploadWithSourceMap": true,
20 20
     "compileHotReLoad": true,
21
-    "useMultiFrameRuntime": false,
22
-    "useApiHook": false,
23
-    "useApiHostProcess": false,
21
+    "useMultiFrameRuntime": true,
22
+    "useApiHook": true,
23
+    "useApiHostProcess": true,
24 24
     "babelSetting": {
25 25
       "ignore": [],
26 26
       "disablePlugins": [],
27 27
       "outputPath": ""
28 28
     },
29
-    "useIsolateContext": false,
29
+    "useIsolateContext": true,
30 30
     "userConfirmedBundleSwitch": false,
31 31
     "packNpmManually": false,
32 32
     "packNpmRelationList": [],

+ 9 - 2
project.private.config.json

@@ -20,10 +20,10 @@
20 20
           "scene": null
21 21
         },
22 22
         {
23
-          "id": 1,
24 23
           "name": "pages/index/index",
25 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 27
           "scene": 1007
28 28
         },
29 29
         {
@@ -37,6 +37,13 @@
37 37
           "name": "推广",
38 38
           "pathName": "pages_agent/main/index",
39 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 47
           "scene": null,
41 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 1705
 module.exports = {
1676 1706
   getData: getData,
1677 1707
   postData: postData,
@@ -1713,4 +1743,5 @@ module.exports = {
1713 1743
   downloadBishunKaitiImage: downloadBishunKaitiImage,
1714 1744
   GetSoundError: GetSoundError,
1715 1745
   GetTestReportList: GetTestReportList,
1746
+  ShowHelp:showHelp,
1716 1747
 }

+ 22 - 0
utils/util.js

@@ -371,6 +371,27 @@ function IsNumber(value) {//判断是否是数字,true:是,false:不是
371 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 395
 module.exports = {
375 396
   formatTime: formatTime,
376 397
   formatDateCHS: formatDateCHS,
@@ -395,4 +416,5 @@ module.exports = {
395 416
   IsNumber:IsNumber,
396 417
   checkIsArray: checkIsArray,
397 418
   formatDateENG: formatDateENG,
419
+  formatMoney:formatMoney
398 420
 }