chengjie 6 anni fa
parent
commit
26d2d6875c

+ 7 - 6
app.js

@@ -26,13 +26,14 @@ App({
26 26
     }
27 27
   },
28 28
   globalData: {
29
-    Version: "1.4.0",
30
-    IsProduction: false,
29
+    Version: "1.4.2",
30
+    IsProduction: true,
31 31
     ShareTitle: "高效学习从秒过开始",
32 32
     SharePath: "pages/index/index",
33 33
     ShareImage: '../images/program_screenshot_main.png',
34 34
     ProgramID: 166,
35
-    ProgramName:"秒过学习",
35
+    ProgramName: "秒过学习",
36
+    AppID: "wx84b3feac6069eec3",
36 37
     serverUrl: "https://www.kylx365.com/apiData/",
37 38
     serverUrlServer: "https://www.kylx365.com/apiData/",
38 39
     serverUrlLocalhost: "http://localhost:3020/apiData/",
@@ -68,8 +69,8 @@ App({
68 69
     ClickType:0,//点击方案
69 70
     SecondConfigArray:[0,0,0],//选择记忆水平建议
70 71
     GotoUrl:"",//首页跳转页面
71
-    SymbolArray: "+-×÷=<>≤≥*/·≈≠±“”()[]{}《》「」%‰°℃º¹²³⁴ⁿ₁₂₃₄﹫①②③④⑤⑥⑦⑧⑨⑩½⅓⅔¼¾⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞∵∴π|‖∠⊥☐△▽☆♤♧♡♢⊙√ㄨ←↑→↓↖↗↘↙āáǎàōóǒòēéěèīíǐìūúǔùǖǘǚǜüê$¥〒¢£∈∪∩⊆⊂⊇⊃∞",
72
-    SymbolMain:"+-×÷=",
73
-    SelectUserData: [2, 250]   //选择查看的用户
72
+    SymbolArray: "∬_+-×÷=<>≤≥*/·≈≠±“”()[]{}《》「」%‰°℃⁰¹²³⁴⁵⁶⁷⁸⁹ⁱʲᵏˡᵐⁿ⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑᵢₒᵤ﹫①②③④⑤⑥⑦⑧⑨⑩½⅓⅔¼¾⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞∵∴π|‖∠⊥☐△▽☆♤♧♡♢⊙√ㄨ←↑→↓⇄⇅↖↗↘↙āáǎàōóǒòēéěèīíǐìūúǔùǖǘǚǜüê$¥〒¢£∈∪∩⊆⊂⊇⊃∞",
73
+    SymbolMain: [{ "Name": "( )", "CSS": "btn2" }, { "Name": "_", "CSS": "btn2" }, { "Name": "+", "CSS": "btn2" }, { "Name": "-", "CSS": "btn2" }, { "Name": "×", "CSS": "btn2" }, { "Name": "÷", "CSS": "btn2" }, { "Name": "=", "CSS": "btn2" }],
74
+    SelectUserData: [2, 662]   //选择查看的用户
74 75
   }
75 76
 })

BIN
pages/images/salesactivity_a01_usermanual_banner_bg.png


+ 5 - 35
pages/main/add.js

