chengjie 2 年之前
父節點
當前提交
34efad1a5d

+ 1 - 2
app.js

@@ -1,6 +1,6 @@
1
 App({
1
 App({
2
   globalData: {
2
   globalData: {
3
-    Version: "2.3.61",
3
+    Version: "2.3.64",
4
     //IsProduction: true,
4
     //IsProduction: true,
5
     IsProduction: false,
5
     IsProduction: false,
6
     ShareTitle: "高效学习从秒过开始",
6
     ShareTitle: "高效学习从秒过开始",
@@ -42,7 +42,6 @@ App({
42
     SearchItem: {},//资料搜索项信息,用于资料搜索时用
42
     SearchItem: {},//资料搜索项信息,用于资料搜索时用
43
     TempFieldNumber: 0,//资料搜索时的段落编号
43
     TempFieldNumber: 0,//资料搜索时的段落编号
44
     TempSearchBackNumber: 3,//资料搜索时返回的页面数
44
     TempSearchBackNumber: 3,//资料搜索时返回的页面数
45
-    IsShowSettingRemind: 3,//首页显示设置提醒日期限制
46
     TempStr:"",//临时字符串。用于不能传递的一些参数
45
     TempStr:"",//临时字符串。用于不能传递的一些参数
47
     TempStr2:"",//临时字符串。用于不能传递的一些参数
46
     TempStr2:"",//临时字符串。用于不能传递的一些参数
48
     FolderList:[],//卡单列表
47
     FolderList:[],//卡单列表

+ 1 - 0
app.json

@@ -1,6 +1,7 @@
1
 {
1
 {
2
   "pages": [
2
   "pages": [
3
     "pages/index/index",
3
     "pages/index/index",
4
+    
4
     "pages/plan/taskBasic",
5
     "pages/plan/taskBasic",
5
     "pages/plan/taskHelp",
6
     "pages/plan/taskHelp",
6
     "pages/plan/taskFull",
7
     "pages/plan/taskFull",

二進制
pages/images/message_practise_index_01.png


+ 2 - 0
pages/index/index.js

@@ -260,6 +260,8 @@ Page({
260
         else {
260
         else {
261
           app.globalData.userInfo = data;
261
           app.globalData.userInfo = data;
262
 
262
 
263
+          //debugger;
264
+
263
           var isShow = data.IsShow;
265
           var isShow = data.IsShow;
264
           if (isShow == -1) {
266
           if (isShow == -1) {
265
             isShow = 0;
267
             isShow = 0;

+ 101 - 39
pages/index/test.js

@@ -1,54 +1,116 @@
1
+var wxCharts = require('../template/wxcharts-min.js');
2
+
3
+var ringChart = null;
4
+
1
 Page({
5
 Page({
2
   data: {
6
   data: {
3
-   navbarInitTop: 0, //导航栏初始化距顶部的距离
4
-   isFixedTop: false, //是否固定顶部
7
+    navbarInitTop: 0, //导航栏初始化距顶部的距离
8
+    isFixedTop: false, //是否固定顶部
5
   },
9
   },
6
-  
10
+
7
   /**
11
   /**
8
    * 生命周期函数--监听页面加载
12
    * 生命周期函数--监听页面加载
9
    */
13
    */
10
-  onLoad: function(options) {
11
-  
14
+  onLoad: function (options) {
15
+
12
   },
16
   },
13
-  
17
+
14
   /**
18
   /**
15
    * 生命周期函数--监听页面显示
19
    * 生命周期函数--监听页面显示
16
    */
20
    */
17
-  onShow: function() {
18
-   var that = this;
19
-  
20
-   if (that.data.navbarInitTop == 0) {
21
-  
22
-    //获取节点距离顶部的距离
23
-    wx.createSelectorQuery().select('#navbar').boundingClientRect(function(rect) {
24
-     if (rect && rect.top > 0) {
25
-      var navbarInitTop = parseInt(rect.top);
26
-      that.setData({
27
-       navbarInitTop: navbarInitTop
28
-      });
29
-     }
30
-    }).exec();
31
-  
32
-   }
21
+  onShow: function () {
22
+    var that = this;
23
+
24
+    if (that.data.navbarInitTop == 0) {
25
+
26
+      //获取节点距离顶部的距离
27
+      wx.createSelectorQuery().select('#navbar').boundingClientRect(function (rect) {
28
+        if (rect && rect.top > 0) {
29
+          var navbarInitTop = parseInt(rect.top);
30
+          that.setData({
31
+            navbarInitTop: navbarInitTop
32
+          });
33
+        }
34
+      }).exec();
35
+
36
+    }
33
   },
37
   },
34
-  
38
+
35
   /**
39
   /**
36
    * 监听页面滑动事件
40
    * 监听页面滑动事件
37
    */
41
    */
38
-  onPageScroll: function(e) {
39
-   var that = this;
40
-   var scrollTop = parseInt(e.scrollTop); //滚动条距离顶部高度
41
-  
42
-   //判断'滚动条'滚动的距离 和 '元素在初始时'距顶部的距离进行判断
43
-   var isSatisfy = scrollTop >= that.data.navbarInitTop ? true : false;
44
-   //为了防止不停的setData, 这儿做了一个等式判断。 只有处于吸顶的临界值才会不相等
45
-   if (that.data.isFixedTop === isSatisfy) {
46
-    return false;
47
-   }
48
-  
49
-   that.setData({
50
-    isFixedTop: isSatisfy
51
-   });
42
+  onPageScroll: function (e) {
43
+    var that = this;
44
+    var scrollTop = parseInt(e.scrollTop); //滚动条距离顶部高度
45
+
46
+    //判断'滚动条'滚动的距离 和 '元素在初始时'距顶部的距离进行判断
47
+    var isSatisfy = scrollTop >= that.data.navbarInitTop ? true : false;
48
+    //为了防止不停的setData, 这儿做了一个等式判断。 只有处于吸顶的临界值才会不相等
49
+    if (that.data.isFixedTop === isSatisfy) {
50
+      return false;
51
+    }
52
+
53
+    that.setData({
54
+      isFixedTop: isSatisfy
55
+    });
56
+  },
57
+
58
+  touchHandler: function (e) {
59
+    console.log(ringChart.getCurrentDataIndex(e));
60
+  },
61
+  updateData: function () {
62
+    ringChart.updateData({
63
+      title: {
64
+        name: '80%'
65
+      },
66
+      subtitle: {
67
+        color: '#ff0000'
68
+      }
69
+    });
70
+  },
71
+  onReady: function (e) {
72
+    
73
+
74
+    ringChart = new wxCharts({
75
+      animation: false,
76
+      canvasId: 'ringCanvas',
77
+      type: 'ring',
78
+      extra: {
79
+        ringWidth: 8,
80
+        pie: {
81
+          offsetAngle: -90
82
+        }
83
+      },
84
+      title: {
85
+        name: '70',
86
+        color: '#000',
87
+        fontSize: 16
88
+      },
89
+      subtitle: {
90
+      },
91
+      series: [{
92
+        name: '',
93
+        data: 15,
94
+        stroke: false
95
+      }, {
96
+        name: '',
97
+        data: 35,
98
+        stroke: false
99
+      }],
100
+      disablePieStroke: true,
101
+      width: 100,
102
+      height: 100,
103
+      dataLabel: false,
104
+      legend: false,
105
+      background: '#f5f5f5',
106
+      padding: 0,
107
+      yAxisWidth: 0,
108
+      yAxisSplit: 0,
109
+      xAxisHeight: 0,
110
+      xAxisLineHeight: 0,
111
+      legendHeight: 0,
112
+      yAxisTitleWidth: 0,
113
+    });
114
+    
52
   }
115
   }
53
- })
54
- 
116
+})

+ 4 - 1
pages/index/test.wxml

@@ -1,4 +1,7 @@
1
-<view style="width: 90%; height: 300rpx; background: #f0f0f0; margin: 30rpx auto;"></view>
1
+
2
+<view style="width: 90%; height: 300rpx; background: #f0f0f0; margin: 30rpx auto;">
3
+  <canvas canvas-id="ringCanvas" class="canvas" bindtouchstart="touchHandler"></canvas>
4
+</view>
2
 <view class="navbar-wrap">
5
 <view class="navbar-wrap">
3
  <view class="column {{isFixedTop?'fixed':''}}" id="navbar">
6
  <view class="column {{isFixedTop?'fixed':''}}" id="navbar">
4
   <view class="block active">新品推荐</view>
7
   <view class="block active">新品推荐</view>

+ 5 - 1
pages/index/test.wxss

@@ -27,4 +27,8 @@ view, text {
27
 
27
 
28
   border-bottom: solid 1rpx #1e1e1e;
28
   border-bottom: solid 1rpx #1e1e1e;
29
  }
29
  }
30
-  
30
+  
31
+ .canvas{
32
+   width:160rpx;
33
+   height:160rpx;
34
+ }

+ 7 - 7
pages/main/cardmain.js

@@ -24,13 +24,13 @@ Page({
24
       IsShow: isshow,
24
       IsShow: isshow,
25
     });
25
     });
26
 
26
 
27
-    var year = new Date(app.globalData.userInfo.CreateTime).getFullYear();
28
-    //console.log(year);
29
-    if (new Date().getFullYear()>=2023 && year<2023){
30
-      that.setData({
31
-        IsYearReport: true,
32
-      });
33
-    }
27
+    // var year = new Date(app.globalData.userInfo.CreateTime).getFullYear();
28
+    // //console.log(year);
29
+    // if (new Date().getFullYear()>=2023 && year<2023){
30
+    //   that.setData({
31
+    //     IsYearReport: true,
32
+    //   });
33
+    // }
34
 
34
 
35
     canPress=true;
35
     canPress=true;
36
 
36
 

+ 2 - 20
pages/main/default.js

@@ -56,6 +56,8 @@ Page({
56
   },
56
   },
57
   onShow: function () {
57
   onShow: function () {
58
     var that = this;
58
     var that = this;
59
+    //debugger;
60
+
59
     if (app.globalData.userInfo.IsNewUser && app.globalData.userInfo.IsNewUser == 1 && app.globalData.userInfo.isShow == 1) {
61
     if (app.globalData.userInfo.IsNewUser && app.globalData.userInfo.IsNewUser == 1 && app.globalData.userInfo.isShow == 1) {
60
       if (app.globalData.userInfo.Subscribe == 0) {
62
       if (app.globalData.userInfo.Subscribe == 0) {
61
         wx.navigateTo({
63
         wx.navigateTo({
@@ -202,10 +204,6 @@ Page({
202
         wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
204
         wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
203
       }
205
       }
204
 
206
 
205
-      if (url == "../plan/studyplan" && this.data.DayNumber <= app.globalData.IsShowSettingRemind) {
206
-        wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
207
-      }
208
-
209
       canPress=false;
207
       canPress=false;
210
       //console.log("canPress:"+canPress);
208
       //console.log("canPress:"+canPress);
211
       setTimeout(function(){
209
       setTimeout(function(){
@@ -237,22 +235,6 @@ Page({
237
             IsStart: data.IsStart,
235
             IsStart: data.IsStart,
238
           });
236
           });
239
 
237
 
240
-
241
-
242
-          //是否显示提示任务量设置
243
-          if (that.data.DayNumber <= app.globalData.IsShowSettingRemind) {
244
-            var IsShowSettingRemind = wx.getStorageSync("IsShowSettingRemind");
245
-            if (!IsShowSettingRemind || IsShowSettingRemind < that.data.DayNumber) {
246
-              that.setData({
247
-                IsShowSettingRemind: 1,
248
-              });
249
-            } else {
250
-              that.setData({
251
-                IsShowSettingRemind: 0,
252
-              });
253
-            }
254
-          }
255
-
256
           //判断是否出现推广广告
238
           //判断是否出现推广广告
257
           common.getStorageValue(that, "IsShowMarketingTime", "2020-01-01 00:00:00", function () {
239
           common.getStorageValue(that, "IsShowMarketingTime", "2020-01-01 00:00:00", function () {
258
             if (that.data.IsShowMarketingTime < common.formatTime(new Date())) {
240
             if (that.data.IsShowMarketingTime < common.formatTime(new Date())) {

+ 0 - 1
pages/main/default.wxml

@@ -16,7 +16,6 @@
16
     <image class="icon_nextpage_2" src="../images/icon_nextpage_2.png" ></image>
16
     <image class="icon_nextpage_2" src="../images/icon_nextpage_2.png" ></image>
17
   </view>
17
   </view>
18
 
18
 
19
-  <image class="message_practise_index_01{{IsIPad}}" src='../images/message_practise_index_01.png' wx:if="{{IsShowSettingRemind}}" />
20
   <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_start.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
19
   <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_start.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
21
   <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_goon.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
20
   <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_goon.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
22
   <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_report.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
21
   <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_report.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />

+ 0 - 13
pages/main/default.wxss

@@ -41,19 +41,6 @@ page{
41
   margin-top: 60rpx;
41
   margin-top: 60rpx;
42
 }
42
 }
43
 
43
 
44
-.message_practise_index_01{
45
-  width: 460rpx;
46
-  height: 143rpx;
47
-  position: fixed;
48
-  top:374rpx;
49
-}
50
-
51
-.message_practise_index_01_iPad{
52
-  width: 460rpx;
53
-  height: 143rpx;
54
-  position: fixed;
55
-  top:270rpx;
56
-}
57
 
44
 
58
 .study_index_start {
45
 .study_index_start {
59
   width: 480rpx;
46
   width: 480rpx;

+ 4 - 1
pages/main/detail.js

@@ -979,7 +979,7 @@ Page({
979
             title: '提醒',
979
             title: '提醒',
980
             showCancel: false,
980
             showCancel: false,
981
             confirmText: '知道了',
981
             confirmText: '知道了',
982
-            content: "也许您已经发现「报告」上的数据有些异样。这是由于本次练习从昨天开始到今天结束,发生了「跨天」的情况。虽然报告内容不够正确,但练习数据不会受到影响,这个问题将在日后得到改善。请不用担心。"
982
+            content: "也许您已经发现「报告」上的数据有些异样。这可能是由于本次练习从昨天开始到今天结束,发生了「跨天」的情况,也可能是其他异常情况。虽然报告内容不够正确,但练习数据不会受到影响,这个问题将在日后得到改善。请不用担心。"
983
           });
983
           });
984
         }
984
         }
985
       }
985
       }
@@ -1464,6 +1464,9 @@ Page({
1464
     }
1464
     }
1465
     timeoutEveryCard=[];
1465
     timeoutEveryCard=[];
1466
   },
1466
   },
1467
+  resetTodayTask:function(){
1468
+    main.ResetTodayTask();
1469
+  },
1467
   //获取导航栏高度
1470
   //获取导航栏高度
1468
   getBarInfo(e) {
1471
   getBarInfo(e) {
1469
     var h = e.detail.topBarHeight;
1472
     var h = e.detail.topBarHeight;

+ 2 - 2
pages/main/detail.wxml

@@ -216,10 +216,10 @@
216
           </view>
216
           </view>
217
         </view>
217
         </view>
218
       </view>
218
       </view>
219
-      <view class="panelLastTime4 FlexRow" catchtap="goto" data-url="../plan/setting?Type=ShowReset">
219
+      <view class="panelLastTime4 FlexRow" catchtap="resetTodayTask" >
220
         <view class="panelLastTime41 FlexRow">
220
         <view class="panelLastTime41 FlexRow">
221
           <image src="../images/icon_reload_1.png" class='icon_reload_1' />
221
           <image src="../images/icon_reload_1.png" class='icon_reload_1' />
222
-          <view>重置今天的任务</view>
222
+          <view>重置今天的任务</view>
223
         </view>
223
         </view>
224
         <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
224
         <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
225
       </view>
225
       </view>

+ 2 - 2
pages/plan/studyplandetail.js

@@ -115,7 +115,7 @@ Page({
115
           CardMaxNumberNewIndex: that.data.CardMaxNumberNew,
115
           CardMaxNumberNewIndex: that.data.CardMaxNumberNew,
116
         });
116
         });
117
       });
117
       });
118
-      common.getStorageValue(that, "CardMaxNumberHistory", 100, function () {
118
+      common.getStorageValue(that, "CardMaxNumberHistory", 40, function () {
119
         that.setData({
119
         that.setData({
120
           CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - historyLimitMax,
120
           CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - historyLimitMax,
121
         });
121
         });
@@ -132,7 +132,7 @@ Page({
132
           CardMaxNumberNewIndex: that.data.CardMaxNumberNewUrgent,
132
           CardMaxNumberNewIndex: that.data.CardMaxNumberNewUrgent,
133
         });
133
         });
134
       });
134
       });
135
-      common.getStorageValue(that, "CardMaxNumberHistoryUrgent", 100, function () {
135
+      common.getStorageValue(that, "CardMaxNumberHistoryUrgent", 40, function () {
136
         that.setData({
136
         that.setData({
137
           CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistoryUrgent - historyLimitMax,
137
           CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistoryUrgent - historyLimitMax,
138
         });
138
         });

+ 1 - 1
pages/plan/taskBasic.js

@@ -61,7 +61,7 @@ Page({
61
 
61
 
62
     wx.showLoading();
62
     wx.showLoading();
63
     common.getStorageValue(that, "CardMaxNumberNew", 10, function () {
63
     common.getStorageValue(that, "CardMaxNumberNew", 10, function () {
64
-      common.getStorageValue(that, "CardMaxNumberHistory", 100, function () {
64
+      common.getStorageValue(that, "CardMaxNumberHistory", 40, function () {
65
         common.getStorageValue(that, "BasicCardLimit", 0, function () {
65
         common.getStorageValue(that, "BasicCardLimit", 0, function () {
66
           var basicCardLimit=that.data.BasicCardLimit;
66
           var basicCardLimit=that.data.BasicCardLimit;
67
           if (!basicCardLimit)
67
           if (!basicCardLimit)

+ 6 - 0
pages/plan/taskBasic.wxss

@@ -430,4 +430,10 @@ page {
430
 .mg4_iconNext_1{
430
 .mg4_iconNext_1{
431
   width:14rpx;
431
   width:14rpx;
432
   height:20rpx;
432
   height:20rpx;
433
+}
434
+
435
+.canvas{
436
+  width:100rpx;
437
+  height:100rpx;
438
+  margin: -1rpx 0 0 -1rpx;
433
 }
439
 }

文件差異過大導致無法顯示
+ 2053 - 0
pages/template/wxcharts-min.js


+ 2 - 2
project.private.config.json

@@ -37,8 +37,8 @@
37
           "scene": null
37
           "scene": null
38
         },
38
         },
39
         {
39
         {
40
-          "name": "pages/plan/taskFull",
41
-          "pathName": "pages/plan/taskFull",
40
+          "name": "pages/index/test",
41
+          "pathName": "pages/index/test",
42
           "query": "",
42
           "query": "",
43
           "launchMode": "default",
43
           "launchMode": "default",
44
           "scene": null
44
           "scene": null