chengjie 5 anni fa
parent
commit
673e81eab7

+ 6 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "1.6.18",
3
+    Version: "1.6.23",
4 4
     IsProduction: true,
5 5
     ShareTitle: "高效学习从秒过开始",
6 6
     SharePath: "pages/index/index",
@@ -18,6 +18,7 @@ App({
18 18
     IsAndroid: false,
19 19
     IsIPad: false,
20 20
     IsIPhoneX: false,
21
+    IsOppo: false,
21 22
     systemInfo: null,
22 23
     userInfo: null,
23 24
     SourceID: 0,//来源ID
@@ -78,6 +79,10 @@ App({
78 79
     if (this.globalData.systemInfo.model.indexOf("iPad")>=0){
79 80
       this.globalData.IsIPad=true;
80 81
     }
82
+
83
+    if (this.globalData.systemInfo.brand.indexOf("OPPO")>=0){
84
+      this.globalData.IsOppo=true;
85
+    }
81 86
   }
82 87
   
83 88
 })

+ 6 - 0
pages/index/index.js

@@ -147,6 +147,12 @@ Page({
147 147
           gotoUrl: "../main/searchCardList?PrintID="+options.PrintID,
148 148
         });
149 149
       }
150
+      else if (options.type == "paycontinue") { 
151
+        this.setData({ 
152
+          gotoType: "other", 
153
+          gotoUrl: "../other/pay?PayType=7&EndDate="+options.EndDate, 
154
+        }); 
155
+      } 
150 156
     }
