chengjie 3 lat temu
rodzic
commit
8a8daa02d7

+ 1 - 1
app.js

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

+ 1 - 59
pages/main/default.js

@@ -389,22 +389,7 @@ Page({
389 389
     var fieldStr = "&FieldStr=NickName,AvatarUrl";
390 390
     if (userid) {
391 391
       that.getUserInfo(userid, fieldStr, function (data) {
392
-        if (type1 == 0) {
393
-          that.setData({
394
-            NewUserAvatar: data.AvatarUrl,
395
-            NewUserNickName: data.NickName,
396
-          });
397
-        } else if (type1 == 1) {
398
-          that.setData({
399
-            IntroducerAvatar: data.AvatarUrl,
400
-            IntroducerNickName: data.NickName,
401
-          });
402
-        } else if (type1 == 2) {
403
-          that.setData({
404
-            GroupUserAvatar: data.AvatarUrl,
405
-            GroupUserNickName: data.NickName,
406
-          });
407
-        } else if (type1 == 3) {
392
+        if (type1 == 3) {
408 393
           that.setData({
409 394
             RefundUserAvatar: data.AvatarUrl,
410 395
             RefundUserNickName: data.NickName,
@@ -429,49 +414,6 @@ Page({
429 414
       }
430 415
     });
431 416
   },
432
-  setUserGroup: function (e) {
433
-    var that = this;
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,
445
-          });
446
-          wx.showToast({
447
-            title: '群更改成功',
448
-          })
449
-        });
450
-      }
451
-    }
452
-  },
453
-  setUserIntroducer: function (e) {
454
-    var that = this;
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,
467
-          });
468
-          wx.showToast({
469
-            title: '介绍人更改成功',
470
-          })
471
-        });
472
-      }
473
-    }
474
-  },
475 417
   selectPayItem: function (e) {
476 418
     var that = this;
477 419
     var id = e.currentTarget.dataset.id;

+ 0 - 30
pages/main/default.wxml

@@ -73,36 +73,6 @@
73 73
     <view class="hiddenline"></view>
74 74
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
75 75
     
76
-    <!-- 更改介绍人 -->
77
-    <view class="hiddenline"></view>
78
-    <view class="panel2 FlexRow">
79
-      <input class='input2 input' type="number"  always-embed="true"  placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
80
-      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeNewUserID}}" data-type="0">查看</button>
81
-      <image class="Avatar2" src='{{NewUserAvatar}}' wx:if="{{NewUserAvatar}}"/>
82
-      <view class="NickName2" wx:if="{{NewUserAvatar}}">{{NewUserNickName}}</view>
83
-    </view>
84
-    <view class="panel20 panel2 FlexRow">
85
-      <input class='input2 input' type="number"  always-embed="true"  placeholder="介绍人ID" value="{{ChangeIntroducerUserID}}" bindinput="onKeyInput" data-type="introduceruserid"/>
86
-      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeIntroducerUserID}}" data-type="1">查看</button>
87
-      <image class="Avatar2" src='{{IntroducerAvatar}}' wx:if="{{IntroducerAvatar}}"/>
88
-      <view  class="NickName2" wx:if="{{IntroducerAvatar}}">{{IntroducerNickName}}</view>
89
-    </view>
90
-    <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
91
-    
92
-    <!-- 更改班群 -->
93
-    <view class="hiddenline"></view>
94
-    <view class="panel2 FlexRow">
95
-      <input class='input2 input' type="number"  always-embed="true"  placeholder="用户ID" value="{{ChangeGroupUserID}}" bindinput="onKeyInput" data-type="groupuserid"/>
96
-      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeGroupUserID}}" data-type="2">查看</button>
97
-      <image class="Avatar2" src='{{GroupUserAvatar}}'  wx:if="{{GroupUserAvatar}}"/>
98
-      <view  class="NickName2"  wx:if="{{GroupUserAvatar}}">{{GroupUserNickName}}</view>
99
-    </view>
100
-    <view class="panel21 panel2 FlexRow">
101
-      <button class="btnShowUserID" bindtap="setUserGroup" data-id="1">群改彩虹</button>
102
-      <button class="btnShowUserID" bindtap="setUserGroup" data-id="2">群改润雨</button>
103
-      <button class="btnShowUserID" bindtap="setUserGroup" data-id="3">群改扬帆</button>
104
-    </view>
105
-
106 76
     <!-- 退款 -->
107 77
     <view class="hiddenline"></view>
108 78
     <view class="panel2 FlexRow">

+ 0 - 3
pages/main/detail.js

