chengjie 6 years ago
parent
commit
acc652174a
67 changed files with 763 additions and 170 deletions
  1. 1 1
      app.js
  2. 17 10
      app.json
  3. 46 5
      marketing/main/extenduser.js
  4. 34 7
      marketing/main/extenduser.wxml
  5. 33 2
      marketing/main/extenduser.wxss
  6. 2 2
      marketing/main/index.js
  7. 9 9
      marketing/main/index.wxml
  8. 1 1
      marketing/main/index.wxss
  9. BIN
      pages/images/edit_voicerecorder_illus.png
  10. BIN
      pages/images/help_picture_chooseadvice.png
  11. BIN
      pages/images/help_picture_clickshow_01.png
  12. BIN
      pages/images/help_picture_clickshow_02.png
  13. BIN
      pages/images/help_picture_clickshow_03.png
  14. BIN
      pages/images/help_picture_fourcolor.png
  15. BIN
      pages/images/help_picture_themecolor.png
  16. BIN
      pages/images/program_screenshot_bindaccount.png
  17. BIN
      pages/images/program_screenshot_checklist.png
  18. BIN
      pages/images/program_screenshot_lesson1.png
  19. BIN
      pages/images/program_screenshot_promotion.png
  20. BIN
      pages/images/program_screenshot_speak01.png
  21. BIN
      pages/images/program_start_footer.png
  22. BIN
      pages/images/promotion_poster01.png
  23. BIN
      pages/images/study_plan_header.png
  24. BIN
      pages/images/universalpic_bell_green_30x30.png
  25. BIN
      pages/images/universalpic_clock_white_24x24.png
  26. BIN
      pages/images/universalpic_file_green_30x30.png
  27. BIN
      pages/images/universalpic_help_green_26x26.png
  28. BIN
      pages/images/universalpic_logo_200x200.png
  29. BIN
      pages/images/universalpic_setup_gray_40x40.png
  30. BIN
      pages/images/universalpic_setup_white_50x50.png
  31. 5 5
      pages/index/index.js
  32. 1 6
      pages/main/default.js
  33. 10 8
      pages/main/default.wxml
  34. 17 5
      pages/main/default.wxss
  35. 0 5
      pages/main/setting.json
  36. 5 0
      pages/other/lessonlist.js
  37. 2 0
      pages/other/lessonlist.wxml
  38. 0 0
      pages/plan/clicktype.js
  39. 0 0
      pages/plan/clicktype.json
  40. 0 0
      pages/plan/clicktype.wxml
  41. 0 0
      pages/plan/clicktype.wxss
  42. 0 0
      pages/plan/colorplan.js
  43. 0 0
      pages/plan/colorplan.json
  44. 0 0
      pages/plan/colorplan.wxml
  45. 0 0
      pages/plan/colorplan.wxss
  46. 0 0
      pages/plan/memoryLevel.js
  47. 0 0
      pages/plan/memoryLevel.json
  48. 0 0
      pages/plan/memoryLevel.wxml
  49. 0 0
      pages/plan/memoryLevel.wxss
  50. 0 0
      pages/plan/recommend.js
  51. 0 0
      pages/plan/recommend.json
  52. 0 0
      pages/plan/recommend.wxml
  53. 0 0
      pages/plan/recommend.wxss
  54. 25 49
      pages/main/setting.js
  55. 9 0
      pages/plan/setting.json
  56. 46 32
      pages/main/setting.wxml
  57. 61 15
      pages/main/setting.wxss
  58. 76 0
      pages/plan/sortRule.js
  59. 3 0
      pages/plan/sortRule.json
  60. 37 0
      pages/plan/sortRule.wxml
  61. 118 0
      pages/plan/sortRule.wxss
  62. 63 0
      pages/plan/taskLimit.js
  63. 3 0
      pages/plan/taskLimit.json
  64. 45 0
      pages/plan/taskLimit.wxml
  65. 54 0
      pages/plan/taskLimit.wxss
  66. 21 6
      project.config.json
  67. 19 2
      utils/main.js

+ 1 - 1
app.js

@@ -26,7 +26,7 @@ App({
26 26
     }
27 27
   },