151 157
     this.setData({
152 158
       IsRefresh: false,

+ 6 - 0
pages/main/detail.js

@@ -91,6 +91,12 @@ Page({
91 91
 
92 92
     if (app.globalData.BaiduToken === "")
93 93
       main.getBaiduToken();
94
+
95
+    if (app.globalData.IsOppo){
96
+      that.setData({
97
+        TextSpace:"nbsp",
98
+      });
99
+    }
94 100
   },
95 101
   onShow: function () {
96 102
     var that = this;

+ 1 - 1
pages/main/detail.wxml

@@ -59,7 +59,7 @@
59 59
 
60 60
     <view class="panelField10" style='background-color:{{Color.BackColor}};'></view>
61 61
 
62
-    <template is="CardShow" data="{{Color:Color,Field:TaskInfo.ContentNew.Field,Tags:TaskInfo.ContentNew.Tags,IsShowAnswer:IsShowAnswer,TagWidth:TaskInfo.TagWidth,FontSize:TaskInfo.FontSize}}" />
62
+    <template is="CardShow" data="{{Color:Color,Field:TaskInfo.ContentNew.Field,Tags:TaskInfo.ContentNew.Tags,IsShowAnswer:IsShowAnswer,TagWidth:TaskInfo.TagWidth,FontSize:TaskInfo.FontSize,TextSpace}}" />
63 63
 
64 64
     <view class='footer0'></view>
65 65
 

+ 8 - 0
pages/main/preview.js

@@ -18,6 +18,7 @@ Page({
18 18
     IsExistCard: false,
19 19
     Containnerheight:1440,
20 20
     IsShowMenu:false,
21
+    TextSpace:"ensp",
21 22
   },
22 23
   onReady: function () {
23 24
     var that=this;
@@ -105,6 +106,13 @@ Page({
105 106
 
106 107
     if (app.globalData.BaiduToken==="")
107 108
       main.getBaiduToken();
109
+    
110
+    if (app.globalData.IsOppo){
111
+      that.setData({
112
+        TextSpace:"nbsp",
113
+      });
114
+    }
115
+
108 116
   },
109 117
   onShow: function () {
110 118
     var that = this;

+ 1 - 1
pages/main/preview.wxml

@@ -53,7 +53,7 @@
53 53
     <view class="panelTop1" style='background-color:{{Color.BackColor}};'></view>
54 54
   </block>
55 55
 
56
-  <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,ShowType:ShowType}}" />
56
+  <template is="CardShow" data="{{Color:Color,Field:Field,Tags:Tags,IsShowAnswer:IsShowAnswer,TagWidth:TagWidth,FontSize:FontSize,ShowType:ShowType,TextSpace:TextSpace}}" />
57 57
 
58 58
   <view style='height:150rpx'></view>
59 59
 

+ 2 - 1
pages/main/searchCard.js

@@ -7,6 +7,7 @@ Page({
7 7
   data: {
8 8
     IsIPhoneX: app.globalData.IsIPhoneX,
9 9
     IsYearReport:false,
10
+    IsIPad:app.globalData.IsIPad,
10 11
   },
11 12
   onLoad: function () {
12 13
     var that = this;
@@ -24,7 +25,7 @@ Page({
24 25
         IsYearReport: true,
25 26
       });
26 27
     }
27
-    
28
+   
28 29
   },
29 30
   onShow:function(){
30 31
     this.init();

+ 2 - 0
pages/main/searchCard.wxml

@@ -122,6 +122,8 @@
122 122
 			</view> 
123 123
 			<view class='lineFooter'></view>
124 124
 		</block> -->
125
+
126
+    <view wx:if="{{IsIPad}}" style="width:100%;height:150rpx;"></view>
125 127
   </view>
126 128
   <view class='panelBottom FlexColumn'>
127 129
 

+ 0 - 2
pages/main/searchCard.wxss

@@ -1,7 +1,5 @@
1 1
 .panel{
2 2
   width: 100%;
3
-  position: fixed;
4
-  top:0;
5 3
 }
6 4
 
7 5
 .panelSearch {

+ 8 - 3
pages/main/searchCardList.js

@@ -108,9 +108,14 @@ Page({
108 108
   },
109 109
   onPullDownRefresh: function () {
110 110
     var that = this;
111
-    if (!that.data.IsCollect && !that.data.IsToday) {
112
-      app.globalData.CardList = [];
113
-      that.gotoNextPage({ currentTarget: { dataset: { id: 0 } } });
111
+    if (that.data.PrintID){
112
+      that.getPrintList();
113
+    }
114
+    else{
115
+      if (!that.data.IsCollect && !that.data.IsToday) {
116
+        app.globalData.CardList = [];
117
+        that.gotoNextPage({ currentTarget: { dataset: { id: 0 } } });
118
+      }
114 119
     }
115 120
     wx.stopPullDownRefresh();
116 121
   },

+ 1 - 1
pages/other/lessonlist.js

@@ -43,7 +43,7 @@ Page({
43 43
       });
44 44
     }
45 45
     else{
46
-      if (id!=2){
46
+      if (id!=2 && id!=3){
47 47
         wx.navigateTo({
48 48
           url: '../other/lesson?LessonID=' + id +idchild,
49 49
         });

+ 16 - 3
pages/other/newuser.js

@@ -31,10 +31,23 @@ Page({
31 31
       }
32 32
     });
33 33
   },
34
-  gotoPanel2:function(){
35
-      this.setData({
34
+  payMoney: function () {
35
+    var that = this;
36
+    var money = 1;
37
+    var detail = {};
38
+      
39
+    //console.log(detail);
40
+    //console.log(money);
41
+    var remark = null;
42
+    main.payMoney(9, remark, money, detail, function () {
43
+      that.setData({
36 44
         PanelShow:1,
37
-      })
45
+      });
46
+      wx.setNavigationBarColor({
47
+        frontColor: "#000000",
48
+        backgroundColor: "#ffffff",
49
+      });
50
+    });
38 51
   },
39 52
   copyManager: function () {
40 53
     wx.setClipboardData({

+ 5 - 11
pages/other/newuser.wxml

@@ -6,28 +6,22 @@
6 6
     <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c03.png' />
7 7
     <view class="panelBottom FlexRow">
8 8
       <view class="panelBottom1 FlexColumn" wx:if="{{!StartDate}}">
9
-        <view class='text7'>16天手把手</view>
9
+        <view class='text7'>7天手把手</view>
10 10
         <view class='text8'>还您上手新方法</view>
11 11
       </view>
12 12
       <view class="panelBottom1 FlexColumn" wx:if="{{StartDate}}">
13
-        <view class='text7'>近期开班时间</view>
13
+        <view class='text7'>预计开班时间</view>
14 14
         <view class='text8'>{{StartDate}}</view>
15 15
       </view>
16
-      <view class="btn2 FlexColumn" bindtap="gotoPanel2">
17
-        报名
16
+      <view class="btn2 FlexColumn" bindtap="payMoney">
17
+        报名
18 18
       </view>
19 19
     </view>
20 20
     
21 21
     <view style="height:140rpx;"></view>
22 22
   </block>
23 23
   <block wx:if="{{PanelShow==1}}">
24
-    <view class='text1'>报名步骤</view>
25
-    <view class='text2'>第一步</view>
26
-    <text class='text3'>手动关注公众号《秒过学习法》</text>
24
+    <image src="{{ImagePath}}web/trial_registration_xcode2.png" class="trial_registration_xcode2"></image>
27 25
     <view class="btn" bindtap='copyManager'>复制公众号名称</view>
28
-    <view class='text4'>第二步</view>
29
-    <view class='text3'>关注后点击“开通新手包”</view>
30
-    <text class='text6'>报名后请刷新状态</text>
31
-    <view class="btn" bindtap='gotoIndex'>刷新状态</view>
32 26
   </block>
33 27
 </view>

+ 8 - 3
pages/other/newuser.wxss

@@ -48,14 +48,14 @@
48 48
 
49 49
 .btn{
50 50
   font-size:36rpx;
51
-  width:520rpx;
51
+  width:500rpx;
52 52
   height:90rpx;
53 53
   border-radius: 10rpx;
54 54
   text-align: center;
55 55
   line-height: 90rpx;
56 56
   color:#fff;
57
-  background-color: #329468;
58
-  margin-top: 30rpx;
57
+  background-color: #0071EF;
58
+  margin-top: 40rpx;
59 59
 }
60 60
 
61 61
 .btn2{
@@ -85,4 +85,9 @@
85 85
 .officialaccount{
86 86
   width:700rpx;
87 87
   margin: 50rpx;
88
+}
89
+
90
+.trial_registration_xcode2{
91
+  width:100%;
92
+  height:910rpx;
88 93
 }

+ 13 - 3
pages/other/userbook.js

@@ -58,6 +58,8 @@ Page({
58 58
     var that = this;
59 59
 
60 60
     var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
61
+    var endDate=common.formatTime(common.addDate("y", 1, new Date(app.globalData.userInfo.ProductServiceTime)));
62
+    
61 63
     var arr = [];
62 64
     for (var i = arrInformation.length - 1; i >= 1; i--) {
63 65
       arr.push(arrInformation[i]);
@@ -67,6 +69,7 @@ Page({
67 69
       NickName: app.globalData.userInfo.NickName,
68 70
       AvatarUrl: app.globalData.userInfo.AvatarUrl,
69 71
       ProductServiceTime: productServiceTime,
72
+      EndDate: endDate,
70 73
       ArrInformation: arr,
71 74
       IsShow: app.globalData.userInfo.IsShow,
72 75
       IsMember: app.globalData.userInfo.IsMember,
@@ -115,9 +118,16 @@ Page({
115 118
       panelShow = -1;
116 119
     }
117 120
 
118
-    that.setData({
119
-      PanelShow: panelShow,
120
-    });
121
+    if (panelShow==0){
122
+      wx.redirectTo({
123
+        url: '../other/newuser',
124
+      })
125
+    }
126
+    else{
127
+      that.setData({
128
+        PanelShow: panelShow,
129
+      });
130
+    }
121 131
   },
122 132
   copyManager: function (e) {
123 133
     var copytype = e.currentTarget.dataset.copytype;

+ 10 - 9
pages/other/userbook.wxml

@@ -1,14 +1,10 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <block wx:if="{{PanelShow===-1}}">
3
-    <text class="text1">老用户\n请先关注公众号</text>
4
-    <text class="text2">手动关注公众号《秒过学习法》</text>
5
-    <view class="btn" bindtap='copyManager' data-copytype="公众号">复制公众号</view>
6
-  </block>
7
-
8
-  <block wx:if="{{PanelShow===0}}">
9
-    <view class='text1'>尚未报名</view>
10
-    <text class='text2'>首先打开公众号《秒过学习法》完成报名\n然后刷新状态</text>
11
-    <view class="btn" bindtap='gotoIndex'>刷新状态</view>
3
+    <text class="text00">请先关注\n「秒过学习法」\n微信公众号</text>
4
+    <text class="text01">公众号用于身份验证、开通服务、\n传递通知,保障秒过小程序正常运行。\n关注后就能继续使用。</text>
5
+    <text class="text02">如何关注?</text>
6
+    <text class="text03">复制公众号名称,\n关闭小程序,在添加公众号里粘贴</text>
7
+    <view class="btn00" bindtap='copyManager' data-copytype="公众号">复制公众号名称</view>
12 8
   </block>
13 9
 
14 10
   <block wx:if="{{PanelShow>0}}">
@@ -40,6 +36,11 @@
40 36
         <view>去续费</view>
41 37
       </view>
42 38
       
39
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6&EndDate={{EndDate}}" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==1 && !IsLoseEfficacy) }}">
40
+        <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
41
+        <view>去续费</view>
42
+      </view>
43
+      
43 44
       <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}" wx:if="{{!IsLoseEfficacy && ClassDayNumber<ClassTotalDayNumber}}">
44 45
         <image class="usermanual_index_handshake" src='../images/usermanual_index_writing.png' />
45 46
         <view>作业清单</view>

+ 43 - 0
pages/other/userbook.wxss

@@ -2,6 +2,49 @@
2 2
   background-color: #fff;
3 3
 }
4 4
 
5
+.text00 {
6
+  margin: 200rpx 0 0 0;
7
+  font-size: 64rpx;
8
+  text-align: center;
9
+  color:#FE6659;
10
+}
11
+.text01 {
12
+  margin: 30rpx 0 0 0;
13
+  font-size: 32rpx;
14
+  text-align: center;
15
+  color:#1E1E1E;
16
+  font-weight: 400;
17
+}
18
+.text02 {
19
+  margin: 50rpx 0 0 0;
20
+  font-size: 32rpx;
21
+  text-align: center;
22
+  color:#1E1E1E;
23
+  font-weight: 500;
24
+}
25
+.text03 {
26
+  margin: 10rpx 0 0 0;
27
+  font-size: 28rpx;
28
+  text-align: center;
29
+  color:#1E1E1E;
30
+  font-weight: 400;
31
+}
32
+
33
+
34
+.btn00 {
35
+  font-size: 36rpx;
36
+  font-weight: 500;
37
+  width: 500rpx;
38
+  height: 90rpx;
39
+  border-radius: 10rpx;
40
+  text-align: center;
41
+  line-height: 90rpx;
42
+  color: #fff;
43
+  background-color: #0071ef;
44
+  margin: 40rpx 0 0rpx 0;
45
+}
46
+
47
+
5 48
 .text1 {
6 49
   margin: 360rpx 0 0 0;
7 50
   font-size: 64rpx;

+ 6 - 6
pages/template/cardShow.wxml

@@ -9,10 +9,10 @@
9 9
 
10 10
         <text class="textReturn" wx:if="{{index>0 && item.Type=='return'}}"></text>
11 11
         <view class="textBr" wx:if="{{index>0 && item.Type=='br'}}" style="height:{{FontSize/2}}rpx;"></view>
12
-        <text class="textNormal" selectable="true" space='ensp' wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
13
-        <text class="textNormal" selectable="true" space='ensp' wx:if="{{item.Type=='line'}}">
12
+        <text class="textNormal" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
13
+        <text class="textNormal" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='line'}}">
14 14
             <block wx:for="{{item.Content}}" wx:key="contentIndex" wx:for-item="contentItem" wx:for-index="contentIndex">
15
-              <text space='ensp' wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
15
+              <text space='{{TextSpace}}' wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
16 16
         <text class="textLine" wx:if="{{contentItem.key=='line'}}">{{contentItem.value}}</text>
17 17
         <text class="textHighlighter" wx:if="{{contentItem.key=='highlighter'}}" style='background-color:{{Color.LineColor}};'>{{contentItem.value}}</text>
18 18
       </block>
@@ -56,16 +56,16 @@
56 56
           <text class="textReturn" wx:if="{{item.Type=='return'}}"></text>
57 57
           <view class="textBr" wx:if="{{item.Type=='br'}}"></view>
58 58
 
59
-          <text class="textNormal2 textNormal" selectable="true" space='ensp' wx:if="{{item.Type=='normal'}}">
59
+          <text class="textNormal2 textNormal" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='normal'}}">
60 60
               <text class='textDot' wx:if="{{index==0}}" style='color:{{Color.LineColor}};'>●</text>
61 61
               <text>{{item.Content}}</text>
62 62
           </text>
63 63
 
64
-          <text class="textNormal2 FlexRow" selectable="true" space='ensp' wx:if="{{item.Type=='line'}}">
64
+          <text class="textNormal2 FlexRow" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='line'}}">
65 65
               <text class='textDot' wx:if="{{index==0}}" style='color:{{Color.LineColor}};'>●</text>
66 66
 
67 67
           <block wx:for="{{item.Content}}" wx:key="contentIndex" wx:for-item="contentItem">
68
-            <text space='ensp' wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
68
+            <text space='{{TextSpace}}' wx:if="{{contentItem.key=='normal'}}">{{contentItem.value}}</text>
69 69
             <text class="textLine" wx:if="{{contentItem.key=='line'}}">{{contentItem.value}}</text>
70 70
             <text class="textHighlighter" wx:if="{{contentItem.key=='highlighter'}}" style='background-color:{{Color.LineColor}};'>{{contentItem.value}}</text>
71 71
 

+ 43 - 3
pages/test/index.js

@@ -65,6 +65,14 @@ Page({
65 65
             Finish: 0,
66 66
             Total: 12,
67 67
             Image: "../images/examine_subject_a001.png"
68
+          }, {
69
+            ID: 13,
70
+            Type: "Shizi",
71
+            Name: "语文写字",
72
+            Name2: "上学期",
73
+            Finish: 0,
74
+            Total: 26,
75
+            Image: "../images/examine_subject_a001.png"
68 76
           }, {
69 77
             ID: 2,
70 78
             Type: "Shizi",
@@ -95,6 +103,14 @@ Page({
95 103
             Finish: 0,
96 104
             Total: 16,
97 105
             Image: "../images/examine_subject_a003.png"
106
+          }, {
107
+            ID: 15,
108
+            Type: "Shizi",
109
+            Name: "语文写字",
110
+            Name2: "上学期",
111
+            Finish: 0,
112
+            Total: 28,
113
+            Image: "../images/examine_subject_a003.png"
98 114
           }, {
99 115
             ID: 4,
100 116
             Type: "Shizi",
@@ -125,6 +141,14 @@ Page({
125 141
             Finish: 0,
126 142
             Total: 16,
127 143
             Image: "../images/examine_subject_a005.png"
144
+          }, {
145
+            ID: 17,
146
+            Type: "Shizi",
147
+            Name: "语文写字",
148
+            Name2: "上学期",
149
+            Finish: 0,
150
+            Total: 28,
151
+            Image: "../images/examine_subject_a005.png"
128 152
           }, {
129 153
             ID: 6,
130 154
             Type: "Shizi",
@@ -155,6 +179,14 @@ Page({
155 179
             Finish: 0,
156 180
             Total: 16,
157 181
             Image: "../images/examine_subject_a007.png"
182
+          },  {
183
+            ID: 19,
184
+            Type: "Shizi",
185
+            Name: "语文写字",
186
+            Name2: "上学期",
187
+            Finish: 0,
188
+            Total: 20,
189
+            Image: "../images/examine_subject_a007.png"
158 190
           }, {
159 191
             ID: 8,
160 192
             Type: "Shizi",
@@ -185,6 +217,14 @@ Page({
185 217
             Finish: 0,
186 218
             Total: 16,
187 219
             Image: "../images/examine_subject_a009.png"
220
+          }, {
221
+            ID: 21,
222
+            Type: "Shizi",
223
+            Name: "语文写字",
224
+            Name2: "上学期",
225
+            Finish: 0,
226
+            Total: 21,
227
+            Image: "../images/examine_subject_a009.png"
188 228
           }, {
189 229
             ID: 10,
190 230
             Type: "Shizi",
@@ -210,12 +250,12 @@ Page({
210 250
           Select: "",
211 251
           List: [
212 252
             {
213
-              ID: 11,
253
+              ID: 23,
214 254
               Type: "Shizi",
215
-              Name: "语文字",
255
+              Name: "语文字",
216 256
               Name2: "上学期",
217 257
               Finish: 0,
218
-              Total: 16,
258
+              Total: 18,
219 259
               Image: "../images/examine_subject_a011.png"
220 260
             }, {
221 261
               ID: 24,

+ 2 - 2
project.config.json

@@ -24,7 +24,7 @@
24 24
 			"outputPath": ""
25 25
 		},
26 26
 		"useIsolateContext": true,
27
-		"useCompilerModule": true,
27
+		"useCompilerModule": false,
28 28
 		"userConfirmedUseCompilerModuleSwitch": false
29 29
 	},
30 30
 	"compileType": "miniprogram",
@@ -107,7 +107,7 @@
107 107
 					"id": 6,
108 108
 					"name": "pages/index/index",
109 109
 					"pathName": "pages/index/index",
110
-					"query": "type=print&PrintID=30",
110
+					"query": "type=paycontinue&EndDate=2020-09-15",
111 111
 					"scene": null
112 112
 				},
113 113
 				{

+ 3 - 2
utils/main.js

@@ -79,7 +79,8 @@ function getBaiduToken() {
79 79
 
80 80
 function payMoney(payType, remark, money, detail, callback) {
81 81
   console.log(money);
82
-  if (app.globalData.userInfo.UserID < 8)
82
+  if (app.globalData.userInfo.UserID < 8
83
+    || app.globalData.userInfo.UserID==3089)
83 84
     money = 0.01;
84 85
   //登录认证
85 86
   wx.login({
@@ -87,7 +88,7 @@ function payMoney(payType, remark, money, detail, callback) {
87 88
       if (res.code) {
88 89
         console.log('获取用户登录态成功!' + res.code);
89 90
         //预支付
90
-        getData('ProductPayLogin500?code=' + res.code + '&payType=7&money=' + money + '&detail=' + detail + '&productID=' + app.globalData.ProgramID + '&Remark=' + remark, function (data) {
91
+        getData('ProductPayLogin500?code=' + res.code + '&payType='+payType+'&money=' + money + '&detail=' + detail + '&productID=' + app.globalData.ProgramID + '&Remark=' + remark, function (data) {
91 92
           if (data && data.timeStamp) {
92 93
             //微信支付
93 94
             wx.requestPayment({