chengjie 6 years ago
parent
commit
26d2d6875c

+ 7 - 6
app.js

@@ -26,13 +26,14 @@ App({
26
     }
26
     }
27
   },
27
   },
28
   globalData: {
28
   globalData: {
29
-    Version: "1.4.0",
30
-    IsProduction: false,
29
+    Version: "1.4.2",
30
+    IsProduction: true,
31
     ShareTitle: "高效学习从秒过开始",
31
     ShareTitle: "高效学习从秒过开始",
32
     SharePath: "pages/index/index",
32
     SharePath: "pages/index/index",
33
     ShareImage: '../images/program_screenshot_main.png',
33
     ShareImage: '../images/program_screenshot_main.png',
34
     ProgramID: 166,
34
     ProgramID: 166,
35
-    ProgramName:"秒过学习",
35
+    ProgramName: "秒过学习",
36
+    AppID: "wx84b3feac6069eec3",
36
     serverUrl: "https://www.kylx365.com/apiData/",
37
     serverUrl: "https://www.kylx365.com/apiData/",
37
     serverUrlServer: "https://www.kylx365.com/apiData/",
38
     serverUrlServer: "https://www.kylx365.com/apiData/",
38
     serverUrlLocalhost: "http://localhost:3020/apiData/",
39
     serverUrlLocalhost: "http://localhost:3020/apiData/",
@@ -68,8 +69,8 @@ App({
68
     ClickType:0,//点击方案
69
     ClickType:0,//点击方案
69
     SecondConfigArray:[0,0,0],//选择记忆水平建议
70
     SecondConfigArray:[0,0,0],//选择记忆水平建议
70
     GotoUrl:"",//首页跳转页面
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
     SoundSign: "[读]",
42
     SoundSign: "[读]",
43
     LineSign: "[线]",
43
     LineSign: "[线]",
44
     HighlighterSign: "[光]",
44
     HighlighterSign: "[光]",
45
-    SymbolCommon: [],
46
     IsPracticeTime: false,
45
     IsPracticeTime: false,
47
     IsRecorder: false,
46
     IsRecorder: false,
48
     PracticeTimeArr: PracticeTimeArr
47
     PracticeTimeArr: PracticeTimeArr
@@ -143,7 +142,6 @@ Page({
143
     }
142
     }
144
 
143
 
145
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {});
144
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {});
146
-    common.getStorageValue(that, "SymbolCommon", [], function() {});
147
   },
145
   },
