chengjie před 6 roky
rodič
revize
1e2c000674

+ 3 - 3
app.js

@@ -26,9 +26,9 @@ App({
26 26
     }
27 27
   },
28 28
   globalData: {
29
-    Version: "1.2.1",
30
-    IsProduction: false,
31
-    ShareTitle: "刻意学习,高效成长",
29
+    Version: "1.3.0",
30
+    IsProduction: true,
31
+    ShareTitle: "高效学习从秒过开始",
32 32
     SharePath: "pages/index/index",
33 33
     ShareImage: '../images/program_screenshot_main.png',
34 34
     ProgramID: 166,

+ 1 - 0
app.json

@@ -39,6 +39,7 @@
39 39
     "pages/other/newuser",
40 40
     "pages/other/userbook",
41 41
     "pages/other/activity",
42
+    "pages/other/coupon",
42 43
     "pages/other/pay"
43 44
     
44 45
   ],

+ 6 - 0
pages/index/index.js

@@ -105,6 +105,12 @@ Page({
105 105
           gotoUrl: "../other/userbook",
106 106
         });
107 107
       }
108
+      else if (options.type == "activity") {
109
+        this.setData({
110
+          gotoType: "other",
111
+          gotoUrl: "../other/activity?ActivityID=" + options.ActivityID + "&EarlyBirdTimeStart=" + options.EarlyBirdTimeStart + "&EarlyBirdTimeEnd=" + options.EarlyBirdTimeEnd + "&EndTime=" + options.EndTime,
112
+        });
113
+      }
108 114
       else if (options.type == "webview") {
109 115
         this.setData({
110 116
           gotoType: "other",

+ 77 - 6
pages/other/activity.js

@@ -29,11 +29,12 @@ const ActivityArr = [
29 29
 Page({
30 30
   data: {
31 31
     ImagePath: app.globalData.uploadImageUrl,
32
-    BtnShow:0,
32
+    BtnShow: 0,
33
+    ShowNone: false,
33 34
   },
34 35
   onLoad: function (options) {
35 36
     var that = this;
36
-    var activityID="1";
37
+    var activityID = "1";
37 38
     if (options && options.ActivityID) {
38 39
       activityID = options.ActivityID;
39 40
     }
@@ -41,22 +42,77 @@ Page({
41 42
     var EndTime = "";
42 43
     if (options && options.EndTime) {
43 44
       EndTime = options.EndTime;
44
-    } 
45
-    
46
-    var EarlyBirdTimeStart = "",EarlyBirdTimeEnd = "";
45
+    }
46
+
47
+    var EarlyBirdTimeStart = "", EarlyBirdTimeEnd = "";
47 48
     if (options && options.EarlyBirdTimeStart) {
48 49
       EarlyBirdTimeStart = options.EarlyBirdTimeStart;
49 50
       EarlyBirdTimeEnd = options.EarlyBirdTimeEnd;
50 51
     }
51 52
 
53
+    if (activityID == 2) {
54
+      var EarlyBirdTimeEnd1 = common.formatDateENG(EarlyBirdTimeEnd,"/");
55
+      EarlyBirdTimeEnd1 = new Date(EarlyBirdTimeEnd1 + " 00:00:00");
56
+
57
+      //console.log("EarlyBirdTimeEnd1:" + EarlyBirdTimeEnd1);
58
+      //console.log("Today:" +new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"));
59
+      var dayNumber = common.diffDate("d", new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"), EarlyBirdTimeEnd1)+1;
60
+      if (dayNumber < 0) {
61
+        that.setData({
62
+          ShowNone: true,
63
+        });
64
+      }
65
+      else {
66
+        if (dayNumber == 0)
67
+          dayNumber = "今";
68
+        that.setData({
69
+          DayNumber: dayNumber,
70
+        });
71
+      }
72
+    }
73
+    else if (activityID == 3) {
74
+
75
+      var EndTime1 = common.formatDateENG(EndTime,"/");
76
+      EndTime1 = new Date(EndTime1 + " 00:00:00");
77
+      var dayNumber = common.diffDate("d", new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"), EndTime1)+1;
78
+      if (dayNumber < 0) {
79
+        that.setData({
80
+          ShowNone: true,
81
+        });
82
+      }
83
+      else {
84
+        if (dayNumber == 1)
85
+          dayNumber = "今";
86
+        that.setData({
87
+          DayNumber: dayNumber,
88
+        });
89
+      }
90
+
91
+    }
92
+
52 93
     that.setData({
53 94
       Containnerheight: main.getWindowHeight(),
54 95
       Activity: ActivityArr[activityID],
55
-      ActivityID:activityID,
96
+      ActivityID: activityID,
56 97
       EndTime: EndTime,
57 98
       EarlyBirdTimeStart: EarlyBirdTimeStart,
58 99
       EarlyBirdTimeEnd: EarlyBirdTimeEnd,
59 100
     });
101
+
102
+    that.init();
103
+  },
104
+  init: function () {
105
+    var that = this;
106
+    var CouponType = 132;
107
+    if (that.data.ActivityID == 3)
108
+      CouponType = 133;
109
+    main.getData("GetMiaoguoCoupon?UserID=" + app.globalData.userInfo.UserID + "&CouponType=" + CouponType, function (data) {
110
+      if (data && data.length>0) {
111
+        that.setData({
112
+          BtnShow: 1,
113
+        });
114
+      }
115
+    });
60 116
   },
61 117
   gotoPay: function (e) {
62 118
     var PayType = e.currentTarget.dataset.paytype;
@@ -66,6 +122,21 @@ Page({
66 122
       url: '../other/pay?PayType=' + PayType + '&EndDate=' + EndDate,
67 123
     });
68 124
   },
125
+  getCoupon: function (e) {
126
+    var coupontype = e.currentTarget.dataset.coupontype;
127
+    var limittime = e.currentTarget.dataset.limittime;
128
+
129
+    var that = this;
130
+    main.getData("SendMiaoguoCoupon?UserID=" + app.globalData.userInfo.UserID + "&CouponType=" + coupontype + "&LimitTime=" + limittime, function (data) {
131
+      wx.showToast({
132
+        title: '领券成功!',
133
+      });
134
+      that.setData({
135
+        BtnShow: 1,
136
+      });
137
+    });
138
+
139
+  },
69 140
   onShareAppMessage: function () {
70 141
     return {
71 142
       title: app.globalData.ShareTitle,

+ 8 - 4
pages/other/activity.wxml

@@ -6,9 +6,9 @@
6 6
   <block wx:if="{{ActivityID=='2'}}">
7 7
     <text class="EndTime">活动时间\n{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</text>
8 8
     
9
-    <view class="btn" wx:if="{{BtnShow==0}}">领取</view>
9
+    <view class="btn" wx:if="{{BtnShow==0}}" bindtap="getCoupon" data-coupontype="132" data-limittime="{{EarlyBirdTimeEnd}}">领券</view>
10 10
     <view class="panel1 FlexRow" wx:if="{{BtnShow==1}}">
11
-      <view class="panel11">已领取,6天内有效,</view>
11
+      <view class="panel11">已领取,{{DayNumber}}天内有效,</view>
12 12
       <view class="panel12" bindtap="gotoPay" data-paytype="2" data-enddate="{{EndTime}}">去续费</view>
13 13
     </view>
14 14
 
@@ -17,12 +17,16 @@
17 17
   <block wx:if="{{ActivityID=='3'}}">
18 18
     <text class="EndTime">截止日期\n{{EndTime}}</text>
19 19
 
20
-    <view class="btn" wx:if="{{BtnShow==0}}">领取</view>
20
+    <view class="btn" wx:if="{{BtnShow==0}}" bindtap="getCoupon" data-coupontype="133" data-limittime="{{EndTime}}">领券</view>
21 21
     <view class="panel1 FlexRow" wx:if="{{BtnShow==1}}">
22
-      <view class="panel11">已领取,天内有效,</view>
22
+      <view class="panel11">已领取,{{DayNumber}}天内有效,</view>
23 23
       <view class="panel12" bindtap="gotoPay" data-paytype="3" data-enddate="{{EndTime}}">去续费</view>
24 24
     </view>
25 25
     <text class="text1">条款:领取后请在活动时间内完成续费,逾期无效。\n续费次日起7天内可退款。</text>
26 26
   </block>
27 27
   <view style="height:100rpx"></view>
28
+</view>
29
+
30
+<view class="panelNone container FlexColumn" style='min-height:{{Containnerheight}}rpx;' wx:if="{{ShowNone}}">
31
+  <view class="text2">活动已结束</view>
28 32
 </view>

+ 24 - 0
pages/other/activity.wxss

@@ -33,3 +33,27 @@
33 33
   color:#0071EF;
34 34
   text-decoration: underline;
35 35
 }
36
+
37
+.btn {
38
+  font-size: 36rpx;
39
+  width: 560rpx;
40
+  height: 90rpx;
41
+  border-radius: 10rpx;
42
+  text-align: center;
43
+  line-height: 90rpx;
44
+  color: #1E1E1E;
45
+  background-color: #FFDD0C;
46
+  margin: 30rpx 0 20rpx 0;
47
+}
48
+
49
+.panelNone{
50
+  position: fixed;
51
+  top:0;
52
+  background-color: #F0F0F0;
53
+  z-index: 100;
54
+}
55
+
56
+.text2 {
57
+  font-size:48rpx;
58
+  margin-top: 462rpx;
59
+}

+ 59 - 0
pages/other/coupon.js

@@ -0,0 +1,59 @@
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
+  onLoad: function (options) {
11
+    var that = this;
12
+
13
+    that.setData({
14
+      Containnerheight: main.getWindowHeight(),
15
+    });
16
+
17
+    that.init();
18
+  },
19
+  init: function (e) {
20
+    var that = this;
21
+    main.getData("GetMiaoguoCoupon?UserID=" + app.globalData.userInfo.UserID, function (data) {
22
+      if (data){
23
+        that.setData({
24
+          List: data,
25
+        });
26
+      }
27
+    });
28
+  },
29
+  getCoupon: function (e) {
30
+    var that = this;
31
+    var coupontype = e.currentTarget.dataset.coupontype;
32
+    var isloseefficacy = e.currentTarget.dataset.isloseefficacy;
33
+    if (!isloseefficacy && coupontype==134){
34
+      wx.showModal({
35
+        title: '兑换成功',
36
+        content: '必须重新启动小程序,然后到“用户手册”检查有效期。',
37
+        showCancel: false,
38
+        confirmText: "重启程序",
39
+        success(res) {
40
+          if (res.confirm) {
41
+              wx.reLaunch({
42
+                url: '../index/index?type=userbook',
43
+              });
44
+          }
45
+        },
46
+      });
47
+      setTimeout(function(){
48
+        main.getData("UseMiaoguoCoupon?UserID=" + app.globalData.userInfo.UserID + "&CouponType=" + coupontype, function (data) {});
49
+      },500);
50
+    }
51
+  },
52
+  onShareAppMessage: function () {
53
+    return {
54
+      title: app.globalData.ShareTitle,
55
+      path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
56
+      imageUrl: app.globalData.ShareImage,
57
+    }
58
+  },
59
+})

+ 4 - 0
pages/other/coupon.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "优惠券",
3
+  "backgroundColor": "#F0F0F0"
4
+}

+ 33 - 0
pages/other/coupon.wxml

@@ -0,0 +1,33 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{List.length>0}}">
3
+    <view style="height:50rpx;"></view>
4
+    <view class="panel FlexColumn" wx:for="{{List}}" wx:key="index" bindtap="getCoupon" data-coupontype="{{item.CouponType}}" data-isloseefficacy="{{item.IsLoseEfficacy}}">
5
+      <view class="panel1 FlexColumn">
6
+        <view class="panel11 FlexRow">
7
+          <view class="text1">{{item.Content[0]}}</view>
8
+          <view class="text2"><block wx:if="{{item.IsLoseEfficacy==1}}">已过期</block></view>
9
+        </view>
10
+        <view class="panel12">{{item.Content[1]}}</view>
11
+      </view>
12
+      <view class="line"></view>
13
+      <view class="panel1 FlexColumn">
14
+        <text class="text3">使用说明:</text>
15
+        <text class="text4">{{item.Content[2]}}</text>
16
+        <text class="text5">优惠券有效期:</text>
17
+        <text class="text4">{{item.LimitTime}}</text>
18
+      </view>
19
+
20
+      <view class="line"></view>
21
+      <view class="panel3 FlexRow">
22
+        <view class="panel31 FlexColumn">
23
+          <block wx:if="{{item.CouponType==134}}">兑换</block>
24
+          <block wx:if="{{item.CouponType!=134}}">使用</block>
25
+        </view>
26
+        <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
27
+      </view>
28
+    </view>
29
+  </block>
30
+  <block wx:if="{{List.length==0}}">
31
+    <view class="panelNone">没有优惠券</view>
32
+  </block>
33
+</view>

+ 81 - 0
pages/other/coupon.wxss

@@ -0,0 +1,81 @@
1
+.panel{
2
+  width:690rpx;
3
+  background-color: #fff;
4
+  border-radius: 10rpx;
5
+  margin-bottom: 30rpx;
6
+}
7
+
8
+.panel1{
9
+  width:100%;
10
+  font-size:24rpx;
11
+  font-weight: 400;
12
+}
13
+
14
+.panel11{
15
+  width:100%;
16
+  margin-top: 30rpx;
17
+  justify-content: space-between;
18
+}
19
+
20
+.text1{
21
+  font-size:32rpx;
22
+  margin-left: 30rpx;
23
+  font-weight: 500;
24
+}
25
+
26
+.text2{
27
+  font-size:32rpx;
28
+  font-weight: 400;
29
+  margin-right: 30rpx;
30
+  color:#FE6659;
31
+}
32
+
33
+.panel12{
34
+  font-size:28rpx;
35
+  align-self: flex-start;
36
+  font-weight: 400;
37
+  margin:0 0 30rpx 30rpx;
38
+}
39
+
40
+
41
+.line{
42
+  width:100%;
43
+  height:1rpx;
44
+  background-color: #f0f0f0;
45
+}
46
+
47
+
48
+.text3{
49
+  margin-top: 30rpx;
50
+  width:630rpx;
51
+}
52
+.text4{
53
+  margin-bottom: 30rpx;
54
+  width:630rpx;
55
+}
56
+.text5{
57
+  width:630rpx;
58
+}
59
+
60
+.panel3{
61
+  width:100%;
62
+  justify-content: space-between;
63
+  height:100rpx;
64
+}
65
+
66
+.panel31{
67
+  margin-left: 30rpx;
68
+  font-size:28rpx;
69
+  font-weight: 400;
70
+}
71
+
72
+.Arrow{
73
+  width:16rpx;
74
+  height:26rpx;
75
+  margin-right: 30rpx;
76
+}
77
+
78
+.panelNone{
79
+  margin-top: 462rpx;
80
+  font-size:48rpx;
81
+}

+ 2 - 3
pages/other/homework.js

@@ -17,9 +17,8 @@ Page({
17 17
     var EndTime = "";
18 18
     if (options.EndTime){
19 19
       EndTime = options.EndTime;
20
-      EndTime = EndTime.replace("年", "-");
21
-      EndTime = EndTime.replace("月", "-");
22
-      EndTime = EndTime.replace("日", "");
20
+      EndTime = common.formatDateENG(EndTime,"-");
21
+      
23 22
       var today=new Date();
24 23
       EndTime=new Date(EndTime);
25 24
       var dayNumber = common.diffDate("d", today, EndTime)+2;

+ 12 - 0
pages/other/newuser.js

@@ -12,6 +12,18 @@ Page({
12 12
     that.setData({
13 13
       Containnerheight: main.getWindowHeight(),
14 14
     });
15
+    that.init();
16
+
17
+  },
18
+  init: function () {
19
+    var that = this;
20
+    main.getData("GetClassList?Flag=0", function (data) {
21
+      if (data && data.length>0) {
22
+        that.setData({
23
+          StartDate: common.formatDateCHS(data[0].StartDate),
24
+        })
25
+      }
26
+    });
15 27
   },
16 28
   gotoPanel2:function(){
17 29
       this.setData({

+ 5 - 1
pages/other/newuser.wxml

@@ -5,10 +5,14 @@
5 5
     <image class="promotion_leaflet_c02" src='../images/promotion_leaflet_c02.png' />
6 6
     <image class="promotion_leaflet_c03" src='../images/promotion_leaflet_c03.png' />
7 7
     <view class="panelBottom FlexRow">
8
-      <view class="panelBottom1 FlexColumn">
8
+      <view class="panelBottom1 FlexColumn" wx:if="{{!StartDate}}">
9 9
         <view class='text7'>16天手把手</view>
10 10
         <view class='text8'>还您上手新方法</view>
11 11
       </view>
12
+      <view class="panelBottom1 FlexColumn" wx:if="{{StartDate}}">
13
+        <view class='text7'>近期开班时间</view>
14
+        <view class='text8'>{{StartDate}}</view>
15
+      </view>
12 16
       <view class="btn2 FlexColumn" bindtap="gotoPanel2">
13 17
         去报名
14 18
       </view>

+ 16 - 10
pages/other/pay.js

@@ -22,10 +22,10 @@ Page({
22 22
   },
23 23
   init: function (PayType, EndDate) {
24 24
     var that = this;
25
-    EndDate = EndDate.replace("年", "-");
26
-    EndDate = EndDate.replace("月", "-");
27
-    EndDate = EndDate.replace("日", "");
28
-    main.getData('GetMiaoguoPayInfo3?EndDate=' + EndDate + '&PayType=' + PayType +'&UserID='+app.globalData.userInfo.UserID, function (data) {
25
+
26
+    EndDate = common.formatDateENG(EndDate, "-");
27
+    
28
+    main.getData('GetMiaoguoPayInfo3?EndDate=' + EndDate + '&PayType=' + PayType + '&UserID=' + app.globalData.userInfo.UserID, function (data) {
29 29
       if (data) {
30 30
         that.setData({
31 31
           Info: data,
@@ -39,17 +39,23 @@ Page({
39 39
     var detail = {};
40 40
     detail.UserID = app.globalData.userInfo.UserID;
41 41
     detail.Introducer = app.globalData.userInfo.Introducer;
42
+    for (var i = 0; i < that.data.Info.List1.length; i++) {
43
+      if (that.data.Info.List1[i].Name == "有效期") {
44
+        detail.EndTime = common.formatDateENG(that.data.Info.List1[i].Content);
45
+      }
46
+    }
47
+
42 48
     detail = JSON.stringify(detail);
43 49
 
44 50
     console.log(money);
45
-    main.payMoney(7, null, money, detail,function(){
46
-        that.setData({
47
-          PayPanel: 1,
48
-        })
49
-      
51
+    main.payMoney(7, null, money, detail, function () {
52
+      that.setData({
53
+        PayPanel: 1,
54
+      })
55
+
50 56
     })
51 57
   },
52
-  gotoIndex:function(){
58
+  gotoIndex: function () {
53 59
     wx.reLaunch({
54 60
       url: '../index/index',
55 61
     })

+ 1 - 5
pages/other/userbook.js

@@ -52,7 +52,6 @@ Page({
52 52
     var that = this;
53 53
 
54 54
     var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
55
-
56 55
     var arr = [];
57 56
     for (var i = arrInformation.length - 1; i >= 1; i--) {
58 57
       arr.push(arrInformation[i]);
@@ -65,15 +64,12 @@ Page({
65 64
       ArrInformation: arr,
66 65
       IsMember: app.globalData.userInfo.IsMember,
67 66
       IsPay: app.globalData.userInfo.IsPay,
67
+      IsLoseEfficacy: app.globalData.userInfo.IsLoseEfficacy,
68 68
     });
69 69
 
70 70
     that.init();
71 71
 
72 72
   },
73
-  onPullDownRefresh: function () {
74
-    this.onLoad();
75
-    wx.stopPullDownRefresh();
76
-  },
77 73
   init: function () {
78 74
     var that = this;
79 75
     var panelShow = 0;

+ 1 - 2
pages/other/userbook.json

@@ -2,6 +2,5 @@
2 2
   "navigationBarTitleText": "用户手册",
3 3
   "navigationBarBackgroundColor": "#FF9F33",
4 4
   "navigationBarTextStyle": "white",
5
-  "backgroundColorTop": "#FF9F33",
6
-  "enablePullDownRefresh": true
5
+  "backgroundColorTop": "#FF9F33"
7 6
 }

+ 13 - 6
pages/other/userbook.wxml

@@ -8,7 +8,7 @@
8 8
   <block wx:if="{{PanelShow===0}}">
9 9
     <view class='text1'>尚未报名</view>
10 10
     <text class='text2'>首先打开公众号《秒过学习法》完成报名\n然后刷新状态</text>
11
-    <view class="btn" bindtap='onLoad'>刷新状态</view>
11
+    <view class="btn" bindtap='gotoIndex'>刷新状态</view>
12 12
   </block>
13 13
 
14 14
   <block wx:if="{{PanelShow>0}}">
@@ -38,12 +38,13 @@
38 38
         <view>去续费</view>
39 39
       </view>
40 40
       <view class="line2"></view>
41
-      <view class="panel21 FlexColumn">
41
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/coupon">
42 42
         <image class="usermanual_index_wallet" src='../images/usermanual_index_coupon.png' />
43 43
         <view>优惠券</view>
44 44
       </view>
45 45
     </view>
46 46
     <view class='lineFooter'></view>
47
+
47 48
     <view class="panelTitle FlexRow" wx:if="{{PanelShow===2 && ClassDayNumber>=0 && (ClassDayNumber<16 || IsPay==0)}}">
48 49
       <view class="panelTitle1">会员活动</view>
49 50
       <view class="panelTitle2"></view>
@@ -95,7 +96,7 @@
95 96
       <view class="panelTitle2"></view>
96 97
     </view>
97 98
 
98
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber>=16 && IsPay==0}}">
99
+    <view class="panelItem2 panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber>=16 && (IsPay==0 || IsLoseEfficacy==1) }}">
99 100
       <text class="text3">您的有效期已过期。请尽快续费。续费后可立即恢复使用。</text>
100 101
     </view>
101 102
 
@@ -107,9 +108,15 @@
107 108
     </view>
108 109
 
109 110
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber<0}}">
110
-      <text class="text4">
111
-      用户手册用于发布课程、优惠活动等最新消息。\n目前尚未开班。更多消息,开班后请再来看看。\n您的开班时间:{{ClassTimeStart}}-{{ClassTimeEnd}}。\n我们将在开班当日起通过公众号向您发送资料和通知,请勿取消关注。
112
-      </text>
111
+      <view class="text4">
112
+      您的开班时间:{{ClassTimeStart}}-{{ClassTimeEnd}}。
113
+      </view>
114
+      <view class="text4">
115
+      用户手册用于发布课程、优惠活动等最新消息。目前,尚未正式启用。更多消息,开班后请再过来看看。
116
+      </view>
117
+      <view class="text4">
118
+      开班当日,会通过公众号向您发送资料和通知,请勿取消关注。
119
+      </view>
113 120
     </view>
114 121
 
115 122
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=15 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">

+ 14 - 7
pages/other/userbook.wxss

@@ -114,9 +114,17 @@
114 114
   background-color: #f0f0f0;
115 115
 }
116 116
 
117
+
118
+.panelItem2 {
119
+  width: 100%;
120
+  background-color: #B3443B;
121
+  height:93rpx;
122
+  justify-content: center;
123
+}
124
+
117 125
 .text3 {
118
-  width: 690rpx;
119
-  margin-top: 30rpx;
126
+  color:#fff;
127
+  font-size:24rpx;
120 128
 }
121 129
 
122 130
 .btn {
@@ -128,13 +136,13 @@
128 136
   line-height: 90rpx;
129 137
   color: #0071ef;
130 138
   background-color: #fff;
131
-  border: 1rpx solid #9b9b9b;
139
+  border: 2rpx solid #9b9b9b;
132 140
   margin: 40rpx 0 10rpx 0;
133 141
 }
134 142
 
135 143
 .text4 {
136 144
   width: 690rpx;
137
-  line-height: 42rpx;
145
+  margin-top: 20rpx;
138 146
 }
139 147
 
140 148
 .salesactivity_a01_usermanual_banner_header {
@@ -168,14 +176,13 @@
168 176
 
169 177
 .text9 {
170 178
   width: 690rpx;
171
-  margin-bottom: 20rpx;
172 179
   text-align: center;
173 180
   font-size: 24rpx;
174 181
 }
175 182
 
176 183
 .btn3 {
177 184
   width: 480rpx;
178
-  margin: 0 0 60rpx 0;
185
+  margin: 20rpx 0 60rpx 0;
179 186
 }
180 187
 
181 188
 .text6 {
@@ -203,7 +210,7 @@
203 210
   text-align: left;
204 211
   font-size: 32rpx;
205 212
   font-weight: 500;
206
-  margin: 10rpx 0 20rpx 0;
213
+  margin: 10rpx 0 10rpx 0;
207 214
 }
208 215
 
209 216
 .text10 {

+ 2 - 1
pages/other/webview.js

@@ -16,7 +16,8 @@ Page({
16 16
   onUnload:function(){
17 17
   },
18 18
   onShareAppMessage: function () {
19
-    var imageUrl ="../images/program_screenshot_usermanual.png";
19
+    
20
+    var imageUrl = app.globalData.uploadImageUrl +"web/program_screenshot_lesson_c0"+this.data.PageID+".png";
20 21
     var path = "/pages/index/index?type=webview&PageID="+this.data.PageID;
21 22
     var title ="《秒过学习法》课外课";
22 23
     if (this.data.PageID==="0"){

+ 15 - 1
project.config.json

@@ -62,7 +62,7 @@
62 62
 					"id": 1,
63 63
 					"name": "pages/index/index",
64 64
 					"pathName": "pages/index/index",
65
-					"query": "type=userbook",
65
+					"query": "type=activity&ActivityID=3&EndTime=2019年09月10日",
66 66
 					"scene": 1007
67 67
 				},
68 68
 				{
@@ -85,6 +85,20 @@
85 85
 					"pathName": "pages/other/activity",
86 86
 					"query": "EndTime=2019-09-01",
87 87
 					"scene": 1001
88
+				},
89
+				{
90
+					"id": -1,
91
+					"name": "pages/other/coupon",
92
+					"pathName": "pages/other/coupon",
93
+					"query": "",
94
+					"scene": null
95
+				},
96
+				{
97
+					"id": 6,
98
+					"name": "用户手册",
99
+					"pathName": "pages/index/index",
100
+					"query": "type=userbook",
101
+					"scene": null
88 102
 				}
89 103
 			]
90 104
 		}

+ 2 - 2
utils/main.js

@@ -78,8 +78,8 @@ function getBaiduToken() {
78 78
 
79 79
 function payMoney(payType, buyType, money, detail, callback) {
80 80
   console.log(money);
81
-  // if (app.globalData.userInfo.UserID < 8)
82
-  //   money = 0.01;
81
+  if (app.globalData.userInfo.UserID < 8)
82
+    money = 0.01;
83 83
   //登录认证
84 84
   wx.login({
85 85
     success: function (res) {

+ 15 - 0
utils/util.js

@@ -39,6 +39,20 @@ function formatDateCHS(date) {
39 39
     return "";
40 40
 }
41 41
 
42
+function formatDateENG(date, format) {
43
+  if (date) {
44
+    date = date.toString();
45
+    if (!format)
46
+      format = "-";
47
+    date = date.replace("年", format);
48
+    date = date.replace("月", format);
49
+    date = date.replace("日", "");
50
+    return date;
51
+  }
52
+  else
53
+    return "";
54
+}
55
+
42 56
 
43 57
 function formatNumber(n) {
44 58
   n = n.toString()
@@ -370,4 +384,5 @@ module.exports = {
370 384
   diffDate: diffDate,
371 385
   Trim: Trim,
372 386
   checkIsArray: checkIsArray,
387
+  formatDateENG: formatDateENG,
373 388
 }