chengjie 4 年之前
父節點
當前提交
b28351e043

+ 2 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.1.18",
3
+    Version: "2.1.20",
4 4
     IsProduction: true,
5 5
     ShareTitle: "高效学习从秒过开始",
6 6
     SharePath: "pages/index/index",
@@ -13,6 +13,7 @@ App({
13 13
     serverUrlLocalhost: "http://localhost:3020/apiData/",
14 14
     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 15
     uploadImageUrl: "https://miaguo-1253256735.file.myqcloud.com/",
16
+    officialAccounts:"https://mp.weixin.qq.com/s/gO9S4PrPl1Uu1iksyRuBgw",
16 17
     BaiduToken: "",//百度开发平台token
17 18
     IsIOS: true,
18 19
     IsAndroid: false,

+ 1 - 1
app.json

@@ -17,7 +17,7 @@
17 17
     "pages/main/preview",
18 18
     "pages/plan/pattern",
19 19
     "pages/index/accredit",
20
-    "pages/index/openSetting",
20
+    "pages/other/openSetting",
21 21
 
22 22
     "pages/test/index",
23 23
     "pages/test/list",

二進制
pages/images/signup_registration_illus.png


+ 47 - 49
pages/index/accredit.js

@@ -2,83 +2,58 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
-var urlRedirectTo = "";
6 5
 
7 6
 Page({
8 7
   data: {
9
-    ShowNotice: false,
10 8
   },
11 9
   onLoad: function (options) {
12
-    urlRedirectTo = options.url;
13 10
     this.setData({
14 11
       Containnerheight: main.getWindowHeight(),
15
-      IsShow: app.globalData.userInfo.IsShow,
16 12
     });
17 13
 
18
-    this.init();
19
-
20
-    if (!app.globalData.userInfo)
21
-      app.globalData.userInfo = {};
22
-  },
23
-  init: function () {
24 14
     var that = this;
25
-    main.getData("GetAccreditInfo?IsShow=" + app.globalData.userInfo.IsShow, function (data) {
15
+    var hType=0;
16
+    if (options.Type)
17
+      hType=options.Type;
18
+    main.getData("GetAccreditInfo?Type=" + hType, function (data) {
26 19
       that.setData({
27 20
         Info: data,
21
+        Htype:hType,
28 22
       });
29 23
     });
30
-  },
31
-  goto: function () {
32
-    var that = this;
33
-    wx.getSetting({
34
-      success(res) {
35
-        if (!res.authSetting['scope.userInfo']) {
36
-          wx.authorize({
37
-            scope: 'scope.userInfo',
38
-            success() {
39
-              that.getUserInfo();
40
-            },
41
-          })
42
-        } else {
43
-          that.getUserInfo();
44
-        }
45
-      }
46
-    });
24
+
25
+    if (!app.globalData.userInfo)
26
+      app.globalData.userInfo = {};
27
+
47 28
   },
48 29
   //得到用户信息
49 30
   getUserInfo: function () {
50 31
     var that = this
51 32
 
52 33
     wx.getUserProfile({
53
-      desc: "沟通需要",
34
+      desc: "登录注册",
54 35
       success: function (res2) {
36
+        that.data.Info.Text3=null;
37
+        that.setData({
38
+          Info: that.data.Info,
39
+        });
40
+
55 41
         app.globalData.userInfo.NickName = res2.userInfo.nickName;
56 42
         app.globalData.userInfo.AvatarUrl = res2.userInfo.avatarUrl;
57
-
43
+        
58 44
         //调用登录接口
59 45
         wx.login({
60 46
           success: function (res0) {
61
-            // wx.getUserInfo({
62
-            //   withCredentials: true,
63
-            //   success: function (res) {
64
-                 app.globalData.userInfo.Code = res0.code;
65
-            //     app.globalData.userInfo.iv = res.iv;
66
-            //     app.globalData.userInfo.encryptedData = res.encryptedData;
67
-
47
+            app.globalData.userInfo.Code = res0.code;
68 48
             that.login(app.globalData.userInfo, res2.userInfo);
69
-            //   },
70
-            //   fail: function (res) {
71
-            //     that.gotoReturn();
72
-            //   }
73
-            // });
74 49
           }
75 50
         });
76 51
       },
77 52
       fail: function (res) {
78 53
         console.log(res);
54
+        that.gotoReturn();
79 55
       }
80 56
     });
81
-
82 57
   },
83 58
   login: function (param, param2) {
84 59
     var that = this;
@@ -110,20 +85,43 @@ Page({
110 85
 
111 86
       app.globalData.userInfo.IsMember = data.IsMember;
112 87
 
113
-      if (app.globalData.userInfo.UserID)
114
-        main.buildInitData(function () {
88
+      if (app.globalData.userInfo.UserID){
89
+        if (that.data.Htype==1){
90
+          main.buildInitData(function () {
91
+            that.gotoReturn();
92
+          });
93
+        }
94
+        else{
115 95
           that.gotoReturn();
116
-        });
96
+        }
97
+      }
117 98
       else {
118 99
         app.globalData.userInfo.UserID = data.UserID;
119 100
         that.gotoReturn();
120 101
       }
102
+      wx.setStorageSync("AccreditLimitTime",common.formatTime(new Date(),"-",true)+" 23:59:59");
121 103
     });
122 104
   },
123 105
   gotoReturn: function () {
124
-    wx.navigateBack({
125
-      delta: 1
126
-    });
106
+    var that = this;
107
+    if (app.globalData.userInfo.IsShow == 1 && that.data.Info.Text3){
108
+      wx.showModal({
109
+        title: '提醒',
110
+        showCancel: false,
111
+        content: that.data.Info.Text3,
112
+        confirmText: '知道了',
113
+        success(res) {
114
+          if (res.confirm) {
115
+            wx.setStorageSync("IsRemindContinuousNew",1);
116
+          }
117
+        }
118
+      });
119
+    }
120
+    else{
121
+      wx.navigateBack({
122
+        delta: 1
123
+      });
124
+    }
127 125
   },
128 126
   onShareAppMessage: function () {
129 127
     return {

+ 4 - 0
pages/index/accredit.json

@@ -1,5 +1,9 @@
1 1
 {
2 2
   "navigationBarTitleText": "秒过",
3
+  "usingComponents": {
4
+    "navigation-bar": "/components/navigation-bar/navigation-bar"
5
+  },  
6
+  "navigationStyle": "custom",
3 7
   "navigationBarBackgroundColor": "#0B8457",
4 8
   "navigationBarTextStyle": "white",
5 9
   "backgroundColor": "#0B8457"

+ 10 - 16
pages/index/accredit.wxml

@@ -1,3 +1,8 @@
1
+<navigation-bar title="秒过" background="#0B8457" color="#fff" show="true" left="true">
2
+  <view slot="left" >
3
+  </view>
4
+</navigation-bar>
5
+
1 6
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 7
   <image src="../images/universalpic_logo_200x200.png" class='img' />
3 8
 
@@ -5,22 +10,11 @@
5 10
   <text class="text0">{{Info.Text1}}</text>
6 11
   <text class="text1">{{Info.Text2}}</text>
7 12
 
8
-  <view class="FlexRow" wx:if="{{!Info.Btn3}}">
9
-    <button bindtap="gotoReturn" class="btn2 btn FlexRow">
10
-      <view>{{Info.Btn2}}</view>
11
-    </button>
12
-    <button catchtap="getUserInfo" class="btn2 btn FlexRow">
13
-      <view>{{Info.Btn1}}</view>
14
-    </button>
15
-  </view>
16
-  <!-- <button wx:if="{{Info.Btn3}}" open-type="getUserInfo" bindgetuserinfo="goto" class="btn FlexRow">
17
-    <image src="../images/universalpic_share_white_52x40.png" class="universalpic_share_white_52x40" />
18
-    <view>{{Info.Btn3}}</view>
19
-  </button>
20
-   -->
21
-   <button wx:if="{{Info.Btn3}}" catchtap="getUserInfo" class="btn FlexRow">
22
-    <image src="../images/universalpic_share_white_52x40.png" class="universalpic_share_white_52x40" />
23
-    <view>{{Info.Btn3}}</view>
13
+  <button catchtap="getUserInfo" class="btn FlexRow">
14
+    <view>{{Info.Btn1}}</view>
24 15
   </button>
16
+  <view catchtap="gotoReturn" class="btn2 btn FlexRow">
17
+    <view>{{Info.Btn2}}</view>
18
+  </view>
25 19
   
26 20
 </view>

+ 10 - 8
pages/index/accredit.wxss

@@ -1,7 +1,7 @@
1 1
 .container {
2 2
   background-color: #0B8457;
3 3
   position: fixed;
4
-  top:0;
4
+  top:120rpx;
5 5
   color:#fff;
6 6
 }
7 7
 
@@ -13,8 +13,8 @@
13 13
 }
14 14
 
15 15
 .text0{
16
-  font-size:54rpx;
17
-  margin-top: 170rpx;
16
+  font-size:48rpx;
17
+  margin-top: 120rpx;
18 18
   text-align: center;
19 19
 }
20 20
 
@@ -25,17 +25,19 @@
25 25
 }
26 26
 
27 27
 .btn{
28
-  width:600rpx;
29
-  height:90rpx;
28
+  width:400rpx;
29
+  height:110rpx;
30 30
   border-radius: 14rpx;
31 31
   border:1rpx solid #fff;
32 32
   background-color: #0B8457;
33
-  margin-top: 40rpx;
33
+  margin-top: 60rpx;
34 34
   color:#fff;
35
+  font-size:36rpx;
35 36
 }
36 37
 .btn2{
37
-  width:280rpx;
38
-  margin: 40rpx 20rpx;
38
+  border:1rpx solid #0B8457;
39
+  margin: 40rpx 0 0 0;
40
+  font-size:28rpx;
39 41
 }
40 42
 
41 43
 .universalpic_share_white_52x40{

+ 1 - 1
pages/main/add.js

@@ -1241,7 +1241,7 @@ Page({
1241 1241
             that.showRecorder();
1242 1242
           } else if (res.authSetting['scope.record'] === false) {
1243 1243
             wx.navigateTo({
1244
-              url: '../index/openSetting',
1244
+              url: '../other/openSetting',
1245 1245
             });
1246 1246
           }
1247 1247
         }

+ 2 - 8
pages/main/cardmain.js

@@ -203,14 +203,8 @@ Page({
203 203
     }
204 204
   },
205 205
   gotoAccredit:function(){
206
-    wx.getSetting({
207
-      success(res) {
208
-        if (!res.authSetting['scope.userInfo']){
209
-          wx.navigateTo({
210
-            url: '../index/accredit',
211
-          })
212
-        }
213
-      }
206
+    wx.navigateTo({
207
+      url: '../index/accredit',
214 208
     });
215 209
   },
216 210
   openOrder:function(){

+ 17 - 11
pages/main/default.js

@@ -210,15 +210,7 @@ Page({
210 210
             IsStart: data.IsStart,
211 211
           });
212 212
 
213
-          if(app.globalData.MemoryLevel==0 && data.DayNumber>=8){
214
-            var IsShowPatternMenu = wx.getStorageSync("IsShowPatternMenu");
215
-            if (!IsShowPatternMenu){
216
-              wx.navigateTo({
217
-                url: '../other/menu?Type=1',
218
-              });
219
-              wx.setStorageSync('IsShowPatternMenu', 1);
220
-            }
221
-          }
213
+          
222 214
 
223 215
           //是否显示提示任务量设置
224 216
           if (that.data.DayNumber<=app.globalData.IsShowSettingRemind){
@@ -246,10 +238,22 @@ Page({
246 238
                 });
247 239
               });
248 240
 
249
-              //判断每30天是否是高级模式
250
-              wx.removeStorageSync('IsShowPatternMenu');
241
+            }
242
+            else{
243
+              
244
+              if(app.globalData.MemoryLevel==0 && data.DayNumber>=8){
245
+                var IsShowPatternMenu = wx.getStorageSync("IsShowPatternMenu");
246
+                if (!IsShowPatternMenu){
247
+                  wx.navigateTo({
248
+                    url: '../other/menu?Type=1',
249
+                  });
250
+                  wx.setStorageSync('IsShowPatternMenu', 1);
251
+                }
252
+              }
251 253
             }
252 254
           });
255
+
256
+          
253 257
         }
254 258
       });
255 259
     });
@@ -415,6 +419,8 @@ Page({
415 419
       IsShowRemind: false,
416 420
     });
417 421
     wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d", 30, new Date())));
422
+    //判断每30天是否是高级模式
423
+    wx.removeStorageSync('IsShowPatternMenu');
418 424
   },
419 425
   setVersionStart:function(e){
420 426
     var flag=e.currentTarget.dataset.flag;

+ 4 - 1
pages/main/default.wxml

@@ -86,7 +86,10 @@
86 86
     <view class="panel2 FlexRow">
87 87
       <input class='input2 input' type="number"  always-embed="true"  placeholder="版本号" value="{{VersionID}}" bindinput="onKeyInput" data-type="versionid"/>
88 88
       <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="1">开通</button>
89
-      <!-- <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="-1">关闭</button> -->
89
+    </view>
90
+
91
+    <view class="panel2 FlexRow">
92
+     <button class="btn2" bindtap="goto" data-url="../other/webview?url=https://mp.weixin.qq.com/s/nBQA9X-PwkdlxKaIjLOf5w">跳转公众号</button>
90 93
     </view>
91 94
 </view>
92 95
 

+ 3 - 3
pages/main/systemsetting.js

@@ -25,9 +25,9 @@ Page({
25 25
     });
26 26
   },
27 27
   updateMember: function () {
28
-    wx.reLaunch({
29
-      url: '../index/index',
30
-    })
28
+    wx.navigateTo({
29
+      url: '../index/accredit',
30
+    });
31 31
   },
32 32
   gotoSymbol: function (e) {
33 33
     wx.navigateTo({

+ 1 - 1
pages/main/systemsetting.wxml

@@ -18,7 +18,7 @@
18 18
   </view>
19 19
   <view class='lineFooter'></view>
20 20
   <view class="panelItem00 panelItem FlexRow" bindtap='updateMember'>
21
-    重启小程序
21
+    重新获取用户信息
22 22
   </view>
23 23
   <view class="text2">{{ShowUserID}}</view>
24 24
   <view style='width:100%;height:50rpx;'></view>

+ 6 - 12
pages/other/binding.js

@@ -111,18 +111,12 @@ Page({
111 111
   onShow: function (options) {
112 112
     var that = this;
113 113
     if (app.globalData.userInfo.IsShow == 1) {
114
-      wx.getSetting({
115
-        success(res) {
116
-          if (res.authSetting['scope.userInfo']) {
117
-
118
-          }
119
-          else {
120
-            wx.navigateTo({
121
-              url: '../index/accredit',
122
-            });
123
-          }
124
-        }
125
-      });
114
+      var today=wx.getStorageSync("AccreditLimitTime");
115
+      if (common.formatTime(new Date(),"-")>today){
116
+        wx.navigateTo({
117
+          url: '../index/accredit',
118
+        });
119
+      }
126 120
     }
127 121
   },
128 122
   shareFinished: function () {

+ 2 - 14
pages/other/newuser.js

@@ -12,6 +12,7 @@ Page({
12 12
     IsShowMore:false,
13 13
     IsPlay:false,
14 14
     ImagePath: app.globalData.uploadImageUrl,
15
+    officialAccounts:app.globalData.officialAccounts,
15 16
   },
16 17
   onLoad: function (options) {
17 18
     var that = this;
@@ -117,20 +118,7 @@ Page({
117 118
       });
118 119
       if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsShow == 1){
119 120
         wx.navigateTo({
120
-          url: '../index/accredit',
121
-        });
122
-      }
123
-    });
124
-  },
125
-  copyManager: function () {
126
-    wx.setClipboardData({
127
-      data: "秒过学习法",
128
-      success(res) {
129
-        wx.showModal({
130
-          title: '已复制',
131
-          showCancel: false,
132
-          content: "请在微信添加公众号中长按粘贴。",
133
-          confirmText: "知道了",
121
+          url: '../index/accredit?Type=1',
134 122
         });
135 123
       }
136 124
     });

+ 10 - 7
pages/other/newuser.wxml

@@ -1,6 +1,5 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
+<view wx:if="{{PanelShow==0}}" class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 
3
-  <block wx:if="{{PanelShow==0}}">
4 3
     <image id="Image{{index}}" wx:for="{{List}}" wx:key="*this" class="img" lazy-load="true" mode="widthFix" 
5 4
     src='{{ImagePath}}web/{{item.Image}}.png' bindtap="{{item.BindTap}}" data-url="{{item.Url}}"  
6 5
     bindtouchmove="scroll" wx:if="{{ (!IsShowMore && index<24) || IsShowMore}}"/>
@@ -30,9 +29,13 @@
30 29
         <image class="bm_sy_banner-zf" src='{{ImagePath}}web/bm_sy_banner-bm.png' />
31 30
       </view>
32 31
     </view>
33
-  </block>
34
-  <block wx:if="{{PanelShow==1}}">
35
-    <image src="{{ImagePath}}web/trial_registration_xcode2.png" class="trial_registration_xcode2"></image>
36
-    <view class="btn" bindtap='copyManager'>复制公众号名称</view>
37
-  </block>
32
+</view>
33
+
34
+<view wx:if="{{PanelShow==1}}" class="container2 container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
35
+  <image src="../images/signup_registration_illus.png" class="signup_registration_illus"></image>
36
+  <view class="text5">接下来</view>
37
+  <view class="text6">为您安排培训事宜</view>
38
+  <view class="text7">还有2步</view>
39
+  <view class="text6">操作劳您配合</view>
40
+  <view class="btn4" bindtap="goto" data-url="../other/webview?url={{officialAccounts}}">下一步</view>
38 41
 </view>

+ 29 - 3
pages/other/newuser.wxss

@@ -98,9 +98,9 @@
98 98
   height:60rpx;
99 99
 }
100 100
 
101
-.trial_registration_xcode2{
101
+.signup_registration_illus{
102 102
   width:100%;
103
-  height:910rpx;
103
+  height:260rpx;
104 104
 }
105 105
 
106 106
 .btn3{
@@ -112,4 +112,30 @@
112 112
   line-height: 110rpx;
113 113
   border:2rpx solid #D2D2D2;
114 114
   background-color: #fff;
115
-}
115
+}
116
+
117
+.container{
118
+  background-color: #fff;
119
+}
120
+.text5{
121
+  font-size:48rpx;
122
+  margin-top:20rpx;
123
+}
124
+.text6{
125
+  font-size:48rpx;
126
+}
127
+.text7{
128
+  font-size:64rpx;
129
+  margin-top:50rpx;
130
+}
131
+.btn4{
132
+  font-size:36rpx;
133
+  width:400rpx;
134
+  height:110rpx;
135
+  border-radius: 10rpx;
136
+  text-align: center;
137
+  line-height: 110rpx;
138
+  background-color: #5282FA;
139
+  color:#fff;
140
+  margin-top:130rpx;
141
+}

pages/index/openSetting.js → pages/other/openSetting.js


pages/index/openSetting.json → pages/other/openSetting.json


pages/index/openSetting.wxml → pages/other/openSetting.wxml


pages/index/openSetting.wxss → pages/other/openSetting.wxss


+ 7 - 22
pages/other/userbook.js

@@ -45,7 +45,8 @@ var arrInformation = [
45 45
 
46 46
 Page({
47 47
   data: {
48
-    ImagePath: app.globalData.uploadImageUrl,
48
+    ImagePath: app.globalData.uploadImageUrl, 
49
+    officialAccounts:app.globalData.officialAccounts,
49 50
     PanelShow: -2,
50 51
   },
51 52
   onPullDownRefresh: function () {
@@ -129,27 +130,6 @@ Page({
129 130
       });
130 131
     }
131 132
   },
132
-  copyManager: function (e) {
133
-    var copytype = e.currentTarget.dataset.copytype;
134
-    var str1 = "changyibzr";
135
-    var str2 = "请在微信添加用户中长按粘贴。";
136
-    if (copytype && copytype == "公众号") {
137
-      str1 = "秒过学习法";
138
-      str2 = "请在微信添加公众号中长按粘贴。";
139
-    }
140
-
141
-    wx.setClipboardData({
142
-      data: str1,
143
-      success(res) {
144
-        wx.showModal({
145
-          title: '已复制',
146
-          showCancel: false,
147
-          content: str2,
148
-          confirmText: "知道了",
149
-        });
150
-      }
151
-    })
152
-  },
153 133
   goto: function (e) {
154 134
     var url = e.currentTarget.dataset.url;
155 135
     wx.navigateTo({
@@ -161,6 +141,11 @@ Page({
161 141
       url: '../index/index?type=userbook',
162 142
     })
163 143
   },
144
+  updateMember: function () {
145
+    wx.navigateTo({
146
+      url: '../index/accredit',
147
+    });
148
+  },
164 149
   onShareAppMessage: function () {
165 150
     return {
166 151
       title: "用户手册",

+ 7 - 6
pages/other/userbook.wxml

@@ -1,15 +1,16 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <block wx:if="{{PanelShow===-1}}">
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>
3
+    <text class="text00">烦劳您\n关注公众号</text>
4
+    <text class="text01">公众号用于帐户验证、开通服务、\n传递通知,保障秒过小程序运行正常。\n关注后就能继续使用。</text>
5
+    <text class="text02">公众号名称:秒过学习法</text>
6
+    <view class="btn00" bindtap="goto" data-url="../other/webview?url={{officialAccounts}}">去扫码</view>
7
+    <text class="text03" bindtap="onPullDownRefresh">如已关注</text>
8
+    <text class="text04" bindtap="onPullDownRefresh">点这里刷新状态</text>
8 9
   </block>
9 10
 
10 11
   <block wx:if="{{PanelShow>0}}">
11 12
     <view class='userinfo FlexRow'>
12
-      <view class="left FlexRow">
13
+      <view class="left FlexRow" bindtap="updateMember">
13 14
         <image class='avatar' src="{{AvatarUrl}}" />
14 15
         <view class="nickname">{{NickName}}</view>
15 16
       </view>

+ 26 - 19
pages/other/userbook.wxss

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

+ 10 - 3
pages/other/webview.js

@@ -9,9 +9,16 @@ Page({
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
12
-    that.setData({
13
-      PageID:options.PageID,
14
-    });
12
+    if (options.url){
13
+      that.setData({
14
+        Url:options.url,
15
+      });
16
+    }
17
+    else{
18
+      that.setData({
19
+        Url:"https://www.kylx365.com/webpage?PageID="+options.PageID,
20
+      });
21
+    }
15 22
   },
16 23
   onUnload:function(){
17 24
   },

+ 1 - 1
pages/other/webview.wxml

@@ -1 +1 @@
1
-<web-view src="https://www.kylx365.com/webpage?PageID={{PageID}}"></web-view>
1
+<web-view src="{{Url}}"></web-view>

+ 0 - 7
pages/test/index.wxml

@@ -1,11 +1,4 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <!-- <view class="panelTop FlexRow" bindtap="showSelectGrade">
3
-    <view class="panelTop1">{{GradeArr[TestSelectGrade].Name2}}</view>
4
-    <view class="panelTop2 FlexRow">
5
-      <image class="universalpic_menu_blue_26x26" src="../images/universalpic_menu_blue_26x26.png"></image>
6
-      <view>更改年级科目</view>
7
-    </view>
8
-  </view> -->
9 2
   <view class="panelTop FlexRow">
10 3
     <view class="panelTop1 FlexColumn" catchtap="selectSubject" data-type="CHN">
11 4
       <view>语文</view>

+ 70 - 67
pages/test/item.js

@@ -339,80 +339,83 @@ Page({
339 339
 
340 340
     var that = this;
341 341
     var str = e.currentTarget.dataset.content;
342
-    var url;
343
-    if (str == "recorder") {
344
-      url = e.currentTarget.dataset.soundmark;
345
-    }
346
-    else if (str.indexOf("英 [") >= 0 || str.indexOf("美 [") >= 0 || str.indexOf("baidu.com")>0 || str.indexOf("iciba.com")>0) {
347
-      str = str.replace("英 [", "[");
348
-      str = str.replace("美 [", "[");
349
-      url = e.currentTarget.dataset.soundmark;
350
-      if (!url)
351
-        url=str;
352
-    }
353
-    else if (e.currentTarget.dataset.soundmark && e.currentTarget.dataset.soundmark != "undefined") {
354
-      var soundmark = e.currentTarget.dataset.soundmark;
355
-      if (soundmark && soundmark.indexOf("http") < 0) {
356
-        url = app.globalData.audioUrlBaidu;
357
-        url = url.replace("[token]", app.globalData.BaiduToken);
358
-        url = url.replace("[word]", soundmark);
342
+    if (str){
343
+      var url;
344
+      if (str == "recorder") {
345
+        url = e.currentTarget.dataset.soundmark;
346
+      }
347
+      else if (str.indexOf("英 [") >= 0 || str.indexOf("美 [") >= 0 || str.indexOf("baidu.com")>0 || str.indexOf("iciba.com")>0 || str.indexOf("myqcloud.com")>0) {
348
+        str = str.replace("英 [", "[");
349
+        str = str.replace("美 [", "[");
350
+        url = e.currentTarget.dataset.soundmark;
351
+        if (!url)
352
+          url=str;
353
+      }
354
+      else if (e.currentTarget.dataset.soundmark && e.currentTarget.dataset.soundmark != "undefined") {
355
+        var soundmark = e.currentTarget.dataset.soundmark;
356
+        if (soundmark && soundmark.indexOf("http") < 0) {
357
+          url = app.globalData.audioUrlBaidu;
358
+          url = url.replace("[token]", app.globalData.BaiduToken);
359
+          url = url.replace("[word]", soundmark);
360
+        }
361
+        else {
362
+          url = soundmark;
363
+        }
359 364
       }
360 365
       else {
361
-        url = soundmark;
366
+        url = app.globalData.audioUrlBaidu;
367
+        url = url.replace("[token]", app.globalData.BaiduToken);
368
+        url = url.replace("[word]", str);
362 369
       }
363
-    }
364
-    else {
365
-      url = app.globalData.audioUrlBaidu;
366
-      url = url.replace("[token]", app.globalData.BaiduToken);
367
-      url = url.replace("[word]", str);
368
-    }
369
-
370
-
371
-    if (url.indexOf("http") > 0)
372
-      url = url.substr(url.indexOf("http"));
373
-    if (url.indexOf("'") > 0)
374
-      url = common.ReplaceAllString(url, "'", "");
375
-    url = url.replace("http://", "https://");
376
-
377
-    url = encodeURI(url);
378
-    if (!isPlaying || tempPlayUrl == "" || url != tempPlayUrl) {
379
-      isPlaying = true;
380
-      timeoutPlayAudio = setTimeout(function () {
381
-        isPlaying = false;
382
-      }, 60000);
383
-
384
-      wx.showLoading({
385
-        title: '音频下载中',
386
-        mask: true,
387
-      });
388
-      setTimeout(function () {
389
-        wx.hideLoading();
390
-      }, 30000);
391
-
392
-      wx.downloadFile({
393
-        url: url,
394
-        success(res) {
370
+  
371
+  
372
+      if (url.indexOf("http") > 0)
373
+        url = url.substr(url.indexOf("http"));
374
+      if (url.indexOf("'") > 0)
375
+        url = common.ReplaceAllString(url, "'", "");
376
+      url = url.replace("http://", "https://");
377
+  
378
+      url = encodeURI(url);
379
+      if (!isPlaying || tempPlayUrl == "" || url != tempPlayUrl) {
380
+        isPlaying = true;
381
+        timeoutPlayAudio = setTimeout(function () {
382
+          isPlaying = false;
383
+        }, 60000);
384
+  
385
+        wx.showLoading({
386
+          title: '音频下载中',
387
+          mask: true,
388
+        });
389
+        setTimeout(function () {
395 390
           wx.hideLoading();
396
-          if (res.statusCode === 200) {
397
-            tempPlayUrlLocal = res.tempFilePath;
398
-            if (that.audioCtx){
399
-              that.audioCtx.setSrc(res.tempFilePath);
400
-              that.audioCtx.play();
391
+        }, 30000);
392
+  
393
+        wx.downloadFile({
394
+          url: url,
395
+          success(res) {
396
+            wx.hideLoading();
397
+            if (res.statusCode === 200) {
398
+              tempPlayUrlLocal = res.tempFilePath;
399
+              if (that.audioCtx){
400
+                that.audioCtx.setSrc(res.tempFilePath);
401
+                that.audioCtx.play();
402
+              }
403
+              tempPlayUrl = url;
401 404
             }
402
-            tempPlayUrl = url;
405
+          },
406
+          fail(err) {
407
+            wx.hideLoading();
403 408
           }
404
-        },
405
-        fail(err) {
406
-          wx.hideLoading();
407
-        }
408
-      });
409
-    }
410
-    else {
411
-      this.audioCtx.pause();
412
-      if (innerAudioContext1)
413
-        innerAudioContext1.stop();
414
-      isPlaying = false;
409
+        });
410
+      }
411
+      else {
412
+        this.audioCtx.pause();
413
+        if (innerAudioContext1)
414
+          innerAudioContext1.stop();
415
+        isPlaying = false;
416
+      }
415 417
     }
418
+    
416 419
   },
417 420
   audioBindEnded: function () {
418 421
     isPlaying = false;

+ 11 - 2
pages/test/list.js

@@ -23,6 +23,7 @@ Page({
23 23
         wx.removeStorageSync("HanziAll");
24 24
         wx.removeStorageSync("NewConceptEngList");
25 25
         wx.removeStorageSync("CambridgeEngList");
26
+        wx.removeStorageSync("PhoneticEngList");
26 27
         main.getHanzi(function (arr) {
27 28
           that.init(options);
28 29
         });
@@ -40,7 +41,7 @@ Page({
40 41
       title: name
41 42
     });
42 43
     var arr = [];
43
-    var listType="hanzi";
44
+    var listType="hanzi",fieldName="单词",fieldName2="说含义";
44 45
     if (that.data.BookID > 130){
45 46
       arr = wx.getStorageSync("CambridgeEngList");
46 47
       listType="english";
@@ -49,15 +50,23 @@ Page({
49 50
       arr = wx.getStorageSync("NewConceptEngList");
50 51
       listType="english";
51 52
     }
52
-    else if (that.data.BookID > 100){
53
+    else if (that.data.BookID > 110){
53 54
       arr = wx.getStorageSync("EnglishAll");
54 55
       listType="english";
55 56
     }
57
+    else if (that.data.BookID > 100){
58
+      arr = wx.getStorageSync("PhoneticEngList");
59
+      fieldName="音标";
60
+      fieldName2="";
61
+      listType="english";
62
+    }
56 63
     else
57 64
       arr = wx.getStorageSync("HanziAll");
58 65
     
59 66
     that.setData({
60 67
       ListType: listType,
68
+      FieldName:fieldName,
69
+      FieldName2:fieldName2,
61 70
     });
62 71
       
63 72
     arr = JSON.parse(arr);

+ 24 - 23
pages/test/list.wxml

@@ -1,8 +1,8 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 	<view class="text1" wx:if="{{ListType!='english'}}">请对照课本选择字组</view>
3
-	<view class="text1" wx:if="{{ListType=='english' && BookID<120}}">将词汇等分成若干单元以便分批检验,分割方法并无特殊含义</view>
3
+	<view class="text1" wx:if="{{ListType=='english' && BookID>110 && BookID<120}}">将词汇等分成若干单元以便分批检验,分割方法并无特殊含义</view>
4 4
 	<view class="text1" wx:if="{{ListType=='english' && BookID>120 && BookID<130}}">词汇根据Lesson分组</view>
5
-	<view class="textNull" wx:if="{{ListType=='english' && BookID>130 && BookID<140}}"></view>
5
+	<view class="textNull" wx:if="{{ListType=='english' && ((BookID>130 && BookID<140) || (BookID>100 && BookID<110))}}"></view>
6 6
 
7 7
 	<block wx:for="{{List}}" wx:key="index">
8 8
 		<view class="PanelItem FlexColumn" bindtap="onShowFrame" data-id="{{item.ID}}">
@@ -19,10 +19,10 @@
19 19
 					<view class="right1 FlexRow">
20 20
 						<image wx:if="{{item.TestTypeRead==1}}" class="examine_willread_gray_22x22" src="../images/examine_willread_green_22x22.png"></image>
21 21
 						<image wx:if="{{!item.TestTypeRead}}" class="examine_willread_gray_22x22" src="../images/examine_willread_gray_22x22.png"></image>
22
-						<image wx:if="{{item.TestTypeWrite==1}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_green_22x22.png"></image>
23
-						<image wx:if="{{!item.TestTypeWrite}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_gray_22x22.png"></image>
22
+						<image wx:if="{{item.TestTypeWrite==1 && (BookID<=100 || BookID>110)}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_green_22x22.png"></image>
23
+						<image wx:if="{{!item.TestTypeWrite && (BookID<=100 || BookID>110)}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_gray_22x22.png"></image>
24 24
 					</view>
25
-					<view class="right2">{{item.Words.length}}个<block wx:if="{{ListType=='english'}}">单词</block><block wx:if="{{ListType=='hanzi'}}">字</block></view>
25
+					<view class="right2">{{item.Words.length}}个<block wx:if="{{ListType=='english'}}">{{FieldName}}</block><block wx:if="{{ListType=='hanzi'}}">字</block></view>
26 26
 				</view>
27 27
 			</view>
28 28
 			<view class="lineWidthAll FlexRow" wx:if="{{ListType!='english'}}">
@@ -87,33 +87,34 @@
87 87
 			<view class="btnPanel0 btnPanel FlexColumn">
88 88
 				<view wx:if="{{SelectItem.TestTypeReadFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-id="{{SelectItem.ReadReportID}}" data-url="./item?testtype=read&bookid={{BookID}}&unitsid={{SelectItem.ID}}&name1={{Name1}}&name2={{SelectItem.Name}}">
89 89
 					<image src="../images/examine_willread_gray_30x30.png" class="examine_willread_gray_30x30" />
90
-					<view class="SelectContainer1Text3">念单词说含义</view>
90
+					<view class="SelectContainer1Text3">念{{FieldName}}{{FieldName2}}</view>
91 91
 				</view>
92 92
 				<view wx:if="{{!SelectItem.TestTypeReadFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-id="{{SelectItem.ReadReportID}}" data-type="continue">
93 93
 					<image src="../images/examine_willread_green_30x30.png" class="examine_willread_gray_30x30" />
94
-					<view class="SelectContainer1Text3">念单词说含义 继续检验</view>
94
+					<view class="SelectContainer1Text3">念{{FieldName}}{{FieldName2}} 继续检验</view>
95 95
 				</view>
96
-				<view class="btnPanel1">根据单词念出读音说出含义</view>
96
+				<view class="btnPanel1">根据{{FieldName}}念读音{{FieldName2}}</view>
97 97
 			
98 98
 				<view wx:if="{{!SelectItem.TestTypeReadFinished}}" class="btnPanel21" bindtap="gotoTestReportInfo" data-id="{{SelectItem.ReadReportID}}" data-type="restart">
99 99
 					重新开始
100 100
 				</view>
101 101
 
102
-
103
-				<view wx:if="{{SelectItem.TestTypeWriteFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-url="./item?testtype=write&bookid={{BookID}}&unitsid={{SelectItem.ID}}&name1={{Name1}}&name2={{SelectItem.Name}}">
104
-					<image src="../images/examine_willwrite_gray_27x27.png" class="examine_willwrite_gray_27x27" />
105
-					<view class="SelectContainer1Text3">默写</view>
106
-				</view>
107
-				<view wx:if="{{!SelectItem.TestTypeWriteFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-type="continue">
108
-					<image src="../images/examine_willwrite_green_27x27.png" class="examine_willwrite_gray_27x27" />
109
-					<view class="SelectContainer1Text3">默写 继续检验</view>
110
-				</view>
111
-				<view class="btnPanel1">根据发音和含义默写单词</view>
112
-			
113
-				<view wx:if="{{!SelectItem.TestTypeWriteFinished}}" class="btnPanel21" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-type="restart">
114
-					重新开始
115
-				</view>
116
-
102
+				<block wx:if="{{BookID<=100 || BookID>110}}">
103
+					<view wx:if="{{SelectItem.TestTypeWriteFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-url="./item?testtype=write&bookid={{BookID}}&unitsid={{SelectItem.ID}}&name1={{Name1}}&name2={{SelectItem.Name}}">
104
+						<image src="../images/examine_willwrite_gray_27x27.png" class="examine_willwrite_gray_27x27" />
105
+						<view class="SelectContainer1Text3">默写</view>
106
+					</view>
107
+					<view wx:if="{{!SelectItem.TestTypeWriteFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-type="continue">
108
+						<image src="../images/examine_willwrite_green_27x27.png" class="examine_willwrite_gray_27x27" />
109
+						<view class="SelectContainer1Text3">默写 继续检验</view>
110
+					</view>
111
+					<view class="btnPanel1">根据发音和含义默写单词</view>
112
+				
113
+					<view wx:if="{{!SelectItem.TestTypeWriteFinished}}" class="btnPanel21" bindtap="gotoTestReportInfo" data-testtype="write" data-id="{{SelectItem.WriteReportID}}" data-type="restart">
114
+						重新开始
115
+					</view>
116
+				</block>
117
+				
117 118
 
118 119
 			</view>
119 120
 		</block>

+ 2 - 0
pages/test/report.wxss

@@ -92,6 +92,7 @@
92 92
 .circle{
93 93
   width:34rpx;
94 94
   height:34rpx;
95
+  margin: 0 3rpx;
95 96
   border-radius: 50%;
96 97
   background-color: #F8F8F8;
97 98
   border:3rpx solid #d2d2d2;
@@ -100,6 +101,7 @@
100 101
 .universalpic_checked_white_22x17{
101 102
   width:22rpx;
102 103
   height:17rpx;
104
+  margin: 0 9rpx;
103 105
 }
104 106
 
105 107
 .universalpic_bookmark_blue_40x40{

+ 11 - 2
pages/test/wordlist.js

@@ -16,12 +16,20 @@ Page({
16 16
 
17 17
     var words=[];
18 18
     var unitsName="";
19
+    var fieldName="";
19 20
     var arr =[];
20
-    if (options.type=="CHN")
21
+    if (options.type=="CHN"){
21 22
       arr= wx.getStorageSync("HanziAll");
23
+      fieldName="字";
24
+    }
22 25
     else{
23 26
       var bookid=Number(options.bookid);
24
-      if (bookid<120)
27
+      fieldName="单词";
28
+      if (bookid>100 && bookid<110){
29
+        arr= wx.getStorageSync("PhoneticEngList");
30
+        fieldName="音标";
31
+      }
32
+      else if (bookid>110 && bookid<120)
25 33
         arr= wx.getStorageSync("EnglishAll");
26 34
       else if (bookid>120 && bookid<130)
27 35
         arr= wx.getStorageSync("NewConceptEngList");
@@ -43,6 +51,7 @@ Page({
43 51
         that.setData({
44 52
           UnitsName: unitsName,
45 53
           Words: words,
54
+          FieldName:fieldName,
46 55
         });
47 56
       }
48 57
     }

+ 1 - 1
pages/test/wordlist.wxml

@@ -1,7 +1,7 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="panelTop FlexRow">
3 3
     <view class="text1">{{UnitsName}}</view>
4
-    <view class="text2">{{Words.length}}个<block wx:if="{{ShowType=='CHN'}}">字</block><block wx:if="{{ShowType=='ENG'}}">单词</block></view>
4
+    <view class="text2">{{Words.length}}个{{FieldName}}</view>
5 5
   </view>
6 6
   <view class="panelMain FlexColumn">
7 7
     <view class="panelMain1 FlexRow" wx:if="{{ShowType=='CHN'}}">

+ 14 - 5
utils/constant.js

@@ -619,6 +619,15 @@ module.exports = {
619 619
         Total: 26,
620 620
         Image: "../images/examine_subject_b005.png"
621 621
       },
622
+      {
623
+        ID: 101,
624
+        Type: "Word",
625
+        Name: "国际音标",
626
+        Name2: "元音20、辅音28",
627
+        Finish: 0,
628
+        Total: 48,
629
+        Image: "../images/examine_subject_b005.png"
630
+      },
622 631
     ]
623 632
   },
624 633
   {
@@ -628,7 +637,7 @@ module.exports = {
628 637
     Select: "",
629 638
     List: [
630 639
       {
631
-        ID: 101,
640
+        ID: 111,
632 641
         Type: "Word",
633 642
         Name: "常用单词1",
634 643
         Name2: "词汇1~220",
@@ -637,7 +646,7 @@ module.exports = {
637 646
         Image: "../images/examine_subject_b001.png"
638 647
       },
639 648
       {
640
-        ID: 102,
649
+        ID: 112,
641 650
         Type: "Word",
642 651
         Name: "常用单词2",
643 652
         Name2: "词汇221~500",
@@ -646,7 +655,7 @@ module.exports = {
646 655
         Image: "../images/examine_subject_b002.png"
647 656
       },
648 657
       {
649
-        ID: 103,
658
+        ID: 113,
650 659
         Type: "Word",
651 660
         Name: "常用单词3",
652 661
         Name2: "词汇500~1000",
@@ -655,7 +664,7 @@ module.exports = {
655 664
         Image: "../images/examine_subject_b003.png"
656 665
       },
657 666
       {
658
-        ID: 104,
667
+        ID: 114,
659 668
         Type: "Word",
660 669
         Name: "常用单词4",
661 670
         Name2: "词汇1001~1500",
@@ -664,7 +673,7 @@ module.exports = {
664 673
         Image: "../images/examine_subject_b004.png"
665 674
       },
666 675
       {
667
-        ID: 105,
676
+        ID: 115,
668 677
         Type: "Word",
669 678
         Name: "常用单词5",
670 679
         Name2: "词汇1501~2000",

+ 20 - 12
utils/main.js

@@ -879,25 +879,27 @@ function GetTestReportInfo(reportid, callback) {
879 879
 
880 880
         
881 881
         var arrEnglist = [];
882
-        if (bookid<120){
883
-          arrEnglist = wx.getStorageSync("EnglishAll");
884
-          arrEnglist = JSON.parse(arrEnglist);
882
+        if (bookid<110){
885 883
           if (name1[1]=="英文字母"){
886 884
             bookid=100;
887 885
             wordStr="A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
888 886
           }
889
-          else{
890
-            for (var i = 0; i < arrEnglist.length; i++) {
891
-              if (arrEnglist[i].Name == name1[1]) {
892
-                for (var j = 0; j < arrEnglist[i].Units.length; j++) {
893
-                  if (arrEnglist[i].Units[j].Name == name2) {
894
-                    wordStr = arrEnglist[i].Units[j].Words.join(",");
895
-                    break;
896
-                  }
887
+        }
888
+        else if (bookid>110 && bookid<120){
889
+          arrEnglist = wx.getStorageSync("EnglishAll");
890
+          arrEnglist = JSON.parse(arrEnglist);
891
+          
892
+          for (var i = 0; i < arrEnglist.length; i++) {
893
+            if (arrEnglist[i].Name == name1[1]) {
894
+              for (var j = 0; j < arrEnglist[i].Units.length; j++) {
895
+                if (arrEnglist[i].Units[j].Name == name2) {
896
+                  wordStr = arrEnglist[i].Units[j].Words.join(",");
897
+                  break;
897 898
                 }
898 899
               }
899 900
             }
900 901
           }
902
+          
901 903
         }
902 904
 
903 905
         var tempRight = "," + userTestReportInfo.TestRightStr + ",";
@@ -906,7 +908,10 @@ function GetTestReportInfo(reportid, callback) {
906 908
         var tempExist = "," + userTestReportInfo.TestExistStr + ",";
907 909
 
908 910
         var unitsid="";
909
-        if (bookid>120 && bookid<=124){
911
+        if (bookid>100 && bookid<110 && UserTestReport[n].Name[2]){
912
+          unitsid=Number(UserTestReport[n].Name[2]);
913
+        }
914
+        else if (bookid>120 && bookid<=124){
910 915
           unitsid=Number(name2.replace("Lesson ",""));
911 916
         }
912 917
         else if (bookid>130 && bookid<=140 && UserTestReport[n].Name[2]){
@@ -1109,6 +1114,7 @@ function getHanzi(callback) {
1109 1114
     title: '请稍候',
1110 1115
     mask: true,
1111 1116
   });
1117
+  
1112 1118
   var time = wx.getStorageSync("HanziUpdateTime");
1113 1119
   getData('GetHanziAll2?HasEnglish=true&HasHanziWrite=true&UpdateTime=' + time, function (data) {
1114 1120
     wx.hideLoading();
@@ -1121,9 +1127,11 @@ function getHanzi(callback) {
1121 1127
         var arrEng = common.Decrypt(data.EngList);
1122 1128
         var arrNewConceptEngList = common.Decrypt(data.NewConceptEngList);
1123 1129
         var arrCambridgeEngList = common.Decrypt(data.CambridgeEngList);
1130
+        var arrPhoneticEngList = common.Decrypt(data.PhoneticEngList);
1124 1131
         wx.setStorageSync("EnglishAll", arrEng);
1125 1132
         wx.setStorageSync("NewConceptEngList", arrNewConceptEngList);
1126 1133
         wx.setStorageSync("CambridgeEngList", arrCambridgeEngList);
1134
+        wx.setStorageSync("PhoneticEngList", arrPhoneticEngList);
1127 1135
         wx.setStorageSync("HanziUpdateTime", data.UpdateTime);
1128 1136
       } else {
1129 1137
         arr = wx.getStorageSync("HanziAll");