chengjie лет назад: 6
Родитель
Сommit
5f024377a2

BIN
pages/images/universalpic_indicator_right_gray.png


+ 2 - 0
pages/index/accredit.js

@@ -12,6 +12,8 @@ Page({
12
     this.setData({
12
     this.setData({
13
       Containnerheight: common.getSystemHeight(),
13
       Containnerheight: common.getSystemHeight(),
14
     });
14
     });
15
+
16
+    wx.hideShareMenu();
15
   },
17
   },
16
   onUnload: function () {
18
   onUnload: function () {
17
 
19
 

+ 1 - 0
pages/index/index.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function (options) {
9
   onLoad: function (options) {
10
+    wx.hideShareMenu();
10
     if (options) {
11
     if (options) {
11
       if (options.UserID) {
12
       if (options.UserID) {
12
         console.log("UserID:" + options.UserID);
13
         console.log("UserID:" + options.UserID);

+ 6 - 0
pages/main/add.js

@@ -11,6 +11,7 @@ Page({
11
     IsShowRemind2: false,
11
     IsShowRemind2: false,
12
   },
12
   },
13
   onLoad: function (options) {
13
   onLoad: function (options) {
14
+    wx.hideShareMenu();
14
     var that = this;
15
     var that = this;
15
     that.setData({
16
     that.setData({
16
       Containnerheight: main.getWindowHeight(),
17
       Containnerheight: main.getWindowHeight(),
@@ -162,6 +163,11 @@ Page({
162
           if (that.data.UpdateType == "add2") {
163
           if (that.data.UpdateType == "add2") {
163
             that.initAddCard();
164
             that.initAddCard();
164
           }
165
           }
166
+
167
+          var taskToday = wx.getStorageSync("TaskToday");
168
+          taskToday.CardNumber++;
169
+          wx.setStorageSync("TaskToday", taskToday);
170
+
165
           that.saveNewData();
171
           that.saveNewData();
166
         }
172
         }
167
       });
173
       });

+ 1 - 0
pages/main/addItem.js

@@ -14,6 +14,7 @@ Page({
14
     BtnArray: ["+", "-", "×", "÷", "="],
14
     BtnArray: ["+", "-", "×", "÷", "="],
15
   },
15
   },
16
   onLoad: function (options) {
16
   onLoad: function (options) {
17
+    wx.hideShareMenu();
17
     var id = options.id;
18
     var id = options.id;
18
     var fieldid = options.fieldid;
19
     var fieldid = options.fieldid;
19
     // var card={};
20
     // var card={};

+ 1 - 0
pages/main/cardInfo.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function (options) {
9
   onLoad: function (options) {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
       Containnerheight: main.getWindowHeight(),
13
       Containnerheight: main.getWindowHeight(),

+ 6 - 2
pages/main/default.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function () {
9
   onLoad: function () {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
       Containnerheight: main.getWindowHeight(),
13
       Containnerheight: main.getWindowHeight(),
@@ -17,8 +18,10 @@ Page({
17
 
18
 
18
     common.getStorageValue(that, "CardMaxNumberNew", 10, function () {
19
     common.getStorageValue(that, "CardMaxNumberNew", 10, function () {
19
       common.getStorageValue(that, "CardMaxNumberHistory", 30, function () {
20
       common.getStorageValue(that, "CardMaxNumberHistory", 30, function () {
20
-        that.getList();
21
-        wx.stopPullDownRefresh();
21
+        common.getStorageValue(that, "SortTypeIndex", 0, function () {
22
+          that.getList();
23
+          wx.stopPullDownRefresh();
24
+        });
22
       });
25
       });
23
     });
26
     });
24
 
27
 
@@ -51,6 +54,7 @@ Page({
51
     var url = 'GetMiaoguoCardToday?UserID=' + app.globalData.userInfo.UserID;
54
     var url = 'GetMiaoguoCardToday?UserID=' + app.globalData.userInfo.UserID;
52
     url += "&New=" + this.data.CardMaxNumberNew;
55
     url += "&New=" + this.data.CardMaxNumberNew;
53
     url += "&History=" + this.data.CardMaxNumberHistory;
56
     url += "&History=" + this.data.CardMaxNumberHistory;
57
+    url += "&SortTypeIndex=" + this.data.SortTypeIndex;
54
 
58
 
55
     main.getData(url, function (data) {
59
     main.getData(url, function (data) {
56
       if (data) {
60
       if (data) {

+ 5 - 22
pages/main/detail.js

@@ -20,6 +20,7 @@ Page({
20
     IsShowNumberInfo: false,
20
     IsShowNumberInfo: false,
21
   },
21
   },
22
   onLoad: function () {
22
   onLoad: function () {
23
+    wx.hideShareMenu();
23
     var that = this;
24
     var that = this;
24
     that.setData({
25
     that.setData({
25
       Containnerheight: main.getWindowHeight(),
26
       Containnerheight: main.getWindowHeight(),
@@ -65,7 +66,6 @@ Page({
65
     }
66
     }
66
   },
67
   },
67
   onPullDownRefresh: function () {
68
   onPullDownRefresh: function () {
68
-    this.gotoEdit(1);
69
   },
69
   },
70
   setSoundFile: function (isFinish) {//isFinish=1 结束 =0正常 =-1开始
70
   setSoundFile: function (isFinish) {//isFinish=1 结束 =0正常 =-1开始
71
     var that = this;
71
     var that = this;
@@ -240,33 +240,16 @@ Page({
240
       url: './add'
240
       url: './add'
241
     });
241
     });
242
   },
242
   },
243
-  onMore: function () {
244
-    var that = this;
245
-    wx.showActionSheet({
246
-      itemList: ["详细信息", "编辑笔记"],
247
-      success(res) {
248
-        that.gotoEdit(res.tapIndex);
249
-      },
250
-    })
251
-  },
252
-  gotoEdit:function(tapIndex){
243
+  gotoEdit:function(){
253
     var that = this;
244
     var that = this;
254
     //console.log(res.tapIndex);
245
     //console.log(res.tapIndex);
255
     var list = [];
246
     var list = [];
256
     that.data.TaskList[0].MiaoguoCardID = that.data.TaskList[0].ID;
247
     that.data.TaskList[0].MiaoguoCardID = that.data.TaskList[0].ID;
257
     list.push(that.data.TaskList[0]);
248
     list.push(that.data.TaskList[0]);
258
     wx.setStorageSync("CardList", list);
249
     wx.setStorageSync("CardList", list);
259
-
260
-    if (tapIndex == 0) {
261
-      wx.navigateTo({
262
-        url: './cardInfo?id=' + that.data.TaskList[0].MiaoguoCardID,
263
-      });
264
-    }
265
-    else if (tapIndex == 1) {
266
-      wx.navigateTo({
267
-        url: './add?type=edit&id=' + that.data.TaskList[0].MiaoguoCardID,
268
-      });
269
-    }
250
+    wx.navigateTo({
251
+      url: './add?type=edit&id=' + that.data.TaskList[0].MiaoguoCardID,
252
+    });
270
   },
253
   },
271
   onFontSize:function(){
254
   onFontSize:function(){
272
     for(var i=0;i<arrFontSize.length;i++){
255
     for(var i=0;i<arrFontSize.length;i++){

+ 19 - 11
pages/main/detail.wxml

@@ -1,28 +1,36 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight-50}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight-50}}rpx;'>
2
   <view class='panelTop FlexRow'>
2
   <view class='panelTop FlexRow'>
3
-    <view class='panelCancel' wx:if="{{CanUndo==0}}">
3
+    <view class='panelCancel' wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
4
     </view>
4
     </view>
5
-    <view class='panelCancel FlexRow' bindtap='gotoPrev' wx:if="{{CanUndo==1}}">
6
-      <image src="../images/universalpic_undo_white_20x28.png" class='universalpic_undo_white_20x28' />
5
+    <view class='panelCancel' wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
7
     </view>
6
     </view>
8
-    <view class='panelCancel1 panelCancel FlexRow' bindtap='gotoNext' data-time="1d" data-btnnumber="1" wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
9
-      <image src="../images/universalpic_shelve_white_30x14.png" class='universalpic_shelve_white_30x14' />
7
+    
8
+    <view class='panelCancel FlexRow' bindtap='onFontSize' wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
9
+      <image src="../images/universalpic_typesize_white_30x18.png" class='universalpic_typesize_white_30x18' />
10
+    </view>
11
+    <view class='panelCancel FlexRow' bindtap='gotoEdit' wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
12
+      <image src="../images/universalpic_more_white_32x8.png" class='universalpic_more_white_32x8' />
10
     </view>
13
     </view>
14
+
11
     <view class='panelNumber FlexRow' bindtap='showNumberContainner'>
15
     <view class='panelNumber FlexRow' bindtap='showNumberContainner'>
12
       <view class="panelNumber1">{{NumberNew}}</view>
16
       <view class="panelNumber1">{{NumberNew}}</view>
13
       <view class="panelNumber1">{{NumberHistory}}</view>
17
       <view class="panelNumber1">{{NumberHistory}}</view>
14
       <view class="panelNumber1">{{NumberReview}}</view>
18
       <view class="panelNumber1">{{NumberReview}}</view>
15
       <view class="panelNumber2 panelNumber1">{{NumberNew+NumberReview+NumberHistory}}</view>
19
       <view class="panelNumber2 panelNumber1">{{NumberNew+NumberReview+NumberHistory}}</view>
16
     </view>
20
     </view>
17
-    <view class='panelCancel2 panelCancel FlexRow' bindtap='onFontSize' wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
18
-      <image src="../images/universalpic_typesize_white_30x18.png" class='universalpic_typesize_white_30x18' />
19
-    </view>
20
-    <view class='panelCancel FlexRow' bindtap='onMore' wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
21
-      <image src="../images/universalpic_more_white_32x8.png" class='universalpic_more_white_32x8' />
21
+    <view class='panelCancel FlexRow' bindtap='gotoNext' data-time="1d" data-btnnumber="1" wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
22
+      <image src="../images/universalpic_shelve_white_30x14.png" class='universalpic_shelve_white_30x14' />
22
     </view>
23
     </view>
23
-
24
     <view class='panelCancel' wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
24
     <view class='panelCancel' wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
25
     </view>
25
     </view>
26
+    
27
+    <view class='panelCancel FlexRow' bindtap='gotoPrev' wx:if="{{CanUndo==1}}">
28
+      <image src="../images/universalpic_undo_white_20x28.png" class='universalpic_undo_white_20x28' />
29
+    </view>
30
+    
31
+    <view class='panelCancel' wx:if="{{CanUndo==0}}">
32
+    </view>
33
+    
26
   </view>
34
   </view>
27
 
35
 
28
   <!-- 练习页 -->
36
   <!-- 练习页 -->

+ 2 - 8
pages/main/detail.wxss

@@ -14,21 +14,14 @@
14
   font-size: 20rpx;
14
   font-size: 20rpx;
15
   z-index: 10;
15
   z-index: 10;
16
   background-color: #a5656e;
16
   background-color: #a5656e;
17
-  justify-content: space-between;
18
 }
17
 }
19
 
18
 
20
 .panelCancel {
19
 .panelCancel {
21
   width: 100rpx;
20
   width: 100rpx;
22
   height: 110rpx;
21
   height: 110rpx;
22
+  margin: 0 5rpx;
23
 }
23
 }
24
 
24
 
25
-.panelCancel1 {
26
-  margin: 0 36rpx 0 10rpx;
27
-}
28
-
29
-.panelCancel2 {
30
-  margin: 0 10rpx 0 36rpx;
31
-}
32
 
25
 
33
 .universalpic_undo_white_20x28 {
26
 .universalpic_undo_white_20x28 {
34
   width: 17rpx;
27
   width: 17rpx;
@@ -56,6 +49,7 @@
56
 .panelNumber {
49
 .panelNumber {
57
   width: 218rpx;
50
   width: 218rpx;
58
   height: 120rpx;
51
   height: 120rpx;
52
+  margin: 0 31rpx;
59
 }
53
 }
60
 
54
 
61
 .panelNumber1 {
55
 .panelNumber1 {

+ 13 - 2
pages/main/preview.js

@@ -7,6 +7,8 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function (options) {
9
   onLoad: function (options) {
10
+    wx.hideShareMenu();
11
+    
10
     var that = this;
12
     var that = this;
11
     var id = 0;
13
     var id = 0;
12
     if (options.id)
14
     if (options.id)
@@ -180,9 +182,18 @@ Page({
180
     });
182
     });
181
   },
183
   },
182
   onShareAppMessage: function () {
184
   onShareAppMessage: function () {
185
+    var that=this;
186
+    this.setData({
187
+      ShowType:'preview'
188
+    });
189
+    setTimeout(function(){
190
+      that.setData({
191
+        ShowType: 'show'
192
+      });
193
+    },1000);
183
     return {
194
     return {
184
-      title: app.globalData.ShareTitle,
185
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
195
+      title: '分享题卡',
196
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&type=sharecard&id=' + this.data.MiaoguoCardID,
186
       imageUrl: app.globalData.ShareImage,
197
       imageUrl: app.globalData.ShareImage,
187
     }
198
     }
188
   },
199
   },

+ 2 - 1
pages/main/preview.wxml

@@ -74,7 +74,8 @@
74
     <view class='btn1 FlexRow' bindtap="onPreview" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
74
     <view class='btn1 FlexRow' bindtap="onPreview" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
75
       <image class="universalpic_prev_black_30x30" src='../images/universalpic_prev_black_30x30.png' />
75
       <image class="universalpic_prev_black_30x30" src='../images/universalpic_prev_black_30x30.png' />
76
     </view>
76
     </view>
77
-    <view class='btn1 FlexRow' bindtap="onMore" >
77
+    <button class="btn2" open-type='share'>共享给大家</button>
78
+    <view class='btn2 FlexRow' bindtap="onMore" >
78
       <image class="universalpic_more_40x10" src='../images/universalpic_more_40x10.png' />
79
       <image class="universalpic_more_40x10" src='../images/universalpic_more_40x10.png' />
79
     </view>
80
     </view>
80
     <view class='btn1 FlexRow' bindtap="onPreview" data-id="{{NextID}}" wx:if="{{NextID>0}}">
81
     <view class='btn1 FlexRow' bindtap="onPreview" data-id="{{NextID}}" wx:if="{{NextID>0}}">

+ 23 - 5
pages/main/preview.wxss

@@ -41,6 +41,7 @@
41
   min-height: 320rpx;
41
   min-height: 320rpx;
42
   justify-content: flex-start;
42
   justify-content: flex-start;
43
 }
43
 }
44
+
44
 .panelField11 {
45
 .panelField11 {
45
   width: 100%;
46
   width: 100%;
46
   font-size: 68rpx;
47
   font-size: 68rpx;
@@ -48,7 +49,6 @@
48
   margin: 60rpx 0 80rpx 0;
49
   margin: 60rpx 0 80rpx 0;
49
 }
50
 }
50
 
51
 
51
-
52
 .panelItem {
52
 .panelItem {
53
   width: 650rpx;
53
   width: 650rpx;
54
   font-weight: 400;
54
   font-weight: 400;
@@ -148,15 +148,33 @@
148
   justify-content: space-between;
148
   justify-content: space-between;
149
 }
149
 }
150
 
150
 
151
-.btn1{
152
-  width:150rpx;
153
-  height:120rpx;
151
+.btn1 {
152
+  width: 150rpx;
153
+  height: 120rpx;
154
 }
154
 }
155
+
156
+.btn2 {
157
+  width: 225rpx;
158
+  height: 120rpx;
159
+  font-size: 28rpx;
160
+  color: #0071ef;
161
+  line-height: 120rpx;
162
+  text-align: center;
163
+  padding-left: 0;
164
+  padding-right: 0;
165
+  background-color: #fff;
166
+}
167
+
168
+.btn2::after {
169
+  border: 0px;
170
+}
171
+
155
 .universalpic_prev_black_30x30 {
172
 .universalpic_prev_black_30x30 {
156
   width: 28rpx;
173
   width: 28rpx;
157
   height: 26rpx;
174
   height: 26rpx;
158
 }
175
 }
159
-.universalpic_more_40x10{
176
+
177
+.universalpic_more_40x10 {
160
   width: 40rpx;
178
   width: 40rpx;
161
   height: 10rpx;
179
   height: 10rpx;
162
 }
180
 }

+ 7 - 0
pages/main/searchCard.js

@@ -7,11 +7,18 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function () {
9
   onLoad: function () {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
       Containnerheight: main.getWindowHeight(),
13
       Containnerheight: main.getWindowHeight(),
13
     });
14
     });
14
   },
15
   },
16
+  onShow:function(){
17
+    var taskToday=wx.getStorageSync("TaskToday");
18
+    this.setData({
19
+      CardNumber: taskToday.CardNumber,
20
+    })
21
+  },
15
   gotoDefault:function(){
22
   gotoDefault:function(){
16
     wx.redirectTo({
23
     wx.redirectTo({
17
       url: './default',
24
       url: './default',

+ 1 - 1
pages/main/searchCard.wxml

@@ -9,7 +9,7 @@
9
   <view class='panelBtn FlexRow'>
9
   <view class='panelBtn FlexRow'>
10
     <view class='text1 FlexRow' bindtap="getList" data-id="0">
10
     <view class='text1 FlexRow' bindtap="getList" data-id="0">
11
       <view>全部笔记</view>
11
       <view>全部笔记</view>
12
-      <!-- <view class="text2">127</view> -->
12
+      <view class="text2">{{CardNumber}}</view>
13
     </view>
13
     </view>
14
     <view class='line1'></view>
14
     <view class='line1'></view>
15
     <view class='text1' bindtap="getList" data-id="1">今日的任务</view>
15
     <view class='text1' bindtap="getList" data-id="1">今日的任务</view>

+ 1 - 0
pages/main/searchCard1.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function () {
9
   onLoad: function () {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
       Containnerheight: main.getWindowHeight(),
13
       Containnerheight: main.getWindowHeight(),

+ 32 - 1
pages/main/searchCardList.js

@@ -7,21 +7,32 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function (options) {
9
   onLoad: function (options) {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
-      Containnerheight: main.getWindowHeight(),
13
+      
13
     });
14
     });
14
 
15
 
16
+    var Search="",IsToday=0;
17
+
15
     if (options.search) {
18
     if (options.search) {
19
+      Search=options.search;
16
       wx.setNavigationBarTitle({
20
       wx.setNavigationBarTitle({
17
         title: options.search
21
         title: options.search
18
       });
22
       });
19
     } 
23
     } 
20
     else if (options.type==1) {
24
     else if (options.type==1) {
25
+      IsToday = 1;
21
       wx.setNavigationBarTitle({
26
       wx.setNavigationBarTitle({
22
         title: "今日的任务"
27
         title: "今日的任务"
23
       });
28
       });
24
     }
29
     }
30
+
31
+    that.setData({
32
+      Search: Search,
33
+      IsToday: IsToday,
34
+      Containnerheight: main.getWindowHeight(),
35
+    });
25
   },
36
   },
26
   onPullDownRefresh:function(){
37
   onPullDownRefresh:function(){
27
     var that = this;
38
     var that = this;
@@ -95,6 +106,26 @@ Page({
95
       url: './preview?type=show&id='+id,
106
       url: './preview?type=show&id='+id,
96
     })
107
     })
97
   },
108
   },
109
+  gotoNextPage: function (e) {
110
+    var id = e.currentTarget.dataset.id;
111
+    
112
+    var that = this;
113
+    var url = 'GetMiaoguoCard?UserID=' + app.globalData.userInfo.UserID+"&IsToday="+that.data.IsToday + "&PageID=" + id;
114
+    if (that.data.Search)
115
+      url += "&Key=" + that.data.Search;
116
+
117
+    main.getData(url, function (data) {
118
+      if (data) {
119
+
120
+        var list = wx.getStorageSync("CardList");
121
+        for(var i=0;i<data.length;i++){
122
+          list.push(data[i]);
123
+        }
124
+        wx.setStorageSync("CardList", list);
125
+        that.getList();
126
+      }
127
+    });
128
+  },
98
   onShareAppMessage: function () {
129
   onShareAppMessage: function () {
99
     return {
130
     return {
100
       title: app.globalData.ShareTitle,
131
       title: app.globalData.ShareTitle,

+ 7 - 0
pages/main/searchCardList.wxml

@@ -18,7 +18,14 @@
18
         </view>
18
         </view>
19
       </view>
19
       </view>
20
     </block>
20
     </block>
21
+    <view class="lineWidthAll FlexRow" wx:if="{{List.length % 20 ==0}}">
22
+      <view class="lineWidth750"></view>
23
+    </view>
24
+    <view class='panelItem3 panelItem FlexRow' wx:if="{{List.length % 20 ==0}}" bindtap='gotoNextPage' data-id="{{List[List.length-1].MiaoguoCardID}}">
25
+      <view class="more">更多</view>
26
+    </view>
21
     <view class='lineFooter'></view>
27
     <view class='lineFooter'></view>
28
+
22
     <view style='width:100%;height:100rpx;'></view>
29
     <view style='width:100%;height:100rpx;'></view>
23
   </block>
30
   </block>
24
 
31
 

+ 10 - 0
pages/main/searchCardList.wxss

@@ -56,4 +56,14 @@
56
   font-size:24rpx;
56
   font-size:24rpx;
57
   color:#787878;
57
   color:#787878;
58
   font-weight: 400;
58
   font-weight: 400;
59
+}
60
+
61
+.panelItem3 {
62
+  justify-content: center;
63
+  height:100rpx;
64
+}
65
+
66
+.more{
67
+  font-size:28rpx;
68
+  color:#0071EF;
59
 }
69
 }

+ 1 - 0
pages/main/searchWeb.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function () {
9
   onLoad: function () {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     
12
     
12
     that.setData({
13
     that.setData({

+ 1 - 0
pages/main/searchWeb1.js

@@ -7,6 +7,7 @@ Page({
7
   data: {
7
   data: {
8
   },
8
   },
9
   onLoad: function () {
9
   onLoad: function () {
10
+    wx.hideShareMenu();
10
     var that = this;
11
     var that = this;
11
     that.setData({
12
     that.setData({
12
       Containnerheight: main.getWindowHeight(),
13
       Containnerheight: main.getWindowHeight(),

+ 1 - 0
pages/main/searchWeb2.js

@@ -9,6 +9,7 @@ Page({
9
     CSS: {},
9
     CSS: {},
10
   },
10
   },
11
   onLoad: function (options) {
11
   onLoad: function (options) {
12
+    wx.hideShareMenu();
12
     var that = this;
13
     var that = this;
13
     that.setData({
14
     that.setData({
14
       Containnerheight: main.getWindowHeight(),
15
       Containnerheight: main.getWindowHeight(),

+ 23 - 1
pages/main/setting.js

@@ -2,12 +2,15 @@ import common from '../../utils/util';
2
 import main from '../../utils/main';
2
 import main from '../../utils/main';
3
 
3
 
4
 const app = getApp();
4
 const app = getApp();
5
+const arrSortType = ["以前落下的笔记", "近期到期的笔记"]
5
 
6
 
6
 Page({
7
 Page({
7
   data: {
8
   data: {
8
     CardNumber: [],
9
     CardNumber: [],
10
+    
9
   },
11
   },
10
   onLoad: function () {
12
   onLoad: function () {
13
+    wx.hideShareMenu();
11
     var that = this;
14
     var that = this;
12
 
15
 
13
     for (var i = 5; i <= 200; i++) {
16
     for (var i = 5; i <= 200; i++) {
@@ -20,7 +23,6 @@ Page({
20
       TimeSecond: 60,
23
       TimeSecond: 60,
21
     });
24
     });
22
 
25
 
23
-    
24
     common.getStorageValue(this, "CardMaxNumberNew", 10, function () {
26
     common.getStorageValue(this, "CardMaxNumberNew", 10, function () {
25
       that.setData({
27
       that.setData({
26
         CardMaxNumberNewIndex: that.data.CardMaxNumberNew - 5,
28
         CardMaxNumberNewIndex: that.data.CardMaxNumberNew - 5,
@@ -31,6 +33,11 @@ Page({
31
         CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - 5,
33
         CardMaxNumberHistoryIndex: that.data.CardMaxNumberHistory - 5,
32
       });
34
       });
33
     });
35
     });
36
+    common.getStorageValue(this, "SortTypeIndex", 0, function () {
37
+      that.setData({
38
+        SortType: arrSortType[that.data.SortTypeIndex],
39
+      });
40
+    });
34
 
41
 
35
   },
42
   },
36
   bindUpdateCardNumberNewMax: function (e) {
43
   bindUpdateCardNumberNewMax: function (e) {
@@ -49,6 +56,21 @@ Page({
49
     });
56
     });
50
     wx.setStorageSync("CardMaxNumberHistory", this.data.CardNumber[this.data.CardMaxNumberHistoryIndex]);
57
     wx.setStorageSync("CardMaxNumberHistory", this.data.CardNumber[this.data.CardMaxNumberHistoryIndex]);
51
   },
58
   },
59
+  setSortType:function(){
60
+    var that=this;
61
+    wx.showActionSheet({
62
+      itemList: arrSortType,
63
+      success(res) {
64
+        that.setData({
65
+          SortType: arrSortType[res.tapIndex],
66
+        });
67
+        wx.setStorageSync("SortTypeIndex", res.tapIndex);
68
+      },
69
+      fail(res) {
70
+        console.log(res.errMsg)
71
+      }
72
+    })
73
+  },
52
   onShareAppMessage: function () {
74
   onShareAppMessage: function () {
53
     return {
75
     return {
54
       title: app.globalData.ShareTitle,
76
       title: app.globalData.ShareTitle,

+ 13 - 27
pages/main/setting.wxml

@@ -11,7 +11,7 @@
11
           {{CardMaxNumberNew}}
11
           {{CardMaxNumberNew}}
12
         </view>
12
         </view>
13
       </picker>
13
       </picker>
14
-      <image src='../../images/Arrow.png' class="Arrow" />
14
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
15
     </view>
15
     </view>
16
   </view>
16
   </view>
17
   <view class="lineWidthAll FlexRow">
17
   <view class="lineWidthAll FlexRow">
@@ -25,37 +25,23 @@
25
           {{CardMaxNumberHistory}}
25
           {{CardMaxNumberHistory}}
26
         </view>
26
         </view>
27
       </picker>
27
       </picker>
28
-      <image src='../../images/Arrow.png' class="Arrow" />
28
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
29
     </view>
29
     </view>
30
   </view>
30
   </view>
31
-  <!-- <view class="lineWidthAll FlexRow">
32
-    <view class="lineWidth720"></view>
31
+  <view class='lineFooter'></view>
32
+  <view class="panelTitle FlexRow">
33
+    <view class="panelTitle1">练习内容</view>
34
+    <view class="panelTitle2"></view>
33
   </view>
35
   </view>
34
-  <view class="panelItem FlexRow">
35
-    <view class="panelItem1">秒过秒数</view>
36
+  <view class="panelItem FlexRow" bindtap='setSortType'>
37
+    <view class="panelItem1">优先选取</view>
36
     <view class="panelItem2 FlexRow">
38
     <view class="panelItem2 FlexRow">
37
-      <picker bindchange="bindUpdateCardNumberMax" value="{{CardMaxNumberIndex}}" range="{{CardNumber}}">
38
-        <view class="picker">
39
-          {{MinSecond}}
40
-        </view>
41
-      </picker>
42
-      <image src='../../images/Arrow.png' class="Arrow" />
39
+      <view class="picker">
40
+        {{SortType}}
41
+      </view>
42
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
43
     </view>
43
     </view>
44
   </view>
44
   </view>
45
-  <view class="lineWidthAll FlexRow">
46
-    <view class="lineWidth720"></view>
47
-  </view>
48
-  <view class="panelItem FlexRow">
49
-    <view class="panelItem1">时间提醒</view>
50
-    <view class="panelItem2 FlexRow">
51
-      <picker bindchange="bindUpdateCardNumberMax" value="{{CardMaxNumberIndex}}" range="{{CardNumber}}">
52
-        <view class="picker">
53
-          {{TimeSecond}}
54
-        </view>
55
-      </picker>
56
-      <image src='../../images/Arrow.png' class="Arrow" />
57
-    </view>
58
-  </view> -->
59
-  <view class='lineFooter'></view>
45
+
60
   <view style='height:350rpx'></view>
46
   <view style='height:350rpx'></view>
61
 </view>
47
 </view>