@@ -1415,9 +1415,6 @@ Page({
1415 1415
     var cardType = wx.getStorageSync("CardType");
1416 1416
     main.GotoTaskList(2,cardType);
1417 1417
   },
1418
-  resetTodayTask:function(){
1419
-    main.ResetTodayTask();
1420
-  },
1421 1418
   clearTimeoutEveryCard: function () {
1422 1419
     for(var i=0;i<timeoutEveryCard.length;i++){
1423 1420
       clearTimeout(timeoutEveryCard[i]);

+ 8 - 8
pages/main/detail.wxml

@@ -208,12 +208,16 @@
208 208
           </view>
209 209
         </view>
210 210
       </view>
211
+      <view class="panelLastTime4 FlexRow" catchtap="goto" data-url="../plan/setting?Type=ShowReset">
212
+        <view class="panelLastTime41 FlexRow">
213
+          <image src="../images/icon_reload_1.png" class='icon_reload_1' />
214
+          <view>重置今天的任务量</view>
215
+        </view>
216
+        <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
217
+      </view>
211 218
       <view class="panelLastTime3">点击左上角返回首页</view>
212 219
       
213
-      <!-- <view class="panelLastTime4 FlexRow">
214
-        <view class="panelLastTime41">对本次练习用时的说明</view>
215
-        <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
216
-      </view> -->
220
+      
217 221
 
218 222
       <view class="panelLastFooter FlexColumn">
219 223
         <view class="panelLastFooter1 FlexRow">
@@ -225,10 +229,6 @@
225 229
             <image src="../images/icon_report_1.png" class='icon_report_1' />
226 230
             <view>详细报告</view>
227 231
           </view>
228
-          <view class="panelLastFooter11 FlexColumn" catchtap="resetTodayTask">
229
-            <image src="../images/icon_reload_1.png" class='icon_reload_1' />
230
-            <view>重置任务量</view>
231
-          </view>
232 232
         </view>
233 233
         <view class="panelLastFooter2 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
234 234
           <image src="../images/icon_flag_3.png" class='icon_flag_3' />

+ 4 - 4
pages/main/detail.wxss

@@ -585,7 +585,7 @@ page{
585 585
 .panelLastTime4{
586 586
   width: 710rpx;
587 587
   height:100rpx;
588
-  margin:60rpx 0 0 20rpx;
588
+  margin:20rpx 0 0 20rpx;
589 589
   justify-content: space-between;
590 590
   background-color: rgba(0, 0, 0, 0.2);
591 591
   border-radius: 20rpx;
@@ -618,7 +618,7 @@ page{
618 618
 }
619 619
 
620 620
 .panelLastFooter .panelLastFooter11 {
621
-  width:243rpx;
621
+  width:365rpx;
622 622
   height:140rpx;
623 623
   font-size: 24rpx;
624 624
   color:#D2D2D2;
@@ -627,7 +627,7 @@ page{
627 627
 .icon_reload_1{
628 628
   width: 30rpx;
629 629
   height: 30rpx;
630
-  margin-bottom: 20rpx;
630
+  margin: 0 20rpx 0 0;
631 631
 }
632 632
 
633 633
 .icon_report_1{
@@ -643,7 +643,7 @@ page{
643 643
   height:100rpx;
644 644
   position: absolute;
645 645
   bottom:90rpx;
646
-  left:92rpx;
646
+  left:150rpx;
647 647
   justify-content: flex-end;
648 648
 }
649 649
 

+ 28 - 2
pages/plan/setting.js

@@ -5,14 +5,40 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
+    ShowReset:false,
9
+    ImagePath: app.globalData.uploadImageUrl,
8 10
   },
9
-  onLoad: function () {
11
+  onLoad: function (options) {
10 12
     var that = this;
11 13
 
12 14
     that.setData({
13 15
       Containnerheight: main.getWindowHeight(),
14 16
     });
15
-    
17
+
18
+    if (options.Type=="ShowReset"){
19
+      that.setData({
20
+        ShowReset: true,
21
+      });
22
+      wx.setNavigationBarTitle({
23
+        title: '重置',
24
+      });
25
+      wx.setNavigationBarColor({
26
+        frontColor: "#000000",
27
+        backgroundColor: "#F8F8F8",
28
+      })
29
+    }
30
+  },
31
+  showSetting:function(){
32
+    this.setData({
33
+      ShowReset: false,
34
+    });
35
+    wx.setNavigationBarTitle({
36
+      title: '模式设置',
37
+    });
38
+    wx.setNavigationBarColor({
39
+      frontColor: "#000000",
40
+      backgroundColor: "#ffffff",
41
+    })
16 42
   },
17 43
   onShow: function () {
18 44
     var that = this;

+ 6 - 1
pages/plan/setting.wxml

@@ -1,4 +1,4 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
+<view wx:if="{{!ShowReset}}" class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="line"></view>
3 3
   <view class="panelItem FlexRow" bindtap="goto" data-url="./studyplandetail?CardType=0">
4 4
     <view class="panelItem1">日常练习模式</view>
@@ -61,4 +61,9 @@
61 61
     </view>
62 62
   </view>
63 63
   <view class='lineFooter'></view>
64
+</view>
65
+
66
+<view wx:if="{{ShowReset}}" class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
67
+  <image src='{{ImagePath}}web/help_board_tips_chongzhi.png' class="help_board_tips_chongzhi" />
68
+	<view class="btnReset" bindtap="showSetting">前往重置</view>		
64 69
 </view>

+ 21 - 0
pages/plan/setting.wxss

@@ -123,4 +123,25 @@
123 123
 
124 124
 .panelItemBottom{
125 125
   margin-top: 300rpx;
126
+}
127
+
128
+.container2{
129
+  background-color: #f8f8f8;
130
+}
131
+
132
+.help_board_tips_chongzhi{
133
+  width:630rpx;
134
+  height: 530rpx;
135
+  margin: 100rpx 0;
136
+}
137
+
138
+.btnReset{
139
+  background: #5282FA;
140
+  border-radius: 20rpx;
141
+  font-size: 36rpx;
142
+  color: #FFFFFF;
143
+  text-align: center;
144
+  line-height: 100rpx;
145
+  width:600rpx;
146
+  margin-top: 200rpx;
126 147
 }

+ 2 - 5
pages/plan/studyplan.wxml

@@ -195,7 +195,7 @@
195 195
 				</view>
196 196
 			</view>
197 197
 
198
-			<view class="panel222 panel21 FlexColumn" bindtap="showHelp" data-id="2">
198
+			<view class="panel222 panel21 FlexColumn" bindtap="goto" data-url="./setting?Type=ShowReset">
199 199
 				<view class="panel212 FlexRow">
200 200
 					<image src='../images/universalpic_questionmark_blue_40x40.png'
201 201
 						class="universalpic_questionmark_blue_40x40" />
@@ -246,14 +246,11 @@
246 246
 				<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
247 247
 			</view>
248 248
 			<view wx:if="{{HelpID==1}}"></view>
249
-			<view wx:if="{{HelpID==2}}" class="HelpPanel112" catchtap="goto" data-url="./setting">前往重置</view>
250 249
 			<view wx:if="{{HelpID==3}}" class="HelpPanel113 HelpPanel112" catchtap="changePlanOK">更换</view>
251 250
 		</view>
252 251
 		<view class="HelpPanel12 FlexColumn">
253 252
 			<image wx:if="{{HelpID==1}}" src='{{ImagePath}}web/help_board_tips_shouyeshezhi.png'
254 253
 				class="help_board_tips_shouyeshezhi" />
255
-			<image wx:if="{{HelpID==2}}" src='{{ImagePath}}web/help_board_tips_chongzhi.png'
256
-				class="help_board_tips_chongzhi" />
257 254
 			<block wx:if="{{HelpID==3}}">
258 255
 				<view class="panel11 FlexRow">
259 256
 					<view class="panel111">启用哪种「练习模式」</view>
@@ -297,4 +294,4 @@
297 294
 			</block>
298 295
 		</view>
299 296
 	</view>
300
-</view>
297
+</view>

+ 0 - 5
pages/plan/studyplan.wxss

@@ -709,11 +709,6 @@
709 709
   border-top:1rpx solid #D2D2D2;
710 710
 }
711 711
 
712
-.help_board_tips_chongzhi{
713
-  width:630rpx;
714
-  height: 530rpx;
715
-  margin: 80rpx 0;
716
-}
717 712
 .help_board_tips_shouyeshezhi{
718 713
   width:630rpx;
719 714
   height: 500rpx;

+ 5 - 0
pages_agent/marketing/shareuser.js

@@ -126,6 +126,11 @@ Page({
126 126
     }, timeout);
127 127
 
128 128
   },
129
+  gotoShareIndex:function(){
130
+    wx.navigateTo({
131
+      url: "../../pages/share/shareindex",
132
+    });
133
+  },
129 134
   buildUrl: function () {
130 135
     wx.setClipboardData({
131 136
       data: shareUrl,

+ 2 - 1
pages_agent/marketing/shareuser.wxml

@@ -3,10 +3,11 @@
3 3
   <view class="panel FlexColumn" wx:for="{{List}}" wx:key="*this">
4 4
     <view class="text1 FlexRow">{{item.Text1}}<view class="Number">{{index+1}}</view></view>
5 5
     <view class="text2">{{item.Text2}}</view>
6
+    <image wx:if="{{item.Image}}" class="img2" src="{{ServerImage}}{{item.Image}}"></image>
6 7
     <button wx:if="{{item.BtnStr}}" class="btn FlexRow" open-type="{{item.OpenType}}" bindtap="{{item.BindTap}}">
7 8
       <view class="Arrow"></view>
8 9
       <view>{{item.BtnStr}}</view>
9
-      <image src='../images/arrow_right_orange.png' class="Arrow" />
10
+      <image src='../../pages/images/arrow_right_orange.png' class="Arrow" />
10 11
     </button>
11 12
     <view class="panel1 FlexRow" wx:if="{{item.Images}}">
12 13
       <image bindtap="buildImage" data-id="{{itemChild.id}}" class="img" src="{{ServerImage}}{{itemChild.icon}}" wx:for="{{item.Images}}" wx:key="index" wx:for-item="itemChild"></image>

+ 6 - 0
pages_agent/marketing/shareuser.wxss

@@ -42,6 +42,12 @@
42 42
   margin: 0 10rpx;
43 43
 }
44 44
 
45
+.panel .img2{
46
+  width:234rpx;
47
+  height:206rpx;
48
+  margin: 60rpx 0 0 0;
49
+}
50
+
45 51
 .panel .text3{
46 52
   font-size:24rpx;
47 53
   margin: 40rpx 0;