chengjie 4 lat temu
rodzic
commit
bf42e9c03d

+ 2 - 2
app.js

@@ -1,7 +1,7 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.1.34",
4
-    IsProduction: false,
3
+    Version: "2.1.37",
4
+    IsProduction: true,
5 5
     ShareTitle: "高效学习从秒过开始",
6 6
     SharePath: "pages/index/index",
7 7
     ShareImage: '../images/program_screenshot_main.png',

+ 2 - 0
pages/main/default.wxml

@@ -63,6 +63,8 @@
63 63
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webviewInterior">访问统计网页</button>
64 64
     </view>
65 65
     <view style="height:50rpx;"></view>
66
+    <button class="btnShowUserID" bindtap="goto" data-url="../other/newuser">新手页面</button>
67
+    <view style="height:50rpx;"></view>
66 68
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
67 69
     <view style="height:50rpx;"></view>
68 70
     <view class="panel2 FlexRow">

+ 1 - 1
pages/main/folderEdit.js

@@ -105,7 +105,7 @@ Page({
105 105
       url+="&Name="+name;
106 106
       if (!that.data.FolderColor)
107 107
         that.data.FolderColor="#6B727C";
108
-      url+="&ColorName="+that.data.FolderColor.substr(1);
108
+      url+="&ColorName="+that.data.FolderColor.toString().substr(1);
109 109
       url+="&IconName="+that.data.FolderIcon.ImageUrl;
110 110
       main.getData(url, function (data) {
111 111
         var obj={};

+ 4 - 27
pages/other/newuser.js

@@ -8,7 +8,6 @@ Page({
8 8
   data: {
9 9
     PanelShow: 0,
10 10
     IsShowPay:false,
11
-    IsShowBtn:false,
12 11
     IsShowMore:false,
13 12
     IsPlay:false,
14 13
     ImagePath: app.globalData.uploadImageUrl,
@@ -27,9 +26,10 @@ Page({
27 26
     var that = this;
28 27
     if (!index)
29 28
       index=0;
30
-    main.getData("GetMiaoguoNewUserImageList", function (data) {
29
+    main.getData("GetMiaoguoNewUserImageList3126", function (data) {
31 30
       that.setData({
32 31
         List: data[index].Images,
32
+        List2:data[1].Images,
33 33
         PageIndex:index,
34 34
       });
35 35
       wx.setNavigationBarTitle({
@@ -56,37 +56,14 @@ Page({
56 56
       url: url,
57 57
     });
58 58
   },
59
-  showMore:function(){
60
-    this.setData({
61
-      IsShowMore:true,
62
-    })
63
-  },
64
-  scroll:function(e){
65
-    var that=this;
66
-    if (that.data.PanelShow==0 && that.data.PageIndex==0){
67
-      var query = wx.createSelectorQuery().in(that)
68
-      query.select('#Image4').boundingClientRect(function(res){
69
-        console.log(res.top);
70
-        if (res && res.top && res.top<0 && !that.data.IsShowBtn){
71
-          that.setData({
72
-            IsShowBtn:true,
73
-          });
74
-        }
75
-        else if (res && res.top && res.top>0 && that.data.IsShowBtn){
76
-          that.setData({
77
-            IsShowBtn:false,
78
-          });
79
-        }
80
-      }).exec();
81
-    }
82
-  },
83 59
   showPay:function(){
84 60
     var that = this;
85 61
     main.getData("GetClassList?Flag=0", function (data) {
86 62
       if (data && data.length>0) {
63
+        var startDate=common.formatDateCHS(data[0].StartDate);
87 64
         that.setData({
88 65
           IsShowPay:true,
89
-          StartDate: common.formatDateCHS(data[0].StartDate),
66
+          StartDate: startDate,
90 67
         })
91 68
       }
92 69
     });

+ 15 - 10
pages/other/newuser.wxml

@@ -1,14 +1,19 @@
1 1
 <view wx:if="{{PanelShow==0}}" class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 
3 3
     <image id="Image{{index}}" wx:for="{{List}}" wx:key="*this" class="img" lazy-load="true" mode="widthFix" 
4
-    src='{{ImagePath}}web/{{item.Image}}.png' bindtap="{{item.BindTap}}" data-url="{{item.Url}}"  
5
-    bindtouchmove="scroll" wx:if="{{ (!IsShowMore && index<24) || IsShowMore}}"/>
6
-    <view bindtap="showMore" class="btn3 FlexRow" wx:if="{{!IsShowMore && PageIndex==0}}">更多评语</view>
7
-    <view style="height:150rpx;"></view>
4
+    src='{{ImagePath}}web/{{item.Image}}' bindtap="{{item.BindTap}}" data-url="{{item.Url}}"  
5
+    bindtouchmove="scroll" wx:if="{{index<=13}}"/>
6
+    <scroll-view wx:if="{{PageIndex==0}}" scroll-x="true" class="scrollPanel">
7
+      <view class="showWidth"></view>
8
+      <image wx:for="{{List2}}" wx:key="*this" class="img2" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/{{item.Image}}'  bindtap="{{item.BindTap}}" data-url="{{item.Url}}" />
9
+    </scroll-view>
10
+    <image wx:if="{{PageIndex==0}}" id="Image21" class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/bm_sy_21.png' bindtap="goto" data-url="newuser?index=2" />
11
+    
12
+    <view class="footer"></view>
8 13
     <view wx:if="{{IsShowPay}}" class="panelBottom FlexColumn" style='height:{{Containnerheight}}rpx;' catchtap="hidePay">
9 14
       <view class="panelBottom0 FlexColumn">
10
-        <text class="text1">欢迎您\n报名秒过新手培训</text>
11
-        <text class="text2">新手包仅售1元</text>
15
+        <text class="text1">欢迎您\n报名新手培训</text>
16
+        <text class="text2">¥ 1元</text>
12 17
         <view class="btn FlexColumn" catchtap="payMoney">
13 18
           <image class="bm_sy_banner-zf" src='{{ImagePath}}web/bm_sy_banner-zf.png' />
14 19
         </view>
@@ -22,11 +27,11 @@
22 27
           <view class='text4'>{{StartDate}}</view>
23 28
         </view>
24 29
         <image class="bm_sy_bg" src='{{ImagePath}}web/bm_sy_bg.png' />
30
+      </view>
25 31
     </view>
26
-    </view>
27
-    <view class="panelShowPay{{IsIPad}} FlexColumn" wx:if="{{IsShowBtn}}" >
28
-      <view class="btn2 FlexRow">
29
-        <image class="bm_sy_banner-zf" src='{{ImagePath}}web/bm_sy_banner-bm.png' />
32
+    <view class="panelShowPay{{IsIPad}} FlexColumn" wx:if="{{PageIndex==0}}">
33
+      <view class="btn2 FlexRow" catchtap="showPay">
34
+        <image class="bm_sy_banner-bm" src='{{ImagePath}}web/bm_sy_banner-bm.png' />
30 35
       </view>
31 36
     </view>
32 37
 </view>

+ 39 - 4
pages/other/newuser.wxss

@@ -57,6 +57,7 @@
57 57
   left:119rpx;
58 58
   color:#fff;
59 59
   align-items: flex-start;
60
+  z-index: 20;
60 61
 }
61 62
 
62 63
 .bm_sy_bg{
@@ -92,10 +93,14 @@
92 93
   background-color: #FF970C;
93 94
   margin-top: 30rpx;
94 95
 }
95
-
96 96
 .bm_sy_banner-zf{
97
-  width:105rpx;
98
-  height:60rpx;
97
+  width:110rpx;
98
+  height:58rpx;
99
+}
100
+
101
+.bm_sy_banner-bm{
102
+  width:200rpx;
103
+  height:59rpx;
99 104
 }
100 105
 
101 106
 .signup_registration_illus{
@@ -114,7 +119,7 @@
114 119
   background-color: #fff;
115 120
 }
116 121
 
117
-.container{
122
+.container2{
118 123
   background-color: #fff;
119 124
 }
120 125
 .text5{
@@ -139,3 +144,33 @@
139 144
   color:#fff;
140 145
   margin-top:130rpx;
141 146
 }
147
+
148
+.scrollPanel{
149
+  width:100%;
150
+  height: 718rpx;
151
+  display: flex;
152
+  white-space: nowrap;
153
+  margin: 60rpx 0 40rpx 0;
154
+  background-color: #F8F8F8;
155
+}
156
+
157
+.showWidth{
158
+  margin-left: 20rpx;
159
+  background-color: #F8F8F8;
160
+  display: inline-block;
161
+}
162
+
163
+.img2{
164
+  width:570rpx;
165
+  height:718rpx;
166
+  margin: 0 20rpx 0 0;
167
+  border-radius: 20rpx;
168
+  background-color: #fff;
169
+  display: inline-block;
170
+}
171
+
172
+.footer{
173
+  width:100%;
174
+  height:190rpx;
175
+  background-color: #F8F8F8;
176
+}

+ 16 - 3
pages/test/index.js

@@ -124,9 +124,22 @@ Page({
124 124
             var item = that.data.GradeArr[j];
125 125
             if (name[0] == item.Name) {
126 126
               for (var k = 0; k < item.List.length; k++) {
127
-                if (name[1] == item.List[k].Name && name[2] == item.List[k].Name2) {
128
-                  if (dataTemp[i].IsFinished == 1)
129
-                    item.List[k].Finish++;
127
+                
128
+                //音标计算进度  
129
+                if (item.List[k].ID==101 && dataTemp[i].BookID==101){
130
+                  for(var n=1;n<=4;n++){
131
+                    if (Number(dataTemp[i].Name[2])==n && dataTemp[i].IsFinished==1)
132
+                      item.List[k].Finish++;
133
+                  }
134
+                }
135
+                //古诗词计算进度
136
+                else if (item.List[k].ID==dataTemp[i].BookID && dataTemp[i].TestType=="recite" && dataTemp[i].IsFinished == 1)
137
+                  item.List[k].Finish=1;
138
+                else{
139
+                  if (name[1] == item.List[k].Name && name[2] == item.List[k].Name2) {
140
+                    if (dataTemp[i].IsFinished == 1)
141
+                      item.List[k].Finish++;
142
+                  }
130 143
                 }
131 144
               }
132 145
             }

+ 3 - 0
pages/test/report.js

@@ -24,10 +24,13 @@ Page({
24 24
     var that = this;
25 25
     TestReportID = 0;
26 26
     var TestTask = wx.getStorageSync("TestTask");
27
+    if (!TestTask)
28
+      TestTask={};
27 29
     var list = TestTask.List;
28 30
     var listRight = [];
29 31
     var listSkip = [];
30 32
     var listWrong = [];
33
+    
31 34
     TestTask.TestRightStr = [];
32 35
     TestTask.TestWrongStr = [];
33 36
     TestTask.TestSkipStr = [];

+ 2 - 4
project.config.json

@@ -20,20 +20,18 @@
20 20
     "compileHotReLoad": true,
21 21
     "useMultiFrameRuntime": true,
22 22
     "useApiHook": true,
23
+    "useApiHostProcess": false,
23 24
     "babelSetting": {
24 25
       "ignore": [],
25 26
       "disablePlugins": [],
26 27
       "outputPath": ""
27 28
     },
28
-    "bundle": false,
29 29
     "useIsolateContext": true,
30
-    "useCompilerModule": true,
31
-    "userConfirmedUseCompilerModuleSwitch": false,
32 30
     "userConfirmedBundleSwitch": false,
33 31
     "packNpmManually": false,
34 32
     "packNpmRelationList": [],
35 33
     "minifyWXSS": true,
36
-    "useApiHostProcess": false
34
+    "showES6CompileOption": false
37 35
   },
38 36
   "compileType": "miniprogram",
39 37
   "libVersion": "2.15.0",

+ 2 - 2
utils/constant.js

@@ -714,7 +714,7 @@ module.exports = {
714 714
         Name: "英文字母",
715 715
         Name2: "A~Z,a~z",
716 716
         Finish: 0,
717
-        Total: 26,
717
+        Total: 1,
718 718
         Image: "../images/examine_subject_b005.png"
719 719
       },
720 720
       {
@@ -723,7 +723,7 @@ module.exports = {
723 723
         Name: "国际音标",
724 724
         Name2: "元音20、辅音28",
725 725
         Finish: 0,
726
-        Total: 48,
726
+        Total: 4,
727 727
         Image: "../images/examine_subject_b005.png"
728 728
       },
729 729
     ]

+ 1 - 2
utils/main.js

@@ -663,8 +663,7 @@ function updateSearchList(obj,callback) {
663 663
       obj.Key = obj.Key.substring(1, obj.Key.length - 1);
664 664
   }
665 665
   for (var i = 0; i < arr.length; i++) {
666
-    if (arr[i].Key == obj.Key
667
-    ) {
666
+    if (obj.Key && arr[i].Key == obj.Key) {
668 667
       if (obj.Type == "shici") {
669 668
         if (arr[i].ShiciUrl == obj.ShiciUrl) {
670 669
           obj.Value = arr[i].Value;