chengjie 5 년 전
부모
커밋
3752a66301

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "1.6.14",
3
+    Version: "1.6.18",
4 4
     IsProduction: true,
5 5
     ShareTitle: "高效学习从秒过开始",
6 6
     SharePath: "pages/index/index",

BIN
pages/images/universalpic_exmark_deepyellow_26x26.png


+ 14 - 7
pages/index/index.js

@@ -45,11 +45,18 @@ Page({
45 45
       if (options.scene) {
46 46
         var scene = decodeURIComponent(options.scene);
47 47
         console.log("scene:" + scene);
48
-        var introducer = 0;
49
-        if (scene.indexOf("UserID") >= 0)
50
-          introducer = scene.substr(scene.indexOf("UserID") + 7);
51
-        console.log("introducer:" + introducer);
52
-        app.globalData.introducer = scene;
48
+        if (scene.indexOf("type=print")>=0){
49
+          options.type="print";
50
+          options.PUserID=scene.substr(scene.indexOf("UserID") + 7);
51
+          options.PrintID=scene.substring(scene.indexOf("PrintID") + 8,scene.indexOf("&UserID"));
52
+        }
53
+        else{
54
+          var introducer = 0;
55
+          if (scene.indexOf("UserID") >= 0)
56
+            introducer = scene.substr(scene.indexOf("UserID") + 7);
57
+          console.log("introducer:" + introducer);
58
+          app.globalData.introducer = scene;
59
+        }
53 60
       }
54 61
 
55 62
       if (options.type == "share") {
@@ -134,10 +141,10 @@ Page({
134 141
           gotoUrl: "../other/pay?PayType=6&PayUserID="+options.PayUserID+"&DayNumber="+options.DayNumber+"&Price="+options.Price+"&Remark="+options.Remark,
135 142
         });
136 143
       }
137
-      else if (options.type == "paycontinue") {
144
+      else if (options.type == "print") {
138 145
         this.setData({
139 146
           gotoType: "other",
140
-          gotoUrl: "../other/pay?PayType=7&EndDate="+options.EndDate,
147
+          gotoUrl: "../main/searchCardList?PrintID="+options.PrintID,
141 148
         });
142 149
       }
143 150
     }

+ 15 - 6
pages/main/cardInfo.js

@@ -1,5 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
+import constant from '../../utils/constant';
3 4
 
4 5
 const app = getApp();
5 6
 
@@ -18,18 +19,26 @@ Page({
18 19
     var that = this;
19 20
     var card={};
20 21
     var list = app.globalData.CardList;
22
+    var arrStudyPlay=constant.arrStudyPlay;
21 23
     for (var i = 0; i < list.length; i++) {
22 24
       if (id == list[i].MiaoguoCardID) {
23 25
         card.CreateTimeStr = common.formatDateCHS(list[i].CreateTime);
24
-        card.FirstTimeStr = common.formatDateCHS(list[i].FirstTime);
25
-        if (!card.FirstTimeStr)
26
-          card.FirstTimeStr="无";
27
-        card.LastTimeStr = common.formatDateCHS(list[i].LastTime);
28
-        if (!card.LastTimeStr)
29
-          card.LastTimeStr="无";
30 26
         card.LimitTimeStr = common.formatDateCHS(list[i].LimitTime);
31 27
         card.LearnNumber = list[i].LearnNumber;
32 28
         card.CardID=id;
29
+        for(var j=0;j<arrStudyPlay.length;j++){
30
+          if (list[i].CardType==arrStudyPlay[j].CardType){
31
+            card.CardType=arrStudyPlay[j].Name;
32
+            break;
33
+          }
34
+        }
35
+        if (list[i].FirstTime=="1900-01-01 00:00:00"){
36
+          card.Status="新题卡";
37
+        }
38
+        else{
39
+          card.Status="旧题卡";
40
+        }
41
+
33 42
         break;
34 43
       }
35 44
     }

+ 15 - 7
pages/main/cardInfo.wxml

@@ -14,11 +14,10 @@
14 14
   </view>
15 15
   <view class="panelItem FlexRow">
16 16
     <view class="panelItem1 FlexColumn">
17
-      <view class="panelItem11">首次练习时间</view>
18
-      <text class="panelItem12">新题卡无时间</text>
17
+      <view class="panelItem11">学习计划</view>
19 18
     </view>
20 19
     <view class="panelItem2 FlexRow">
21
-      {{CardInfo.FirstTimeStr}}
20
+      {{CardInfo.CardType}}
22 21
     </view>
23 22
   </view>
24 23
   <view class="lineWidthAll FlexRow">
@@ -26,11 +25,20 @@
26 25
   </view>
27 26
   <view class="panelItem FlexRow">
28 27
     <view class="panelItem1 FlexColumn">
29
-      <view class="panelItem11">最近练习时间</view>
30
-      <text class="panelItem12">新题卡无时间</text>
28
+      <view class="panelItem11">题卡状态</view>
31 29
     </view>
32 30
     <view class="panelItem2 FlexRow">
33
-      {{CardInfo.LastTimeStr}}
31
+      {{CardInfo.Status}}
32
+    </view>
33
+  </view>
34
+  <view class="Remark FlexRow" wx:if="{{CardInfo.Status=='新题卡' && CardInfo.LearnNumber>0}}">
35
+    <view class="RemarkLine"></view>
36
+    <view class="Remark1 FlexRow">
37
+        <image src='../images/universalpic_exmark_deepyellow_26x26.png' class="universalpic_exmark_deepyellow_26x26" />
38
+        <view class="FlexColumn">
39
+        <text class="Remark11">题卡状态已发生改变,现在以新题卡的形式重新练习。</text>
40
+        <text class="Remark11">调整学习计划会使题卡状态发生改变,主要包括两种情况:将题卡从日常练习方案转入紧急练习方案;将题卡从留白区转入日常或紧急练习方案。</text>
41
+        </view>
34 42
     </view>
35 43
   </view>
36 44
   <view class="lineWidthAll FlexRow">
@@ -39,7 +47,7 @@
39 47
   <view class="panelItem0 panelItem FlexRow">
40 48
     <view class="panelItem1 FlexColumn">
41 49
       <view class="panelItem11">到期时间</view>
42
-      <text class="panelItem12">回想的最佳时机;受任务限量控制\n可能需要排队等待;留白题卡无时间</text>
50
+      <text class="panelItem12">预计下次练习的时间;实际情况\n根据任务限量的设置可能排队顺延</text>
43 51
     </view>
44 52
 
45 53
     <view class="panelItem2 FlexRow">

+ 30 - 0
pages/main/cardInfo.wxss

@@ -61,4 +61,34 @@
61 61
   width:16rpx;
62 62
   height:26rpx;
63 63
   margin-left: 30rpx;
64
+}
65
+
66
+.Remark{
67
+  width: 100%;
68
+  height:158rpx;
69
+  justify-content: flex-start;
70
+  background-color: #FCE8C5;
71
+}
72
+
73
+.RemarkLine{
74
+  width:10rpx;
75
+  height:156rpx;
76
+  background-color: #F5A623;
77
+}
78
+.Remark1{
79
+  height:156rpx;
80
+  justify-content: flex-start;
81
+}
82
+
83
+.universalpic_exmark_deepyellow_26x26{
84
+  width: 26rpx;
85
+  height:26rpx;
86
+  margin:0 20rpx;
87
+}
88
+
89
+.Remark11{
90
+  width: 644rpx;
91
+  font-size: 20rpx;
92
+  color:#694405;
93
+  margin:5rpx 0;
64 94
 }

+ 89 - 18
pages/main/default.js

@@ -40,6 +40,11 @@ Page({
40 40
       }
41 41
     }
42 42
 
43
+    wx.showShareMenu({
44
+      withShareTicket: true,
45
+      menus: ['shareAppMessage', 'shareTimeline']
46
+    })
47
+
43 48
   },
44 49
   onHide: function () {
45 50
     wx.hideLoading();
@@ -297,16 +302,30 @@ Page({
297 302
 
298 303
       that.setData({
299 304
         IsShowUserID: true,
300
-        ChangeuUserID:userid,
305
+        ChangeUserID:userid,
301 306
       });
302 307
     }
303 308
   },
304 309
   onKeyInput: function (e) {
305 310
     var id = e.detail.value;
311
+    var usertype = e.currentTarget.dataset.type;
312
+    
306 313
     var that = this;
307
-    that.setData({
308
-      ChangeuUserID: id,
309
-    });
314
+    if (usertype=="userid"){
315
+      that.setData({
316
+        ChangeUserID: id,
317
+      });
318
+    }
319
+    else if (usertype=="newuserid"){
320
+      that.setData({
321
+        ChangeNewUserID: id,
322
+      });
323
+    }
324
+    else if (usertype=="introduceruserid"){
325
+      that.setData({
326
+        ChangeIntroducerUserID: id,
327
+      });
328
+    }
310 329
   },
311 330
   setSelectUser: function (e) {
312 331
     var that = this;
@@ -314,31 +333,80 @@ Page({
314 333
       || app.globalData.userInfo.UserID == 2 
315 334
       || app.globalData.userInfo.UserID == 3 
316 335
       || app.globalData.userInfo.UserID == 4) {
317
-      var userid = that.data.ChangeuUserID;
336
+      var userid = that.data.ChangeUserID;
318 337
       wx.setStorageSync("UserID", userid);
319 338
       
320 339
       app.globalData.userInfo.UserID = userid;
321
-      var url = "GetMiaoguoWXUserInfo?UserID=" + app.globalData.userInfo.UserID + "&FieldStr=NickName,ProductServiceTime,AvatarUrl";
322
-      main.getData(url, function (data) {
323
-        if (data) {
324
-          wx.setNavigationBarTitle({
325
-            title: data.NickName
326
-          });
327
-          main.getUserConfig();
328
-          app.globalData.userInfo.ProductServiceTime=data.ProductServiceTime;
329
-          
330
-          if (app.globalData.userInfo.UserID!=2){
331
-            app.globalData.userInfo.NickName=data.NickName;
332
-            app.globalData.userInfo.AvatarUrl=data.AvatarUrl;
333
-          }
340
+      var fieldStr="&FieldStr=NickName,ProductServiceTime,AvatarUrl";
341
+      that.getUserInfo(userid,fieldStr,function(data){
342
+        wx.setNavigationBarTitle({
343
+          title: data.NickName
344
+        });
345
+        main.getUserConfig();
346
+        app.globalData.userInfo.ProductServiceTime=data.ProductServiceTime;
347
+        
348
+        if (app.globalData.userInfo.UserID!=2){
349
+          app.globalData.userInfo.NickName=data.NickName;
350
+          app.globalData.userInfo.AvatarUrl=data.AvatarUrl;
334 351
         }
335 352
       });
353
+      
336 354
       that.setData({
337 355
         IsShowUserID: false,
338 356
       });
339 357
       that.onShow();
340 358
     }
341 359
   },
360
+  getUserInfoFunction:function(e){
361
+    var that = this;
362
+    var userid=e.currentTarget.dataset.id;
363
+    var type1=e.currentTarget.dataset.type;
364
+    var fieldStr="&FieldStr=NickName,AvatarUrl";
365
+    if (userid){
366
+      that.getUserInfo(userid,fieldStr,function(data){
367
+        if (type1==1){
368
+          that.setData({
369
+            IntroducerAvatar: data.AvatarUrl,
370
+            IntroducerNickName: data.NickName,
371
+          });
372
+        }
373
+        else{
374
+          that.setData({
375
+            NewUserAvatar: data.AvatarUrl,
376
+            NewUserNickName: data.NickName,
377
+          });
378
+        }
379
+      });
380
+    }
381
+  },
382
+  getUserInfo:function(userID,fieldStr,callback){
383
+    var url = "GetMiaoguoWXUserInfo?UserID=" + userID + fieldStr;
384
+    main.getData(url, function (data) {
385
+      if (data) {
386
+        callback(data);
387
+      }
388
+    });
389
+  },
390
+  setUserIntroducer: function (e) {
391
+    var that = this;
392
+    if (that.data.ChangeNewUserID && that.data.ChangeIntroducerUserID){
393
+      if (app.globalData.userInfo.UserID == 1
394
+        || app.globalData.userInfo.UserID == 2 
395
+        || app.globalData.userInfo.UserID == 3 
396
+        || app.globalData.userInfo.UserID == 4) {
397
+          var url = "UpdateIntroducer?UserID=" + that.data.ChangeNewUserID + "&Introducer="+that.data.ChangeIntroducerUserID;
398
+          main.getData(url, function (data) {
399
+            that.setData({
400
+              ChangeNewUserID: null,
401
+              ChangeIntroducerUserID: null,
402
+            });
403
+            wx.showToast({
404
+              title: '介绍人更改成功',
405
+            })
406
+          });
407
+      }
408
+    }
409
+  },
342 410
   onShareAppMessage: function () {
343 411
     return {
344 412
       title: app.globalData.ShareTitle,
@@ -346,4 +414,7 @@ Page({
346 414
       imageUrl: app.globalData.ShareImage,
347 415
     }
348 416
   },
417
+  onShareTimeline: function () {
418
+    return this.onShareAppMessage();
419
+  },
349 420
 })

+ 24 - 4
pages/main/default.wxml

@@ -68,16 +68,36 @@
68 68
 </view>
69 69
 
70 70
 <view wx:if="{{IsExit}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
71
-  <view class='IsExitText'>请关闭微信(务必),竖起屏幕,再打开秒过学习小程序</view>
72
-  <navigator class='isExit' open-type="exit" target="miniProgram">确认</navigator>
71
+  <view class='IsExitText'>点击关闭小程序。然后把屏幕竖起来,在竖屏情况下重开小程序。</view>
72
+  <navigator class='isExit' open-type="exit" target="miniProgram">关闭小程序</navigator>
73 73
 </view>
74 74
 
75 75
 <view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
76
-    <input class='input' type="number" value="{{ChangeuUserID}}" bindinput="onKeyInput" />
77
-    <button class="btnShowUserID" bindtap="setSelectUser">确定</button>
76
+    <input class='input' type="number" value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
77
+    <button class="btnShowUserID" bindtap="setSelectUser">查看用户数据</button>
78 78
     <view style="height:50rpx;"></view>
79 79
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webview?PageID=9999">网页访问钥匙</button>
80 80
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webviewInterior">访问统计网页</button>
81
+    <view style="height:50rpx;"></view>
81 82
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
83
+    <view style="height:50rpx;"></view>
84
+    <view class="panel2 FlexRow">
85
+      <input class='input2 input' type="number" placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
86
+      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeNewUserID}}" data-type="0">查看</button>
87
+    </view>
88
+    <view class="panel2 FlexRow" wx:if="{{NewUserAvatar}}">
89
+      <image class="Avatar2" src='{{NewUserAvatar}}' />
90
+      <view class="NickName2">{{NewUserNickName}}</view>
91
+    </view>
92
+    <view class="panel2 FlexRow">
93
+      <input class='input2 input' type="number" placeholder="介绍人ID" value="{{ChangeIntroducerUserID}}" bindinput="onKeyInput" data-type="introduceruserid"/>
94
+      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeIntroducerUserID}}" data-type="1">查看</button>
95
+    </view>
96
+    <view class="panel2 FlexRow" wx:if="{{IntroducerAvatar}}">
97
+      <image class="Avatar2" src='{{IntroducerAvatar}}' />
98
+      <view  class="NickName2">{{IntroducerNickName}}</view>
99
+    </view>
100
+    <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
101
+    
82 102
 </view>
83 103
 

+ 27 - 0
pages/main/default.wxss

@@ -261,6 +261,33 @@
261 261
   font-size:24rpx;
262 262
   margin-top: 30rpx;
263 263
 }
264
+.panel2{
265
+  width:500rpx;
266
+  margin-top: 10rpx;  
267
+}
268
+.Avatar2{
269
+  width: 50rpx;
270
+  height:50rpx;
271
+  background-color: #E3E3E3;
272
+  border-radius: 5rpx;
273
+  margin-right: 10rpx;
274
+}
275
+.NickName2{
276
+  max-width:200rpx;
277
+  overflow-x: hidden;
278
+  font-size: 20rpx;
279
+  color:#fff;
280
+}
281
+.input2{
282
+  width: 200rpx;
283
+  margin-top: 0rpx;
284
+  margin-left: 10rpx;
285
+}
264 286
 .btnShowUserID{
265 287
   margin-top: 30rpx;
288
+}
289
+.btn2{
290
+  height:50rpx;
291
+  font-size: 22rpx;
292
+  margin:0 10rpx 0 10rpx;
266 293
 }

+ 1 - 0
pages/main/detail.js

@@ -707,6 +707,7 @@ Page({
707 707
         showCancel: false,
708 708
         confirmText: "知道了",
709 709
         success(res) {
710
+          clearTimeout(timeoutEveryCard);
710 711
           if (res.confirm) {
711 712
             that.timeCompute();
712 713
           }

+ 0 - 3
pages/main/detail.wxml

@@ -120,7 +120,6 @@
120 120
   <block wx:if="{{NumberNew+NumberReview+NumberHistory==0}}">
121 121
     <view class='panelLast FlexColumn' style='height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}};top:{{topBarHeight}}rpx;'>
122 122
       <view class='text1{{IsIPad}}'>做完了</view>
123
-
124 123
       <view class="panelLastTime FlexColumn">
125 124
         <view style='color:{{Color.FrontColor1}};'>今日练习总共用时</view>
126 125
         <view class="time1 FlexRow" style='color:{{Color.LineColor}}'>
@@ -136,8 +135,6 @@
136 135
         <view style='color:{{Color.FrontColor1}};'>每分钟可练习</view>
137 136
         <view class="time2" style='color:{{Color.LineColor}}'>{{Speed1}}</view>
138 137
       </view>
139
-
140
-
141 138
       <view class='panelLastFooter'>
142 139
         <view class="panelLastFooter1 FlexRow" bindtap='buildShareImage'>
143 140
           <image src="../images/universalpic_screenshot_gray_30x30.png" class='universalpic_screenshot_gray_30x30' />

+ 0 - 6
pages/main/preview.wxml

@@ -67,12 +67,6 @@
67 67
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{PrevID}}" wx:if="{{PrevID>0}}">
68 68
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_prev_gray_30x30.png' />
69 69
       </view>
70
-      <!-- <view class='btn22 FlexRow' wx:if="{{IsShowAnswer[0]==1}}" catchtap='onHideAnswer'>
71
-        隐藏答案
72
-      </view>
73
-      <view class='btn22 FlexRow' wx:if="{{IsShowAnswer[0]==0}}" catchtap='onShowAnswer'>
74
-        显示答案
75
-      </view> -->
76 70
       <button class="btn21" open-type='share'>分享给大家</button>
77 71
       <view class='btn1 FlexRow' catchtap="previewNext" data-id="{{NextID}}" wx:if="{{NextID>0}}">
78 72
         <image class="universalpic_next_gray_30x30" src='../images/universalpic_next_gray_30x30.png' />

+ 23 - 0
pages/main/previewMenu.js

@@ -30,6 +30,7 @@ Page({
30 30
     that.setData({
31 31
       Containnerheight: main.getWindowHeight(),
32 32
       CardType:options.CardType,
33
+      CardTypeHistory:options.CardType,
33 34
       MiaoguoCardID:options.ID,
34 35
       IsSave:options.IsSave || 0,
35 36
       Today:today,
@@ -47,6 +48,25 @@ Page({
47 48
     var that = this;
48 49
     var cardType=e.currentTarget.dataset.cardtype;
49 50
     if (cardType!=that.data.CardType){
51
+      if (cardType==1 || (that.data.CardTypeHistory==-1 && cardType==0)){
52
+        var limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
53
+        that.setData({
54
+          LimitTime: limitTime,
55
+          LimitTimeStr: common.formatDateCHS(limitTime),
56
+          IsSelected:"_Selected"
57
+        });
58
+      }
59
+      else{
60
+        var limitTime=historyLimitTime;
61
+        if (that.data.CardTypeHistory==-1)
62
+          limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
63
+        that.setData({
64
+          LimitTime: limitTime,
65
+          LimitTimeStr: common.formatDateCHS(limitTime),
66
+          IsSelected:"",
67
+        });
68
+      }
69
+
50 70
       if (cardType == 1 && that.data.CardNumberUrgent>=200){
51 71
         wx.showToast({
52 72
           title: '紧急练习容量已满',
@@ -118,6 +138,9 @@ Page({
118 138
       var DayNumber=e.currentTarget.dataset.daynumber;
119 139
       if (DayNumber==-1){
120 140
         limitTime=historyLimitTime;
141
+        if (that.data.CardTypeHistory==-1)
142
+          limitTime=common.formatTime(common.addDate("d",0,new Date()),"-",true);
143
+        
121 144
         wx.showToast({
122 145
           title: '日期已还原',
123 146
           mask: true,

+ 3 - 3
pages/main/previewMenu.wxml

@@ -34,7 +34,7 @@
34 34
       <view class="panelItemCircleTop panelStudyPlan1 FlexRow">
35 35
         <view class="panelStudyPlan11 FlexColumn">
36 36
           <view class="text7">到期时间</view> 
37
-          <view class="text6">到这天可被练习</view>
37
+          <view class="text6">下次练习的时间</view>
38 38
         </view>
39 39
         <view class="panelStudyPlan12 FlexRow">
40 40
           <view class="text7{{IsSelected}}">{{LimitTimeStr}}</view> 
@@ -63,8 +63,8 @@
63 63
   </view>
64 64
 
65 65
   <view class="panelHelp FlexRow">
66
-    <image class="universalpic_exmark_deepyellow_70x70" src='../images/universalpic_exmark_deepyellow_70x70.png' />
67
-    <text class="text8">因数据无法回溯,确定后不能撤销,务请谨慎。\n\n暂时不想练的题卡请移往“留白区”,不建议删除。\n\n修改学习计划后,请记得回到秒过首页,点击小红点打开学习计划栏目,启用对应练习方案。日常、紧急都可以独立练习,也可以串联成“整体练习”。</text>
66
+    <image class="universalpic_exmark_deepyellow_70x70" src='../images/universalpic_exmark_deepyellow_26x26.png' />
67
+    <text class="text8">学习计划保存后不能撤销,务请谨慎。\n\n特别注意:从日常转入紧急练习方案的题卡,以及从留白转入日常练习或紧急练习方案的题卡,将在操作当天以新题卡形式被重新练习。如实际没有练习到,则需适当调高所属练习方案的任务限量。\n\n不想练习的题卡,请转入留白。</text>
68 68
   </view>
69 69
   <view class="footerHeight"></view>
70 70
 </view>

+ 2 - 1
pages/main/previewMenu.wxss

@@ -159,11 +159,12 @@
159 159
 
160 160
 .panelHelp {
161 161
   width: 710rpx;
162
-  background-color: #fff;
162
+  background-color: #FCE8C5;
163 163
   border-radius: 20rpx;
164 164
   margin-top: 20rpx;
165 165
   align-items: flex-start;
166 166
   padding: 30rpx 0;
167
+  color:#694405;
167 168
 }
168 169
 
169 170
 .universalpic_exmark_deepyellow_70x70 {

+ 51 - 5
pages/main/searchCardList.js

@@ -11,6 +11,8 @@ var arrOrder = [
11 11
   { Name: "练习较多", Value: "ac.LearnNumber desc,ac.MiaoguoCardID desc" },
12 12
   { Name: "练习较少", Value: "ac.LearnNumber,ac.MiaoguoCardID" },
13 13
   { Name: "最近练习", Value: "ac.LastTime desc" },
14
+  { Name: "到期升序", Value: "ac.LimitTime asc" },
15
+  { Name: "到期降序", Value: "ac.LimitTime desc" },
14 16
 ];
15 17
 
16 18
 Page({
@@ -19,6 +21,7 @@ Page({
19 21
     ArrOrder: arrOrder,
20 22
     OrderType: 1,
21 23
     CardType:2,
24
+    PrintID:0,
22 25
   },
23 26
   onLoad: function (options) {
24 27
     var that = this;
@@ -52,6 +55,15 @@ Page({
52 55
       });
53 56
       IsCollect = 1;
54 57
     }
58
+    else if (options.PrintID) {
59
+      wx.setNavigationBarTitle({
60
+        title: "打印卷题卡清单"
61
+      });
62
+      that.setData({
63
+        PrintID:options.PrintID,
64
+      });
65
+      that.getPrintList();
66
+    }
55 67
     else if (options.CardType != 2) {
56 68
       var title = "日常练习";
57 69
       if (options.CardType == 1)
@@ -78,10 +90,12 @@ Page({
78 90
   },
79 91
   onShow: function () {
80 92
     var that = this;
81
-    if (that.data.IsNew)
82
-      that.onOrder({ currentTarget: { dataset: { value: 4 } } });
83
-    else
84
-      that.getList();
93
+    if (!that.data.PrintID){
94
+      if (that.data.IsNew)
95
+        that.onOrder({ currentTarget: { dataset: { value: 4 } } });
96
+      else
97
+        that.getList();
98
+    }
85 99
 
86 100
     //题卡主题色
87 101
     var arrColorIndex = wx.getStorageSync("ColorIndexArr");
@@ -128,7 +142,7 @@ Page({
128 142
       }
129 143
     }
130 144
 
131
-    if (!that.data.IsToday && !that.data.Search) {
145
+    if (!that.data.IsToday && !that.data.PrintID && !that.data.Search) {
132 146
       main.getData("GetUserCardCount?UserID=" + app.globalData.userInfo.UserID+"&CardType="+that.data.CardType+"&IsCollect="+that.data.IsCollect, function (data) {
133 147
         if (data) {
134 148
           that.setData({
@@ -308,6 +322,38 @@ Page({
308 322
       }
309 323
     });
310 324
   },
325
+  getPrintList: function (e) {
326
+    wx.showLoading({
327
+      title: '请稍候',
328
+    });
329
+    setTimeout(function () {
330
+      wx.hideLoading();
331
+    }, 5000);
332
+
333
+    var that = this;
334
+    var url = 'GetMiaoguoCardList2?UserID=' + app.globalData.userInfo.UserID+'&PrintID='+that.data.PrintID;
335
+    main.getData(url, function (data) {
336
+      if (data) {
337
+        if (data.List.length>0){
338
+          var list=[];
339
+          for (var i = 0; i < data.List.length; i++) {
340
+            data.List[i].Number = i+1;
341
+            list.push(data.List[i]);
342
+          }
343
+          app.globalData.CardList = list;
344
+          that.getList();
345
+
346
+          wx.setNavigationBarColor({
347
+            frontColor: "#000000",
348
+            backgroundColor: "#ffffff",
349
+          });
350
+        }
351
+        else{
352
+          that.onSearch();
353
+        }
354
+      }
355
+    });
356
+  },
311 357
   addCard: function () {
312 358
     wx.redirectTo({
313 359
       url: './add?type=add&id=0',

+ 19 - 11
pages/main/searchCardList.wxml

@@ -7,16 +7,16 @@
7 7
       </view>
8 8
     </view>
9 9
     <view class="panelTop0 FlexRow">
10
-      <view class='panelTop1' wx:if='{{IsCollect || IsToday || CardType==1 || CardType==-1}}'>
10
+      <view class='panelTop1' wx:if='{{IsCollect || IsToday || CardType==1 || CardType==-1 || PrintID}}'>
11 11
       </view>
12
-      <view class='panelTop1 FlexRow' bindtap='addCard' wx:if='{{!IsCollect && !IsToday && CardType!=1 && CardType!=-1}}'>
12
+      <view class='panelTop1 FlexRow' bindtap='addCard' wx:if='{{!PrintID && !IsCollect && !IsToday && CardType!=1 && CardType!=-1}}'>
13 13
         <image class="universalpic_add_black_30x30" src='../images/universalpic_add_black_30x30.png' />
14 14
       </view>
15 15
       <view>{{Count}}张题卡</view>
16
-      <view class='panelTop1 FlexRow' bindtap='showOrder' wx:if="{{List.length>0 && !IsCollect && !IsToday}}">
16
+      <view class='panelTop1 FlexRow' bindtap='showOrder' wx:if="{{List.length>0 && !IsCollect && !IsToday && !PrintID}}">
17 17
         <image class="universalpic_sequence_black_30x30" src='../images/universalpic_sequence_black_30x30.png' />
18 18
       </view>
19
-      <view class='panelTop1 FlexRow' wx:if='{{List.length==0 || IsCollect || IsToday}}'>
19
+      <view class='panelTop1 FlexRow' wx:if='{{List.length==0 || IsCollect || IsToday || PrintID}}'>
20 20
       </view>
21 21
     </view>
22 22
   </view>
@@ -39,13 +39,21 @@
39 39
               </view>
40 40
             </view>
41 41
             <view class="panelItem2 FlexColumn">
42
-              <view wx:if="{{OrderType==1}}">{{item.UpdateTimeStr}}</view>
43
-              <view wx:if="{{OrderType==2 || OrderType==3}}">{{item.CreateTimeStr}}</view>
44
-              <view wx:if="{{OrderType==4 || OrderType==5}}">{{item.LearnNumber}}次</view>
45
-              <view wx:if="{{OrderType==6}}">{{item.LastTimeStr}}</view>
46
-              <view class='panelItem21'>
47
-                <image class="universalpic_fav_default_gray_26x24" src='../images/universalpic_fav_default_gray_26x24.png' wx:if="{{item.IsCollect==1}}" />
48
-              </view>
42
+              <block wx:if="{{!PrintID}}">
43
+                <view wx:if="{{OrderType==1}}">{{item.UpdateTimeStr}}</view>
44
+                <view wx:if="{{OrderType==2 || OrderType==3}}">{{item.CreateTimeStr}}</view>
45
+                <view wx:if="{{OrderType==4 || OrderType==5}}">{{item.LearnNumber}}次</view>
46
+                <view wx:if="{{OrderType==6}}">{{item.LastTimeStr}}</view>
47
+                <view wx:if="{{OrderType==7 || OrderType==8}}">{{item.LimitTimeStr}}</view>
48
+                <view class='panelItem21'>
49
+                  <image class="universalpic_fav_default_gray_26x24" src='../images/universalpic_fav_default_gray_26x24.png' wx:if="{{item.IsCollect==1}}" />
50
+                </view>
51
+              </block>
52
+              <block wx:if="{{PrintID}}">
53
+                <view>题目{{item.Number}}</view>
54
+                <view class='panelItem21'>
55
+                </view>
56
+              </block>
49 57
             </view>
50 58
           </view>
51 59
         </view>

+ 1 - 1
pages/main/searchCardList.wxss

@@ -280,7 +280,7 @@
280 280
 
281 281
 .numberContainerFooter101 {
282 282
   width: 100%;
283
-  height: 334rpx;
283
+  height: 434rpx;
284 284
   justify-content: flex-start;
285 285
   align-items: flex-start;
286 286
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 11
pages/marketing/award.wxml


+ 1 - 1
pages/marketing/extenduser.json

@@ -1,3 +1,3 @@
1 1
 {
2
-  "navigationBarTitleText": "推广名单"
2
+  "navigationBarTitleText": "推广记录"
3 3
 }

+ 14 - 4
pages/marketing/index.wxml

@@ -5,6 +5,15 @@
5 5
     <view class="panelTitle2"></view>
6 6
   </view>
7 7
   <view class="panelItem FlexRow" bindtap="goto" data-url="../../pages/other/webview?PageID=7">
8
+    <view class="panelItem1">活动介绍</view>
9
+    <view class="panelItem2 FlexRow">
10
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
11
+    </view>
12
+  </view>
13
+  <view class="lineWidthAll FlexRow">
14
+    <view class="lineWidth720"></view>
15
+  </view>
16
+  <view class="panelItem FlexRow" bindtap="goto" data-url="../../pages/other/webview?PageID=9">
8 17
     <view class="panelItem1">活动规则</view>
9 18
     <view class="panelItem2 FlexRow">
10 19
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
@@ -23,15 +32,16 @@
23 32
     <view class="lineWidth720"></view>
24 33
   </view>
25 34
   <view class="panelItem FlexRow" bindtap="goto" data-url="./extenduser?PageType=0">
26
-    <view class="panelItem1">推广效果</view>
35
+    <view class="panelItem1">推广记录</view>
27 36
     <view class="panelItem2 FlexRow">
28 37
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
29 38
     </view>
30 39
   </view>
31
-  <view class='lineFooter'></view>
32
-  <view class="line1"></view>
40
+  <view class="lineWidthAll FlexRow">
41
+    <view class="lineWidth720"></view>
42
+  </view>
33 43
   <view class="panelItem FlexRow" bindtap="goto" data-url="./award">
34
-    <view class="panelItem1">奖励</view>
44
+    <view class="panelItem1">奖励记录</view>
35 45
     <view class="panelItem2 FlexRow">
36 46
       <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
37 47
     </view>

+ 3 - 3
project.config.json

@@ -24,11 +24,11 @@
24 24
 			"outputPath": ""
25 25
 		},
26 26
 		"useIsolateContext": true,
27
-		"useCompilerModule": false,
27
+		"useCompilerModule": true,
28 28
 		"userConfirmedUseCompilerModuleSwitch": false
29 29
 	},
30 30
 	"compileType": "miniprogram",
31
-	"libVersion": "2.11.2",
31
+	"libVersion": "2.11.3",
32 32
 	"appid": "wx84b3feac6069eec3",
33 33
 	"projectname": "miaoguo_master",
34 34
 	"debugOptions": {
@@ -107,7 +107,7 @@
107 107
 					"id": 6,
108 108
 					"name": "pages/index/index",
109 109
 					"pathName": "pages/index/index",
110
-					"query": "type=paycontinue&EndDate=2021-06-01",
110
+					"query": "type=print&PrintID=30",
111 111
 					"scene": null
112 112
 				},
113 113
 				{

+ 4 - 4
utils/constant.js

@@ -108,13 +108,13 @@ module.exports = {
108 108
   ],
109 109
   arrStudyPlay: [{
110 110
       CardType: 0,
111
-      Name: "日常练习",
112
-      Remark: "常规,锻炼长期记忆,首选方式"
111
+      Name: "日常练习方案",
112
+      Remark: "常规练习,锻炼长期记忆,首选方式"
113 113
     },
114 114
     {
115 115
       CardType: 1,
116
-      Name: "紧急练习",
117
-      Remark: "临时,短期记,容量200张"
116
+      Name: "紧急练习方案",
117
+      Remark: "临时练习,短期记,容量200张"
118 118
     },
119 119
     {
120 120
       CardType: -1,