148
   onHide: function() {
146
   onHide: function() {
149
     //用于恢复未保存的新题卡
147
     //用于恢复未保存的新题卡
@@ -689,40 +687,12 @@ Page({
689
       this.setData({
687
       this.setData({
690
         HighlighterSign: "[光]",
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
     //console.log("btnName:" + btnName);
696
     //console.log("btnName:" + btnName);
727
 
697
 
728
     if (!this.data.Focus) {
698
     if (!this.data.Focus) {

+ 3 - 4
pages/main/add.wxml

@@ -173,10 +173,9 @@
173
   <view class='panelBtnItem FlexColumn'>
173
   <view class='panelBtnItem FlexColumn'>
174
     <scroll-view scroll-x="true" class="panelBtnSmall" bindscroll="bindscrollHandler">
174
     <scroll-view scroll-x="true" class="panelBtnSmall" bindscroll="bindscrollHandler">
175
       <view class="btn0"></view>
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
       <view class="btn2 btn" bindtap="gotoSymbol">更多</view>
179
       <view class="btn2 btn" bindtap="gotoSymbol">更多</view>
181
     </scroll-view>
180
     </scroll-view>
182
     <view class='lineFooter'></view>
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
           that.init();
108
           that.init();
95
 
109
 
96
           that.getTaskTodayList();
110
           that.getTaskTodayList();
@@ -130,6 +144,13 @@ Page({
130
     if (!clickType)
144
     if (!clickType)
131
       clickType = 0;
145
       clickType = 0;
132
     app.globalData.ClickType=clickType;
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
     var SecondConfigArray = wx.getStorageSync("SecondConfigArray");
155
     var SecondConfigArray = wx.getStorageSync("SecondConfigArray");
135
     if (SecondConfigArray)
156
     if (SecondConfigArray)
@@ -140,7 +161,14 @@ Page({
140
     var url = e.currentTarget.dataset.url;
161
     var url = e.currentTarget.dataset.url;
141
     wx.navigateTo({
162
     wx.navigateTo({
142
       url: url,
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
   getTaskTodayList: function () {
174
   getTaskTodayList: function () {
@@ -197,9 +225,11 @@ Page({
197
   },
225
   },
198
   closeMarketing:function(){
226
   closeMarketing:function(){
199
     this.setData({
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
   onShareAppMessage: function () {
234
   onShareAppMessage: function () {
205
     return {
235
     return {

+ 2 - 2
pages/main/default.wxml

@@ -15,8 +15,8 @@
15
 
15
 
16
   <view class='panelBottom FlexColumn'>
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
     <image class="study_index_footer" src='../images/study_index_footer.png' />
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
   width: 100%;
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
 .study_index_banner_close{
69
 .study_index_banner_close{
62
   width: 50rpx;
70
   width: 50rpx;
@@ -65,13 +73,7 @@
65
   align-self: flex-end;
73
   align-self: flex-end;
66
   margin-right: 20rpx;
74
   margin-right: 20rpx;
67
   margin-bottom: -50rpx;
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
 .study_index_footer{
79
 .study_index_footer{

+ 6 - 3
pages/main/detail.js

@@ -484,11 +484,14 @@ Page({
484
           TaskList[0].Number2 = "1d";
484
           TaskList[0].Number2 = "1d";
485
           TaskList[0].Number2Str = main.getMemoryLevel(app.globalData.MemoryLevel, 2, TaskList[0].Number2);
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
           TaskList[0].FirstTime = null;
493
           TaskList[0].FirstTime = null;
490
           TaskList[0].LastTime = null;
494
           TaskList[0].LastTime = null;
491
-
492
         }
495
         }
493
         //若是历史的,则10m 1d
496
         //若是历史的,则10m 1d
494
         else if (TaskList[0].IsHistory) {
497
         else if (TaskList[0].IsHistory) {

+ 78 - 57
pages/main/symbolsetting.js

@@ -25,82 +25,97 @@ Page({
25
       ShowCopy: false,
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
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {
28
     common.getStorageValue(that, "SymbolMain", app.globalData.SymbolMain, function() {
37
       var arr = [];
29
       var arr = [];
38
       for (var i = 0; i < app.globalData.SymbolArray.length; i++) {
30
       for (var i = 0; i < app.globalData.SymbolArray.length; i++) {
39
         var obj = {};
31
         var obj = {};
40
         obj.Name = app.globalData.SymbolArray[i];
32
         obj.Name = app.globalData.SymbolArray[i];
41
         for (var j = 0; j < that.data.SymbolMain.length; j++) {
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
             obj.CSS = "btn2";
35
             obj.CSS = "btn2";
44
           }
36
           }
45
         }
37
         }
38
+        if (obj.Name === "∬") {
39
+          obj.Name = "( )";
40
+        }
46
         arr.push(obj);
41
         arr.push(obj);
47
       }
42
       }
48
       that.setData({
43
       that.setData({
49
         SymbolArray: arr,
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
         xStart = rect[0].left;
57
         xStart = rect[0].left;
57
         yStart = rect[0].top;
58
         yStart = rect[0].top;
58
         console.log("xStart:" + xStart);
59
         console.log("xStart:" + xStart);
59
         console.log("yStart:" + yStart);
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
         xEnd = rect[0].left;
68
         xEnd = rect[0].left;
67
         yEnd = rect[0].top;
69
         yEnd = rect[0].top;
68
         console.log("xEnd:" + xEnd);
70
         console.log("xEnd:" + xEnd);
69
         console.log("yEnd:" + yEnd);
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
   dragStart: function(e) {
110
   dragStart: function(e) {
96
     var that = this
111
     var that = this
97
     var index = e.currentTarget.dataset.index;
112
     var index = e.currentTarget.dataset.index;
98
     var Copy = that.data.Copy;
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
       if (i == index) {
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
       that.setData({
135
       that.setData({
121
         Copy: Copy,
136
         Copy: Copy,
122
         ShowCopy: true,
137
         ShowCopy: true,
123
-        SymbolArray: that.data.SymbolArray,
138
+        SymbolMain: that.data.SymbolMain,
124
       })
139
       })
125
     });
140
     });
126
   },
141
   },
127
   dragMove: function(e) {
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
     var that = this
144
     var that = this
130
     var index = e.currentTarget.dataset.index;
145
     var index = e.currentTarget.dataset.index;
131
     var Copy = that.data.Copy;
146
     var Copy = that.data.Copy;
@@ -136,8 +151,8 @@ Page({
136
       Copy.top = yStart-5;
151
       Copy.top = yStart-5;
137
     if (Copy.top > yEnd+5)
152
     if (Copy.top > yEnd+5)
138
       Copy.top = yEnd + 5;
153
       Copy.top = yEnd + 5;
139
-    if (Copy.left < -14)
140
-      Copy.left = -14;
154
+    if (Copy.left < -5)
155
+      Copy.left = -5;
141
     if (Copy.left > 321)
156
     if (Copy.left > 321)
142
       Copy.left = 321;
157
       Copy.left = 321;
143
 
158
 
@@ -158,29 +173,35 @@ Page({
158
     var y = Math.round((Copy.top - yStart) / 52);
173
     var y = Math.round((Copy.top - yStart) / 52);
159
 
174
 
160
     var index2 = y * 7 + x;
175
     var index2 = y * 7 + x;
176
+    console.log("index:" + index);
161
     console.log("index2:" + index2);
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
       if (i == index) {
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
         var obj={};
186
         var obj={};
171
-        obj.CSS = "";
187
+        obj.CSS2 = "";
172
         obj.Name = Copy.Name;
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
     that.setData({
199
     that.setData({
179
       Copy: Copy,
200
       Copy: Copy,
180
       ShowCopy: false,
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
   onShareAppMessage: function() {
206
   onShareAppMessage: function() {
186
     return {
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
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class="panelItem0 FlexColumn">
2
+  <!-- <view class="panelItem0 FlexColumn">
3
     <view class="panelTitle0 panelTitle FlexRow">
3
     <view class="panelTitle0 panelTitle FlexRow">
4
       <view class="panelTitle1">用途说明</view>
4
       <view class="panelTitle1">用途说明</view>
5
     </view>
5
     </view>
@@ -8,16 +8,27 @@
8
     <image class="help_picture_mathsymbol" src='{{ImagePath}}web/help_picture_mathsymbol.png' />
8
     <image class="help_picture_mathsymbol" src='{{ImagePath}}web/help_picture_mathsymbol.png' />
9
 
9
 
10
   </view>
10
   </view>
11
-  <view class='lineFooter'></view>
11
+  <view class='lineFooter'></view> -->
12
+
12
   <view class="panelTitle FlexRow">
13
   <view class="panelTitle FlexRow">
13
-    <view class="panelTitle1">所有符号</view>
14
+    <view class="panelTitle1">常用符号栏,拖动可排序。</view>
14
     <view class="panelTitle2"></view>
15
     <view class="panelTitle2"></view>
15
   </view>
16
   </view>
16
   <view class="panelItem0 FlexRow">
17
   <view class="panelItem0 FlexRow">
17
     <view class="panelItem FlexRow">
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
       <view class="btnCopy btn" wx:if="{{ShowCopy}}" style="top:{{Copy.top}}px;left:{{Copy.left}}px;">{{Copy.Name}}</view>
20
       <view class="btnCopy btn" wx:if="{{ShowCopy}}" style="top:{{Copy.top}}px;left:{{Copy.left}}px;">{{Copy.Name}}</view>
20
     </view>
21
     </view>
21
   </view>
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
   <view style='width:100%;height:100rpx;'></view>
33
   <view style='width:100%;height:100rpx;'></view>
23
 </view>
34
 </view>

+ 25 - 10
pages/main/symbolsetting.wxss

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

+ 1 - 1
pages/main/systemsetting.json

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

+ 1 - 1
pages/main/systemsetting.wxml

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

+ 0 - 1
pages/main/systemsetting.wxss

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

+ 4 - 3
pages/other/activity.js

@@ -54,9 +54,10 @@ Page({
54
       var EarlyBirdTimeEnd1 = common.formatDateENG(EarlyBirdTimeEnd,"/");
54
       var EarlyBirdTimeEnd1 = common.formatDateENG(EarlyBirdTimeEnd,"/");
55
       EarlyBirdTimeEnd1 = new Date(EarlyBirdTimeEnd1 + " 00:00:00");
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
       if (dayNumber < 0) {
61
       if (dayNumber < 0) {
61
         that.setData({
62
         that.setData({
62
           ShowNone: true,
63
           ShowNone: true,

+ 1 - 1
pages/other/help.wxml

@@ -3,7 +3,7 @@
3
     <view class="btn" bindtap="goto" data-url="./tips">返回目录</view>
3
     <view class="btn" bindtap="goto" data-url="./tips">返回目录</view>
4
   </view>
4
   </view>
5
   <view style="height:120rpx;"></view>
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
   <view style="height:100rpx;"></view>
8
   <view style="height:100rpx;"></view>
9
 </view>
9
 </view>

+ 2 - 1
pages/other/lessonlist.json

@@ -1,5 +1,6 @@
1
 {
1
 {
2
   "navigationBarTitleText": "课程",
2
   "navigationBarTitleText": "课程",
3
   "navigationBarBackgroundColor": "#009942",
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
     that.init();
16
     that.init();
17
 
17
 
18
+    wx.setNavigationBarColor({
19
+      frontColor: "#ffffff",
20
+      backgroundColor: "#9BD41C",
21
+    });
22
+
18
   },
23
   },
19
   init: function () {
24
   init: function () {
20
     var that = this;
25
     var that = this;

+ 3 - 3
pages/other/newuser.wxml

@@ -1,9 +1,9 @@
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
 
2
 
3
   <block wx:if="{{PanelShow==0}}">
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
     <view class="panelBottom FlexRow">
7
     <view class="panelBottom FlexRow">
8
       <view class="panelBottom1 FlexColumn" wx:if="{{!StartDate}}">
8
       <view class="panelBottom1 FlexColumn" wx:if="{{!StartDate}}">
9
         <view class='text7'>16天手把手</view>
9
         <view class='text7'>16天手把手</view>

+ 1 - 11
pages/other/newuser.wxss

@@ -2,20 +2,10 @@
2
   background-color: #ffffff;
2
   background-color: #ffffff;
3
 }
3
 }
4
 
4
 
5
-.promotion_leaflet_c01{
5
+.img{
6
   width:100%;
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
 .panelBottom{
10
 .panelBottom{
21
   width:100%;
11
   width:100%;

+ 2 - 3
pages/other/pay.js

@@ -52,9 +52,8 @@ Page({
52
     main.payMoney(7, null, money, detail, function () {
52
     main.payMoney(7, null, money, detail, function () {
53
       that.setData({
53
       that.setData({
54
         PayPanel: 1,
54
         PayPanel: 1,
55
-      })
56
-
57
-    })
55
+      });
56
+    });
58
   },
57
   },
59
   gotoIndex: function () {
58
   gotoIndex: function () {
60
     wx.reLaunch({
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
 Page({
46
 Page({
47
   data: {
47
   data: {
48
     ImagePath: app.globalData.uploadImageUrl,
48
     ImagePath: app.globalData.uploadImageUrl,
49
-    PanelShow: 0,
49
+    PanelShow: -2,
50
   },
50
   },
51
   onPullDownRefresh: function () {
51
   onPullDownRefresh: function () {
52
     wx.reLaunch({
52
     wx.reLaunch({
53
-      url: '../../pages/index/index',
53
+      url: '../../pages/index/index?type=userbook',
54
     })
54
     })
55
     wx.stopPullDownRefresh();
55
     wx.stopPullDownRefresh();
56
   },
56
   },
@@ -72,6 +72,7 @@ Page({
72
       IsMember: app.globalData.userInfo.IsMember,
72
       IsMember: app.globalData.userInfo.IsMember,
73
       IsPay: app.globalData.userInfo.IsPay,
73
       IsPay: app.globalData.userInfo.IsPay,
74
       IsLoseEfficacy: app.globalData.userInfo.IsLoseEfficacy,
74
       IsLoseEfficacy: app.globalData.userInfo.IsLoseEfficacy,
75
+      ClassTotalDayNumber: app.globalData.userInfo.ClassTotalDayNumber,
75
     });
76
     });
76
 
77
 
77
     that.init();
78
     that.init();
@@ -91,11 +92,11 @@ Page({
91
         var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
92
         var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
92
         var ClassTimeEnd = common.formatDateCHS(app.globalData.userInfo.ClassEndDate);
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
         var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
98
         var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
98
-        console.log("ClassDayNumber:" + ClassDayNumber);
99
+        //console.log("ClassDayNumber:" + ClassDayNumber);
99
 
100
 
100
         that.setData({
101
         that.setData({
101
           ClassTimeStart: ClassTimeStart,
102
           ClassTimeStart: ClassTimeStart,

+ 31 - 46
pages/other/userbook.wxml

@@ -17,7 +17,7 @@
17
         <image class='avatar' src="{{AvatarUrl}}" />
17
         <image class='avatar' src="{{AvatarUrl}}" />
18
         <view class="nickname">{{NickName}}</view>
18
         <view class="nickname">{{NickName}}</view>
19
       </view>
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
         <image class='universalpic_setup_white_50x50' src="../images/universalpic_setup_white_50x50.png" />
21
         <image class='universalpic_setup_white_50x50' src="../images/universalpic_setup_white_50x50.png" />
22
         <view>设置</view>
22
         <view>设置</view>
23
       </view>
23
       </view>
@@ -28,39 +28,39 @@
28
         <view class="panel11">{{ProductServiceTime}}</view>
28
         <view class="panel11">{{ProductServiceTime}}</view>
29
       </view>
29
       </view>
30
     </view>
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
         <image class="usermanual_index_handshake" src='../images/usermanual_index_coupon.png' />
34
         <image class="usermanual_index_handshake" src='../images/usermanual_index_coupon.png' />
39
         <view>优惠券</view>
35
         <view>优惠券</view>
40
       </view>
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
       <view class="panel21 FlexColumn" bindtap="goto" data-url="../../marketing/main/index" wx:if="{{IsPay==1 && !IsLoseEfficacy}}">
48
       <view class="panel21 FlexColumn" bindtap="goto" data-url="../../marketing/main/index" wx:if="{{IsPay==1 && !IsLoseEfficacy}}">
44
         <image class="usermanual_index_handshake" src='../images/usermanual_index_handshake.png' />
49
         <image class="usermanual_index_handshake" src='../images/usermanual_index_handshake.png' />
45
         <view>推广计划</view>
50
         <view>推广计划</view>
46
       </view>
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
       <view class="panel21 FlexColumn" bindtap="goto" data-url="./binding">
53
       <view class="panel21 FlexColumn" bindtap="goto" data-url="./binding">
54
         <image class="usermanual_index_handshake" src='../images/usermanual_index_link.png' />
54
         <image class="usermanual_index_handshake" src='../images/usermanual_index_link.png' />
55
         <view>帐号绑定</view>
55
         <view>帐号绑定</view>
56
       </view>
56
       </view>
57
     </view>
57
     </view>
58
     <view class='lineFooter'></view>
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
         <view>新手包指南</view>
61
         <view>新手包指南</view>
62
       </view>
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
         <view>小组须知</view>
64
         <view>小组须知</view>
65
       </view>
65
       </view>
66
       <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/lessonlist">
66
       <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/lessonlist">
@@ -71,7 +71,7 @@
71
       </view>
71
       </view>
72
     </view>
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
       <view class='line'></view>
75
       <view class='line'></view>
76
       <view class="panelItem2 panelItem FlexColumn">
76
       <view class="panelItem2 panelItem FlexColumn">
77
         <text class="text11">使用期限已过期!续费后可立即恢复使用。</text>
77
         <text class="text11">使用期限已过期!续费后可立即恢复使用。</text>
@@ -91,7 +91,7 @@
91
       </view>
91
       </view>
92
     </view>
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
       <view class="panelTitle1">会员活动</view>
95
       <view class="panelTitle1">会员活动</view>
96
       <view class="panelTitle2"></view>
96
       <view class="panelTitle2"></view>
97
     </view>
97
     </view>
@@ -103,26 +103,15 @@
103
       </view>
103
       </view>
104
     </block>
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
       <view class="panelItem FlexColumn">
107
       <view class="panelItem FlexColumn">
108
         <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
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
       </view>
110
       </view>
111
       <view class='lineFooter'></view>
111
       <view class='lineFooter'></view>
112
-      <view class="line"></view>
113
     </block>
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
       <view class="panelItem FlexColumn">
115
       <view class="panelItem FlexColumn">
127
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
116
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
128
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
117
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
@@ -132,20 +121,16 @@
132
       <view class="line"></view>
121
       <view class="line"></view>
133
     </block>
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
       </view>
128
       </view>
145
     </block>
129
     </block>
146
 
130
 
147
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
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
       <view class="btn" bindtap='copyManager'>复制微信号</view>
134
       <view class="btn" bindtap='copyManager'>复制微信号</view>
150
       <text class="text3">添加后请等待确认。这需要一点时间。之后通过微信和您联系。</text>
135
       <text class="text3">添加后请等待确认。这需要一点时间。之后通过微信和您联系。</text>
151
       <view class="btn4 btn" bindtap='gotoIndex'>刷新状态</view>
136
       <view class="btn4 btn" bindtap='gotoIndex'>刷新状态</view>
@@ -156,26 +141,26 @@
156
       <view class="panelTitle2"></view>
141
       <view class="panelTitle2"></view>
157
     </view>
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
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b02.png' />
145
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b02.png' />
161
       <view class="text7">新闻</view>
146
       <view class="text7">新闻</view>
162
       <view class="text8">秒过学习小组须知</view>
147
       <view class="text8">秒过学习小组须知</view>
163
     </view>
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
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
151
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
167
       <view class="text7">新闻</view>
152
       <view class="text7">新闻</view>
168
       <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
153
       <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
169
     </view>
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
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
157
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
173
       <view class="text7">{{item.text1}}</view>
158
       <view class="text7">{{item.text1}}</view>
174
       <view class="text8">{{item.text2}}</view>
159
       <view class="text8">{{item.text2}}</view>
175
       <view class="text10">{{item.text3}}</view>
160
       <view class="text10">{{item.text3}}</view>
176
     </view>
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
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
164
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
180
       <view class="text7">课程</view>
165
       <view class="text7">课程</view>
181
       <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>
166
       <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>

+ 14 - 19
pages/other/userbook.wxss

@@ -96,6 +96,7 @@
96
   border-top: 50rpx solid #f0f0f0;
96
   border-top: 50rpx solid #f0f0f0;
97
   background-color: #f0f0f0;
97
   background-color: #f0f0f0;
98
 }
98
 }
99
+
99
 .panel31{
100
 .panel31{
100
   width:220rpx;
101
   width:220rpx;
101
   height:93rpx;
102
   height:93rpx;
@@ -105,7 +106,7 @@
105
   line-height: 93rpx;
106
   line-height: 93rpx;
106
   color: #1E1E1E;
107
   color: #1E1E1E;
107
   background-color: #fff;
108
   background-color: #fff;
108
-  border: 2rpx solid #9b9b9b;
109
+  border: 2rpx solid #D2D2D2;
109
   margin: 0 8rpx;
110
   margin: 0 8rpx;
110
 }
111
 }
111
 
112
 
@@ -157,6 +158,7 @@
157
 
158
 
158
 .btn {
159
 .btn {
159
   font-size: 28rpx;
160
   font-size: 28rpx;
161
+  font-weight: 500;
160
   width: 480rpx;
162
   width: 480rpx;
161
   height: 90rpx;
163
   height: 90rpx;
162
   border-radius: 10rpx;
164
   border-radius: 10rpx;
@@ -164,7 +166,7 @@
164
   line-height: 90rpx;
166
   line-height: 90rpx;
165
   color: #0071ef;
167
   color: #0071ef;
166
   background-color: #fff;
168
   background-color: #fff;
167
-  border: 2rpx solid #9b9b9b;
169
+  border: 2rpx solid #D2D2D2;
168
   margin: 40rpx 0 10rpx 0;
170
   margin: 40rpx 0 10rpx 0;
169
 }
171
 }
170
 
172
 
@@ -185,19 +187,6 @@
185
   margin-bottom: 40rpx;
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
 .text5 {
190
 .text5 {
202
   margin-bottom: 60rpx;
191
   margin-bottom: 60rpx;
203
 }
192
 }
@@ -225,11 +214,17 @@
225
   margin: 20rpx 0 60rpx 0;
214
   margin: 20rpx 0 60rpx 0;
226
 }
215
 }
227
 
216
 
217
+.salesactivity_a01_usermanual_banner{
218
+  width:100%;
219
+  height:280rpx;
220
+}
221
+
228
 .text6 {
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
 .news_lesson_a01 {
230
 .news_lesson_a01 {

+ 2 - 2
project.config.json

@@ -49,7 +49,7 @@
49
 			"list": []
49
 			"list": []
50
 		},
50
 		},
51
 		"miniprogram": {
51
 		"miniprogram": {
52
-			"current": 8,
52
+			"current": 1,
53
 			"list": [
53
 			"list": [
54
 				{
54
 				{
55
 					"id": 0,
55
 					"id": 0,
@@ -62,7 +62,7 @@
62
 					"id": 1,
62
 					"id": 1,
63
 					"name": "pages/index/index",
63
 					"name": "pages/index/index",
64
 					"pathName": "pages/index/index",
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
 					"scene": 1007
66
 					"scene": 1007
67
 				},
67
 				},
68
 				{
68
 				{

+ 2 - 0
utils/main.js

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