chengjie 2 年之前
父节点
当前提交
a947ec80fc

+ 1 - 1
app.js

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

+ 1 - 0
app.json

@@ -11,6 +11,7 @@
11 11
     "pages/main/health",
12 12
     "pages/main/folderEdit",
13 13
     "pages/main/folderIcon",
14
+    "pages/main/orderform",
14 15
 
15 16
     "pages/main/cardmain",
16 17
     "pages/main/mainlist",

+ 16 - 7
pages/main/cardmain.js

@@ -14,18 +14,23 @@ Page({
14 14
   },
15 15
   onLoad: function () {
16 16
     var that = this;
17
+
18
+    var isshow=app.globalData.userInfo.isShow;
19
+    if (app.globalData.IsIOS && isshow==0)
20
+      isshow=-1;
21
+
17 22
     that.setData({
18 23
       Containnerheight: main.getWindowHeight(),
19
-      IsShow: app.globalData.userInfo.isShow,
24
+      IsShow: isshow,
20 25
     });
21 26
 
22 27
     var year = new Date(app.globalData.userInfo.CreateTime).getFullYear();
23 28
     //console.log(year);
24
-    // if (new Date().getFullYear()>=2021 && year<2020){
25
-    //   that.setData({
26
-    //     IsYearReport: true,
27
-    //   });
28
-    // }
29
+    if (new Date().getFullYear()>=2023 && year<2023){
30
+      that.setData({
31
+        IsYearReport: true,
32
+      });
33
+    }
29 34
 
30 35
     canPress=true;
31 36
 
@@ -219,7 +224,11 @@ Page({
219 224
       IsShowOrder: false,
220 225
     });
221 226
   },
222
-
227
+  gotoAbout: function (e) {
228
+    wx.navigateTo({
229
+      url: '../other/newuser',
230
+    });
231
+  },
223 232
   gotoReLaunch: function (e) {
224 233
     var url = e.currentTarget.dataset.url;
225 234
     wx.reLaunch({

+ 15 - 4
pages/main/cardmain.wxml

@@ -24,6 +24,16 @@
24 24
       <view>回收</view>
25 25
     </view>
26 26
   </view>
27
+  <view class="panelTemp FlexColumn" wx:if="{{IsShow==0}}">
28
+    <view class="FlexColumn" bindtap='gotoAbout'>
29
+      <view class="panelTemp1">秒过新手班</view>
30
+      <image class="xsb" src='{{ImagePath}}web/xsb.png' />
31
+    </view>
32
+    <view class="panelTemp2 FlexRow"  bindtap='goto' data-url="./orderform">
33
+      <view class="panelTemp21">我的订单</view>
34
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
35
+    </view>
36
+  </view>
27 37
   <view class="panelItem3 FlexRow">
28 38
     <view class="panelItem31 FlexRow" bindtap="getList" data-id="0" data-cardtype="0">
29 39
       <view class="panelItem311 FlexColumn">
@@ -40,6 +50,10 @@
40 50
       <image class="richang_80x90" src='../images/jinji_80x90.png' />
41 51
     </view>
42 52
   </view>
53
+  <!-- 年度报告 -->
54
+  <block wx:if="{{IsYearReport}}">
55
+    <image class="report_2021-banner" src='{{ImagePath}}web/report_2022-banner.png' bindtap="goto" data-url="../other/annualreport" />
56
+  </block>
43 57
 
44 58
   <view class="panelItem3 FlexRow">
45 59
     <view class="panelItem41 FlexRow" bindtap="goto" data-url="../main/health">
@@ -57,10 +71,7 @@
57 71
       <image class="zhishijianyan_70x75" src='../images/wangzhan_70x75.png' />
58 72
     </view>
59 73
   </view>
60
-  <!-- 年度报告 -->
61
-  <block wx:if="{{IsYearReport}}">
62
-    <image class="report_2021-banner" src='{{ImagePath}}web/report_2021-banner.png' bindtap="goto" data-url="../other/annualreport" />
63
-  </block>
74
+  
64 75
   <!-- 没有勤勉接力 -->
65 76
   <view class="panelShare FlexRow" wx:if="{{!Hardworking}}">
66 77
     <view class="panelShare1 FlexColumn">

+ 25 - 15
pages/main/cardmain.wxss

@@ -28,31 +28,41 @@
28 28
 /* 临时用****************** */
29 29
 .panelTemp {
30 30
   width: 100%;
31
-  justify-content: space-between;
32 31
   font-size: 28rpx;
33
-  height: 100rpx;
34 32
   background-color: #fff;
35
-  margin: 30rpx 0;
33
+  border-top:1rpx solid #F2F2F2;
36 34
 }
37 35
 
38 36
 .panelTemp1 {
39
-  margin-left: 30rpx;
40
-  justify-content: flex-start;
37
+  width:690rpx;
41 38
   font-weight: 400;
42
-  font-size: 28rpx;
43
-  height: 140rpx;
39
+  margin-top: 30rpx;
40
+  text-align: left;
44 41
 }
45 42
 
46
-.avatar {
47
-  width: 80rpx;
48
-  height: 80rpx;
49
-  background-color: #D8D8D8;
50
-  border-radius: 10rpx;
43
+.xsb{
44
+  width:710rpx;
45
+  height:180rpx;
46
+  margin:30rpx 0 0 0;
51 47
 }
52 48
 
53
-.text6 {
54
-  font-size: 28rpx;
55
-  margin-left: 20rpx;
49
+.panelTemp2 {
50
+  width:100%;
51
+  font-weight: 400;
52
+  margin-top: 30rpx;
53
+  border-top:1rpx solid #F2F2F2;
54
+  height:100rpx;
55
+  justify-content: space-between;
56
+}
57
+
58
+.panelTemp21{
59
+  margin-left: 30rpx;
60
+}
61
+
62
+.Arrow{
63
+  width:16rpx;
64
+  height:26rpx;
65
+  margin:0 30rpx;
56 66
 }
57 67
 
58 68
 /* 中部样式************************* */

+ 103 - 0
pages/main/orderform.js

@@ -0,0 +1,103 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    PayList:[],
9
+    IsLogin:1,
10
+  },
11
+  onLoad: function (options) {
12
+    var that = this;
13
+    that.setData({
14
+      Containnerheight: main.getWindowHeight(),
15
+    });
16
+
17
+    if (app.globalData.userInfo){
18
+      that.init();
19
+    }
20
+    else{
21
+      this.setData({
22
+        IsLogin: -1,
23
+      });
24
+    }    
25
+  },
26
+  init:function(){
27
+    var that = this;
28
+    var url = "GetUserPayList?UserID=" + app.globalData.userInfo.UserID;
29
+    main.getData(url, function (data) {
30
+      if (data) {
31
+        that.setData({
32
+          PayList: data,
33
+          IsLogin: 1,
34
+        });
35
+      }
36
+    });
37
+  },
38
+  showLogin:function(){
39
+    this.setData({
40
+      IsLogin: -2,
41
+    });
42
+  },
43
+  hideLogin:function(){
44
+    this.setData({
45
+      IsLogin: -1,
46
+    });
47
+  },
48
+  onKeyInput: function (e) {
49
+    var that=this; 
50
+    that.setData({
51
+      UserName: e.detail.value
52
+    });
53
+  },
54
+  onKeyInput2: function (e) {
55
+    var that=this; 
56
+    that.setData({
57
+      UserPwd: e.detail.value
58
+    });
59
+  },
60
+  login: function () {
61
+    var that = this;
62
+
63
+    main.getData('Login20221228?UserName=' + that.data.UserName + "&UserPwd="+that.data.UserPwd+"&ProductID=" + app.globalData.ProgramID, function (data) {
64
+      if (data) {
65
+        if (data>0){
66
+            app.globalData.userInfo={};
67
+            app.globalData.userInfo.UserID=data;
68
+            main.getData('GetWXUsersAllPayInfo500?UserID=' + app.globalData.userInfo.UserID + "&ProductID=" + app.globalData.ProgramID, function (data2) {
69
+              if (data2) {
70
+                that.setData({
71
+                  IsLogin: 1,
72
+                  PayList: data2,
73
+                });
74
+              }
75
+              else {
76
+                that.setData({
77
+                  IsLogin: 1,
78
+                  PayList: [],
79
+                });
80
+              }
81
+            });
82
+        }
83
+        else {
84
+          wx.showToast({
85
+            title: '用户名或密码不正确',
86
+          });
87
+        }
88
+      }
89
+      else {
90
+        wx.showToast({
91
+          title: '登录出错',
92
+        });
93
+      }
94
+    });
95
+  },
96
+  onShareAppMessage: function () {
97
+    return {
98
+      title: app.globalData.ShareTitle,
99
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
100
+      imageUrl: app.globalData.ShareImage,
101
+    }
102
+  },
103
+})

+ 3 - 0
pages/main/orderform.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "我的订单"
3
+}

+ 33 - 0
pages/main/orderform.wxml

@@ -0,0 +1,33 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  
3
+  <block wx:if="{{IsLogin==1}}">
4
+    <view class="panelNull"></view>
5
+    <view class="panelItem FlexColumn" wx:if="{{PayList.length>0}}" wx:for="{{PayList}}" wx:key="*this">
6
+      <view class="panelItem1 FlexRow">
7
+        <view class="panelItem11">订单</view>
8
+        <view class="panelItem12">{{item.Money}}元</view>
9
+      </view>
10
+      <text class="panelItem2">交易编号:{{item.TradeNo}}\n支付日期:{{item.PayEndTime}}</text>
11
+    </view>  
12
+    
13
+    <view style="margin-top: 60rpx;" class="FlexRow" wx:if="{{PayList.length==0}}">
14
+      无订单数据
15
+    </view>
16
+  </block>
17
+  <view class="panelIsLogin" wx:if="{{IsLogin==-1}}" bindtap="showLogin">
18
+    登录查看订单
19
+  </view>
20
+
21
+  <view  wx:if="{{IsLogin==-2}}" class="panelLogin FlexColumn" style='height:{{Containnerheight}}rpx;'>
22
+    <view class="panelLogin1 FlexColumn">
23
+      <view class="text1">用户名</view>
24
+      <input class="input" bindinput="onKeyInput" value="{{UserName}}"/>
25
+      <view class="text1">密码</view>
26
+      <input class="input" password="true" bindinput="onKeyInput2" value="{{UserPwd}}"/>
27
+      <view class="panelLogin2 FlexRow">
28
+        <view class="panelLogin21" bindtap="hideLogin">取消</view>
29
+        <view class="panelLogin21" bindtap="login">登录</view>
30
+      </view>
31
+    </view>
32
+  </view>
33
+</view>

+ 92 - 0
pages/main/orderform.wxss

@@ -0,0 +1,92 @@
1
+.panelNull{
2
+  width:100%;
3
+  height:30rpx;
4
+}
5
+
6
+.panelItem{
7
+  width:100%;
8
+  background-color: #fff;
9
+  height:169rpx;
10
+  margin-bottom: 1rpx;
11
+}
12
+
13
+.panelItem1{
14
+  width:100%;
15
+  justify-content: space-between;
16
+  margin-top: 30rpx;
17
+
18
+  font-size: 28rpx;
19
+  font-weight: 400;
20
+  color:#1e1e1e;
21
+}
22
+.panelItem11{
23
+  margin-left: 30rpx;
24
+}
25
+.panelItem12{
26
+  margin-right: 30rpx;
27
+}
28
+
29
+.panelItem2{
30
+  width:690rpx;
31
+  font-size:20rpx;
32
+  color:#787878;
33
+  text-align: left;
34
+  margin-top: 10rpx;
35
+  margin-bottom: 32rpx;
36
+}
37
+
38
+
39
+.panelIsLogin{
40
+  background: #FFFFFF;
41
+  border: 4rpx solid #E65A20;
42
+  border-radius: 20rpx;
43
+  font-size: 36rpx;
44
+  color: #E65A20;
45
+  text-align: center;
46
+  width:500rpx;
47
+  height:100rpx;
48
+  line-height: 100rpx;
49
+  margin-top: 400rpx;
50
+}
51
+
52
+.panelLogin{
53
+  width:100%;
54
+  background-color: rgba(0,0,0,0.5);
55
+  position: fixed;
56
+  top:0;
57
+}
58
+.panelLogin1{
59
+  width:560rpx;
60
+  height:577rpx;
61
+  position: fixed;
62
+  top:313rpx;
63
+  background-color: #fff;
64
+  border-radius: 8rpx;
65
+  justify-content: flex-start;
66
+}
67
+.text1{
68
+  width:480rpx;
69
+  margin-top: 60rpx;
70
+  font-size: 28rpx;
71
+}
72
+.input{
73
+  width:480rpx;
74
+  height:90rpx;
75
+  background:#FFFFFF;
76
+  border: 1rpx solid #979797;
77
+  margin-top:20rpx;
78
+  color:#1e1e1e;
79
+  padding-left: 10rpx;
80
+}
81
+
82
+.panelLogin2{
83
+  width:100%;
84
+  margin-top: 74rpx;
85
+}
86
+
87
+.panelLogin21{
88
+  width:280rpx;
89
+  text-align: center;
90
+  font-size:36rpx;
91
+  font-weight: 400;
92
+}

+ 6 - 0
pages/main/systemsetting.wxml

@@ -21,6 +21,12 @@
21 21
     <view class="panelItem2 FlexRow">
22 22
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
23 23
     </view>
24
+  </view>  
25
+  <view class="panelItem FlexRow" bindtap='goto' data-url="./orderform">
26
+    <view class="panelItem1">我的订单</view>
27
+    <view class="panelItem2 FlexRow">
28
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
29
+    </view>
24 30
   </view>
25 31
   <view class="panelItem FlexRow" bindtap='gotoAbout'>
26 32
     <view class="panelItem1">关于秒过</view>

+ 1 - 1
pages/other/annualreport.wxml

@@ -1,5 +1,5 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-	<image src="{{ImagePath}}web/report_2021-header.png" class="panelTop" />
2
+	<image src="{{ImagePath}}web/report_2022-header.png" class="panelTop" />
3 3
 	<view class="panelMain FlexColumn">
4 4
 		<view class="text1">自{{Data.StartDate}}以来</view>
5 5
 		<view class="text2">年度报告的数据统计截止于{{Data.EndDate}}</view>

+ 4 - 0
pages/other/pay.js

@@ -45,6 +45,10 @@ Page({
45 45
   },
46 46
   init: function (PayType, EndDate, Price, DayNumber) {
47 47
     var that = this;
48
+
49
+    if (EndDate)
50
+      EndDate=common.formatTime(EndDate,"-");
51
+
48 52
     var url = 'GetMiaoguoPayInfo3?EndDate=' + EndDate + '&PayType=' + PayType + '&UserID=' + app.globalData.userInfo.UserID;
49 53
     if (Price && DayNumber) {
50 54
       url += "&Price=" + Price + "&DayNumber=" + DayNumber;

+ 2 - 1
pages/other/paycustom.js

@@ -55,6 +55,7 @@ Page({
55 55
   },
56 56
   onShareAppMessage: function () {
57 57
     var that = this;
58
+
58 59
     var path = '/pages/index/index?type=paycustom&PayUserID=' + that.data.SearchUserID;
59 60
     path += "&DayNumber=" + that.data.DayNumber;
60 61
     path += "&Price=" + that.data.Price;
@@ -66,6 +67,6 @@ Page({
66 67
       path: path,
67 68
       imageUrl: app.globalData.uploadImageUrl + "web/program_screenshot_custompayment.png",
68 69
     };
69
-
70
+    
70 71
   },
71 72
 })

+ 8 - 0
pages/share/shareindex.js

@@ -5,12 +5,14 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
+    ImagePath: app.globalData.uploadImageUrl,
8 9
     Weeks:["周一","周二","周三","周四","周五","周六","周日"],
9 10
     List:[],
10 11
     ShowActivity:1,
11 12
     Info:{
12 13
       DayNumber:-1,
13 14
     },
15
+    IsYearReport: false,
14 16
   },
15 17
   onLoad: function (options) {
16 18
     var that = this;
@@ -27,6 +29,12 @@ Page({
27 29
     });
28 30
 
29 31
     that.init();
32
+
33
+    if (new Date().getFullYear()>=2023){
34
+      that.setData({
35
+        IsYearReport: true,
36
+      });
37
+    }
30 38
   }, 
31 39
   init:function(){
32 40
     var that = this;

+ 20 - 2
pages/share/shareindex.wxml

@@ -36,7 +36,7 @@
36 36
       <view class="panel21 FlexRow">
37 37
         <view class="text2">秒过学习小组活动</view>
38 38
       </view>
39
-      <view class="panel2200 panel22 FlexColumn">
39
+      <view class="panel2200 panel22 FlexColumn" wx:if="{{!IsYearReport}}">
40 40
         <image src="../images/qmjl_main_pic_2.png" class="qmjl_main_pic_2"></image>
41 41
         <image src="../images/qmjl_main_pic_3.png" class="qmjl_main_pic_3"></image>
42 42
         <image src="../images/qmjl_main_pic_4.png" class="qmjl_main_pic_4"></image>
@@ -49,7 +49,7 @@
49 49
           <view wx:if="{{Info.ShareNumberYearRate>=50 && Info.ShareNumberYearRate<100}}" class="panel220013 panel220014 FlexRow"></view>
50 50
         
51 51
           <view wx:if="{{Info.ShareNumberYearRate<100}}" class="panel220012 FlexRow"></view>
52
-          <view wx:if="{{Info.ShareNumberYearRate==100}}" class="panel220014 FlexRow"></view>
52
+          <view wx:if="{{Info.ShareNumberYearRate>=100}}" class="panel220014 FlexRow"></view>
53 53
         </view>
54 54
         <view class="panel22002 FlexRow">
55 55
           <view class="text15">今年已接力</view>
@@ -58,6 +58,24 @@
58 58
         <view class="panel22003" bindtap="goto" data-url="../other/webview?PageID=10">规则详情</view>
59 59
         <text class="text18" bindtap="goto" data-url="../other/userbook">活动截止:2022年12月31日,发奖:2023年1月8日,\n有效期大于发奖日才能领奖。<text class="text19">查看有效期</text></text>
60 60
       </view>
61
+
62
+      <view class="panel2201 panel22 FlexColumn" wx:if="{{IsYearReport}}">
63
+        <image lazy-load="true" class="qmjl_main_pic_5" src="{{ImagePath}}web/qmjl_main_pic_5.png"></image>
64
+        <view class="panel2201text1">2022年度勤勉接力统计于2022年12月30日结束。去年,您一共接力——{{Info.ShareNumberYear}}次。(有疑问请微信私聊天乐)</view>  
65
+        
66
+        <block wx:if="{{Info.Award>0}}">
67
+        <text class="panel2201text2">恭喜您\n获得{{Info.Award}}天有效期奖励</text>  
68
+        <text class="panel2201text3">领奖注意事项</text>  
69
+        <text class="panel2201text4">奖励将在2023年1月8日后陆续发放。您必须满足2个条件才能顺利获得奖励。\n① 保持关注秒过公众号,即时接收领奖通知,以免错过兑换时间。\n② 确保有效期超过2023年1月8日,过期的帐号无法领奖,视作自动放弃本奖励。</text>  
70
+        </block>
71
+
72
+        <view class="panel2201line"></view>
73
+        <text class="panel2201text5">2023年的「有奖勤勉接力」活动规则将在兔年春节过后公布。届时请留意您所在的小组群「群公告」或通过微信「私聊天乐」了解情况。</text>  
74
+        <text class="panel2201text6">一年来辛苦您了。希望勤勉接力活动能为帮助孩子建立练习习惯起到积极作用,也希望孩子和您都能喜欢接力图卡的内容。</text>  
75
+        <view class="panel2201line"></view>
76
+        <text class="panel2201text7">新年快乐,一年来您辛苦了</text>  
77
+       
78
+      </view>
61 79
     </view>
62 80
 
63 81
     <view class="panel2 FlexColumn">

+ 66 - 0
pages/share/shareindex.wxss

@@ -542,4 +542,70 @@
542 542
 
543 543
 .text19 {
544 544
   color: #5282FA;
545
+}
546
+
547
+.panel2201 {
548
+  width:710rpx;
549
+  background-color: #A0272B;
550
+  justify-content: flex-start;
551
+}
552
+
553
+.qmjl_main_pic_5{
554
+  width:710rpx;
555
+  height:350rpx;
556
+  border-top-left-radius: 20rpx;
557
+  border-top-right-radius: 20rpx;
558
+}
559
+
560
+.panel2201text1{
561
+  font-size: 24rpx;
562
+  color: #FFF6E9;
563
+  width:550rpx;
564
+  margin-top: 20rpx;
565
+}
566
+
567
+.panel2201text2{
568
+  font-size: 28rpx;
569
+  color: #F3B150;
570
+  text-align: center;
571
+  margin-top: 30rpx;
572
+}
573
+
574
+.panel2201text3{
575
+  font-size: 24rpx;
576
+  color: #FFF6E9;
577
+  text-align: center;
578
+  margin-top: 30rpx;
579
+}
580
+.panel2201text4{
581
+  width:550rpx;
582
+  font-size: 24rpx;
583
+  color: #FFF6E9;
584
+  margin-top: 30rpx;
585
+}
586
+.panel2201line{
587
+  width:550rpx;
588
+  height:2rpx;
589
+  background: #FFFFFF;
590
+  margin-top: 40rpx;
591
+}
592
+
593
+.panel2201text5{
594
+  width:550rpx;
595
+  font-size: 24rpx;
596
+  margin-top: 30rpx;
597
+  color: #F3B150;
598
+}
599
+.panel2201text6{
600
+  width:550rpx;
601
+  font-size: 24rpx;
602
+  margin-top: 30rpx;
603
+  color: #FFF6E9;
604
+}
605
+.panel2201text7{
606
+  font-size: 28rpx;
607
+  margin-top: 40rpx;
608
+  color: #F3B150;
609
+  text-align: center;
610
+  margin-bottom: 60rpx;
545 611
 }

+ 8 - 1
project.private.config.json

@@ -12,7 +12,7 @@
12 12
         {
13 13
           "name": "pages/index/index",
14 14
           "pathName": "pages/index/index",
15
-          "query": "type=family&PanelType=1&Time=2022-07-29 14:06:44&MainUserID=2&NickName=万戍仁&AvatarUrl=https://thirdwx.qlogo.cn/mmopen/vi_32/o7M9drMKflfW78mJrM9NX7hqPfyBaC4kic0IZ7Nw473oTlgERksibvlViauEiaiayIicT3cs7a5r9UcbKVSLnYhbCoNg/132",
15
+          "query": "type=paycustom&PayUserID=1&DayNumber=365&Price=199&Remark=test",
16 16
           "launchMode": "default",
17 17
           "scene": 1007
18 18
         },
@@ -35,6 +35,13 @@
35 35
           "query": "AgentCategory=promotion&ListType=%E5%8F%AF%E6%8F%90%E7%8E%B0%E6%94%B6%E7%9B%8A",
36 36
           "launchMode": "default",
37 37
           "scene": null
38
+        },
39
+        {
40
+          "name": "pages/main/orderform",
41
+          "pathName": "pages/main/orderform",
42
+          "query": "",
43
+          "launchMode": "default",
44
+          "scene": null
38 45
         }
39 46
       ]
40 47
     }