@@ -42,7 +42,6 @@ Page({
42 42
     SoundSign: "[读]",
43 43
     LineSign: "[线]",
44 44
     HighlighterSign: "[光]",
45
-    SymbolCommon: [],
46 45
     IsPracticeTime: false,
47 46
     IsRecorder: false,
48 47
     PracticeTimeArr: PracticeTimeArr
@@ -143,7 +142,6 @@ Page({
143 142
     }
144 143
 
145 144
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {});
146
-    common.getStorageValue(that, "SymbolCommon", [], function() {});
147 145
   },
148 146
   onHide: function() {
149 147
     //用于恢复未保存的新题卡
@@ -689,40 +687,12 @@ Page({
689 687
       this.setData({
690 688
         HighlighterSign: "[光]",
691 689
       });
692
-    } else {
693
-      var b = false;
694
-      for (var i = 0; i < this.data.SymbolCommon.length; i++) {
695
-        if (this.data.SymbolCommon[i].Name1 == btnName) {
696
-          if (e.currentTarget.dataset.type == "common")
697
-            b = true;
698
-          else
699
-            this.data.SymbolCommon.splice(i, 1);
700
-          break;
701
-        }
702
-      }
703
-      if (!b) {
704
-        var obj = {};
705
-        obj.Name1 = btnName;
706
-        if (btnName === "(     )")
707
-          obj.Name2 = "( )";
708
-        else if (btnName === "_____")
709
-          obj.Name2 = "_"
710
-        else
711
-          obj.Name2 = btnName;
712
-
713
-
714
-        this.data.SymbolCommon.unshift(obj);
715
-      }
716
-      if (this.data.SymbolCommon.length > 8)
717
-        this.data.SymbolCommon.pop();
718
-
719
-      this.setData({
720
-        SymbolCommon: this.data.SymbolCommon,
721
-      });
722
-      wx.setStorageSync("SymbolCommon", this.data.SymbolCommon)
723
-
724
-    }
690
+    } 
725 691
 
692
+    if (btnName=="( )")
693
+      btnName ="(     )";
694
+    else if (btnName == "_")
695
+      btnName = "_____";
726 696
     //console.log("btnName:" + btnName);
727 697
 
728 698
     if (!this.data.Focus) {

+ 3 - 4
pages/main/add.wxml

@@ -173,10 +173,9 @@
173 173
   <view class='panelBtnItem FlexColumn'>
174 174
     <scroll-view scroll-x="true" class="panelBtnSmall" bindscroll="bindscrollHandler">
175 175
       <view class="btn0"></view>
176
-      <view class="btn1 btn" bindtap="addSymbol" wx:for="{{SymbolCommon}}" wx:key="index" data-id="{{item.Name1}}" data-type="common">{{item.Name2}}</view>
177
-      <view class="btn" bindtap="addSymbol" data-id="(     )">( )</view>
178
-      <view class="btn" bindtap="addSymbol" data-id="_____">_</view>
179
-      <view class="btn" bindtap="addSymbol" wx:for="{{SymbolMain}}" wx:key="index" data-id="{{item}}">{{item}}</view>
176
+      <!-- <view class="btn" bindtap="addSymbol" data-id="(     )">( )</view>
177
+      <view class="btn" bindtap="addSymbol" data-id="_____">_</view> -->
178
+      <view class="btn" bindtap="addSymbol" wx:for="{{SymbolMain}}" wx:key="index" data-id="{{item.Name}}">{{item.Name}}</view>
180 179
       <view class="btn2 btn" bindtap="gotoSymbol">更多</view>
181 180
     </scroll-view>
182 181
     <view class='lineFooter'></view>

+ 33 - 3
pages/main/default.js

@@ -91,6 +91,20 @@ Page({
91 91
             });
92 92
           });
93 93
 
94
+          //判断是否出现推广广告
95
+          common.getStorageValue(that, "IsShowMarketing", app.globalData.userInfo.HasIntroducer, function () {
96
+            if (app.globalData.userInfo.HasIntroducer==0 && that.data.IsShowMarketing==3){
97
+              var isShowMarketingTime = wx.getStorageSync("IsShowMarketingTime");
98
+              if (common.formatTime(new Date()) >= isShowMarketingTime) {
99
+                wx.removeStorageSync("IsShowMarketing");
100
+                wx.removeStorageSync("IsShowMarketingTime");
101
+                that.setData({
102
+                  IsShowMarketing:0,
103
+                });
104
+              }
105
+            }
106
+          });
107
+
94 108
           that.init();
95 109
 
96 110
           that.getTaskTodayList();
@@ -130,6 +144,13 @@ Page({
130 144
     if (!clickType)
131 145
       clickType = 0;
132 146
     app.globalData.ClickType=clickType;
147
+
148
+    //显示命名方式
149
+    var MemoryLevel = wx.getStorageSync("MemoryLevel");
150
+    if (!MemoryLevel)
151
+      MemoryLevel = 0;
152
+    app.globalData.MemoryLevel = MemoryLevel;
153
+
133 154
     //选择建议
134 155
     var SecondConfigArray = wx.getStorageSync("SecondConfigArray");
135 156
     if (SecondConfigArray)
@@ -140,7 +161,14 @@ Page({
140 161
     var url = e.currentTarget.dataset.url;
141 162
     wx.navigateTo({
142 163
       url: url,
143
-    })
164
+    });
165
+
166
+    if (url =="../../marketing/main/index"){
167
+      this.setData({
168
+        IsShowMarketing: 2,
169
+      });
170
+      wx.setStorageSync("IsShowMarketing", 2);
171
+    }
144 172
   },
145 173
   //得到当天任务
146 174
   getTaskTodayList: function () {
@@ -197,9 +225,11 @@ Page({
197 225
   },
198 226
   closeMarketing:function(){
199 227
     this.setData({
200
-      IsShowMarketing:2,
228
+      IsShowMarketing:3,
201 229
     });
202
-    wx.setStorageSync("IsShowMarketing",2);
230
+    wx.setStorageSync("IsShowMarketing", 3);
231
+    wx.setStorageSync("IsShowMarketingTime", common.formatTime(common.addDate("d",7,new Date())));
232
+
203 233
   },
204 234
   onShareAppMessage: function () {
205 235
     return {

+ 2 - 2
pages/main/default.wxml

@@ -15,8 +15,8 @@
15 15
 
16 16
   <view class='panelBottom FlexColumn'>
17 17
 
18
-    <image class="study_index_banner_close" src='../images/study_index_banner_close.png' bindtap="closeMarketing" wx:if="{{IsShowMarketing==1}}"/>
19
-    <image class="study_index_banner" src='../images/study_index_banner.png' bindtap="goto" data-url="../../marketing/main/index" wx:if="{{IsShowMarketing==1}}" />
18
+    <image class="study_index_banner_close" src='../images/study_index_banner_close.png' bindtap="closeMarketing" wx:if="{{IsShowMarketing===2}}"/>
19
+    <image class="study_index_banner" src='../images/study_index_banner.png' bindtap="goto" data-url="../../marketing/main/index" wx:if="{{IsShowMarketing===0 || IsShowMarketing===2}}" />
20 20
     
21 21
     <image class="study_index_footer" src='../images/study_index_footer.png' />
22 22
 

+ 9 - 7
pages/main/default.wxss

@@ -57,6 +57,14 @@
57 57
   width: 100%;
58 58
 }
59 59
 
60
+.study_index_banner{
61
+  width: 360rpx;
62
+  height: 148rpx;
63
+  align-self: flex-end;
64
+  margin-right: 20rpx;
65
+  z-index: 50;
66
+  position: relative;
67
+}
60 68
 
61 69
 .study_index_banner_close{
62 70
   width: 50rpx;
@@ -65,13 +73,7 @@
65 73
   align-self: flex-end;
66 74
   margin-right: 20rpx;
67 75
   margin-bottom: -50rpx;
68
-}
69
-
70
-.study_index_banner{
71
-  width: 360rpx;
72
-  height: 148rpx;
73
-  align-self: flex-end;
74
-  margin-right: 20rpx;
76
+  position: relative;
75 77
 }
76 78
 
77 79
 .study_index_footer{

+ 6 - 3
pages/main/detail.js

@@ -484,11 +484,14 @@ Page({
484 484
           TaskList[0].Number2 = "1d";
485 485
           TaskList[0].Number2Str = main.getMemoryLevel(app.globalData.MemoryLevel, 2, TaskList[0].Number2);
486 486
 
487
-          TaskList[0].Number3 = "4d";
488
-          TaskList[0].Number3Str = main.getMemoryLevel(app.globalData.MemoryLevel, 3, TaskList[0].Number3);
487
+          // TaskList[0].Number3 = "4d";
488
+          // TaskList[0].Number3Str = main.getMemoryLevel(app.globalData.MemoryLevel, 3, TaskList[0].Number3);
489
+          
490
+          delete TaskList[0].Number3;
491
+          delete TaskList[0].Number3Str;
492
+
489 493
           TaskList[0].FirstTime = null;
490 494
           TaskList[0].LastTime = null;
491
-
492 495
         }
493 496
         //若是历史的,则10m 1d
494 497
         else if (TaskList[0].IsHistory) {

+ 78 - 57
pages/main/symbolsetting.js

@@ -25,82 +25,97 @@ Page({
25 25
       ShowCopy: false,
26 26
     });
27 27
 
28
-    // if (app.globalData.IsIOS) {
29
-    //   xOffset = -140;
30
-    //   yOffset = -40;
31
-    // } else if (app.globalData.IsAndroid) {
32
-    //   xOffset = 100;
33
-    //   yOffset = 0;
34
-    // }
35
-
36 28
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {
37 29
       var arr = [];
38 30
       for (var i = 0; i < app.globalData.SymbolArray.length; i++) {
39 31
         var obj = {};
40 32
         obj.Name = app.globalData.SymbolArray[i];
41 33
         for (var j = 0; j < that.data.SymbolMain.length; j++) {
42
-          if (obj.Name === that.data.SymbolMain[j]) {
34
+          if (obj.Name === that.data.SymbolMain[j].Name || (obj.Name === "∬" && that.data.SymbolMain[j].Name==="( )")) {
43 35
             obj.CSS = "btn2";
44 36
           }
45 37
         }
38
+        if (obj.Name === "∬") {
39
+          obj.Name = "( )";
40
+        }
46 41
         arr.push(obj);
47 42
       }
48 43
       that.setData({
49 44
         SymbolArray: arr,
50 45
       });
51 46
 
52
-      var query = wx.createSelectorQuery();
53
-      query.select('#btn0').boundingClientRect();
54
-      query.selectViewport().scrollOffset();
55
-      query.exec(function (rect) {
47
+      that.getXY();
48
+    });
49
+  },
50
+  getXY:function(){
51
+    var that=this;
52
+    var query = wx.createSelectorQuery();
53
+    query.select('#btn0').boundingClientRect();
54
+    query.selectViewport().scrollOffset();
55
+    query.exec(function (rect) {
56
+      if (rect.length>0 && rect[0]){
56 57
         xStart = rect[0].left;
57 58
         yStart = rect[0].top;
58 59
         console.log("xStart:" + xStart);
59 60
         console.log("yStart:" + yStart);
60
-
61
-      });
62
-      var query = wx.createSelectorQuery();
63
-      query.select('#btn' + (arr.length-1)).boundingClientRect();
64
-      query.selectViewport().scrollOffset();
65
-      query.exec(function (rect) {
61
+      }
62
+    });
63
+    query = wx.createSelectorQuery();
64
+    query.select('#btn' + (that.data.SymbolMain.length - 1)).boundingClientRect();
65
+    query.selectViewport().scrollOffset();
66
+    query.exec(function (rect) {
67
+      if (rect.length > 0 && rect[0]) {
66 68
         xEnd = rect[0].left;
67 69
         yEnd = rect[0].top;
68 70
         console.log("xEnd:" + xEnd);
69 71
         console.log("yEnd:" + yEnd);
72
+      }
73
+    });
74
+  },
75
+  selectSymbol:function(e){
76
+    var that=this;
77
+    var name=e.currentTarget.dataset.name;
78
+    for (var i = 0; i < that.data.SymbolArray.length; i++) {
79
+      if (that.data.SymbolArray[i].Name===name) {
80
+        if (!that.data.SymbolArray[i].CSS)
81
+          that.data.SymbolArray[i].CSS = "btn2";
82
+        else
83
+          that.data.SymbolArray[i].CSS = "";
84
+      }
85
+    }
86
+    
70 87
 
71
-      });
88
+    var b=true;
89
+    for (var i = 0; i < that.data.SymbolMain.length; i++) {
90
+      if (that.data.SymbolMain[i].Name === name) {
91
+        that.data.SymbolMain.splice(i,1);
92
+        b=false;
93
+        break;
94
+      }
95
+    }
96
+    if (b){
97
+      var obj={};
98
+      obj.Name=name;
99
+      obj.CSS="btn2";
100
+      that.data.SymbolMain.push(obj);
101
+    }
102
+
103
+    that.setData({
104
+      SymbolArray: that.data.SymbolArray,
105
+      SymbolMain: that.data.SymbolMain,
72 106
     });
107
+    that.getXY();
108
+    wx.setStorageSync("SymbolMain", that.data.SymbolMain);
73 109
   },
74
-  // selectSymbol:function(e){
75
-  //   var that=this;
76
-  //   var name=e.currentTarget.dataset.name;
77
-  //   var SymbolMain="";
78
-  //   for (var i = 0; i < that.data.SymbolArray.length; i++) {
79
-  //     if (that.data.SymbolArray[i].Name===name) {
80
-  //       if (!that.data.SymbolArray[i].CSS)
81
-  //         that.data.SymbolArray[i].CSS = "btn2";
82
-  //       else
83
-  //         that.data.SymbolArray[i].CSS = "";
84
-  //     }
85
-
86
-  //     if (that.data.SymbolArray[i].CSS)
87
-  //       SymbolMain += that.data.SymbolArray[i].Name;
88
-  //   }
89
-  //   that.setData({
90
-  //     SymbolArray: that.data.SymbolArray,
91
-  //   });
92
-
93
-  //   wx.setStorageSync("SymbolMain", SymbolMain);
94
-  // },
95 110
   dragStart: function(e) {
96 111
     var that = this
97 112
     var index = e.currentTarget.dataset.index;
98 113
     var Copy = that.data.Copy;
99
-    Copy.Name = this.data.SymbolArray[index].Name;
114
+    Copy.Name = this.data.SymbolMain[index].Name;
100 115
 
101
-    for (var i = 0; i < that.data.SymbolArray.length; i++) {
116
+    for (var i = 0; i < that.data.SymbolMain.length; i++) {
102 117
       if (i == index) {
103
-        that.data.SymbolArray[i].CSS = "btnClear";
118
+        that.data.SymbolMain[i].CSS2 = "btnClear";
104 119
       }
105 120
     }
106 121
 
@@ -120,12 +135,12 @@ Page({
120 135
       that.setData({
121 136
         Copy: Copy,
122 137
         ShowCopy: true,
123
-        SymbolArray: that.data.SymbolArray,
138
+        SymbolMain: that.data.SymbolMain,
124 139
       })
125 140
     });
126 141
   },
127 142
   dragMove: function(e) {
128
-    console.log("e.changedTouches[0].pageY_Move:" + e.changedTouches[0].pageY);
143
+    //console.log("e.changedTouches[0].pageY_Move:" + e.changedTouches[0].pageY);
129 144
     var that = this
130 145
     var index = e.currentTarget.dataset.index;
131 146
     var Copy = that.data.Copy;
@@ -136,8 +151,8 @@ Page({
136 151
       Copy.top = yStart-5;
137 152
     if (Copy.top > yEnd+5)
138 153
       Copy.top = yEnd + 5;
139
-    if (Copy.left < -14)
140
-      Copy.left = -14;
154
+    if (Copy.left < -5)
155
+      Copy.left = -5;
141 156
     if (Copy.left > 321)
142 157
       Copy.left = 321;
143 158
 
@@ -158,29 +173,35 @@ Page({
158 173
     var y = Math.round((Copy.top - yStart) / 52);
159 174
 
160 175
     var index2 = y * 7 + x;
176
+    console.log("index:" + index);
161 177
     console.log("index2:" + index2);
162 178
 
163
-    for (var i = 0; i < that.data.SymbolArray.length; i++) {
179
+    for (var i = 0; i < that.data.SymbolMain.length; i++) {
164 180
       if (i == index) {
165
-        that.data.SymbolArray.splice(i,1);
181
+        that.data.SymbolMain.splice(i,1);
166 182
       }
167 183
     }
168
-    for (var i = 0; i < that.data.SymbolArray.length; i++) {
169
-      if (i == index2) {
184
+    for (var i = 0; i < that.data.SymbolMain.length; i++) {
185
+      if (i === index2) {
170 186
         var obj={};
171
-        obj.CSS = "";
187
+        obj.CSS2 = "";
172 188
         obj.Name = Copy.Name;
173
-        that.data.SymbolArray.splice(i, 0,obj);
189
+        that.data.SymbolMain.splice(i, 0,obj);
174 190
       }
175 191
     }
176
-    
192
+    if (index2 >= that.data.SymbolMain.length){
193
+      var obj = {};
194
+      obj.CSS2 = "";
195
+      obj.Name = Copy.Name;
196
+      that.data.SymbolMain.push(obj);
197
+    }
177 198
 
178 199
     that.setData({
179 200
       Copy: Copy,
180 201
       ShowCopy: false,
181
-      SymbolArray: that.data.SymbolArray,
202
+      SymbolMain: that.data.SymbolMain,
182 203
     });
183
-    wx.setStorageSync("SymbolMain", that.data.SymbolArray);
204
+    wx.setStorageSync("SymbolMain", that.data.SymbolMain);
184 205
   },
185 206
   onShareAppMessage: function() {
186 207
     return {

+ 1 - 1
pages/main/symbolsetting.json

@@ -1,3 +1,3 @@
1 1
 {
2
-  "navigationBarTitleText": "符号"
2
+  "navigationBarTitleText": "符号"
3 3
 }

+ 15 - 4
pages/main/symbolsetting.wxml

@@ -1,5 +1,5 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panelItem0 FlexColumn">
2
+  <!-- <view class="panelItem0 FlexColumn">
3 3
     <view class="panelTitle0 panelTitle FlexRow">
4 4
       <view class="panelTitle1">用途说明</view>
5 5
     </view>
@@ -8,16 +8,27 @@
8 8
     <image class="help_picture_mathsymbol" src='{{ImagePath}}web/help_picture_mathsymbol.png' />
9 9
 
10 10
   </view>
11
-  <view class='lineFooter'></view>
11
+  <view class='lineFooter'></view> -->
12
+
12 13
   <view class="panelTitle FlexRow">
13
-    <view class="panelTitle1">所有符号</view>
14
+    <view class="panelTitle1">常用符号栏,拖动可排序。</view>
14 15
     <view class="panelTitle2"></view>
15 16
   </view>
16 17
   <view class="panelItem0 FlexRow">
17 18
     <view class="panelItem FlexRow">
18
-      <view id="btn{{index}}" class="{{item.CSS}} btn" wx:for="{{SymbolArray}}" wx:key="index" data-index='{{index}}' data-name="{{item.Name}}" catchtouchstart='dragStart' catchtouchmove='dragMove' catchtouchend='dragEnd'>{{item.Name}}</view>
19
+      <view id="btn{{index}}" class="{{item.CSS2}} btn" wx:for="{{SymbolMain}}" wx:key="index" data-index='{{index}}' data-name="{{item.Name}}" catchtouchstart='dragStart' catchtouchmove='dragMove' catchtouchend='dragEnd'>{{item.Name}}</view>
19 20
       <view class="btnCopy btn" wx:if="{{ShowCopy}}" style="top:{{Copy.top}}px;left:{{Copy.left}}px;">{{Copy.Name}}</view>
20 21
     </view>
21 22
   </view>
23
+  <view class='lineFooter'></view>
24
+  <view class="panelTitle FlexRow">
25
+    <view class="panelTitle1">选择需要的符号,选中的会添加到上面。</view>
26
+    <view class="panelTitle2"></view>
27
+  </view>
28
+  <view class="panelItem0 FlexRow">
29
+    <view class="panelItem1 FlexRow">
30
+        <view id="btnAll{{index}}" class="{{item.CSS}} btn1 btn" wx:for="{{SymbolArray}}" wx:key="index" data-index='{{index}}' data-name="{{item.Name}}" bindtap="selectSymbol">{{item.Name}}</view>
31
+    </view>
32
+  </view>
22 33
   <view style='width:100%;height:100rpx;'></view>
23 34
 </view>

+ 25 - 10
pages/main/symbolsetting.wxss

@@ -2,17 +2,17 @@
2 2
   background-color: #fff;
3 3
 }
4 4
 
5
-
6 5
 .panelTitle{
7 6
   width:100%;
8 7
   justify-content: space-between;
9 8
   background-color: #f0f0f0;
10 9
 }
10
+
11 11
 .panelTitle .panelTitle1{
12
-  font-size:32rpx;
12
+  font-size:24rpx;
13
+  font-weight: 400;
13 14
   margin-left: 30rpx;
14 15
   margin-bottom: 30rpx;
15
-
16 16
   margin-top: 50rpx;
17 17
 }
18 18
 
@@ -27,14 +27,23 @@
27 27
   justify-content: flex-start;
28 28
   background-color: #fff;
29 29
   flex-wrap: wrap;
30
+  padding-bottom: 20rpx;
30 31
 }
31 32
 
33
+.panelItem1{
34
+  width:720rpx;
35
+  margin-top:30rpx; 
36
+  font-size:28rpx;
37
+  justify-content: flex-start;
38
+  background-color: #fff;
39
+  flex-wrap: wrap;
40
+}
32 41
 
33 42
 .btn {
34 43
   width: 80rpx;
35 44
   height:80rpx;
36 45
   background-color: #fff;
37
-  border: 2rpx solid #9b9b9b;
46
+  border: 2rpx solid #D2D2D2;
38 47
   color: #787878;
39 48
   border-radius: 10rpx;
40 49
   text-align: center;
@@ -44,17 +53,23 @@
44 53
   font-weight: 700;
45 54
 }
46 55
 
56
+.btn1 {
57
+  border: 2rpx solid #fff;
58
+}
59
+
47 60
 .btn2 {
48
-  border: 4rpx solid #0071EF;
49
-  width: 74rpx;
50
-  height:74rpx;
61
+  border: 2rpx solid #0071EF;
62
+  background-color: #0071EF;
63
+  color:#fff;
51 64
 }
65
+
52 66
 .btnClear {
53
-  border: 4rpx solid #fff;
54
-  width: 74rpx;
55
-  height:74rpx;
67
+  border: 2rpx solid #fff;
68
+  width: 80rpx;
69
+  height:80rpx;
56 70
   color:#fff;
57 71
 }
72
+
58 73
 .btnCopy {
59 74
   position: absolute;
60 75
   z-index: 10;

+ 1 - 1
pages/main/systemsetting.json

@@ -1,5 +1,5 @@
1 1
 {
2
-  "navigationBarTitleText": "系统设置",
2
+  "navigationBarTitleText": "设置",
3 3
   "backgroundColor": "#F0F0F0",
4 4
   "backgroundTextStyle": "dark",
5 5
   "enablePullDownRefresh": true

+ 1 - 1
pages/main/systemsetting.wxml

@@ -5,7 +5,7 @@
5 5
     <view class="panelTitle2"></view>
6 6
   </view>
7 7
   <view class="panelItem FlexRow" bindtap='gotoSymbol'>
8
-    <view class="panelItem1">符号</view>
8
+    <view class="panelItem1">符号</view>
9 9
     <view class="panelItem2 FlexRow">
10 10
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
11 11
     </view>

+ 0 - 1
pages/main/systemsetting.wxss

@@ -26,7 +26,6 @@
26 26
   height:100rpx;
27 27
   background-color: #fff;
28 28
 }
29
-
30 29
 .panelItem0{
31 30
   height:133rpx;
32 31
 }

+ 4 - 3
pages/other/activity.js

@@ -54,9 +54,10 @@ Page({
54 54
       var EarlyBirdTimeEnd1 = common.formatDateENG(EarlyBirdTimeEnd,"/");
55 55
       EarlyBirdTimeEnd1 = new Date(EarlyBirdTimeEnd1 + " 00:00:00");
56 56
 
57
-      //console.log("EarlyBirdTimeEnd1:" + EarlyBirdTimeEnd1);
58
-      //console.log("Today:" +new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"));
59
-      var dayNumber = common.diffDate("d", new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"), EarlyBirdTimeEnd1)+1;
57
+      console.log("EarlyBirdTimeEnd1:" + EarlyBirdTimeEnd1);
58
+      console.log("Today:" +new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"));
59
+      var dayNumber = common.diffDate("d", new Date(common.formatTime(new Date(), "/", true) + " 00:00:00"), EarlyBirdTimeEnd1);
60
+      console.log(dayNumber);
60 61
       if (dayNumber < 0) {
61 62
         that.setData({
62 63
           ShowNone: true,

+ 1 - 1
pages/other/help.wxml

@@ -3,7 +3,7 @@
3 3
     <view class="btn" bindtap="goto" data-url="./tips">返回目录</view>
4 4
   </view>
5 5
   <view style="height:120rpx;"></view>
6
-  <image class="img" mode="widthFix" wx:for="{{Item.Images}}" wx:key="index" src='{{ImagePath}}web/{{item}}' />
6
+  <image class="img" lazy-load="true" mode="widthFix" wx:for="{{Item.Images}}" wx:key="index" src='{{ImagePath}}web/{{item}}' />
7 7
   
8 8
   <view style="height:100rpx;"></view>
9 9
 </view>

+ 2 - 1
pages/other/lessonlist.json

@@ -1,5 +1,6 @@
1 1
 {
2 2
   "navigationBarTitleText": "课程",
3 3
   "navigationBarBackgroundColor": "#009942",
4
-  "navigationBarTextStyle": "white"
4
+  "navigationBarTextStyle": "white",
5
+  "backgroundColor": "#F0F0F0"
5 6
 }

+ 5 - 0
pages/other/newuser.js

@@ -15,6 +15,11 @@ Page({
15 15
     });
16 16
     that.init();
17 17
 
18
+    wx.setNavigationBarColor({
19
+      frontColor: "#ffffff",
20
+      backgroundColor: "#9BD41C",
21
+    });
22
+
18 23
   },
19 24
   init: function () {
20 25
     var that = this;

+ 3 - 3
pages/other/newuser.wxml

@@ -1,9 +1,9 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 
3 3
   <block wx:if="{{PanelShow==0}}">
4
-    <image class="promotion_leaflet_c01" src='{{ImagePath}}web/promotion_leaflet_c01.png' />
5
-    <image class="promotion_leaflet_c02" src='{{ImagePath}}web/promotion_leaflet_c02.png' />
6
-    <image class="promotion_leaflet_c03" src='{{ImagePath}}web/promotion_leaflet_c03.png' />
4
+    <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c01.png' />
5
+    <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c02.png' />
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 9
         <view class='text7'>16天手把手</view>

+ 1 - 11
pages/other/newuser.wxss

@@ -2,20 +2,10 @@
2 2
   background-color: #ffffff;
3 3
 }
4 4
 
5
-.promotion_leaflet_c01{
5
+.img{
6 6
   width:100%;
7
-  height:410rpx;
8 7
 }
9 8
 
10
-.promotion_leaflet_c02{
11
-  width:100%;
12
-  height:822rpx;
13
-}
14
-
15
-.promotion_leaflet_c03{
16
-  width:100%;
17
-  height:1073rpx;
18
-}
19 9
 
20 10
 .panelBottom{
21 11
   width:100%;

+ 2 - 3
pages/other/pay.js

@@ -52,9 +52,8 @@ Page({
52 52
     main.payMoney(7, null, money, detail, function () {
53 53
       that.setData({
54 54
         PayPanel: 1,
55
-      })
56
-
57
-    })
55
+      });
56
+    });
58 57
   },
59 58
   gotoIndex: function () {
60 59
     wx.reLaunch({

+ 2 - 1
pages/other/tips.json

@@ -1,3 +1,4 @@
1 1
 {
2
-  "navigationBarTitleText": "小贴士"
2
+  "navigationBarTitleText": "小贴士",
3
+  "backgroundColor": "#F0F0F0"
3 4
 }

+ 6 - 5
pages/other/userbook.js

@@ -46,11 +46,11 @@ var arrInformation = [
46 46
 Page({
47 47
   data: {
48 48
     ImagePath: app.globalData.uploadImageUrl,
49
-    PanelShow: 0,
49
+    PanelShow: -2,
50 50
   },
51 51
   onPullDownRefresh: function () {
52 52
     wx.reLaunch({
53
-      url: '../../pages/index/index',
53
+      url: '../../pages/index/index?type=userbook',
54 54
     })
55 55
     wx.stopPullDownRefresh();
56 56
   },
@@ -72,6 +72,7 @@ Page({
72 72
       IsMember: app.globalData.userInfo.IsMember,
73 73
       IsPay: app.globalData.userInfo.IsPay,
74 74
       IsLoseEfficacy: app.globalData.userInfo.IsLoseEfficacy,
75
+      ClassTotalDayNumber: app.globalData.userInfo.ClassTotalDayNumber,
75 76
     });
76 77
 
77 78
     that.init();
@@ -91,11 +92,11 @@ Page({
91 92
         var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
92 93
         var ClassTimeEnd = common.formatDateCHS(app.globalData.userInfo.ClassEndDate);
93 94
 
94
-        var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", 4, new Date(app.globalData.userInfo.ClassStartDate))));
95
-        var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", 9, new Date(app.globalData.userInfo.ClassStartDate))));
95
+        var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-4, new Date(app.globalData.userInfo.ClassStartDate))));
96
+        var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", that.data.ClassTotalDayNumber-1, new Date(app.globalData.userInfo.ClassStartDate))));
96 97
 
97 98
         var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
98
-        console.log("ClassDayNumber:" + ClassDayNumber);
99
+        //console.log("ClassDayNumber:" + ClassDayNumber);
99 100
 
100 101
         that.setData({
101 102
           ClassTimeStart: ClassTimeStart,

+ 31 - 46
pages/other/userbook.wxml

@@ -17,7 +17,7 @@
17 17
         <image class='avatar' src="{{AvatarUrl}}" />
18 18
         <view class="nickname">{{NickName}}</view>
19 19
       </view>
20
-      <view class="right FlexRow" bindtap="goto" data-url="../main/systemsetting">
20
+      <view class="right FlexRow" bindtap="goto" data-url="../main/systemsetting" wx:if="{{IsShow==1 && ClassDayNumber>=0 && !IsLoseEfficacy && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
21 21
         <image class='universalpic_setup_white_50x50' src="../images/universalpic_setup_white_50x50.png" />
22 22
         <view>设置</view>
23 23
       </view>
@@ -28,39 +28,39 @@
28 28
         <view class="panel11">{{ProductServiceTime}}</view>
29 29
       </view>
30 30
     </view>
31
-    <view class="panel2 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<16 && IsPay==0) || IsPay==1)}}">
32
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}" wx:if="{{ClassDayNumber>=16 && (IsPay==0 || IsLoseEfficacy==1) }}">
33
-        <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
34
-        <view>去续费</view>
35
-      </view>
36
-
37
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/coupon" wx:if="{{IsPay==1 && !IsLoseEfficacy}}">
31
+    <view class="panel2 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
32
+      
33
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/coupon" wx:if="{{IsPay==1}}">
38 34
         <image class="usermanual_index_handshake" src='../images/usermanual_index_coupon.png' />
39 35
         <view>优惠券</view>
40 36
       </view>
41 37
 
38
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
39
+        <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
40
+        <view>去续费</view>
41
+      </view>
42
+      
43
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}" wx:if="{{!IsLoseEfficacy && ClassDayNumber<ClassTotalDayNumber}}">
44
+        <image class="usermanual_index_handshake" src='../images/usermanual_index_writing.png' />
45
+        <view>作业清单</view>
46
+      </view>    
42 47
 
43 48
       <view class="panel21 FlexColumn" bindtap="goto" data-url="../../marketing/main/index" wx:if="{{IsPay==1 && !IsLoseEfficacy}}">
44 49
         <image class="usermanual_index_handshake" src='../images/usermanual_index_handshake.png' />
45 50
         <view>推广计划</view>
46 51
       </view>
47 52
 
48
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">
49
-        <image class="usermanual_index_handshake" src='../images/usermanual_index_writing.png' />
50
-        <view>作业清单</view>
51
-      </view>    
52
-
53 53
       <view class="panel21 FlexColumn" bindtap="goto" data-url="./binding">
54 54
         <image class="usermanual_index_handshake" src='../images/usermanual_index_link.png' />
55 55
         <view>帐号绑定</view>
56 56
       </view>
57 57
     </view>
58 58
     <view class='lineFooter'></view>
59
-    <view class="panel3 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<16 && IsPay==0) || !IsLoseEfficacy)}}">
60
-      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=0" wx:if="{{ClassDayNumber<16}}">
59
+    <view class="panel3 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || !IsLoseEfficacy)}}">
60
+      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=0" wx:if="{{ClassDayNumber<ClassTotalDayNumber}}">
61 61
         <view>新手包指南</view>
62 62
       </view>
63
-      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=8" wx:if="{{ClassDayNumber>=16}}">
63
+      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=8" wx:if="{{ClassDayNumber>=ClassTotalDayNumber}}">
64 64
         <view>小组须知</view>
65 65
       </view>
66 66
       <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/lessonlist">
@@ -71,7 +71,7 @@
71 71
       </view>
72 72
     </view>
73 73
 
74
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=16 && (IsPay==0 || IsLoseEfficacy==1) }}">
74
+    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
75 75
       <view class='line'></view>
76 76
       <view class="panelItem2 panelItem FlexColumn">
77 77
         <text class="text11">使用期限已过期!续费后可立即恢复使用。</text>
@@ -91,7 +91,7 @@
91 91
       </view>
92 92
     </view>
93 93
 
94
-    <view class="panelTitle FlexRow" wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && !IsLoseEfficacy}}">
94
+    <view class="panelTitle FlexRow" wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && (!IsLoseEfficacy || IsPay==0)}}">
95 95
       <view class="panelTitle1">会员活动</view>
96 96
       <view class="panelTitle2"></view>
97 97
     </view>
@@ -103,26 +103,15 @@
103 103
       </view>
104 104
     </block>
105 105
 
106
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=16 && IsPay==0}}">
106
+    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0}}">
107 107
       <view class="panelItem FlexColumn">
108 108
         <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
109
-        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=4&EndDate={{ClassTimeEnd}}">续费</view>
109
+        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">续费</view>
110 110
       </view>
111 111
       <view class='lineFooter'></view>
112
-      <view class="line"></view>
113 112
     </block>
114 113
 
115
-    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=13 && ClassDayNumber<16}}">
116
-      <view class="panelItem FlexColumn">
117
-        <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a03_usermanual_banner_header.png' />
118
-        <view class="text9">截止日期:{{ClassTimeEnd}}</view>
119
-        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/activity?ActivityID=3&EndTime={{ClassTimeEnd}}">活动详情</view>
120
-      </view>
121
-      <view class='lineFooter'></view>
122
-      <view class="line"></view>
123
-    </block>
124
-
125
-    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=4 && ClassDayNumber<10}}">
114
+    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber}}">
126 115
       <view class="panelItem FlexColumn">
127 116
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
128 117
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
@@ -132,20 +121,16 @@
132 121
       <view class="line"></view>
133 122
     </block>
134 123
 
135
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && ClassDayNumber<16}}">
136
-      <view class="panelItem FlexColumn">
137
-        <image class="salesactivity_a01_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner_header.png' />
138
-        <view class="text5">截止日期:{{ClassTimeEnd}}</view>
139
-        <view class="panelItem1 FlexRow">
140
-          <view class="btn2 btn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">查看作业清单</view>
141
-          <view class="text6" bindtap="goto" data-url="../other/activity?ActivityID=1&EndTime={{ClassTimeEnd}}">详细规则</view>
142
-        </view>
143
-        <image class="salesactivity_a01_usermanual_banner_bg" src='../images/salesactivity_a01_usermanual_banner_bg.png' />
124
+    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber}}">
125
+      <view class="panelItem FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">
126
+        <image class="salesactivity_a01_usermanual_banner" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner.png' />
127
+        <view class="text6" catchtap="goto" data-url="../other/activity?ActivityID=1&EndTime={{ClassTimeEnd}}"></view>
144 128
       </view>
145 129
     </block>
146 130
 
147 131
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
148
-      <text class="text3">开班事宜需要通过微信与您沟通。请添加班务员微信,否则无法继续为您服务。班务员服务时间:上午10点都晚上8点。\n\n班务员微信号:changyibzr</text>
132
+      <view class="line"></view>
133
+      <text class="text3">开班事宜需要通过微信与您沟通。请添加班务员微信,否则无法继续为您服务。班务员服务时间:上午10点到晚上8点。\n\n班务员微信号:changyibzr</text>
149 134
       <view class="btn" bindtap='copyManager'>复制微信号</view>
150 135
       <text class="text3">添加后请等待确认。这需要一点时间。之后通过微信和您联系。</text>
151 136
       <view class="btn4 btn" bindtap='gotoIndex'>刷新状态</view>
@@ -156,26 +141,26 @@
156 141
       <view class="panelTitle2"></view>
157 142
     </view>
158 143
 
159
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=16 && IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=8">
144
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber && IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=8">
160 145
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b02.png' />
161 146
       <view class="text7">新闻</view>
162 147
       <view class="text8">秒过学习小组须知</view>
163 148
     </view>
164 149
 
165
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=15 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
150
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber-1 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
166 151
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
167 152
       <view class="text7">新闻</view>
168 153
       <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
169 154
     </view>
170 155
 
171
-    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{PanelShow===2  && ((ClassDayNumber>=item.PageID && ClassDayNumber<16) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
156
+    <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}}">
172 157
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
173 158
       <view class="text7">{{item.text1}}</view>
174 159
       <view class="text8">{{item.text2}}</view>
175 160
       <view class="text10">{{item.text3}}</view>
176 161
     </view>
177 162
 
178
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<16) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/lessonlist">
163
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/lessonlist">
179 164
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
180 165
       <view class="text7">课程</view>
181 166
       <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>

+ 14 - 19
pages/other/userbook.wxss

@@ -96,6 +96,7 @@
96 96
   border-top: 50rpx solid #f0f0f0;
97 97
   background-color: #f0f0f0;
98 98
 }
99
+
99 100
 .panel31{
100 101
   width:220rpx;
101 102
   height:93rpx;
@@ -105,7 +106,7 @@
105 106
   line-height: 93rpx;
106 107
   color: #1E1E1E;
107 108
   background-color: #fff;
108
-  border: 2rpx solid #9b9b9b;
109
+  border: 2rpx solid #D2D2D2;
109 110
   margin: 0 8rpx;
110 111
 }
111 112
 
@@ -157,6 +158,7 @@
157 158
 
158 159
 .btn {
159 160
   font-size: 28rpx;
161
+  font-weight: 500;
160 162
   width: 480rpx;
161 163
   height: 90rpx;
162 164
   border-radius: 10rpx;
@@ -164,7 +166,7 @@
164 166
   line-height: 90rpx;
165 167
   color: #0071ef;
166 168
   background-color: #fff;
167
-  border: 2rpx solid #9b9b9b;
169
+  border: 2rpx solid #D2D2D2;
168 170
   margin: 40rpx 0 10rpx 0;
169 171
 }
170 172
 
@@ -185,19 +187,6 @@
185 187
   margin-bottom: 40rpx;
186 188
 }
187 189
 
188
-.salesactivity_a01_usermanual_banner_header {
189
-  width: 100%;
190
-  height: 403rpx;
191
-}
192
-
193
-.salesactivity_a01_usermanual_banner_bg {
194
-  width: 100%;
195
-  height: 170rpx;
196
-  position: absolute;
197
-  bottom: 0;
198
-  z-index: 5;
199
-}
200
-
201 190
 .text5 {
202 191
   margin-bottom: 60rpx;
203 192
 }
@@ -225,11 +214,17 @@
225 214
   margin: 20rpx 0 60rpx 0;
226 215
 }
227 216
 
217
+.salesactivity_a01_usermanual_banner{
218
+  width:100%;
219
+  height:280rpx;
220
+}
221
+
228 222
 .text6 {
229
-  font-size: 28rpx;
230
-  color: #0071ef;
231
-  text-decoration: underline;
232
-  margin-bottom: 50rpx;
223
+  position: absolute;
224
+  left:274rpx;
225
+  top:184rpx;
226
+  width:200rpx;
227
+  height:70rpx;
233 228
 }
234 229
 
235 230
 .news_lesson_a01 {

+ 2 - 2
project.config.json

@@ -49,7 +49,7 @@
49 49
 			"list": []
50 50
 		},
51 51
 		"miniprogram": {
52
-			"current": 8,
52
+			"current": 1,
53 53
 			"list": [
54 54
 				{
55 55
 					"id": 0,
@@ -62,7 +62,7 @@
62 62
 					"id": 1,
63 63
 					"name": "pages/index/index",
64 64
 					"pathName": "pages/index/index",
65
-					"query": "type=activity&ActivityID=3&EndTime=2019年09月10日",
65
+					"query": "type=activity&ActivityID=2&EndTime=2019年10月07日&EarlyBirdTimeStart=2019年09月23日&EarlyBirdTimeEnd=2019年10月05日",
66 66
 					"scene": 1007
67 67
 				},
68 68
 				{

+ 2 - 0
utils/main.js

@@ -507,6 +507,8 @@ function changeStringToView(field) {
507 507
         while (arrResult[0].Type == "return"
508 508
           || arrResult[0].Type == "br") {
509 509
           arrResult.shift();
510
+          if (arrResult.length==0)
511
+            break;
510 512
         }
511 513
         //去掉后回车换行
512 514
         for (var i = arrResult.length - 1; i >= 0; i--) {