28 28
   globalData: {
29
-    Version: "1.1.34",
29
+    Version: "1.2.0",
30 30
     IsProduction: false,
31 31
     ShareTitle: "刻意学习,高效成长",
32 32
     SharePath: "pages/index/index",

+ 17 - 10
app.json

@@ -1,16 +1,10 @@
1 1
 {
2 2
   "pages": [
3 3
     "pages/index/index",
4
-    "marketing/main/extenduser",
5
-    "marketing/main/shareuser",
6
-    "marketing/main/index",
7 4
     "pages/index/accredit",
8
-    "pages/main/recommend",
9
-    "pages/main/clicktype",
10
-    "pages/other/lesson",
11
-    "pages/main/colorplan",
12 5
     "pages/index/notice",
13 6
     "pages/index/openSetting",
7
+
14 8
     "pages/main/default",
15 9
     "pages/main/cardInfo",
16 10
     "pages/main/preview",
@@ -22,13 +16,26 @@
22 16
     "pages/main/searchWeb1",
23 17
     "pages/main/searchWeb",
24 18
     "pages/main/detail",
25
-    "pages/main/memoryLevel",
19
+    
20
+    "pages/plan/recommend",
21
+    "pages/plan/clicktype",
22
+    "pages/plan/colorplan",
23
+    "pages/plan/memoryLevel",
24
+    "pages/plan/taskLimit",
25
+    "pages/plan/sortRule",
26
+    "pages/plan/setting",
27
+    
28
+    "marketing/main/extenduser",
29
+    "marketing/main/shareuser",
30
+    "marketing/main/index",
31
+    
26 32
     "pages/other/lessonlist",
27 33
     "pages/other/userlist",
28 34
     "pages/other/binding",
29 35
     "pages/other/homework",
30
-    "pages/other/pay",
31
-    "pages/main/setting"
36
+    "pages/other/lesson",
37
+    "pages/other/pay"
38
+    
32 39
   ],
33 40
   "window": {
34 41
     "navigationBarBackgroundColor": "#ffffff",

+ 46 - 5
marketing/main/extenduser.js

@@ -10,6 +10,13 @@ Page({
10 10
   data: {
11 11
   },
12 12
   onLoad: function (options) {
13
+    var pageType = 0;
14
+    if (options.PageType == 1) {
15
+      pageType = 1;
16
+      wx.setNavigationBarTitle({
17
+        title: "奖励名单"
18
+      });
19
+    }
13 20
     this.setData({
14 21
       Containnerheight: main.getWindowHeight(),
15 22
       ArrMenu: [
@@ -19,6 +26,12 @@ Page({
19 26
       ],
20 27
       Filter1: ArrFilter1[0],
21 28
       Filter2: ArrFilter2[0],
29
+      ArrAward: [
30
+        { Name: "等待出账", Remark: "等待用户渡过7天退款期的名单",List:[] },
31
+        { Name: "出账", Remark: "已符合奖励条件的名单", List: [] },
32
+        { Name: "结算完成", Remark: "已发放奖励的名单", List: [] },
33
+      ],
34
+      PageType: pageType,
22 35
     });
23 36
     this.init();
24 37
   },
@@ -28,9 +41,33 @@ Page({
28 41
       wx.hideLoading();
29 42
       if (data) {
30 43
         AllList = data;
31
-        that.setData({
32
-          List: data,
33
-        });
44
+        if (that.data.PageType == 0) {
45
+          that.setData({
46
+            List: data,
47
+          });
48
+        }
49
+        else {
50
+          var sevenday = common.formatTime(common.addDate("d",-7,new Date()));
51
+          for (var i = 0; i < AllList.length; i++) {
52
+            if (AllList[i].IsPay == 1 && AllList[i].IsMember == 1){
53
+              var payTime = AllList[i].PayTime;
54
+              if (sevenday < payTime) {
55
+                that.data.ArrAward[0].List.push(AllList[i]);
56
+              }
57
+              else {
58
+                if (AllList[i].IsRebate == 0) {
59
+                  that.data.ArrAward[1].List.push(AllList[i]);
60
+                }
61
+                else {
62
+                  that.data.ArrAward[2].List.push(AllList[i]);
63
+                }
64
+              }
65
+            }
66
+          }
67
+          that.setData({
68
+            ArrAward: that.data.ArrAward,
69
+          });
70
+        }
34 71
       }
35 72
     });
36 73
   },
@@ -65,6 +102,10 @@ Page({
65 102
       Filter1: ArrFilter1[0],
66 103
       Filter2: ArrFilter2[0],
67 104
     });
105
+
106
+    wx.pageScrollTo({
107
+      scrollTop: 0,
108
+    });
68 109
   },
69 110
   filterData1: function (e) {
70 111
     var that = this;
@@ -96,10 +137,10 @@ Page({
96 137
         var list = [];
97 138
         for (var i = 0; i < AllList.length; i++) {
98 139
           if (res.tapIndex == 1) {
99
-            if (AllList[i].IsPay == 0)
140
+            if (AllList[i].IsPay == 0 && AllList[i].IsMember == 1)
100 141
               list.push(AllList[i]);
101 142
           }
102
-          else
143
+          else if (AllList[i].IsMember == 1)
103 144
             list.push(AllList[i]);
104 145
         }
105 146
 

+ 34 - 7
marketing/main/extenduser.wxml

@@ -1,4 +1,5 @@
1
-<view class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
1
+<!-- 推广名单 -->
2
+<view wx:if="{{PageType==0}}" class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
2 3
   <view class="panelTop FlexRow">
3 4
     <view class="panelTop1 FlexColumn" wx:for="{{ArrMenu}}" wx:key="*this" bindtap="changeMenu" data-id="{{index}}">
4 5
       <view class="panelTop11{{item.Selected}}">{{item.Name}}</view>
@@ -20,7 +21,7 @@
20 21
         <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
21 22
       </view>
22 23
     </view>
23
-    <view class="lineWidthAll FlexRow">
24
+    <view class="lineWidthAll FlexRow" wx:if="{{ArrMenu[2].Selected==0}}">
24 25
       <view class="lineWidth720"></view>
25 26
     </view>
26 27
     <view class="panel2 FlexRow">
@@ -29,16 +30,42 @@
29 30
     <view class="panel3 FlexColumn">
30 31
       <view class="panel31 FlexRow">
31 32
         <view class="panelUser FlexColumn" wx:if="{{ArrMenu[0].Selected==1}}">
32
-            <image src='../images/universalpic_add_gray_114x114.png' class="Avatar" />
33
-            <view class="NickName">去推荐</view>
33
+          <image src='../images/universalpic_add_gray_114x114.png' class="Avatar" />
34
+          <view class="NickName">去推荐</view>
34 35
         </view>
35 36
         <view class="panelUser FlexColumn" wx:for="{{List}}" wx:key="*this">
36
-            <image src='{{item.AvatarUrl}}' lazy-load="true" class="Avatar" />
37
-            <view class="NickName">{{item.NickName}}</view>
37
+          <image src='{{item.AvatarUrl}}' lazy-load="true" class="Avatar" />
38
+          <view class="NickName">{{item.NickName}}</view>
38 39
         </view>
39 40
       </view>
40 41
     </view>
41 42
     <view class="footer"></view>
42 43
   </view>
43
-  
44
+
45
+</view>
46
+
47
+<!-- 奖励名单 -->
48
+<view wx:if="{{PageType==1}}" class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
49
+  <block wx:for="{{ArrAward}}" wx:key="*this" wx:for-item="itemParent">
50
+    <view class="panelTitle FlexRow">
51
+      <view class="panelTitle1">{{itemParent.Name}}</view>
52
+      <view class="panelTitle2"></view>
53
+    </view>
54
+    <view class="panel0 FlexColumn">
55
+      <view class="panel4 FlexColumn">
56
+        <view class="panel21 left">{{itemParent.Remark}}人</view>
57
+        <view class="left">共{{itemParent.List.length}}人</view>
58
+      </view>
59
+      <view class="panel3 FlexColumn">
60
+        <view class="panel31 FlexRow">
61
+          <view class="panelUser FlexColumn" wx:for="{{itemParent.List}}" wx:key="*this">
62
+            <image src='{{item.AvatarUrl}}' lazy-load="true" class="Avatar" />
63
+            <view class="NickName">{{item.NickName}}</view>
64
+          </view>
65
+        </view>
66
+      </view>
67
+    </view>
68
+  </block>
69
+
70
+  <view class="footer"></view>
44 71
 </view>

+ 33 - 2
marketing/main/extenduser.wxss

@@ -1,5 +1,8 @@
1 1
 .panelTop{
2 2
   width:100%;
3
+  position: fixed;
4
+  top:0;
5
+  border-bottom: 1rpx solid #d2d2d2;
3 6
 }
4 7
 
5 8
 .panelTop1{
@@ -35,7 +38,7 @@
35 38
 
36 39
 .panel{
37 40
   width:100%;
38
-  margin-top: 20rpx;
41
+  margin-top: 110rpx;
39 42
   background-color: #fff;
40 43
   justify-content: flex-start;
41 44
 }
@@ -47,7 +50,6 @@
47 50
   font-size:28rpx;
48 51
 }
49 52
 
50
-
51 53
 .left{
52 54
   margin-left: 30rpx;
53 55
 }
@@ -97,6 +99,35 @@
97 99
   margin-top: 10rpx;
98 100
 }
99 101
 
102
+.panelTitle{
103
+  width:100%;
104
+  justify-content: space-between;
105
+  background-color: #f0f0f0;
106
+}
107
+.panelTitle .panelTitle1{
108
+  font-size:32rpx;
109
+  margin: 50rpx 0 30rpx 30rpx;
110
+}
111
+
112
+.panel0{
113
+  width:100%;
114
+  background-color: #fff;
115
+  justify-content: flex-start;
116
+}
117
+
118
+.panel4{
119
+  width:100%;
120
+  align-items: flex-start;
121
+  font-weight: 400;
122
+  font-size:24rpx;
123
+  margin-top: 30rpx;
124
+}
125
+
126
+.panel21{
127
+  font-size:28rpx;
128
+}
129
+
130
+
100 131
 .footer{
101 132
   width:100%;
102 133
   height:100rpx;

+ 2 - 2
marketing/main/index.js

@@ -11,9 +11,9 @@ Page({
11 11
       Containnerheight: main.getWindowHeight(),
12 12
     });
13 13
   },
14
-  gogoExtendUser: function(){
14
+  gogoExtendUser: function(e){
15 15
     wx.navigateTo({
16
-      url: './extenduser',
16
+      url: './extenduser?PageType='+e.currentTarget.dataset.id,
17 17
     });
18 18
   },
19 19
   gogoShareUser: function () {

+ 9 - 9
marketing/main/index.wxml

@@ -1,9 +1,10 @@
1 1
 <view class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
2
+  
2 3
   <view class="panelTitle FlexRow">
3 4
     <view class="panelTitle1">推广</view>
4 5
     <view class="panelTitle2"></view>
5 6
   </view>
6
-  <view class="panelItem FlexRow">
7
+  <!-- <view class="panelItem FlexRow">
7 8
     <view class="panelItem1">规则说明</view>
8 9
     <view class="panelItem2 FlexRow">
9 10
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
@@ -11,7 +12,7 @@
11 12
   </view>
12 13
   <view class="lineWidthAll FlexRow">
13 14
     <view class="lineWidth720"></view>
14
-  </view>
15
+  </view> -->
15 16
   <view class="panelItem FlexRow"  bindtap="gogoShareUser">
16 17
     <view class="panelItem1">我的宣传品</view>
17 18
     <view class="panelItem2 FlexRow">
@@ -21,7 +22,7 @@
21 22
   <view class="lineWidthAll FlexRow">
22 23
     <view class="lineWidth720"></view>
23 24
   </view>
24
-  <view class="panelItem FlexRow" bindtap="gogoExtendUser">
25
+  <view class="panelItem FlexRow" bindtap="gogoExtendUser" data-id="0">
25 26
     <view class="panelItem1">推广名单</view>
26 27
     <view class="panelItem2 FlexRow">
27 28
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
@@ -33,13 +34,13 @@
33 34
     <view class="panelTitle1">奖励</view>
34 35
     <view class="panelTitle2"></view>
35 36
   </view>
36
-  <view class="panelItem FlexRow">
37
+  <view class="panelItem FlexRow" bindtap="gogoExtendUser" data-id="1">
37 38
     <view class="panelItem1">奖励名单</view>
38 39
     <view class="panelItem2 FlexRow">
39 40
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
40 41
     </view>
41 42
   </view>
42
-  <view class="lineWidthAll FlexRow">
43
+  <!-- <view class="lineWidthAll FlexRow">
43 44
     <view class="lineWidth720"></view>
44 45
   </view>
45 46
   <view class="panelItem FlexRow">
@@ -56,10 +57,10 @@
56 57
     <view class="panelItem2 FlexRow">
57 58
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
58 59
     </view>
59
-  </view>
60
+  </view> -->
60 61
   <view class='lineFooter'></view>
61 62
 
62
-  <view class="panelTitle FlexRow">
63
+  <!-- <view class="panelTitle FlexRow">
63 64
     <view class="panelTitle1">辅助</view>
64 65
     <view class="panelTitle2"></view>
65 66
   </view>
@@ -69,6 +70,5 @@
69 70
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
70 71
     </view>
71 72
   </view>
72
-  <view class='lineFooter'></view>
73
-
73
+  <view class='lineFooter'></view> -->
74 74
 </view>

+ 1 - 1
marketing/main/index.wxss

@@ -52,4 +52,4 @@
52 52
   width:16rpx;
53 53
   height:26rpx;
54 54
   margin-left: 30rpx;
55
-}
55
+}

BIN
pages/images/edit_voicerecorder_illus.png


BIN
pages/images/help_picture_chooseadvice.png


BIN
pages/images/help_picture_clickshow_01.png


BIN
pages/images/help_picture_clickshow_02.png


BIN
pages/images/help_picture_clickshow_03.png


BIN
pages/images/help_picture_fourcolor.png


BIN
pages/images/help_picture_themecolor.png


BIN
pages/images/program_screenshot_bindaccount.png


BIN
pages/images/program_screenshot_checklist.png


BIN
pages/images/program_screenshot_lesson1.png


BIN
pages/images/program_screenshot_promotion.png


BIN
pages/images/program_screenshot_speak01.png


BIN
pages/images/program_start_footer.png


BIN
pages/images/promotion_poster01.png


BIN
pages/images/study_plan_header.png


BIN
pages/images/universalpic_bell_green_30x30.png


BIN
pages/images/universalpic_clock_white_24x24.png


BIN
pages/images/universalpic_file_green_30x30.png


BIN
pages/images/universalpic_help_green_26x26.png


BIN
pages/images/universalpic_logo_200x200.png


BIN
pages/images/universalpic_setup_gray_40x40.png


BIN
pages/images/universalpic_setup_white_50x50.png


+ 5 - 5
pages/index/index.js

@@ -214,11 +214,11 @@ Page({
214 214
           //测试
215 215
           //var url = '../../package4/main/giftcard?GiftID=89542&UserID=1';
216 216
           //var url = '../main/share';
217
-          var url = '../../marketing/main/index';
218
-          wx.redirectTo({
219
-            url: url,
220
-          });
221
-          return;
217
+          // var url = '../../marketing/main/index';
218
+          // wx.redirectTo({
219
+          //   url: url,
220
+          // });
221
+          // return;
222 222
 
223 223
 
224 224
           if (that.data.MiaoguoCardID) {

+ 1 - 6
pages/main/default.js

@@ -135,7 +135,7 @@ Page({
135 135
   goto: function (e) {
136 136
     var url = e.currentTarget.dataset.url;
137 137
     wx.navigateTo({
138
-      url: './' + url,
138
+      url: url,
139 139
     })
140 140
   },
141 141
   //得到当天任务
@@ -152,11 +152,6 @@ Page({
152 152
       });
153 153
     });
154 154
   },
155
-  gotoCard: function () {
156
-    wx.redirectTo({
157
-      url: './searchCard',
158
-    })
159
-  },
160 155
   isNoSavedCard:function(){
161 156
     var that=this;
162 157
     //判断是否有未保存的卡

+ 10 - 8
pages/main/default.wxml

@@ -1,15 +1,17 @@
1 1
 <view class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
2 2
   <view class='panel1 FlexColumn'>
3
-    <view class='text1'>第{{DayNumber}}个使用日</view>
4
-    <view class='panel11 FlexRow' bindtap="goto" data-url="setting">
3
+    <view class='text1 FlexRow'>第<text class="text11">{{DayNumber}}</text>天</view>
4
+    <view class='text3' wx:if="{{TodayTaskNumber>0 && IsStart==0}}">剩余任务</view>
5
+    <view class='text3' wx:if="{{TodayTaskNumber>0 && IsStart==1}}">今天任务</view>
6
+    <view class='panel11 FlexRow' bindtap="goto" data-url="../plan/setting">
5 7
       <view class='universalpic_setup_gray_40x40'></view>
6 8
       <view class='text2'>{{TodayTaskNumber}}</view>
7
-      <image class="universalpic_setup_gray_40x40" src='../images/universalpic_setup_gray_40x40.png' />
9
+      <image class="universalpic_setup_white_50x50" src='../images/universalpic_setup_white_50x50.png' />
8 10
     </view>
9 11
   </view>
10
-  <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/study_index_start.png' bindtap="goto" data-url="detail" />
11
-  <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_goon.png' bindtap="goto" data-url="detail" />
12
-  <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_report.png' bindtap="goto" data-url="detail" />
12
+  <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/study_index_start.png' bindtap="goto" data-url="./detail" />
13
+  <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_goon.png' bindtap="goto" data-url="./detail" />
14
+  <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_report.png' bindtap="goto" data-url="./detail" />
13 15
 
14 16
   <view class='panelBottom FlexColumn'>
15 17
 
@@ -21,12 +23,12 @@
21 23
         <view class='text5'>学习</view>
22 24
       </view>
23 25
       <view class='line1'></view>
24
-      <view class='panelBottom11 FlexColumn' bindtap="goto" data-url="add?type=add&id=0">
26
+      <view class='panelBottom11 FlexColumn' bindtap="goto" data-url="./add?type=add&id=0">
25 27
         <image class="program_tabbar_study_default" src='../images/program_tabbar_add_default.png' />
26 28
         <view>添加</view>
27 29
       </view>
28 30
       <view class='line1'></view>
29
-      <view class='panelBottom11 FlexColumn' bindtap='gotoCard'>
31
+      <view class='panelBottom11 FlexColumn' bindtap='goto'  data-url="./searchCard">
30 32
         <image class="program_tabbar_study_default" src='../images/program_tabbar_note_default.png' />
31 33
         <view>题卡</view>
32 34
       </view>

+ 17 - 5
pages/main/default.wxss

@@ -4,13 +4,21 @@
4 4
 
5 5
 .panel1 {
6 6
   position: fixed;
7
-  top:120rpx;
7
+  top:100rpx;
8 8
   color: #fff;
9 9
 }
10 10
 
11 11
 .panel1 .text1 {
12 12
   font-size: 36rpx;
13 13
 }
14
+.panel1 .text11 {
15
+  font-size: 40rpx;
16
+  font-family: 'Roboto-Black';
17
+}
18
+.panel1 .text3 {
19
+  font-size: 28rpx;
20
+  margin-top: 10rpx;
21
+}
14 22
 
15 23
 .panel1 .text2 {
16 24
   font-family: 'Roboto-Black';
@@ -18,10 +26,14 @@
18 26
   margin: 0 10rpx;
19 27
 }
20 28
 
21
-.universalpic_setup_gray_40x40 {
22
-  width: 40rpx;
23
-  height: 40rpx;
24
-  margin-top: 75rpx;
29
+.panel1 .panel11{
30
+  margin-right: -50rpx;
31
+}
32
+
33
+.universalpic_setup_white_50x50 {
34
+  width: 50rpx;
35
+  height: 50rpx;
36
+  margin-top: 60rpx;
25 37
 }
26 38
 
27 39
 .study_index_start {

+ 0 - 5
pages/main/setting.json

@@ -1,5 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "练习方案",
3
-  "backgroundColor": "#F0F0F0",
4
-  "enablePullDownRefresh": true
5
-}

+ 5 - 0
pages/other/lessonlist.js

@@ -25,6 +25,11 @@ Page({
25 25
       url: '../other/userlist',
26 26
     });
27 27
   },
28
+  gotoMarketingUserList: function (e) {
29
+    wx.navigateTo({
30
+      url: '../../marketing/main/index',
31
+    });
32
+  },
28 33
   gotoCheckList: function(){
29 34
     var url = '../other/homework';
30 35
     if (this.data.CheckListUserID)

+ 2 - 0
pages/other/lessonlist.wxml

@@ -16,6 +16,8 @@
16 16
   <view style='height:100rpx;'></view>
17 17
   <button bindtap='gotoUserList'>审核用户</button>
18 18
   <view style='height:100rpx;'></view>
19
+  <button bindtap='gotoMarketingUserList'>推广用户</button>
20
+  <view style='height:100rpx;'></view>
19 21
   <input class='input' maxlength='4' auto-focus bindinput="onKeyInput" value="{{CheckListUserID}}"  />
20 22
   <button bindtap='gotoCheckList'>CheckList</button>
21 23
 </view>

pages/main/clicktype.js → pages/plan/clicktype.js


pages/main/clicktype.json → pages/plan/clicktype.json


pages/main/clicktype.wxml → pages/plan/clicktype.wxml


pages/main/clicktype.wxss → pages/plan/clicktype.wxss


pages/main/colorplan.js → pages/plan/colorplan.js


pages/main/colorplan.json → pages/plan/colorplan.json


pages/main/colorplan.wxml → pages/plan/colorplan.wxml


pages/main/colorplan.wxss → pages/plan/colorplan.wxss


pages/main/memoryLevel.js → pages/plan/memoryLevel.js


pages/main/memoryLevel.json → pages/plan/memoryLevel.json


pages/main/memoryLevel.wxml → pages/plan/memoryLevel.wxml


pages/main/memoryLevel.wxss → pages/plan/memoryLevel.wxss


pages/main/recommend.js → pages/plan/recommend.js


pages/main/recommend.json → pages/plan/recommend.json


pages/main/recommend.wxml → pages/plan/recommend.wxml


pages/main/recommend.wxss → pages/plan/recommend.wxss


+ 25 - 49
pages/main/setting.js

@@ -2,11 +2,10 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
-const arrSortType = ["随机抽取的题卡", "时间较早的题卡", "时间较近的题卡"];
6
-const arrSortType2 = ["随机的", "较早的", "较近的"];
5
+const arrSortType = ["自由安排的", "到期时间较早的", "到期时间较近的"];
7 6
 const arrClickType = ["专属按钮", "点击空白", "两种方式"];
8 7
 var arrUserName = ["程晟涵", "临时"];
9
-var arrUserID = [2, 102];
8
+var arrUserID = [2, 662];
10 9
 
11 10
 Page({
12 11
   data: {
@@ -55,6 +54,9 @@ Page({
55 54
       isPay = false;
56 55
     }
57 56
 
57
+    var taskNumber = app.globalData.TaskToday.ListNew.length + app.globalData.TaskToday.ListReview.length + app.globalData.TaskToday.ListHistory.length;
58
+    var cardEveryTime = 1 + Math.round(app.globalData.TaskToday.CardEveryTime / 60 * taskNumber);
59
+    
58 60
     that.setData({
59 61
       Containnerheight: main.getWindowHeight(),
60 62
       CardNumber: that.data.CardNumber,
@@ -64,23 +66,11 @@ Page({
64 66
       ProductServiceTime: productServiceTime,
65 67
       IsPay: isPay,
66 68
       IsShow: app.globalData.IsShow,
69
+      TaskNumber: taskNumber,
70
+      CardEveryTime:cardEveryTime,
71
+      CardLimitTimeNumber: app.globalData.TaskToday.CardLimitTimeNumber,
67 72
     });
68 73
 
69
-    common.getStorageValue(this, "CardMaxNumberNew", 10, function () {
70
-      that.setData({
71
-        CardMaxNumberNewIndex: that.data.CardMaxNumberNew - 5,
72
-      });
73
-    });
74
-    common.getStorageValue(this, "CardMaxNumberHistory", 30, function () {
75
-      that.setData({
76
-        CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - 5,
77
-      });
78
-    });
79
-    common.getStorageValue(this, "SortTypeIndex", 0, function () {
80
-      that.setData({
81
-        SortType: arrSortType2[that.data.SortTypeIndex],
82
-      });
83
-    });
84 74
     common.getStorageValue(this, "UserID", 1, function () {
85 75
       for (var i = 0; i < arrUserID.length; i++) {
86 76
         if (arrUserID[i] == that.data.UserID) {
@@ -101,6 +91,16 @@ Page({
101 91
   },
102 92
   onShow: function () {
103 93
     var that = this;
94
+    common.getStorageValue(this, "CardMaxNumberNew", 10, function () {
95
+    });
96
+    common.getStorageValue(this, "CardMaxNumberHistory", 30, function () {
97
+    });
98
+    common.getStorageValue(this, "SortTypeIndex", 0, function () {
99
+      that.setData({
100
+        SortType: arrSortType[that.data.SortTypeIndex],
101
+      });
102
+    });
103
+    
104 104
     var colorIndex = wx.getStorageSync("ColorIndexArr");
105 105
     if (!colorIndex || colorIndex.length > 1) {
106 106
       this.setData({
@@ -132,38 +132,9 @@ Page({
132 132
 
133 133
     this.getMemoryLevel();
134 134
   },
135
-  bindUpdateCardNumberNewMax: function (e) {
136
-    this.data.CardMaxNumberNewIndex = e.detail.value;
137
-    this.setData({
138
-      CardMaxNumberNewIndex: this.data.CardMaxNumberNewIndex,
139
-      CardMaxNumberNew: this.data.CardNumber[this.data.CardMaxNumberNewIndex],
140
-    });
141
-    wx.setStorageSync("CardMaxNumberNew", this.data.CardNumber[this.data.CardMaxNumberNewIndex]);
142
-    main.UploadUserConfig();
143
-  },
144
-  bindUpdateCardNumberHistoryMax: function (e) {
145
-    this.data.CardMaxNumberHistoryIndex = e.detail.value;
146
-    this.setData({
147
-      CardMaxNumberHistoryIndex: this.data.CardMaxNumberHistoryIndex,
148
-      CardMaxNumberHistory: this.data.CardNumber[this.data.CardMaxNumberHistoryIndex],
149
-    });
150
-    wx.setStorageSync("CardMaxNumberHistory", this.data.CardNumber[this.data.CardMaxNumberHistoryIndex]);
151
-    main.UploadUserConfig();
152
-  },
153 135
   setSortType: function () {
154
-    var that = this;
155
-    wx.showActionSheet({
156
-      itemList: arrSortType,
157
-      success(res) {
158
-        that.setData({
159
-          SortType: arrSortType2[res.tapIndex],
160
-        });
161
-        wx.setStorageSync("SortTypeIndex", res.tapIndex);
162
-        main.UploadUserConfig();
163
-      },
164
-      fail(res) {
165
-        console.log(res.errMsg)
166
-      }
136
+    wx.navigateTo({
137
+      url: './sortRule',
167 138
     })
168 139
   },
169 140
   setSelectUser: function () {
@@ -235,6 +206,11 @@ Page({
235 206
       url: './recommend',
236 207
     })
237 208
   },
209
+  setTaskLimit: function () {
210
+    wx.navigateTo({
211
+      url: './taskLimit',
212
+    })
213
+  },
238 214
   gotoPay: function () {
239 215
     var payindex = 3;
240 216
     if (app.globalData.userInfo.IsFinishTask == 1)

+ 9 - 0
pages/plan/setting.json

@@ -0,0 +1,9 @@
1
+{
2
+  "navigationBarBackgroundColor": "#4EC3FF",
3
+  "navigationBarTextStyle": "black",
4
+  "navigationBarTitleText": "练习方案",
5
+  "backgroundColor": "#F0F0F0",
6
+  "backgroundTextStyle":"dark",
7
+  "backgroundColorTop":"#4EC3FF",
8
+  "enablePullDownRefresh": true
9
+}

+ 46 - 32
pages/main/setting.wxml

@@ -1,43 +1,57 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <image src='../images/study_plan_header.png' class="study_plan_header" />
3
+  <view class="panelTop FlexRow">
4
+    <view class="panelTop1">今天的学习任务</view>
5
+  </view>
6
+  <view class="panelTask FlexColumn">
7
+    <view class="panelTaskItem FlexRow">
8
+      <view class="panelTaskItem1">初始任务量</view>
9
+      <view class="panelTaskItem2">新{{CardMaxNumberNew}}张 旧{{CardMaxNumberHistory}}张 / 共{{CardMaxNumberNew+CardMaxNumberHistory}}张</view>
10
+    </view>
11
+    <view class="lineWidth7201 lineWidth720"></view>
12
+    <view class="panelTaskItem FlexRow">
13
+      <view class="panelTaskItem1">剩余任务量</view>
14
+      <view class="panelTaskItem2">{{TaskNumber}}张</view>
15
+    </view>
16
+    <view class="lineWidth7201 lineWidth720"></view>
17
+    <view class="panelTaskItem FlexRow">
18
+      <view class="panelTaskItem1 FlexRow">
19
+        <image src='../images/universalpic_bell_green_30x30.png' class="universalpic_bell_green_30x30" />
20
+        <view>全部做完可能用时</view>
21
+      </view>
22
+      <view class="panelTaskItem2">{{CardEveryTime}}分钟</view>
23
+    </view>
24
+    <view class="lineWidth670"></view>
25
+    <view class="panelTaskItem FlexRow">
26
+      <view class="panelTaskItem1 FlexRow">
27
+        <image src='../images/universalpic_file_green_30x30.png' class="universalpic_file_green_30x30" />
28
+        <view>到期题卡数量</view>
29
+        <image src='../images/universalpic_help_green_26x26.png' class="universalpic_help_green_26x26" />
30
+        
31
+      </view>
32
+      <view class="panelTaskItem2">{{CardLimitTimeNumber}}张</view>
33
+    </view>
34
+    <view class="lineWidthAll2 FlexRow">
35
+    </view>
36
+  </view>
2 37
   <view class="panelTitle FlexRow">
3 38
     <view class="panelTitle1">任务量</view>
4 39
     <view class="panelTitle2"></view>
5 40
   </view>
6
-  <view class="panelItem FlexRow">
7
-    <view class="panelItem1">新题卡数量上限</view>
41
+  <view class="panelItem FlexRow" bindtap='setTaskLimit'>
42
+    <view class="panelItem1">数量限</view>
8 43
     <view class="panelItem2 FlexRow">
9
-      <picker bindchange="bindUpdateCardNumberNewMax" value="{{CardMaxNumberNewIndex}}" range="{{CardNumber}}">
10
-        <view class="picker">
11
-          {{CardMaxNumberNew}}张
12
-        </view>
13
-      </picker>
44
+      <view class="picker">
45
+        每天最多{{CardMaxNumberNew+CardMaxNumberHistory}}张
46
+      </view>
14 47
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
15 48
     </view>
16 49
   </view>
17 50
   <view class="lineWidthAll FlexRow">
18 51
     <view class="lineWidth720"></view>
19 52
   </view>
20
-  <view class="panelItem FlexRow">
21
-    <view class="panelItem1">旧题卡数量上限</view>
22
-    <view class="panelItem2 FlexRow">
23
-      <picker bindchange="bindUpdateCardNumberHistoryMax" value="{{CardMaxNumberHistoryIndex}}" range="{{CardNumber}}">
24
-        <view class="picker">
25
-          {{CardMaxNumberHistory}}张
26
-        </view>
27
-      </picker>
28
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
29
-    </view>
30
-  </view>
31
-  <view class='lineFooter'></view>
32
-
33
-  <view class="panelEveryDay">每天{{CardMaxNumberNew+CardMaxNumberHistory}}张题卡</view>
34
-
35
-  <view class="panelTitle FlexRow">
36
-    <view class="panelTitle1">学习内容</view>
37
-    <view class="panelTitle2"></view>
38
-  </view>
39 53
   <view class="panelItem FlexRow" bindtap='setSortType'>
40
-    <view class="panelItem1">当到期题卡数大于任务量时优先安排</view>
54
+    <view class="panelItem1">优先规则</view>
41 55
     <view class="panelItem2 FlexRow">
42 56
       <view class="picker">
43 57
         {{SortType}}
@@ -73,7 +87,7 @@
73 87
   </view>
74 88
   <view class='lineFooter'></view>
75 89
   <view class="panelTitle FlexRow">
76
-    <view class="panelTitle1">辅助</view>
90
+    <view class="panelTitle1">辅助功能</view>
77 91
     <view class="panelTitle2"></view>
78 92
   </view>
79 93
   <view class="panelItem FlexRow" bindtap='setClickType'>
@@ -98,7 +112,7 @@
98 112
     </view>
99 113
   </view>
100 114
   <view class='lineFooter'></view>
101
-  <view class="panelTitle FlexRow" wx:if="{{ChildUserID==0}}">
115
+  <!-- <view class="panelTitle FlexRow" wx:if="{{ChildUserID==0}}">
102 116
     <view class="panelTitle1">系统</view>
103 117
     <view class="panelTitle2"></view>
104 118
   </view>
@@ -113,15 +127,15 @@
113 127
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
114 128
     重启小程序
115 129
   </view>
116
-  <view class='lineFooter'></view>
130
+  <view class='lineFooter'></view> -->
117 131
 
118
-  <view class='text2'>有效期 {{ProductServiceTime}}</view>
132
+  <!-- <view class='text2'>有效期 {{ProductServiceTime}}</view>
119 133
   <block wx:if="{{ChildUserID==0 && IsPay && IsShow}}">
120 134
     <view class="panelItem00 panelItem FlexRow" bindtap='gotoPay'>
121 135
       续费
122 136
     </view>
123 137
     <view class='lineFooter'></view>
124
-  </block>
138
+  </block> -->
125 139
 
126 140
   <view style='width:100%;height:100rpx;' bindtap='gotoPayTemp'></view>
127 141
   <text class='text1'>©2019 {{ProgramName}}\n微信小程序 版本 {{Version}}</text>

+ 61 - 15
pages/main/setting.wxss

@@ -1,3 +1,64 @@
1
+.study_plan_header{
2
+  width:100%;
3
+  height: 180rpx;
4
+}
5
+.panelTop{
6
+  width:100%;
7
+  justify-content: flex-start;
8
+  height:105rpx;
9
+  background-color: #2B2F3A;
10
+}
11
+.panelTop1{
12
+  font-size:32rpx;
13
+  margin-left: 30rpx;
14
+  color:#F0F0F0;
15
+}
16
+
17
+
18
+.panelTask{
19
+  width:100%;
20
+  background-color: #228160;
21
+  color:#E3E3E3;
22
+  font-size:28rpx;
23
+  align-items: flex-end;
24
+}
25
+.panelTask .panelTaskItem{
26
+  width:720rpx;
27
+  height:101rpx;
28
+  justify-content: space-between;
29
+}
30
+.panelTask .panelTaskItem2{
31
+  margin-right: 30rpx;
32
+}
33
+.lineWidth7201{
34
+  background-color: #0E5433;
35
+}
36
+.lineWidth670{
37
+  width: 670rpx;
38
+  height: 1rpx;
39
+  background-color: #0E5433; 
40
+}
41
+.universalpic_bell_green_30x30{
42
+  width:30rpx;
43
+  height:30rpx;
44
+  margin-right: 20rpx;
45
+}
46
+.universalpic_file_green_30x30{
47
+  width:30rpx;
48
+  height:28rpx;
49
+  margin-right: 20rpx;
50
+}
51
+.universalpic_help_green_26x26{
52
+  width:26rpx;
53
+  height:26rpx;
54
+  margin-left: 10rpx;
55
+}
56
+.lineWidthAll2{
57
+  width:100%;
58
+  height:20rpx;
59
+  background-color: #CA8770;
60
+}
61
+
1 62
 .panelTitle{
2 63
   width:100%;
3 64
   margin-top: 50rpx;
@@ -61,21 +122,6 @@
61 122
   text-align: center;
62 123
 }
63 124
 
64
-.panelEveryDay{
65
-  height:45rpx;
66
-  border-radius: 22rpx;
67
-  background-color: #fff;
68
-  border:1rpx solid #287BE8;
69
-  text-align: center;
70
-  line-height: 45rpx;
71
-  font-size:28rpx;
72
-  color:#0071EF;
73
-  align-self: flex-start;
74
-  margin: 30rpx 0 0 30rpx;
75
-  padding: 0 20rpx;
76
-}
77
-
78
-
79 125
 .text2{
80 126
   margin-top: 50rpx;
81 127
   font-size:24rpx;

+ 76 - 0
pages/plan/sortRule.js

@@ -0,0 +1,76 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    List: [
9
+      {
10
+        Name: "自由安排",
11
+        Remark: "对时间早晚没有要求,交由系统根据学习情况安排。",
12
+        SelectedCSS: "",
13
+      },
14
+      {
15
+        Name: "优先安排到期时间较早的题卡",
16
+        Remark: "想优先做完以往积压的题卡可选此项。从到期时间较早的往较近的安排题卡。",
17
+        SelectedCSS: "",
18
+      },
19
+      {
20
+        Name: "优先安排到期时间较近的题卡",
21
+        Remark: "想优先做完近期添加的,和最适合当天回想的知识可选此项。从到期时间较近的(如当日)往积压较早的安排题卡。",
22
+        SelectedCSS: "",
23
+      },
24
+      
25
+    ],
26
+  },
27
+  onLoad: function (options) {
28
+    var that = this;
29
+
30
+    that.setData({
31
+      Containnerheight: main.getWindowHeight(),
32
+    });
33
+
34
+    that.init();
35
+  },
36
+  init: function () {
37
+    var that = this;
38
+    common.getStorageValue(this, "SortTypeIndex", 0, function () {
39
+      
40
+      for (var i = 0; i < that.data.List.length; i++) {
41
+        if (i == that.data.SortTypeIndex)
42
+          that.data.List[i].SelectedCSS = "panelItemSelected";
43
+      }
44
+      that.setData({
45
+        List: that.data.List,
46
+      });
47
+    });
48
+  },
49
+  selectType: function (e) {
50
+    var that = this;
51
+    var index = e.currentTarget.dataset.index;
52
+    for (var i = 0; i < that.data.List.length; i++) {
53
+      that.data.List[i].SelectedCSS = "";
54
+      if (i == index) {
55
+        if (that.data.List[i].SelectedCSS == "")
56
+          that.data.List[i].SelectedCSS = "panelItemSelected";
57
+        else
58
+          that.data.List[i].SelectedCSS = "";
59
+      }
60
+    }
61
+
62
+    that.setData({
63
+      List: that.data.List,
64
+    });
65
+
66
+    wx.setStorageSync("SortTypeIndex", index);
67
+    main.UploadUserConfig();
68
+  },
69
+  onShareAppMessage: function () {
70
+    return {
71
+      title: app.globalData.ShareTitle,
72
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
73
+      imageUrl: app.globalData.ShareImage,
74
+    }
75
+  },
76
+})

+ 3 - 0
pages/plan/sortRule.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "优先规则"
3
+}

+ 37 - 0
pages/plan/sortRule.wxml

@@ -0,0 +1,37 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view style='height:20rpx'></view>
3
+  <view class="panelItem FlexColumn">
4
+    <view class="panelTitle0 panelTitle FlexRow">
5
+      <view class="panelTitle1">用途说明</view>
6
+    </view>
7
+    <text class="text2">当“到期题卡数量”大于“数量限制”时,一部分题卡将挪去下次练习;当下次练习开始时,可供练习的内容就包含了之前被积压的题卡和当日到期的题卡。那么,哪些题卡可以被优先放入任务量中呢?该功能就是起到选择“优先规则”的作用。
8
+    </text>
9
+    <view style="height:40rpx;"></view>
10
+  </view>
11
+  <view class='lineFooter'></view>
12
+
13
+  <view class="panelTitle FlexRow">
14
+    <view class="panelTitle1">规则</view>
15
+  </view>
16
+  <view class="panelItem FlexColumn">
17
+    <view style="height:40rpx;"></view>
18
+    <block wx:for="{{List}}" wx:key="index">
19
+      <view class="{{item.SelectedCSS}} panelSelected FlexRow" bindtap="selectType" data-index="{{index}}">
20
+        <view class='panelSelected0 FlexRow' hidden="{{!item.SelectedCSS}}">
21
+          <image src='../images/universalpic_checked_white_22x17.png' class="universalpic_checked_white_22x17" />
22
+        </view>
23
+        <view class='panelSelected00 panelSelected0' hidden="{{item.SelectedCSS}}">
24
+        </view>
25
+        <view class='panelSelected1 FlexColumn'>
26
+          <view class='text1'>{{item.Name}}</view>
27
+          <image wx:if="{{item.Image}}" src='../images/{{item.Image}}.png' class="{{item.Image}}" />
28
+          <view style="height:10rpx;" wx:if="{{!item.Image}}"></view>
29
+        </view>
30
+      </view>
31
+      <view class='Remark' wx:if="{{item.Remark}}">{{item.Remark}}</view>
32
+    </block>
33
+  </view>
34
+  
35
+  <view class='lineFooter'></view>
36
+  <view style='height:100rpx'></view>
37
+</view>

+ 118 - 0
pages/plan/sortRule.wxss

@@ -0,0 +1,118 @@
1
+.panelTitle {
2
+  width: 100%;
3
+  margin-top: 50rpx;
4
+  justify-content: flex-start;
5
+}
6
+
7
+.panelTitle0 {
8
+  margin-top: 40rpx;
9
+}
10
+
11
+.panelTitle .panelTitle1 {
12
+  font-size: 32rpx;
13
+  margin-left: 30rpx;
14
+  margin-bottom: 30rpx;
15
+}
16
+
17
+.text2{
18
+  font-size:24rpx;
19
+  font-weight: 400;
20
+  width:690rpx;
21
+}
22
+
23
+
24
+.panelItem {
25
+  width: 100%;
26
+  justify-content: space-between;
27
+  font-size: 28rpx;
28
+  min-height: 100rpx;
29
+  background-color: #fff;
30
+}
31
+
32
+.panelItem01 {
33
+  width: 100%;
34
+  line-height: 100rpx;
35
+  padding-left: 30rpx;
36
+  font-weight: 400;
37
+  border-radius: 10rpx;
38
+}
39
+
40
+.panelItem .panelItem1 {
41
+  margin-left: 30rpx;
42
+  font-weight: 400;
43
+}
44
+
45
+.panelItem2 {
46
+  width: 690rpx;
47
+  font-weight: 400;
48
+  font-size: 24rpx;
49
+}
50
+
51
+.help_picture_clickshow_01 {
52
+  width: 688rpx;
53
+  height: 447rpx;
54
+  margin: 40rpx 0;
55
+}
56
+
57
+.panelSelected {
58
+  width: 690rpx;
59
+  border-radius: 10rpx;
60
+  border: 1rpx solid #9b9b9b;
61
+  margin-bottom: 30rpx;
62
+  justify-content: flex-start;
63
+}
64
+
65
+.panelSelected .panelSelected0 {
66
+  border-radius: 50%;
67
+  width: 40rpx;
68
+  height: 40rpx;
69
+  background-color: #0071ef;
70
+  border: 3rpx solid #0071ef;
71
+  margin-left: 30rpx;
72
+}
73
+
74
+.universalpic_checked_white_22x17 {
75
+  width: 22rpx;
76
+  height: 17rpx;
77
+}
78
+
79
+.panelSelected .panelSelected00 {
80
+  background-color: #f8f8f8;
81
+  border: 3rpx solid #d2d2d2;
82
+}
83
+
84
+.panelSelected .panelSelected1 {
85
+  align-items: flex-start;
86
+  margin-left: 20rpx;
87
+}
88
+
89
+.panelSelected .panelSelected11 {
90
+  justify-content: flex-start;
91
+}
92
+
93
+.panelSelected .panelSelected111 {
94
+  align-items: flex-start;
95
+  margin-right: 10rpx;
96
+}
97
+
98
+.panelSelected .text1 {
99
+  font-size: 28rpx;
100
+  font-weight: 400;
101
+  margin: 30rpx 0 20rpx 0;
102
+  color:#1e1e1e;
103
+}
104
+
105
+
106
+.panelItemSelected {
107
+  border: 5rpx solid #fff;
108
+  box-shadow: 0 0 0 3px #0071ef;
109
+}
110
+
111
+
112
+.Remark {
113
+  font-size: 24rpx;
114
+  font-weight: 400;
115
+  color: #787878;
116
+  width: 690rpx;
117
+  margin: 0 0 30rpx 0;
118
+}

+ 63 - 0
pages/plan/taskLimit.js

@@ -0,0 +1,63 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    CardNumber: [],
9
+  },
10
+  onLoad: function (options) {
11
+    var that = this;
12
+
13
+    for (var i = 5; i <= 200; i++) {
14
+      that.data.CardNumber.push(i);
15
+    }
16
+
17
+    that.setData({
18
+      Containnerheight: main.getWindowHeight(),
19
+      CardNumber: that.data.CardNumber,
20
+    });
21
+
22
+    that.init();
23
+  },
24
+  init: function () {
25
+    var that=this;
26
+    common.getStorageValue(this, "CardMaxNumberNew", 10, function () {
27
+      that.setData({
28
+        CardMaxNumberNewIndex: that.data.CardMaxNumberNew - 5,
29
+      });
30
+    });
31
+    common.getStorageValue(this, "CardMaxNumberHistory", 30, function () {
32
+      that.setData({
33
+        CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - 5,
34
+      });
35
+    });
36
+  },
37
+  bindUpdateCardNumberNewMax: function (e) {
38
+    this.data.CardMaxNumberNewIndex = e.detail.value;
39
+    this.setData({
40
+      CardMaxNumberNewIndex: this.data.CardMaxNumberNewIndex,
41
+      CardMaxNumberNew: this.data.CardNumber[this.data.CardMaxNumberNewIndex],
42
+    });
43
+    wx.setStorageSync("CardMaxNumberNew", this.data.CardNumber[this.data.CardMaxNumberNewIndex]);
44
+    main.UploadUserConfig();
45
+  },
46
+  bindUpdateCardNumberHistoryMax: function (e) {
47
+    this.data.CardMaxNumberHistoryIndex = e.detail.value;
48
+    this.setData({
49
+      CardMaxNumberHistoryIndex: this.data.CardMaxNumberHistoryIndex,
50
+      CardMaxNumberHistory: this.data.CardNumber[this.data.CardMaxNumberHistoryIndex],
51
+    });
52
+    wx.setStorageSync("CardMaxNumberHistory", this.data.CardNumber[this.data.CardMaxNumberHistoryIndex]);
53
+    main.UploadUserConfig();
54
+  },
55
+  
56
+  onShareAppMessage: function () {
57
+    return {
58
+      title: app.globalData.ShareTitle,
59
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
60
+      imageUrl: app.globalData.ShareImage,
61
+    }
62
+  },
63
+})

+ 3 - 0
pages/plan/taskLimit.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "数量限制"
3
+}

+ 45 - 0
pages/plan/taskLimit.wxml

@@ -0,0 +1,45 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view style='height:20rpx'></view>
3
+  <view class="panelItem FlexColumn">
4
+    <view class="panelTitle0 panelTitle FlexRow">
5
+      <view class="panelTitle1">用途说明</view>
6
+    </view>
7
+    <text class="text1">限制“今天学习任务”(任务量)的题卡数量。当任务量太多学习时间过长时,通过限制新、旧题卡数量把学习时间和难度控制在可接受范围内。\n
8
+      通常,新题卡比旧题卡难度较大,练习时间也更长。建议新、旧题卡数量之比维持的1:3到1:5之间。\n
9
+      常见误区:本功能用于对数量的“限制”,而不是要求任务量必须达到这个数量。假设,数量限制是50张题卡,但到期题卡仅有30张时,则按实际情况练习30张,并不会补足20张题卡。当日最适合回想的知识是根据到期时间来安排的,和数量限制无关。另一方面,要让本功能发挥作用,必须有足够的题卡数量和较多的到期题卡数量。
10
+    </text>
11
+    <view style="height:40rpx;"></view>
12
+  </view>
13
+  <view class='lineFooter'></view>
14
+
15
+  <view class="panelTitle FlexRow">
16
+    <view class="panelTitle1">限制</view>
17
+  </view>
18
+  <view class="panelItem FlexRow">
19
+    <view class="panelItem1">新题卡数量上限</view>
20
+    <view class="panelItem2 FlexRow">
21
+      <picker bindchange="bindUpdateCardNumberNewMax" value="{{CardMaxNumberNewIndex}}" range="{{CardNumber}}">
22
+        <view class="picker">
23
+          {{CardMaxNumberNew}}张
24
+        </view>
25
+      </picker>
26
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
27
+    </view>
28
+  </view>
29
+  <view class="lineWidthAll FlexRow">
30
+    <view class="lineWidth720"></view>
31
+  </view>
32
+  <view class="panelItem FlexRow">
33
+    <view class="panelItem1">旧题卡数量上限</view>
34
+    <view class="panelItem2 FlexRow">
35
+      <picker bindchange="bindUpdateCardNumberHistoryMax" value="{{CardMaxNumberHistoryIndex}}" range="{{CardNumber}}">
36
+        <view class="picker">
37
+          {{CardMaxNumberHistory}}张
38
+        </view>
39
+      </picker>
40
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
41
+    </view>
42
+  </view>
43
+  <view class='lineFooter'></view>
44
+  <view style='height:100rpx'></view>
45
+</view>

+ 54 - 0
pages/plan/taskLimit.wxss

@@ -0,0 +1,54 @@
1
+.panelTitle {
2
+  width: 100%;
3
+  margin-top: 50rpx;
4
+  justify-content: flex-start;
5
+}
6
+
7
+.panelTitle0 {
8
+  margin-top: 40rpx;
9
+}
10
+
11
+.panelTitle .panelTitle1 {
12
+  font-size: 32rpx;
13
+  margin-left: 30rpx;
14
+  margin-bottom: 30rpx;
15
+}
16
+
17
+.text1{
18
+  font-size:24rpx;
19
+  font-weight: 400;
20
+  width:690rpx;
21
+}
22
+
23
+.panelItem {
24
+  width: 100%;
25
+  justify-content: space-between;
26
+  font-size: 28rpx;
27
+  min-height: 100rpx;
28
+  background-color: #fff;
29
+}
30
+
31
+
32
+.panelItem01 {
33
+  width: 100%;
34
+  line-height: 100rpx;
35
+  padding-left: 30rpx;
36
+  font-weight: 400;
37
+  border-radius: 10rpx;
38
+}
39
+
40
+.panelItem .panelItem1{
41
+  margin-left: 30rpx;
42
+  font-weight: 400;
43
+}
44
+.panelItem .panelItem2{
45
+  margin-right: 30rpx;
46
+  color:#787878;
47
+  font-weight: 400;
48
+}
49
+
50
+.Arrow{
51
+  width:16rpx;
52
+  height:26rpx;
53
+  margin-left: 30rpx;
54
+}

+ 21 - 6
project.config.json

@@ -11,10 +11,18 @@
11 11
 		"newFeature": true,
12 12
 		"autoAudits": false,
13 13
 		"uglifyFileName": false,
14
-		"checkInvalidKey": true
14
+		"checkInvalidKey": true,
15
+		"checkSiteMap": true,
16
+		"uploadWithSourceMap": true,
17
+		"babelSetting": {
18
+			"ignore": [],
19
+			"disablePlugins": [],
20
+			"outputPath": ""
21
+		},
22
+		"enhance": true
15 23
 	},
16 24
 	"compileType": "miniprogram",
17
-	"libVersion": "2.0.4",
25
+	"libVersion": "2.7.3",
18 26
 	"appid": "wx84b3feac6069eec3",
19 27
 	"projectname": "miaoguo_master",
20 28
 	"debugOptions": {
@@ -41,7 +49,7 @@
41 49
 			"list": []
42 50
 		},
43 51
 		"miniprogram": {
44
-			"current": 2,
52
+			"current": 3,
45 53
 			"list": [
46 54
 				{
47 55
 					"id": 0,
@@ -66,10 +74,17 @@
66 74
 				},
67 75
 				{
68 76
 					"id": 3,
69
-					"name": "临时",
70
-					"pathName": "pages/index/index",
71
-					"query": "UserID=1&Share=1&ColorIndex=0&MiaoguoCardID=36119",
77
+					"name": "pages/plan/sortRule",
78
+					"pathName": "pages/plan/sortRule",
79
+					"query": "",
72 80
 					"scene": 1001
81
+				},
82
+				{
83
+					"id": 4,
84
+					"name": "marketing/main/index",
85
+					"pathName": "marketing/main/index",
86
+					"query": "",
87
+					"scene": 1047
73 88
 				}
74 89
 			]
75 90
 		}

+ 19 - 2
utils/main.js

@@ -1,5 +1,6 @@
1 1
 import common from '../utils/util';
2 2
 var app = getApp();
3
+var dataSendTimeout=0;
3 4
 
4 5
 function getData(url, callback) {
5 6
   if (!app.globalData.IsProduction)
@@ -653,9 +654,22 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
653 654
       title: '请稍候',
654 655
       mask: true,
655 656
     });
656
-    setTimeout(function () {
657
+    dataSendTimeout=setTimeout(function () {
657 658
       wx.hideLoading();
658
-    }, 10000);
659
+      wx.showModal({
660
+        title: '提醒',
661
+        showCancel: false,
662
+        content: "服务器有点繁忙,数据获取可能不及时,请关闭小程序稍候再试!",
663
+        confirmText: "知道了",
664
+        success(res) {
665
+          if (res.confirm) {
666
+            wx.reLaunch({
667
+              url: '../index/index',
668
+            })
669
+          }
670
+        },
671
+      });
672
+    }, 30000);
659 673
   }
660 674
   var list = wx.getStorageSync("ListTaskFinished");
661 675
   if (list && list.length > 0) {
@@ -676,6 +690,7 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
676 690
     }, function (data) {
677 691
       if (isShowLoading) {
678 692
         wx.hideLoading();
693
+        clearTimeout(dataSendTimeout);
679 694
       }
680 695
       if (data) {
681 696
         wx.removeStorageSync("ListTaskFinished");
@@ -686,6 +701,8 @@ function UpdateMiaoguoCardTodayAll(isShowLoading, callback) {
686 701
     });
687 702
   }
688 703
   else {
704
+    wx.hideLoading();
705
+    clearTimeout(dataSendTimeout);
689 706
     if (callback) {
690 707
       callback();
691 708
     }