chengjie 4 years ago
parent
commit
e0479ced23

+ 1 - 3
app.js

@@ -1,6 +1,6 @@
1
 App({
1
 App({
2
   globalData: {
2
   globalData: {
3
-    Version: "2.1.47",
3
+    Version: "2.1.48",
4
     IsProduction: true,
4
     IsProduction: true,
5
     //IsProduction: false,
5
     //IsProduction: false,
6
     ShareTitle: "高效学习从秒过开始",
6
     ShareTitle: "高效学习从秒过开始",
@@ -10,9 +10,7 @@ App({
10
     ProgramName: "秒过学习",
10
     ProgramName: "秒过学习",
11
     AppID: "wx84b3feac6069eec3",
11
     AppID: "wx84b3feac6069eec3",
12
     serverUrl: "https://www.kylx365.com/apiData/",
12
     serverUrl: "https://www.kylx365.com/apiData/",
13
-    //serverUrl: "http://129.211.100.114/apiData/",
14
     serverUrlServer: "https://www.kylx365.com/apiData/",
13
     serverUrlServer: "https://www.kylx365.com/apiData/",
15
-    //serverUrlServer: "http://129.211.100.114/apiData/",
16
     serverUrlLocalhost: "http://localhost:3020/apiData/",
14
     serverUrlLocalhost: "http://localhost:3020/apiData/",
17
     audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
15
     audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
18
     audioUrlYoudao: "https://dict.youdao.com/dictvoice?rate=10&le=auto&audio=[word]",
16
     audioUrlYoudao: "https://dict.youdao.com/dictvoice?rate=10&le=auto&audio=[word]",

+ 5 - 0
pages/main/systemsetting.js

@@ -34,6 +34,11 @@ Page({
34
       url: '../main/symbolsetting',
34
       url: '../main/symbolsetting',
35
     });
35
     });
36
   },
36
   },
37
+  gotoAbout: function (e) {
38
+    wx.navigateTo({
39
+      url: '../other/newuser?nobutton=true',
40
+    });
41
+  },
37
   gotoPayCustom:function(){
42
   gotoPayCustom:function(){
38
     if (app.globalData.userInfo.UserID<=7){
43
     if (app.globalData.userInfo.UserID<=7){
39
       wx.navigateTo({
44
       wx.navigateTo({

+ 6 - 0
pages/main/systemsetting.wxml

@@ -16,6 +16,12 @@
16
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
16
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
17
     </view>
17
     </view>
18
   </view>
18
   </view>
19
+  <view class="panelItem FlexRow" bindtap='gotoAbout'>
20
+    <view class="panelItem1">关于秒过</view>
21
+    <view class="panelItem2 FlexRow">
22
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
23
+    </view>
24
+  </view>
19
   <view class='lineFooter'></view>
25
   <view class='lineFooter'></view>
20
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
26
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
21
     重新获取用户信息
27
     重新获取用户信息

+ 2 - 1
pages/other/activity.js

@@ -58,7 +58,8 @@ Page({
58
       console.log("Today:" +new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"));
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);
59
       var dayNumber = common.diffDate("d", new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"), EarlyBirdTimeEnd1);
60
       console.log(dayNumber);
60
       console.log(dayNumber);
61
-      if (dayNumber < 0) {
61
+      
62
+      if (dayNumber < 0 || app.globalData.userInfo.IsPay==1) {
62
         that.setData({
63
         that.setData({
63
           ShowNone: true,
64
           ShowNone: true,
64
         });
65
         });

+ 1 - 0
pages/other/newuser.js

@@ -18,6 +18,7 @@ Page({
18
     backgroundAudioManager = wx.getBackgroundAudioManager();
18
     backgroundAudioManager = wx.getBackgroundAudioManager();
19
     that.setData({
19
     that.setData({
20
       Containnerheight: main.getWindowHeight(),
20
       Containnerheight: main.getWindowHeight(),
21
+      NoButton:options.nobutton
21
     });
22
     });
22
       
23
       
23
     that.init(options.index);
24
     that.init(options.index);

+ 1 - 1
pages/other/newuser.wxml

@@ -31,7 +31,7 @@
31
         <image class="bm_sy_bg" src='{{ImagePath}}web/bm_sy_bg.png' />
31
         <image class="bm_sy_bg" src='{{ImagePath}}web/bm_sy_bg.png' />
32
       </view>
32
       </view>
33
     </view>
33
     </view>
34
-    <view class="panelShowPay{{IsIPad}} FlexColumn" wx:if="{{PageIndex==0}}">
34
+    <view class="panelShowPay{{IsIPad}} FlexColumn" wx:if="{{PageIndex==0 && !NoButton}}">
35
       <view class="btn2 FlexRow" catchtap="showPay">
35
       <view class="btn2 FlexRow" catchtap="showPay">
36
         <image class="bm_sy_banner-bm" src='{{ImagePath}}web/bm_sy_banner-bm.png' />
36
         <image class="bm_sy_banner-bm" src='{{ImagePath}}web/bm_sy_banner-bm.png' />
37
       </view>
37
       </view>

+ 3 - 0
pages/other/pay.js

@@ -52,6 +52,9 @@ Page({
52
 
52
 
53
     main.getData(url, function (data) {
53
     main.getData(url, function (data) {
54
       if (data) {
54
       if (data) {
55
+        if (data.Text2.indexOf("\n")>0){
56
+          data.Text2=data.Text2.split("\n");
57
+        }
55
         that.setData({
58
         that.setData({
56
           Info: data,
59
           Info: data,
57
           PayType:PayType
60
           PayType:PayType

+ 2 - 1
pages/other/pay.wxml

@@ -13,8 +13,9 @@
13
     </block>
13
     </block>
14
   </view>
14
   </view>
15
   <view class='lineFooter'></view>
15
   <view class='lineFooter'></view>
16
+  <view style="height:30rpx;width:100%"></view>
17
+  <text class='text2_{{index}} text2' wx:for="{{Info.Text2}}" wx:key="index">{{item}}</text>
16
   <view class="btn" bindtap='payMoney'>{{Info.Text8}}</view>
18
   <view class="btn" bindtap='payMoney'>{{Info.Text8}}</view>
17
-  <text class='text2'>{{Info.Text2}}</text>
18
 </view>
19
 </view>
19
 
20
 
20
 <view class="container FlexColumn" wx:if="{{PayPanel==1}}">
21
 <view class="container FlexColumn" wx:if="{{PayPanel==1}}">

+ 18 - 10
pages/other/pay.wxss

@@ -54,21 +54,29 @@
54
 .text2{
54
 .text2{
55
   font-size:24rpx;
55
   font-size:24rpx;
56
   font-weight: 400;
56
   font-weight: 400;
57
-  margin-bottom: 30rpx;
58
-  margin-top: 80rpx;
59
-  text-align: center;
57
+  text-align: left;
58
+  width:690rpx;
59
+}
60
+.text2_0{
61
+  color:#4D4D4D;
62
+}
63
+.text2_1{
64
+  color:#FE6659;
65
+}
66
+.text2_2{
67
+  color:#4D4D4D;
60
 }
68
 }
61
 
69
 
62
 .btn{
70
 .btn{
63
-  font-size:36rpx;
64
-  width:520rpx;
65
-  height:90rpx;
66
-  border-radius: 10rpx;
71
+  font-size:48rpx;
72
+  width:600rpx;
73
+  height:110rpx;
74
+  border-radius: 20rpx;
67
   text-align: center;
75
   text-align: center;
68
-  line-height: 90rpx;
76
+  line-height: 110rpx;
69
   color:#fff;
77
   color:#fff;
70
-  background-color: #169DED;
71
-  margin-top: 60rpx;
78
+  background-color: #F57C00;
79
+  margin-top: 160rpx;
72
 }
80
 }
73
 
81
 
74
 .code{
82
 .code{