chengjie 3 年之前
父节点
当前提交
c4d11b9986

+ 1 - 1
app.js

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

二进制
pages/images/universalpic_bookmark_blue_40x40.png


+ 22 - 2
pages/index/accredit.js

@@ -5,10 +5,13 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
+    IsIPad:"",
9
+    AgeList:[{Name:"学龄前",Grade:0},{Name:"一年级",Grade:1},{Name:"二年级",Grade:2},{Name:"三年级",Grade:3},{Name:"四年级",Grade:4},{Name:"五年级",Grade:5},{Name:"六年级",Grade:6},{Name:"初中及以上",Grade:100}],
8 10
   },
9 11
   onLoad: function (options) {
10 12
     this.setData({
11 13
       Containnerheight: main.getWindowHeight(),
14
+      IsAccredit:true,
12 15
     });
13 16
 
14 17
     var that = this;
@@ -25,6 +28,12 @@ Page({
25 28
     if (!app.globalData.userInfo)
26 29
       app.globalData.userInfo = {};
27 30
 
31
+    if (app.globalData.IsIPad) {
32
+      that.setData({
33
+        IsIPad: "_iPad",
34
+      });
35
+    }
36
+
28 37
   },
29 38
   //得到用户信息
30 39
   getUserInfo: function () {
@@ -87,8 +96,8 @@ Page({
87 96
 
88 97
       if (app.globalData.userInfo.UserID){
89 98
         if (that.data.Htype==1){
90
-          main.buildInitData(function () {
91
-            that.gotoReturn();
99
+          that.setData({
100
+            IsAccredit:false,
92 101
           });
93 102
         }
94 103
         else{
@@ -123,6 +132,17 @@ Page({
123 132
       });
124 133
     }
125 134
   },
135
+  setGrade:function(e){
136
+    var that=this;
137
+    var grade=e.currentTarget.dataset.grade;
138
+    console.log(grade);
139
+    var url = 'SetGrade?UserID=' + app.globalData.userInfo.UserID+'&Grade='+grade;
140
+    main.getData(url, function (data) {
141
+      wx.navigateBack({
142
+        delta: 1
143
+      });
144
+    });
145
+  },
126 146
   onShareAppMessage: function () {
127 147
     return {
128 148
       title: app.globalData.ShareTitle,

+ 13 - 1
pages/index/accredit.wxml

@@ -3,7 +3,7 @@
3 3
   </view>
4 4
 </navigation-bar>
5 5
 
6
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
6
+<view wx:if="{{IsAccredit}}" class="container{{IsIPad}} FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
7 7
   <image src="../images/universalpic_logo_200x200.png" class='img' />
8 8
 
9 9
 
@@ -17,4 +17,16 @@
17 17
     <view>{{Info.Btn2}}</view>
18 18
   </view>
19 19
   
20
+</view>
21
+
22
+<view wx:if="{{!IsAccredit}}" class="container{{IsIPad}}  FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
23
+  <image src="../images/universalpic_logo_200x200.png" class='img{{IsIPad}}' />
24
+
25
+
26
+  <text class="text2{{IsIPad}}">选择孩子的年级</text>
27
+  <view class="panel1 FlexRow">
28
+    <view wx:for="{{AgeList}}" wx:key="*this" class="btn3" bindtap="setGrade" data-grade="{{item.Grade}}">{{item.Name}}</view>
29
+  </view>
30
+  
31
+  
20 32
 </view>

+ 43 - 0
pages/index/accredit.wxss

@@ -5,6 +5,13 @@
5 5
   color:#fff;
6 6
 }
7 7
 
8
+.container_iPad {
9
+  background-color: #0B8457;
10
+  position: fixed;
11
+  top:0rpx;
12
+  color:#fff;
13
+}
14
+
8 15
 .img{
9 16
   width:200rpx;
10 17
   height:200rpx;
@@ -12,6 +19,13 @@
12 19
   margin-top: 150rpx;
13 20
 }
14 21
 
22
+.img_iPad{
23
+  width:200rpx;
24
+  height:200rpx;
25
+  border-radius: 50%;
26
+  margin-top: 30rpx;
27
+}
28
+
15 29
 .text0{
16 30
   font-size:48rpx;
17 31
   margin-top: 120rpx;
@@ -45,3 +59,32 @@
45 59
   height: 41rpx;
46 60
   margin-right: 20rpx;
47 61
 }
62
+
63
+.text2{
64
+  font-size:54rpx;
65
+  margin-top: 170rpx;
66
+  text-align: center;
67
+}
68
+
69
+.text2_iPad{
70
+  font-size:54rpx;
71
+  margin-top: 20rpx;
72
+  text-align: center;
73
+}
74
+
75
+.panel1{
76
+  margin-top:25rpx;
77
+  flex-wrap: wrap;
78
+}
79
+
80
+.btn3{
81
+  background: #0B8457;
82
+  border: 1rpx solid #FFFFFF;
83
+  border-radius: 14rpx;
84
+  font-size: 36rpx;
85
+  color: #FFFFFF;
86
+  text-align: center;
87
+  width:285rpx;
88
+  line-height:90rpx;
89
+  margin: 15rpx;
90
+}

+ 31 - 19
pages/main/default.js

@@ -2,6 +2,7 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
+var canPress=true;//按钮按下有反应
5 6
 
6 7
 Page({
7 8
   data: {
@@ -43,10 +44,13 @@ Page({
43 44
       menus: ['shareAppMessage', 'shareTimeline']
44 45
     });
45 46
 
47
+    canPress=true;
48
+
46 49
     that.getUserFamilyInfo(app.globalData.userInfo.UserID, function (data) {});
47 50
   },
48 51
   onHide: function () {
49 52
     wx.hideLoading();
53
+    canPress=true;
50 54
   },
51 55
   onShow: function () {
52 56
     var that = this;
@@ -64,7 +68,7 @@ Page({
64 68
               url: '../index/accredit',
65 69
             });
66 70
           } else {
67
-            if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
71
+            if (!app.globalData.userInfo.IsTryOut && app.globalData.userInfo.IsShow == 1) {
68 72
               if (app.globalData.userInfo.Subscribe == 1) {
69 73
                 wx.navigateTo({
70 74
                   url: '../other/userbook',
@@ -75,7 +79,7 @@ Page({
75 79
                   url: '../other/newuser',
76 80
                 });
77 81
               }
78
-            } else if (app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1) {
82
+            } else if (app.globalData.userInfo.IsTryOut && app.globalData.userInfo.IsShow == 1) {
79 83
               if (app.globalData.GotoUrl.indexOf("../other/pay?PayType=6") >= 0) {
80 84
                 wx.navigateTo({
81 85
                   url: app.globalData.GotoUrl,
@@ -88,10 +92,6 @@ Page({
88 92
                   wx.redirectTo({
89 93
                     url: '../other/userbook',
90 94
                   });
91
-                } else if (app.globalData.userInfo.ClassDayNumber < 0) {
92
-                  wx.redirectTo({
93
-                    url: '../other/userbook',
94
-                  });
95 95
                 } else if (app.globalData.GotoUrl) {
96 96
                   //console.log(app.globalData.GotoUrl);
97 97
                   wx.navigateTo({
@@ -102,7 +102,8 @@ Page({
102 102
               }
103 103
 
104 104
             } else if (app.globalData.userInfo.IsShow == 0) {
105
-              main.buildInitData(function () {});
105
+              var url = 'SetGrade?UserID=' + app.globalData.userInfo.UserID+'&Grade=1';
106
+              main.getData(url, function (data) {});
106 107
             }
107 108
 
108 109
             that.setData({
@@ -178,21 +179,32 @@ Page({
178 179
 
179 180
   },
180 181
   goto: function (e) {
181
-    var url = e.currentTarget.dataset.url;
182
-    wx.navigateTo({
183
-      url: url,
184
-    });
185
-
186
-    if (url == "../../pages_agent/marketing/index") {
187
-      this.setData({
188
-        IsShowRemind: false,
182
+    //console.log("canPress:"+canPress);
183
+    if (canPress){
184
+      var url = e.currentTarget.dataset.url;
185
+      wx.navigateTo({
186
+        url: url,
189 187
       });
190
-      wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
191
-    }
192 188
 
193
-    if (url == "../plan/studyplan" && this.data.DayNumber <= app.globalData.IsShowSettingRemind) {
194
-      wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
189
+      if (url == "../../pages_agent/marketing/index") {
190
+        this.setData({
191
+          IsShowRemind: false,
192
+        });
193
+        wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
194
+      }
195
+
196
+      if (url == "../plan/studyplan" && this.data.DayNumber <= app.globalData.IsShowSettingRemind) {
197
+        wx.setStorageSync('IsShowSettingRemind', this.data.DayNumber);
198
+      }
199
+
200
+      canPress=false;
201
+      //console.log("canPress:"+canPress);
202
+      setTimeout(function(){
203
+        canPress=true;
204
+        //console.log("canPress:"+canPress);
205
+      },2000);
195 206
     }
207
+    
196 208
   },
197 209
   //得到当天任务
198 210
   getTaskTodayList: function () {

+ 7 - 0
pages/main/default.wxml

@@ -148,4 +148,11 @@
148 148
     <view class="text9" catchtap="goto" data-url="../other/family">设置</view>
149 149
     <image class="practise_index_board_close" src="../images/practise_index_board_close.png" catchtap="closeUserFamily"></image>
150 150
   </view>
151
+</view>
152
+
153
+<view wx:if="{{IsMaintain}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
154
+  <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
155
+  <text class='RemindText'>数据正在排队维护\n联系天乐可为您加急做完</text>
156
+  <text class='RemindText2'>您还可以尝试重启,没准快要结束了</text>
157
+  <view class='btn1' catchtap="goto" data-url="../index/index">重启小程序</view>
151 158
 </view>

+ 2 - 1
pages/main/detail.js

@@ -368,6 +368,8 @@ Page({
368 368
 
369 369
   onShowAnswer: function (e) {
370 370
     var that = this;
371
+    
372
+    wx.hideLoading();
371 373
 
372 374
     var clicktype = e.currentTarget.dataset.type;
373 375
     if (!(clicktype && clicktype == "all" && app.globalData.ClickType == 0)) {
@@ -1357,7 +1359,6 @@ Page({
1357 1359
 
1358 1360
       wx.showLoading({
1359 1361
         title: '音频下载中',
1360
-        mask: true,
1361 1362
       });
1362 1363
       setTimeout(function () {
1363 1364
         wx.hideLoading();

+ 46 - 20
pages/other/userbook.js

@@ -3,7 +3,6 @@ import main from '../../utils/main';
3 3
 
4 4
 var app = getApp();
5 5
 var arrInformation = [
6
-  {},
7 6
   {
8 7
     PageID: 1,
9 8
     text1: "课外课",
@@ -65,15 +64,15 @@ Page({
65 64
       endDate=common.formatTime(common.addDate("y", 1, new Date(app.globalData.userInfo.ProductServiceTime)));
66 65
     }
67 66
       
68
-    var arr = [];
69
-    for (var i = arrInformation.length - 1; i >= 1; i--) {
70
-      arr.push(arrInformation[i]);
71
-    }
67
+    // var arr = [];
68
+    // for (var i = arrInformation.length - 1; i >= 1; i--) {
69
+    //   arr.push(arrInformation[i]);
70
+    // }
72 71
     that.setData({
73 72
       Containnerheight: main.getWindowHeight(),
74 73
       ProductServiceTime: productServiceTime,
75 74
       EndDate: endDate,
76
-      ArrInformation: arr,
75
+      ArrInformation: arrInformation,
77 76
       IsShow: app.globalData.userInfo.IsShow,
78 77
       IsMember: app.globalData.userInfo.IsMember,
79 78
       IsPay: app.globalData.userInfo.IsPay,
@@ -96,27 +95,33 @@ Page({
96 95
     var panelShow = 0;
97 96
     if (app.globalData.userInfo.Subscribe == 1 && app.globalData.userInfo.IsProbation == 1) {
98 97
       panelShow = 1;
99
-      if (app.globalData.userInfo.IsMember == 1 && app.globalData.userInfo.ClassID > 0) {
100 98
 
101
-        var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
102
-        var ClassTimeEnd = common.formatDateCHS(app.globalData.userInfo.ClassEndDate);
103 99
 
104
-        var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-4, new Date(app.globalData.userInfo.ClassStartDate))));
105
-        var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-1, new Date(app.globalData.userInfo.ClassStartDate))));
100
+      var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
101
+      var ClassTimeEnd = common.formatDateCHS(app.globalData.userInfo.ClassEndDate);
106 102
 
107
-        var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
108
-        //console.log("ClassDayNumber:" + ClassDayNumber);
103
+      var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-4, new Date(app.globalData.userInfo.ClassStartDate))));
104
+      var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-1, new Date(app.globalData.userInfo.ClassStartDate))));
109 105
 
110
-        that.setData({
111
-          ClassTimeStart: ClassTimeStart,
112
-          ClassTimeEnd: ClassTimeEnd,
113
-          EarlyBirdTimeStart: earlyBirdTimeStart,
114
-          EarlyBirdTimeEnd: earlyBirdTimeEnd,
115
-          ClassDayNumber: ClassDayNumber,
116
-        });
106
+      var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
107
+      //console.log("ClassDayNumber:" + ClassDayNumber);
117 108
 
109
+      that.setData({
110
+        ClassTimeStart: ClassTimeStart,
111
+        ClassTimeEnd: ClassTimeEnd,
112
+        EarlyBirdTimeStart: earlyBirdTimeStart,
113
+        EarlyBirdTimeEnd: earlyBirdTimeEnd,
114
+        ClassDayNumber: ClassDayNumber,
115
+      });
116
+
117
+      //试用
118
+      if (app.globalData.userInfo.IsTryOut == 1 && app.globalData.userInfo.IsMember == 0){
118 119
         panelShow = 2;
119 120
       }
121
+      //开班
122
+      else if (app.globalData.userInfo.IsMember == 1 && app.globalData.userInfo.ClassID > 0) {
123
+        panelShow = 3;
124
+      }
120 125
     }
121 126
     else if (app.globalData.userInfo.Subscribe == 0) {
122 127
       panelShow = -1;
@@ -161,6 +166,11 @@ Page({
161 166
       url: '../index/index?type=userbook',
162 167
     })
163 168
   },
169
+  gotoReturn:function(){
170
+    wx.navigateBack({
171
+      delta: 1,
172
+    });
173
+  },
164 174
   updateMember: function () {
165 175
     if (!this.data.ChildUserID && this.data.UserID==this.data.MainUserID){
166 176
       wx.navigateTo({
@@ -168,6 +178,22 @@ Page({
168 178
       });
169 179
     }
170 180
   },
181
+  copyManager:function(){
182
+      var id="changyibzr";
183
+      wx.setClipboardData({
184
+        data: id.toString(),
185
+        success (res) {
186
+          wx.showModal({
187
+            title: '已复制',
188
+            showCancel: false,
189
+            content: "请在微信添加用户中长按粘贴。",
190
+            confirmText: '知道了',
191
+            success(res) {
192
+            }
193
+          });
194
+        }
195
+      });
196
+  },
171 197
   onShareAppMessage: function () {
172 198
     return {
173 199
       title: "用户手册",

+ 37 - 39
pages/other/userbook.wxml

@@ -14,18 +14,18 @@
14 14
         <image class='avatar' src="{{AvatarUrl}}" />
15 15
         <view class="nickname">{{NickName}}</view>
16 16
       </view>
17
-      <view class="right FlexRow" bindtap="goto" data-url="../main/systemsetting" wx:if="{{IsShow==1 && ClassDayNumber>=0 && !IsLoseEfficacy && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
17
+      <view class="right FlexRow" bindtap="goto" data-url="../main/systemsetting" wx:if="{{IsShow==1 && !IsLoseEfficacy && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1 || PanelShow===2)}}">
18 18
         <image class='universalpic_setup_white_50x50' src="../images/universalpic_setup_white_50x50.png" />
19 19
         <view>设置</view>
20 20
       </view>
21 21
     </view>
22
-    <view class="panel10 panel1 FlexRow" wx:if="{{IsMember==1 && (ClassDayNumber>=0 || IsPay==1)}}">
22
+    <view class="panel10 panel1 FlexRow" wx:if="{{IsMember==1 || PanelShow===2}}">
23 23
       <view class="left">有效期</view>
24 24
       <view class="right FlexColumn">
25 25
         <view class="panel11">{{ProductServiceTime}}</view>
26 26
       </view>
27 27
     </view>
28
-    <view class="panel2 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
28
+    <view class="panel2 FlexRow" wx:if="{{IsShow==1 && (IsPay==1 || (PanelShow>=2 && ClassDayNumber<ClassTotalDayNumber) )}}">
29 29
       
30 30
       <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/coupon" wx:if="{{IsPay==1 && MainUserID==UserID}}">
31 31
         <image class="usermanual_index_handshake" src='../images/usermanual_index_coupon.png' />
@@ -42,7 +42,7 @@
42 42
         <view>去续费</view>
43 43
       </view>
44 44
       
45
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}" wx:if="{{!IsLoseEfficacy && ClassDayNumber<ClassTotalDayNumber}}">
45
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}" wx:if="{{!IsLoseEfficacy && ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber}}">
46 46
         <image class="usermanual_index_handshake" src='../images/usermanual_index_writing.png' />
47 47
         <view>作业清单</view>
48 48
       </view>    
@@ -57,8 +57,16 @@
57 57
         <view>帐号绑定</view>
58 58
       </view>
59 59
     </view>
60
-    <view class='lineFooter'></view>
61
-    <view class="panel3 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || !IsLoseEfficacy)}}">
60
+    <view class='lineFooter' wx:if="{{PanelShow!=2}}"></view>
61
+
62
+    <view class='line3' wx:if="{{PanelShow>=2 && ClassDayNumber<0}}"></view>
63
+    <view class="panel4 FlexColumn" wx:if="{{PanelShow>=2 && ClassDayNumber<0}}">
64
+      <text class="panel41">感谢您参加「秒过」新手班。还有几天就要开班了,您可以提前试用或等待开班再体验。\n\n提前试用的朋友,强烈建议先看下面的「教学课程」,有不解的地方,开班后由产品主创人暖暖爸会为您在线答疑,欢迎您届时来交流。\n\n班务员天乐会通过微信及时提醒您开班时间,请放心。(微信号:changyibzr)</text>
65
+      <button class="btn6 btn5" bindtap='gotoReturn'>返回练习</button>
66
+    </view>
67
+
68
+
69
+    <view class="panel3 FlexRow" wx:if="{{IsShow==1 && PanelShow>=2 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || (IsPay==1))}}">
62 70
       <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=0" wx:if="{{ClassDayNumber<ClassTotalDayNumber}}">
63 71
         <view>新手包指南</view>
64 72
       </view>
@@ -66,14 +74,14 @@
66 74
         <view>小组须知</view>
67 75
       </view>
68 76
       <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/lessonlistselect">
69
-        <view>课程</view>
77
+        <view>教学课程</view>
70 78
       </view>
71 79
       <view class="panel31 FlexColumn" bindtap="goto" data-url="./tips">
72 80
         <view>小贴士</view>
73 81
       </view>
74 82
     </view>
75 83
 
76
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
84
+    <block wx:if="{{IsShow==1 && PanelShow===3 && ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
77 85
       <view class='line'></view>
78 86
       <view class="panelItem2 panelItem FlexColumn">
79 87
         <text class="text11">使用期限已过期!续费后可立即恢复使用。</text>
@@ -81,39 +89,27 @@
81 89
       <view class='lineFooter'></view>
82 90
     </block>
83 91
 
84
-    <view class="panelItem3 panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber<0}}">
85
-      <view class="text41 text4">
86
-        您的开班时间:{{ClassTimeStart}}-{{ClassTimeEnd}}。
87
-      </view>
88
-      <view class="text4">
89
-        用户手册用于发布课程、优惠活动等最新消息。目前,尚未正式启用。更多消息,开班后请再过来看看。
90
-      </view>
91
-      <view class="text42 text4">
92
-        开班当日,会通过公众号向您发送资料和通知,请勿取消关注。
93
-      </view>
94
-    </view>
95
-
96
-    <view class="panelTitle FlexRow" wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && (!IsLoseEfficacy || IsPay==0)}}">
92
+    <view class="panelTitle FlexRow" wx:if="{{IsShow==1 && PanelShow===3 && ClassDayNumber>=0 && (!IsLoseEfficacy || IsPay==0)}}">
97 93
       <view class="panelTitle1">会员活动</view>
98 94
       <view class="panelTitle2"></view>
99 95
     </view>
100 96
 
101
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>0 && IsPay==1 && !IsLoseEfficacy}}">
97
+    <block wx:if="{{IsShow==1 && PanelShow===3 && ClassDayNumber>0 && IsPay==1 && !IsLoseEfficacy}}">
102 98
       <view class="panelItem FlexColumn">
103 99
         <image class="salesactivity_a05_usermanual_banner" src='{{ImagePath}}web/salesactivity_a05_usermanual_banner.png' bindtap="goto" data-url="../../pages_agent/marketing/index" />
104 100
         <view class="marketingDetail" bindtap="goto" data-url="../../pages/other/webview?PageID=7"></view>
105 101
       </view>
106 102
     </block>
107 103
 
108
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0 && !ChildUserID}}">
104
+    <block wx:if="{{IsShow==1 && PanelShow===3 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0 && !ChildUserID}}">
109 105
       <view class="panelItem FlexColumn">
110 106
         <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
111
-        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">续费</view>
107
+        <view class="btn6 btn5" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">续费</view>
112 108
       </view>
113 109
       <view class='lineFooter'></view>
114 110
     </block>
115 111
 
116
-    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber && !ChildUserID}}">
112
+    <block wx:if="{{IsShow==1 && PanelShow===3 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber && !ChildUserID}}">
117 113
       <view class="panelItem FlexColumn">
118 114
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
119 115
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
@@ -123,7 +119,7 @@
123 119
       <view class="line"></view>
124 120
     </block>
125 121
 
126
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber}}">
122
+    <block wx:if="{{IsShow==1 && PanelShow===3 && ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber}}">
127 123
       <view class="panelItem FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">
128 124
         <image class="salesactivity_a01_usermanual_banner" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner.png' />
129 125
         <view class="text6" catchtap="goto" data-url="../other/activity?ActivityID=1&EndTime={{ClassTimeEnd}}"></view>
@@ -132,9 +128,11 @@
132 128
 
133 129
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
134 130
       <view class="line"></view>
135
-      <text class="text3">开班事宜需要通过微信与您沟通。请添加班务员微信,否则无法继续为您服务。班务员服务时间:上午10点到晚上8点。\n\n班务员微信号:changyibzr</text>
136
-      <view class="btn" bindtap='copyManager'>复制微信号</view>
137
-      <text class="text3">添加后请等待确认。这需要一点时间。之后通过微信和您联系。</text>
131
+      <text class="text13">注意,您的报名手续没有做完</text>
132
+      <text class="text3">感谢您报名「秒过」新手班,报名手续还有一步没有做完。请添加班务员的微信(微信号:changyibzr)</text>
133
+      <view class="btn5" bindtap='copyManager'>复制微信号</view>
134
+      <text class="text3">由于开班事宜需要通过微信与您联络,故此烦劳添加班务员微信,否则无法继续为您服务。\n\n如需退班,也请加微信办理退款手续。如不想再收到通知,取关公众号即可。</text>
135
+      <text class="text12">如您已经添加班务员微信,请等待片刻,如长时间没有回应,劳烦您再添加一次。班务员工作时间:上午10:00-晚上10:00。</text>
138 136
       <view class="btn4 btn" bindtap='gotoIndex'>刷新状态</view>
139 137
     </view>
140 138
 
@@ -143,32 +141,32 @@
143 141
       <view class="panelTitle2"></view>
144 142
     </view>
145 143
 
146
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber && IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=8">
144
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && (ClassDayNumber>=ClassTotalDayNumber && IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=8">
147 145
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b02.png' />
148 146
       <view class="text7">新闻</view>
149 147
       <view class="text8">秒过学习小组须知</view>
150 148
     </view>
151 149
 
152
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber-1 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
150
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && (ClassDayNumber>=ClassTotalDayNumber-1 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
153 151
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
154 152
       <view class="text7">新闻</view>
155 153
       <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
156 154
     </view>
157 155
 
158
-    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{PanelShow===2  && ((ClassDayNumber*2>=item.PageID && ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
156
+    <view class="panelItem FlexColumn" wx:if="{{(PanelShow===2 || PanelShow===3) && ((ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/lessonlistselect">
157
+      <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
158
+      <view class="text7">课程</view>
159
+      <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>
160
+    </view>
161
+
162
+    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{(PanelShow===2 || PanelShow===3) && ((ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
159 163
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
160 164
       <view class="text7">{{item.text1}}</view>
161 165
       <view class="text8">{{item.text2}}</view>
162 166
       <view class="text10">{{item.text3}}</view>
163 167
     </view>
164 168
 
165
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/lessonlistselect">
166
-      <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
167
-      <view class="text7">课程</view>
168
-      <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>
169
-    </view>
170
-
171
-    <view class="panelItem FlexColumn" wx:if="{{ PanelShow===1 || (PanelShow===2 && !IsLoseEfficacy) || (IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=0">
169
+    <view class="panelItem FlexColumn" wx:if="{{ (PanelShow===1 || PanelShow===2 || PanelShow===3) && ((ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/webview?PageID=0">
172 170
       <image class="news_mustread" src='{{ImagePath}}web/news_mustread.png' />
173 171
       <view class="text7">新闻</view>
174 172
       <view class="text8">新手包使用指南</view>

+ 46 - 0
pages/other/userbook.wxss

@@ -200,6 +200,33 @@
200 200
   width:690rpx;
201 201
   font-size:24rpx;
202 202
 }
203
+.text12 {
204
+  margin-top: 60rpx;
205
+  color:#F44336;
206
+  font-weight: 400;
207
+  width:690rpx;
208
+  font-size:24rpx;
209
+}
210
+.text13 {
211
+  margin-top: 60rpx;
212
+  color:#4D4D4D;
213
+  width:690rpx;
214
+  font-size:32rpx;
215
+}
216
+.btn5{
217
+  margin: 60rpx 0 30rpx 0;
218
+  background: #FFFFFF;
219
+  border: 4rpx solid #E65A20;
220
+  border-radius: 20rpx;
221
+  font-size: 36rpx;
222
+  color: #E65A20;
223
+  text-align: center;
224
+  width:500rpx;
225
+  line-height:100rpx;
226
+}
227
+.btn6{
228
+  margin: 60rpx 0 60rpx 0;
229
+}
203 230
 .text11 {
204 231
   color: #B3443B;
205 232
   font-size:24rpx;
@@ -340,4 +367,23 @@
340 367
   right:70rpx;
341 368
   width:200rpx;
342 369
   height:70rpx;
370
+}
371
+
372
+.panel4{
373
+  width:100%;
374
+  background-color: #fff;
375
+}
376
+
377
+.panel41{
378
+  font-size: 24rpx;
379
+  color: #B3443B;
380
+  margin: 30rpx 0 0 0;
381
+  width:690rpx;
382
+  font-weight: 400;
383
+}
384
+
385
+.line3{
386
+  width:100%;
387
+  height:20rpx;
388
+  background-color: #F0F0F0;
343 389
 }

+ 5 - 2
pages_test/test/item.js

@@ -46,7 +46,7 @@ Page({
46 46
       that.init2(options);
47 47
     else{
48 48
       if (options.bookid<100){
49
-        if (options.bookid>=25 && options.bookid<=42)
49
+        if ((options.bookid>=25 && options.bookid<=42) || (options.bookid>=74 && options.bookid<=85))
50 50
           that.initAncientPoetry(options);
51 51
         else if (options.bookid>=43 && options.bookid<=44)
52 52
           that.initPinyin(options);
@@ -105,7 +105,7 @@ Page({
105 105
       TestName1: options.name1,
106 106
       TestName2: options.name2,
107 107
     });
108
-    main.getData('GetPinyinUnitWords?UserID='+app.globalData.userInfo.UserID+'&BookID='+options.bookid+'&UnitID='+options.unitsid+'&Word='+options.name2, function (data) {
108
+    main.getData('GetPinyinUnitWords?TestType='+options.testtype+'&UserID='+app.globalData.userInfo.UserID+'&BookID='+options.bookid+'&UnitID='+options.unitsid+'&Word='+options.name2, function (data) {
109 109
       if (data) {
110 110
         TaskList = [];
111 111
         var list = data;
@@ -246,6 +246,9 @@ Page({
246 246
           var taskInfo = list[k];
247 247
           
248 248
           taskInfo.TagWidth=336;
249
+          if (options.bookid>="74")
250
+            taskInfo.TagWidth=308;
251
+
249 252
           if (taskInfo.Word.length>8)
250 253
             taskInfo.FontSize=48;
251 254
           else

+ 1 - 1
pages_test/test/list.wxml

@@ -68,7 +68,7 @@
68 68
 					重新开始
69 69
 				</view>
70 70
 
71
-				<block wx:if="{{BookID!=43 && BookID!=44}}">
71
+				<block wx:if="{{BookID!=44}}">
72 72
 				
73 73
 				<view wx:if="{{SelectItem.TestTypeWriteFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-id="{{SelectItem.WriteReportID}}" data-type="write" data-url="./item?testtype=write&bookid={{BookID}}&unitsid={{SelectItem.ID}}&name1={{Name1}}&name2={{SelectItem.Name}}">
74 74
 					<image src="../images/examine_willwrite_gray_27x27.png" class="examine_willwrite_gray_27x27" />

+ 20 - 9
pages_test/test/report.js

@@ -151,9 +151,14 @@ Page({
151 151
             List: that.data.List,
152 152
           });
153 153
         } else if (that.data.List[index].List[i].Css == "Select2") {
154
-          wx.showToast({
155
-            title: '已经生成过了',
156
-            image: "../../pages/images/universalpic_ribbon_white_96x120.png",
154
+          that.data.List[index].List[i].Css = "Select3";
155
+          that.setData({
156
+            List: that.data.List,
157
+          });
158
+        } else if (that.data.List[index].List[i].Css == "Select3") {
159
+          that.data.List[index].List[i].Css = "Select2";
160
+          that.setData({
161
+            List: that.data.List,
157 162
           });
158 163
         } else {
159 164
           that.data.List[index].List[i].Css = "Select";
@@ -171,7 +176,7 @@ Page({
171 176
       TestExistStr = [];
172 177
     for (var i = 0; i < that.data.List.length; i++) {
173 178
       for (var j = 0; j < that.data.List[i].List.length; j++) {
174
-        if (that.data.List[i].List[j].Css === "Select") {
179
+        if (that.data.List[i].List[j].Css === "Select" || that.data.List[i].List[j].Css === "Select3") {
175 180
           var item = that.data.List[i].List[j];
176 181
           var obj = {};
177 182
           obj.Field1 = item.Content[1].Content;
@@ -187,13 +192,15 @@ Page({
187 192
           obj.ID = 0;
188 193
           obj.LimitTime = common.formatTime(new Date());
189 194
           obj.FontSize = item.FontSize;
195
+
196
+          obj.Type="add";
197
+          if (that.data.List[i].List[j].Css === "Select3")
198
+            obj.Type="IsExist";
199
+
190 200
           arr.push(obj);
191 201
           TestExistStr.push(item.Word);
192 202
           
193
-        } else if (that.data.List[i].List[j].Css === "Select2") {
194
-          var item = that.data.List[i].List[j];
195
-          TestExistStr.push(item.Word);
196
-        }
203
+        } 
197 204
       }
198 205
     }
199 206
     //console.log(arr);
@@ -243,7 +250,9 @@ Page({
243 250
   },
244 251
   addCard: function (card) {
245 252
     var userid = app.globalData.userInfo.UserID;
246
-    main.postData('AddMiaoguoCard?Type=add&UserID=' + userid, card, function (data) {
253
+    var cardType=card.Type;
254
+    delete card.Type;
255
+    main.postData('AddMiaoguoCard?Type='+cardType+'&UserID=' + userid, card, function (data) {
247 256
 
248 257
     });
249 258
   },
@@ -325,6 +334,8 @@ Page({
325 334
         for(var j=0;j<list[i].List.length;j++){
326 335
           if (!list[i].List[j].Css || list[i].List[j].Css=="")
327 336
             list[i].List[j].Css="Select";
337
+          if (list[i].List[j].Css=="Select2")
338
+            list[i].List[j].Css="Select3";
328 339
         }
329 340
       }
330 341
     }

+ 3 - 2
pages_test/test/report.wxml

@@ -15,8 +15,8 @@
15 15
     </view>
16 16
     <block wx:if="{{item.Expand==1}}">
17 17
       <view class="btn{{itemChild.Css}} FlexRow" wx:for="{{item.List}}" wx:key="indexChild" wx:for-item="itemChild" wx:for-index="intexChild" bindtap="onSelectItem" data-index="{{index}}" data-word="{{itemChild.Word}}">
18
-        <image wx:if="{{itemChild.Css=='Select'}}" src="../../pages/images/universalpic_checked_white_22x17.png" class="universalpic_checked_white_22x17" />
19
-        <image wx:if="{{itemChild.Css=='Select2'}}" src="../../pages/images/universalpic_bookmark_blue_40x40.png" class="universalpic_bookmark_blue_40x40" />
18
+        <image wx:if="{{itemChild.Css=='Select' || itemChild.Css=='Select3'}}" src="../../pages/images/universalpic_checked_white_22x17.png" class="universalpic_checked_white_22x17" />
19
+        <image wx:if="{{itemChild.Css=='Select2'}}" class="circle2" />
20 20
         <view wx:if="{{!itemChild.Css}}" class="circle"></view>
21 21
         <text class="text4">{{itemChild.Word}}</text>
22 22
       </view>
@@ -45,6 +45,7 @@
45 45
   <image src="../images/examine_clipboard_200x200.png" class="examine_clipboard_200x200" />
46 46
 
47 47
   <view wx:if="{{IsBuild==1}}" class="buildText1">生成中……{{BuildCardNumber}}</view>
48
+  <text class="text6">通常这批选中的\n知识点将以「日常练习-新题卡」\n的形式出现。</text>
48 49
   <block wx:if="{{IsBuild==2}}">
49 50
     <view class="buildText1">生成完毕</view>
50 51
     <view class="buildBtn" bindtap="close">关闭</view>

+ 29 - 5
pages_test/test/report.wxss

@@ -89,6 +89,18 @@
89 89
   color:#1e1e1e;
90 90
 }
91 91
 
92
+
93
+.btnSelect3{
94
+  min-width: 88rpx;
95
+  border-radius: 10rpx;
96
+  margin: 30rpx 0 0 30rpx;
97
+  padding: 30rpx;
98
+
99
+  border:1rpx solid #0071EF;
100
+  background-color: #0071EF;
101
+  color:#fff;
102
+}
103
+
92 104
 .circle{
93 105
   width:34rpx;
94 106
   height:34rpx;
@@ -98,16 +110,21 @@
98 110
   border:3rpx solid #d2d2d2;
99 111
 }
100 112
 
113
+.circle2{
114
+  width:34rpx;
115
+  height:34rpx;
116
+  margin: 0 3rpx;
117
+  border-radius: 50%;
118
+  background-color: #F8F8F8;
119
+  border:3rpx solid #9999ff;
120
+}
121
+
101 122
 .universalpic_checked_white_22x17{
102 123
   width:22rpx;
103 124
   height:17rpx;
104 125
   margin: 0 9rpx;
105 126
 }
106 127
 
107
-.universalpic_bookmark_blue_40x40{
108
-  width:40rpx;
109
-  height:40rpx;
110
-}
111 128
 
112 129
 .text4{
113 130
   font-size:28rpx;
@@ -177,7 +194,7 @@
177 194
 
178 195
 .buildText1{
179 196
   font-size: 54rpx;
180
-  margin-top: 170rpx;
197
+  margin-top: 100rpx;
181 198
   font-weight: 500;
182 199
 }
183 200
 .buildBtn{
@@ -195,4 +212,11 @@
195 212
   color:#0071EF;
196 213
   font-size: 28rpx;
197 214
   margin: 30rpx 0 0 30rpx;
215
+}
216
+
217
+.text6{
218
+  margin-top: 60rpx;
219
+  font-size:30rpx;
220
+  font-weight: 400;
221
+  text-align: center;
198 222
 }

+ 2 - 21
utils/main.js

@@ -259,7 +259,7 @@ function EncryptUrl(str) {
259 259
   if (str) {
260 260
     str = str.replace(/baidu.com/g, "#####1#####");
261 261
     str = str.replace(/iciba.com/g, "#####2#####");
262
-    str = str.replace(/https:\/\/pinyin.kylx365.com\/sounds/g, "#####3#####");
262
+    str = str.replace(/https:\/\/pinyin-1253256735.file.myqcloud.com\/sounds/g, "#####3#####");
263 263
     str = str.replace(/https:\/\/miaguo-1253256735.file.myqcloud.com/g, "#####4#####");
264 264
 
265 265
     if (str.substr(0, 1) == "\n")
@@ -730,24 +730,6 @@ function setCollect(id, collect, callback) {
730 730
   });
731 731
 }
732 732
 
733
-function buildInitData(callback) {
734
-  var that = this;
735
-  wx.showLoading({
736
-    title: '数据初始化',
737
-  });
738
-  setTimeout(function () {
739
-    wx.hideLoading();
740
-  }, 5000);
741
-
742
-  getData('BuildInitData?UserID=' + app.globalData.userInfo.UserID, function (data) {
743
-    wx.hideLoading();
744
-    if (data) {
745
-      if (callback)
746
-        callback();
747
-    }
748
-  });
749
-}
750
-
751 733
 function getMemoryLevelAll() {
752 734
   return constant.arrMemoryLevelAll;
753 735
 }
@@ -1029,7 +1011,7 @@ function GetTestReportInfo(reportid, callback) {
1029 1011
               break;
1030 1012
           }
1031 1013
         }
1032
-        getData('GetPinyinUnitWords?UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&UnitID=' + unitsid + '&Word=' + name2, function (data) {
1014
+        getData('GetPinyinUnitWords?TestType='+userTestReportInfo.TestType+'&UserID=' + app.globalData.userInfo.UserID + '&BookID=' + bookid + '&UnitID=' + unitsid + '&Word=' + name2, function (data) {
1033 1015
           if (data) {
1034 1016
             var result = {};
1035 1017
             result.ID = userTestReportInfo.ID;
@@ -1911,7 +1893,6 @@ module.exports = {
1911 1893
   UploadUserConfig: UploadUserConfig,
1912 1894
   getServerImage: getServerImage,
1913 1895
   getBaiduToken: getBaiduToken,
1914
-  buildInitData: buildInitData,
1915 1896
   getPinyinNormal: getPinyinNormal,
1916 1897
   getHanzi: getHanzi,
1917 1898
   getEnglish: getEnglish,