chengjie лет назад: 6
Родитель
Сommit
d9e42d4052
35 измененных файлов с 400 добавлено и 231 удалено
  1. 1 1
      app.js
  2. 1 1
      marketing/main/extenduser.js
  3. 1 1
      marketing/main/index.js
  4. 1 1
      marketing/main/shareuser.js
  5. BIN
      pages/images/program_screenshot_bindaccount.png
  6. BIN
      pages/images/program_screenshot_checklist.png
  7. BIN
      pages/images/program_screenshot_lesson1.png
  8. BIN
      pages/images/program_screenshot_lesson_a01.png
  9. BIN
      pages/images/program_screenshot_lesson_b01.png
  10. BIN
      pages/images/program_screenshot_mustread.png
  11. BIN
      pages/images/program_screenshot_promotion.png
  12. BIN
      pages/images/program_screenshot_speak01.png
  13. BIN
      pages/images/program_screenshot_usermanual.png
  14. BIN
      pages/images/promotion_leaflet_c01.png
  15. BIN
      pages/images/promotion_leaflet_c02.png
  16. BIN
      pages/images/promotion_leaflet_c03.png
  17. BIN
      pages/images/usermanual_index_coupon.png
  18. BIN
      pages/images/usermanual_index_wallet.png
  19. 69 49
      pages/index/index.js
  20. 24 41
      pages/main/default.js
  21. 1 1
      pages/main/preview.js
  22. 1 1
      pages/other/activity.js
  23. 3 3
      pages/other/homework.js
  24. 2 2
      pages/other/homework.wxml
  25. 9 5
      pages/other/lesson.js
  26. 2 2
      pages/other/lessonlist.js
  27. 6 1
      pages/other/newuser.js
  28. 26 9
      pages/other/newuser.wxml
  29. 52 0
      pages/other/newuser.wxss
  30. 56 44
      pages/other/userbook.js
  31. 51 12
      pages/other/userbook.wxml
  32. 81 51
      pages/other/userbook.wxss
  33. 10 3
      pages/other/webview.js
  34. 1 1
      project.config.json
  35. 2 2
      utils/main.js

+ 1 - 1
app.js

@@ -53,7 +53,6 @@ App({
53 53
     IV: "kylx365hongliren",
54 54
     IsEnter: true,//是否是刚进来
55 55
     LessonID:0,//听课ID
56
-    Marketing:0,//市场推广计划
57 56
     CardWaitTimeMax:3,//每张卡最长等待时间(分钟)
58 57
     IsRecorderAccredit:0,
59 58
     CardList:[],//卡列表变量
@@ -68,5 +67,6 @@ App({
68 67
     ColorIndex:0,//色彩方案
69 68
     ClickType:0,//点击方案
70 69
     SecondConfigArray:[0,0,0],//选择记忆水平建议
70
+    GotoUrl:"",//首页跳转页面
71 71
   }
72 72
 })

+ 1 - 1
marketing/main/extenduser.js

@@ -164,7 +164,7 @@ Page({
164 164
   onShareAppMessage: function () {
165 165
     return {
166 166
       title: app.globalData.ShareTitle,
167
-      path: app.globalData.SharePath + '?Marketing=1&UserID=' + app.globalData.userInfo.UserID,
167
+      path: app.globalData.SharePath + '?type=marketing&UserID=' + app.globalData.userInfo.UserID,
168 168
       imageUrl: "../images/program_screenshot_promotion.png",
169 169
     }
170 170
   },

+ 1 - 1
marketing/main/index.js

@@ -24,7 +24,7 @@ Page({
24 24
   onShareAppMessage: function () {
25 25
     return {
26 26
       title: app.globalData.ShareTitle,
27
-      path: app.globalData.SharePath + '?Marketing=1&UserID=' + app.globalData.userInfo.UserID,
27
+      path: app.globalData.SharePath + '?type=marketing&UserID=' + app.globalData.userInfo.UserID,
28 28
       imageUrl: "../images/program_screenshot_promotion.png",
29 29
     }
30 30
   },

+ 1 - 1
marketing/main/shareuser.js

@@ -98,7 +98,7 @@ Page({
98 98
   onShareAppMessage: function () {
99 99
     return {
100 100
       title: app.globalData.ShareTitle,
101
-      path: app.globalData.SharePath + '?Marketing=1&UserID=' + app.globalData.userInfo.UserID,
101
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
102 102
       imageUrl: "../../pages/images/program_screenshot_main.png",
103 103
     }
104 104
   },

BIN
pages/images/program_screenshot_bindaccount.png


BIN
pages/images/program_screenshot_checklist.png


BIN
pages/images/program_screenshot_lesson1.png


BIN
pages/images/program_screenshot_lesson_a01.png


BIN
pages/images/program_screenshot_lesson_b01.png


BIN
pages/images/program_screenshot_mustread.png


BIN
pages/images/program_screenshot_promotion.png


BIN
pages/images/program_screenshot_speak01.png


BIN
pages/images/program_screenshot_usermanual.png


BIN
pages/images/promotion_leaflet_c01.png


BIN
pages/images/promotion_leaflet_c02.png


BIN
pages/images/promotion_leaflet_c03.png


BIN
pages/images/usermanual_index_coupon.png


BIN
pages/images/usermanual_index_wallet.png


+ 69 - 49
pages/index/index.js

@@ -20,11 +20,11 @@ const arrSentence = [
20 20
   "孟子曰:\n故天将降大任于是人也\n必先苦其心志,劳其筋骨\n饿其体肤……",
21 21
 ];
22 22
 
23
-var timeout1=0;
23
+var timeout1 = 0;
24 24
 
25 25
 Page({
26 26
   data: {
27
-    
27
+
28 28
   },
29 29
   onPullDownRefresh: function () {
30 30
     wx.reLaunch({
@@ -32,14 +32,11 @@ Page({
32 32
     })
33 33
   },
34 34
   onLoad: function (options) {
35
-    console.log("Time1:"+new Date().getTime());
35
+    console.log("Time1:" + new Date().getTime());
36 36
     if (options) {
37 37
       if (options.UserID) {
38 38
         console.log("UserID:" + options.UserID);
39 39
         app.globalData.introducer = options.UserID;
40
-
41
-        if (options.QuestionTypeID)
42
-          questionTypeID = options.QuestionTypeID;
43 40
       }
44 41
       if (options.SourceID) {
45 42
         console.log("SourceID:" + options.SourceID);
@@ -56,40 +53,62 @@ Page({
56 53
         app.globalData.introducer = scene;
57 54
       }
58 55
 
59
-      if (options.Share == 1) {
56
+      if (options.type == "share") {
57
+        if (options.ColorIndex)
58
+          app.globalData.ColorIndex = options.ColorIndex;
59
+
60 60
         this.setData({
61
-          MiaoguoCardID: options.MiaoguoCardID,
61
+          gotoType: "share",
62
+          gotoUrl: '../main/preview?type=share&id=' + options.MiaoguoCardID,
62 63
         });
63
-        if (options.ColorIndex)
64
-          app.globalData.ColorIndex=options.ColorIndex;
65 64
       }
66
-
67
-      if (options.LessonID) {
68
-        console.log("Lesson:" + options.LessonID);
65
+      else if (options.type == "bebound") {
66
+        this.setData({
67
+          gotoType: "bebound",
68
+          gotoUrl: "../other/binding?type=bebound&ParentUserID=" + options.ParentUserID + "&NickName=" + options.NickName + "&AvatarUrl=" + options.AvatarUrl,
69
+        });
70
+      }
71
+      else if (options.type == "lesson") {
72
+        //console.log("Lesson:" + options.LessonID);
69 73
         app.globalData.LessonID = options.LessonID;
70 74
         if (options.LessonPage)
71 75
           app.globalData.LessonPage = options.LessonPage;
72 76
         else
73 77
           app.globalData.LessonPage = 1;
74
-      }
75 78
 
76
-      if (options.Homework == 1) {
77
-        app.globalData.Homework = 1;
79
+        if (app.globalData.LessonID === "all") {
80
+          url = '../other/lessonlist';
81
+        }
82
+        else if (app.globalData.LessonID > 0) {
83
+          url = '../other/lesson?LessonID=' + app.globalData.LessonID + '&LessonPage=' + app.globalData.LessonPage
84
+        }
85
+        this.setData({
86
+          gotoType: "other",
87
+          gotoUrl: url,
88
+        });
78 89
       }
79
-
80
-      if (options.Marketing == 1) {
81
-        app.globalData.Marketing = 1;
90
+      else if (options.type == "marketing") {
91
+        this.setData({
92
+          gotoType: "other",
93
+          gotoUrl: '../../marketing/main/index',
94
+        });
82 95
       }
83
-
84
-      if (options.type == "bebound") {
96
+      else if (options.type == "homework") {
85 97
         this.setData({
86
-          gotoBindingUrl: "../other/binding?type=bebound&ParentUserID=" + options.ParentUserID + "&NickName=" + options.NickName + "&AvatarUrl=" + options.AvatarUrl,
98
+          gotoType: "other",
99
+          gotoUrl: "../other/homework",
87 100
         });
88 101
       }
89
-
90
-      if (options.type == "userbook") {
102
+      else if (options.type == "userbook") {
91 103
         this.setData({
92
-          UserBookUrl: "../other/userbook",
104
+          gotoType: "other",
105
+          gotoUrl: "../other/userbook",
106
+        });
107
+      }
108
+      else if (options.type == "webview") {
109
+        this.setData({
110
+          gotoType: "other",
111
+          gotoUrl: "../other/webview?PageID=" + options.PageID,
93 112
         });
94 113
       }
95 114
     }
@@ -103,12 +122,12 @@ Page({
103 122
 
104 123
     this.getUserInfo();
105 124
 
106
-    var that=this;
107
-    timeout1=setTimeout(function(){
125
+    var that = this;
126
+    timeout1 = setTimeout(function () {
108 127
       that.setData({
109 128
         IsRefresh: true,
110 129
       })
111
-    },15000);
130
+    }, 15000);
112 131
   },
113 132
   //得到用户信息
114 133
   getUserInfo: function (cb) {
@@ -230,36 +249,37 @@ Page({
230 249
           // });
231 250
           // return;
232 251
 
233
-
234
-          if (that.data.MiaoguoCardID) {
235
-            wx.reLaunch({
236
-              url: '../main/preview?type=share&id=' + that.data.MiaoguoCardID,
237
-            });
238
-          }
239
-          else if (that.data.UserBookUrl) {
252
+          if (that.data.gotoType == "share") {
240 253
             wx.reLaunch({
241
-              url: that.data.UserBookUrl,
254
+              url: that.data.gotoUrl,
242 255
             });
243 256
           }
244
-          else if (that.data.gotoBindingUrl){
257
+          else if (that.data.gotoType == "bebound") {
245 258
             wx.reLaunch({
246
-              url: that.data.gotoBindingUrl,
259
+              url: that.data.gotoUrl,
247 260
             });
248 261
           }
249 262
           else {
250
-            var url = '../main/default?IsStart=1';
251
-
252
-            setTimeout(function () {
253
-              console.log("Time5:" + new Date().getTime());
254
-              clearTimeout(timeout1);
255
-
263
+            if (that.data.gotoType == "other"){
264
+              app.globalData.GotoUrl = that.data.gotoUrl;
265
+              var url = '../main/default';
256 266
               wx.redirectTo({
257 267
                 url: url,
258 268
               });
259
-            }, 2000);
260
-
269
+            }
270
+            else{
271
+              var url = '../main/default';
272
+              setTimeout(function () {
273
+                console.log("Time5:" + new Date().getTime());
274
+                clearTimeout(timeout1);
275
+
276
+                wx.redirectTo({
277
+                  url: url,
278
+                });
279
+              }, 2000);
280
+            }
261 281
             that.getUserConfig();
262
-            
282
+
263 283
           }
264 284
           that.getBaiduToken();
265 285
         }
@@ -273,7 +293,7 @@ Page({
273 293
   getUserConfig: function () {
274 294
     var that = this;
275 295
     main.postData('UploadUserConfig?Type=getData&UserID=' + app.globalData.userInfo.UserID, {}, function (data) {
276
-      
296
+
277 297
       wx.setStorageSync("CardMaxNumberNew", data.CardMaxNumberNew);
278 298
       wx.setStorageSync("CardMaxNumberHistory", data.CardMaxNumberHistory);
279 299
       wx.setStorageSync("SortTypeIndex", data.SortTypeIndex);
@@ -281,7 +301,7 @@ Page({
281 301
       wx.setStorageSync("ClickType", data.ClickType);
282 302
       wx.setStorageSync("SecondConfigArray", data.SecondConfigArray.split(","));
283 303
       wx.setStorageSync("ColorIndexArr", data.ColorIndexArr.split(","));
284
-    
304
+
285 305
     });
286 306
   },
287 307
   updateProgram: function () {

+ 24 - 41
pages/main/default.js

@@ -23,18 +23,6 @@ Page({
23 23
       Containnerheight: main.getWindowHeight(),
24 24
     });
25 25
 
26
-    if (options.Share==1){
27
-      var id = options.MiaoguoCardID;
28
-      wx.navigateTo({
29
-        url: './preview?type=share&id=' + id,
30
-      });
31
-    }
32
-
33
-    // //测试跳转
34
-    // wx.navigateTo({
35
-    //   url: './add?type=add&id=0',
36
-    // });
37
-
38 26
     if (app.globalData.IsIPad){
39 27
       that.setData({
40 28
         IsIPad: "_iPad",
@@ -55,46 +43,41 @@ Page({
55 43
         if (res.authSetting['scope.userInfo']) {
56 44
 
57 45
           if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1){
58
-            wx.redirectTo({
59
-              url: '../other/newuser',
60
-            });
46
+            if (app.globalData.userInfo.Subscribe == 1) {
47
+              wx.navigateTo({
48
+                url: '../other/userbook',
49
+              });
50
+              app.globalData.GotoUrl = "";
51
+            }
52
+            else{
53
+              wx.redirectTo({
54
+                url: '../other/newuser',
55
+              });
56
+            }
61 57
           }
62 58
           else if (app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1){
63 59
             var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
64 60
             var today = common.formatDateCHS(common.formatTime(new Date()));
65 61
             if (productServiceTime < today) {
66 62
               wx.redirectTo({
67
-                url: '../other/pay?paypanel=3&payindex=4',
63
+                url: '../other/userbook',
68 64
               });
69 65
             }
70
-          }
71
-
72
-          if (app.globalData.userInfo.IsMember && app.globalData.Homework == 1) {
73
-            wx.navigateTo({
74
-              url: '../other/homework',
75
-            });
76
-          }
77
-
78
-          if (app.globalData.userInfo.IsMember && app.globalData.LessonID) {
79
-            var url = '';
80
-            if (app.globalData.LessonID==="all"){
81
-              url = '../other/lessonlist';
66
+            else if (app.globalData.userInfo.ClassDayNumber<0){
67
+              wx.redirectTo({
68
+                url: '../other/userbook',
69
+              });
82 70
             }
83
-            else if (app.globalData.LessonID > 0){
84
-              url='../other/lesson?LessonID=' + app.globalData.LessonID + '&LessonPage=' + app.globalData.LessonPage
71
+            else if (app.globalData.GotoUrl) {
72
+              //console.log(app.globalData.GotoUrl);
73
+              wx.navigateTo({
74
+                url: app.globalData.GotoUrl,
75
+              });
76
+              app.globalData.GotoUrl="";
85 77
             }
86
-            wx.navigateTo({
87
-              url: url,
88
-            });
89 78
           }
90
-
91
-          if (app.globalData.userInfo.IsMember && app.globalData.Marketing==1) {
92
-            var url = '../../marketing/main/index';
93
-            wx.navigateTo({
94
-              url: url,
95
-            });
96
-          }
97
-
79
+          
80
+          
98 81
           that.setData({
99 82
             IsAccredit: true,
100 83
           });

+ 1 - 1
pages/main/preview.js

@@ -650,7 +650,7 @@ Page({
650 650
     }, 1000);
651 651
     return {
652 652
       title: '我的分享',
653
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&Share=1&ColorIndex=' + app.globalData.ColorIndex + '&MiaoguoCardID=' + this.data.MiaoguoCardID,
653
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&type=share&ColorIndex=' + app.globalData.ColorIndex + '&MiaoguoCardID=' + this.data.MiaoguoCardID,
654 654
     }
655 655
   },
656 656
 })

+ 1 - 1
pages/other/activity.js

@@ -69,7 +69,7 @@ Page({
69 69
     return {
70 70
       title: app.globalData.ShareTitle,
71 71
       path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
72
-      imageUrl: "../images/program_screenshot_lesson1.png",
72
+      imageUrl: app.globalData.ShareImage,
73 73
     }
74 74
   },
75 75
 })

+ 3 - 3
pages/other/homework.js

@@ -22,9 +22,9 @@ Page({
22 22
       EndTime = EndTime.replace("日", "");
23 23
       var today=new Date();
24 24
       EndTime=new Date(EndTime);
25
-      var dayNumber=common.diffDate("d",today,EndTime);
25
+      var dayNumber = common.diffDate("d", today, EndTime)+2;
26 26
       that.setData({
27
-        ClassTimeEnd: EndTime,
27
+        EndTime: options.EndTime,
28 28
         DayNumber: dayNumber,
29 29
       });
30 30
     }
@@ -93,7 +93,7 @@ Page({
93 93
   onShareAppMessage: function () {
94 94
     return {
95 95
       title: "作业清单",
96
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID +'&Homework=1',
96
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID +'&type=homework',
97 97
       imageUrl: "../images/program_screenshot_checklist.png",
98 98
     }
99 99
   },

+ 2 - 2
pages/other/homework.wxml

@@ -1,12 +1,12 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <image bindtap="goto" data-url="../other/activity?EndTime={{ClassTimeEnd}}" src="../images/trial_checklist_header.png" class="trial_checklist_header" />
2
+  <image bindtap="goto" data-url="../other/activity?EndTime={{EndTime}}" src="../images/trial_checklist_header.png" class="trial_checklist_header" />
3 3
   
4 4
   <view class='panelItem0 panelItem FlexRow'>
5 5
     <view class='panelItem1 FlexColumn'>
6 6
       <view class="panelItem01">倒计时{{DayNumber}}天内有效</view>
7 7
       <view class="panelItem02">下拉刷新结果</view>
8 8
     </view>
9
-    <view class='panelItem2'>奖励{{FinishedCount/5}}天</view>
9
+    <view class='panelItem2'>奖励{{FinishedCount/5}}天</view>
10 10
   </view>
11 11
   <view class='lineFooter'></view>
12 12
 

+ 9 - 5
pages/other/lesson.js

@@ -43,9 +43,9 @@ Page({
43 43
       if (id < 10)
44 44
         id = "0" + id;
45 45
 
46
-      var imageUrl = "../images/program_screenshot_lesson1.png";
46
+      var imageUrl = "../images/program_screenshot_lesson_a01.png";
47 47
       if (that.data.LessonID=="5")
48
-        imageUrl ="../images/program_screenshot_speak01.png";
48
+        imageUrl ="../images/program_screenshot_lesson_b01.png";
49 49
         
50 50
       that.setData({
51 51
         ArrTirtle: data.List,
@@ -140,14 +140,18 @@ Page({
140 140
     });
141 141
   },
142 142
   onShareAppMessage: function () {
143
-    var title ="秒过学习法";
143
+    var title ="秒过学习法》课程";
144 144
     var imageUrl = this.data.ShareImageUrl;
145
-    if (this.data.LessonPage>0){
145
+    if (this.data.LessonID==5){
146
+      title="《秒过学习法》结业致辞"
147
+    }
148
+    else if (this.data.LessonPage>0){
146 149
       title = this.data.ArrTirtle[this.data.LessonPage - 1].Title;
147 150
     }
151
+
148 152
     return {
149 153
       title: title,
150
-      path: app.globalData.SharePath + '?LessonID=' + this.data.LessonID + '&LessonPage=' + this.data.LessonPage+'&UserID=' + app.globalData.userInfo.UserID,
154
+      path: app.globalData.SharePath + '?type=lesson&LessonID=' + this.data.LessonID + '&LessonPage=' + this.data.LessonPage+'&UserID=' + app.globalData.userInfo.UserID,
151 155
       imageUrl: imageUrl,
152 156
     }
153 157
   },

+ 2 - 2
pages/other/lessonlist.js

@@ -57,8 +57,8 @@ Page({
57 57
   onShareAppMessage: function () {
58 58
     return {
59 59
       title: app.globalData.ShareTitle,
60
-      path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
61
-      imageUrl: "../images/program_screenshot_lesson1.png",
60
+      path: app.globalData.SharePath + '?type=lesson&LessonID=all&UserID=' + app.globalData.userInfo.UserID,
61
+      imageUrl: "../images/program_screenshot_lesson_a01.png",
62 62
     }
63 63
   },
64 64
 })

+ 6 - 1
pages/other/newuser.js

@@ -5,7 +5,7 @@ var app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    PayPanel: 0,
8
+    PanelShow: 0,
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
@@ -13,6 +13,11 @@ Page({
13 13
       Containnerheight: main.getWindowHeight(),
14 14
     });
15 15
   },
16
+  gotoPanel2:function(){
17
+      this.setData({
18
+        PanelShow:1,
19
+      })
20
+  },
16 21
   copyManager: function () {
17 22
     wx.setClipboardData({
18 23
       data: "秒过学习法",

+ 26 - 9
pages/other/newuser.wxml

@@ -1,12 +1,29 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' >
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 
3
-  <view class='text1'>报名步骤</view>
4
-  <view class='text2'>第一步</view>
5
-  <text class='text3'>手动关注公众号《秒过学习法》</text>
6
-
7
-  <view class="btn" bindtap='copyManager'>复制公众号名称</view>
8
-  <view class='text4'>第二步</view>
9
-  <view class='text3'>关注后点击“开通新手包”</view>
10
-  <text class='text6'>如已报名\n开班后即能正常使用</text>
3
+  <block wx:if="{{PanelShow==0}}">
4
+    <image class="promotion_leaflet_c01" src='../images/promotion_leaflet_c01.png' />
5
+    <image class="promotion_leaflet_c02" src='../images/promotion_leaflet_c02.png' />
6
+    <image class="promotion_leaflet_c03" src='../images/promotion_leaflet_c03.png' />
7
+    <view class="panelBottom FlexRow">
8
+      <view class="panelBottom1 FlexColumn">
9
+        <view class='text7'>16天手把手</view>
10
+        <view class='text8'>还您上手新方法</view>
11
+      </view>
12
+      <view class="btn2 FlexColumn" bindtap="gotoPanel2">
13
+        去报名
14
+      </view>
15
+    </view>
16
+    <view style="height:140rpx;"></view>
17
+  </block>
18
+  <block wx:if="{{PanelShow==1}}">
19
+    <view class='text1'>报名步骤</view>
20
+    <view class='text2'>第一步</view>
21
+    <text class='text3'>手动关注公众号《秒过学习法》</text>
11 22
 
23
+    <view class="btn" bindtap='copyManager'>复制公众号名称</view>
24
+    <view class='text4'>第二步</view>
25
+    <view class='text3'>关注后点击“开通新手包”</view>
26
+    <text class='text6'>报名后请刷新状态</text>
27
+    <view class="btn" bindtap='gotoIndex'>刷新状态</view>
28
+  </block>
12 29
 </view>

+ 52 - 0
pages/other/newuser.wxss

@@ -2,6 +2,46 @@
2 2
   background-color: #ffffff;
3 3
 }
4 4
 
5
+.promotion_leaflet_c01{
6
+  width:100%;
7
+  height:410rpx;
8
+}
9
+
10
+.promotion_leaflet_c02{
11
+  width:100%;
12
+  height:822rpx;
13
+}
14
+
15
+.promotion_leaflet_c03{
16
+  width:100%;
17
+  height:1073rpx;
18
+}
19
+
20
+.panelBottom{
21
+  width:100%;
22
+  height:140rpx;
23
+  position: fixed;
24
+  bottom: 0;
25
+  background-color: #329468;
26
+  z-index: 10;
27
+  justify-content: space-between;
28
+}
29
+
30
+.panelBottom1{
31
+  margin-left: 30rpx;
32
+  color:#fff;
33
+  align-items: flex-start;
34
+}
35
+
36
+.text7{
37
+  font-size:24rpx;
38
+}
39
+
40
+.text8{
41
+  font-size:36rpx;
42
+}
43
+
44
+
5 45
 .text1{
6 46
   margin: 200rpx 0 0 0;
7 47
   font-size:64rpx;
@@ -28,6 +68,18 @@
28 68
   margin-top: 30rpx;
29 69
 }
30 70
 
71
+.btn2{
72
+  font-size:48rpx;
73
+  width:380rpx;
74
+  height:100rpx;
75
+  border-radius: 10rpx;
76
+  text-align: center;
77
+  line-height: 100rpx;
78
+  color:#1E1E1E;
79
+  background-color: #FFDD0C;
80
+  margin-right: 30rpx;
81
+}
82
+
31 83
 .text4{
32 84
   margin: 60rpx 0 0 0;
33 85
   font-size:36rpx;

+ 56 - 44
pages/other/userbook.js

@@ -2,40 +2,40 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 var app = getApp();
5
-var arrInformation=[
5
+var arrInformation = [
6 6
   {},
7 7
   {
8
-    PageID:1,
8
+    PageID: 1,
9 9
     text1: "课外课",
10 10
     text2: "如何制作合格的题卡——添加题卡 资料格式篇",
11 11
     text3: "制作题卡的操作步骤,各种常用的题卡格式,利用秒过的+资料功能怎么快速完成文科内容的题卡制作。"
12 12
   },
13 13
   {
14
-    PageID:2,
14
+    PageID: 2,
15 15
     text1: "课外课",
16 16
     text2: "如何制作合格的题卡——添加题卡 便捷操作篇",
17 17
     text3: "录入长篇幅内容,比如文字较多没有算式的概念题、英语例句等内容的技巧,重复利用手机的强大能力。"
18 18
   },
19 19
   {
20
-    PageID:3,
20
+    PageID: 3,
21 21
     text1: "课外课",
22 22
     text2: "如何制作合格的题卡——内容写法 语文篇",
23 23
     text3: "“大而全”的题卡是极其不适宜的做法,做题卡是有讲究的。怎么做既有效率又能帮助孩子理出头绪更有成效呢?"
24 24
   },
25 25
   {
26
-    PageID:4,
26
+    PageID: 4,
27 27
     text1: "课外课",
28 28
     text2: "如何制作合格的题卡——内容写法 数学英语篇",
29 29
     text3: "数学计算题、应用题,英语单词、语法、辩词的具体写法。检验孩子是不是在单纯背诵答案选项?如何避免与应对。"
30 30
   },
31 31
   {
32
-    PageID:5,
32
+    PageID: 5,
33 33
     text1: "课外课",
34 34
     text2: "怎么开展学习——流程篇",
35 35
     text3: "题卡的作用是促使孩子通过“回想”记住知识。不能容纳庞大繁复的书本内容,对摘录方法有一定的要求。"
36 36
   },
37 37
   {
38
-    PageID:6,
38
+    PageID: 6,
39 39
     text1: "课外课",
40 40
     text2: "怎么开展学习——要点篇",
41 41
     text3: "在学习中怎么打分,记忆评价的使用;用工具栏实现快捷操作控制学习进度;调节任务量灵活控制学习时间。"
@@ -53,8 +53,8 @@ Page({
53 53
 
54 54
     var productServiceTime = common.formatDateCHS(common.formatTime(new Date(app.globalData.userInfo.ProductServiceTime)));
55 55
 
56
-    var arr=[];
57
-    for(var i=arrInformation.length-1;i>=1;i--){
56
+    var arr = [];
57
+    for (var i = arrInformation.length - 1; i >= 1; i--) {
58 58
       arr.push(arrInformation[i]);
59 59
     }
60 60
     that.setData({
@@ -63,77 +63,89 @@ Page({
63 63
       AvatarUrl: app.globalData.userInfo.AvatarUrl,
64 64
       ProductServiceTime: productServiceTime,
65 65
       ArrInformation: arr,
66
+      IsMember: app.globalData.userInfo.IsMember,
67
+      IsPay: app.globalData.userInfo.IsPay,
66 68
     });
67
-    
69
+
70
+    that.init();
71
+
68 72
   },
69 73
   onPullDownRefresh: function () {
70 74
     this.onLoad();
71 75
     wx.stopPullDownRefresh();
72 76
   },
73
-  onShow:function(){
74
-    var that=this;
75
-    var panelShow=0;
76
-    if (app.globalData.userInfo.Subscribe == 1 && app.globalData.userInfo.IsProbation==1){
77
+  init: function () {
78
+    var that = this;
79
+    var panelShow = 0;
80
+    if (app.globalData.userInfo.Subscribe == 1 && app.globalData.userInfo.IsProbation == 1) {
77 81
       panelShow = 1;
78
-      if (app.globalData.userInfo.IsMember == 1){
79
-        panelShow = 2;
80
-        main.getData('GetClassList?ClassID=' + app.globalData.userInfo.ClassID, function (data) {
81
-          if (data) {
82
-            var ClassTimeStart=common.formatDateCHS(data[0].StartDate);
83
-            var ClassTimeEnd =common.formatDateCHS(data[0].EndDate);
84
-            
85
-            panelShow = 3;
86
-            var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", 5,new Date(data[0].StartDate))));
87
-            var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", 11, new Date(data[0].StartDate))));
82
+      if (app.globalData.userInfo.IsMember == 1 && app.globalData.userInfo.ClassID > 0) {
83
+
84
+        var ClassTimeStart = common.formatDateCHS(app.globalData.userInfo.ClassStartDate);
85
+        var ClassTimeEnd = common.formatDateCHS(app.globalData.userInfo.ClassEndDate);
88 86
 
89
-            var ClassDayNumber = common.diffDate("d",new Date(data[0].StartDate),new Date());
90
-            console.log("ClassDayNumber:" + ClassDayNumber);
87
+        var earlyBirdTimeStart = common.formatDateCHS(common.formatTime(common.addDate("d", 4, new Date(app.globalData.userInfo.ClassStartDate))));
88
+        var earlyBirdTimeEnd = common.formatDateCHS(common.formatTime(common.addDate("d", 9, new Date(app.globalData.userInfo.ClassStartDate))));
91 89
 
92
-            that.setData({
93
-              ClassTimeStart: ClassTimeStart,
94
-              ClassTimeEnd: ClassTimeEnd,
95
-              EarlyBirdTimeStart: earlyBirdTimeStart,
96
-              EarlyBirdTimeEnd: earlyBirdTimeEnd,
97
-              PanelShow: panelShow,
98
-              ClassDayNumber: ClassDayNumber,
99
-            });
90
+        var ClassDayNumber = app.globalData.userInfo.ClassDayNumber;
91
+        console.log("ClassDayNumber:" + ClassDayNumber);
100 92
 
101
-            
102
-          }
93
+        that.setData({
94
+          ClassTimeStart: ClassTimeStart,
95
+          ClassTimeEnd: ClassTimeEnd,
96
+          EarlyBirdTimeStart: earlyBirdTimeStart,
97
+          EarlyBirdTimeEnd: earlyBirdTimeEnd,
98
+          ClassDayNumber: ClassDayNumber,
103 99
         });
104 100
 
105
-        
101
+        panelShow = 2;
106 102
       }
107 103
     }
104
+    else if (app.globalData.userInfo.Subscribe == 0) {
105
+      panelShow = -1;
106
+    }
108 107
 
109 108
     that.setData({
110
-      PanelShow:panelShow,
109
+      PanelShow: panelShow,
111 110
     });
112 111
   },
113
-  copyManager: function () {
112
+  copyManager: function (e) {
113
+    var copytype = e.currentTarget.dataset.copytype;
114
+    var str1 = "changyibzr";
115
+    var str2 = "请在微信添加用户中长按粘贴。";
116
+    if (copytype && copytype == "公众号") {
117
+      str1 = "秒过学习法";
118
+      str2 = "请在微信添加公众号中长按粘贴。";
119
+    }
120
+
114 121
     wx.setClipboardData({
115
-      data: "changyibzr",
122
+      data: str1,
116 123
       success(res) {
117 124
         wx.showModal({
118 125
           title: '已复制',
119 126
           showCancel: false,
120
-          content: "请在微信添加用户中长按粘贴。",
127
+          content: str2,
121 128
           confirmText: "知道了",
122 129
         });
123 130
       }
124 131
     })
125 132
   },
126
-  goto:function(e){
133
+  goto: function (e) {
127 134
     var url = e.currentTarget.dataset.url;
128 135
     wx.navigateTo({
129 136
       url: url,
130 137
     });
131 138
   },
139
+  gotoIndex: function () {
140
+    wx.reLaunch({
141
+      url: '../index/index?type=userbook',
142
+    })
143
+  },
132 144
   onShareAppMessage: function () {
133 145
     return {
134
-      title: app.globalData.ShareTitle,
146
+      title: "《秒过学习法》用户手册",
135 147
       path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
136
-      imageUrl: app.globalData.ShareImage,
148
+      imageUrl: "../images/program_screenshot_usermanual.png",
137 149
     }
138 150
   },
139 151
 })

+ 51 - 12
pages/other/userbook.wxml

@@ -1,8 +1,16 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{PanelShow===-1}}">
3
+      <text class="text1">老用户\n请先关注公众号</text>
4
+      <text class="text2">手动关注公众号《秒过学习法》</text>
5
+      <view class="btn" bindtap='copyManager' data-copytype="公众号">复制公众号</view>
6
+  </block>
7
+  
2 8
   <block wx:if="{{PanelShow===0}}">
3 9
     <view class='text1'>尚未报名</view>
4
-    <text class='text2'>请先关注公众号《秒过学习法》\n然后开通新手包</text>
10
+    <text class='text2'>首先打开公众号《秒过学习法》完成报名\n然后刷新状态</text>
11
+    <view class="btn" bindtap='onLoad'>刷新状态</view>
5 12
   </block>
13
+
6 14
   <block wx:if="{{PanelShow>0}}">
7 15
     <view class='userinfo FlexRow'>
8 16
       <view class="left FlexRow">
@@ -11,20 +19,46 @@
11 19
       </view>
12 20
       <view></view>
13 21
     </view>
14
-    <view class="panel1 FlexRow">
22
+    <view class="panel10 panel1 FlexRow" wx:if="{{IsMember==1 && (ClassDayNumber>=16 || IsPay==1)}}">
23
+      <view class="left">有效期</view>
24
+      <view class="right FlexColumn">
25
+        <view class="panel11">{{ProductServiceTime}}</view>
26
+      </view>
27
+    </view>
28
+    <view class="panel1 FlexRow" wx:if="{{IsMember==1 && (!(ClassDayNumber>=16 || IsPay==1) || ClassDayNumber<0)}}">
15 29
       <view class="left">有效期</view>
16 30
       <view class="right FlexColumn">
17 31
         <view class="panel11">{{ProductServiceTime}}</view>
18 32
         <view class="panel12">新手包16天体验</view>
19 33
       </view>
20 34
     </view>
35
+    <view class="panel2 FlexRow" wx:if="{{IsPay==1}}">
36
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">
37
+        <image class="usermanual_index_wallet" src='../images/usermanual_index_wallet.png' />
38
+        <view>去续费</view>
39
+      </view>
40
+      <view class="line2"></view>
41
+      <view class="panel21 FlexColumn">
42
+        <image class="usermanual_index_wallet" src='../images/usermanual_index_coupon.png' />
43
+        <view>优惠券</view>
44
+      </view>
45
+    </view>
21 46
     <view class='lineFooter'></view>
22
-    <view class="panelTitle FlexRow" wx:if="{{PanelShow===3}}">
47
+    <view class="panelTitle FlexRow" wx:if="{{PanelShow===2 && ClassDayNumber>=0 && (ClassDayNumber<16 || IsPay==0)}}">
23 48
       <view class="panelTitle1">会员活动</view>
24 49
       <view class="panelTitle2"></view>
25 50
     </view>
26 51
 
27
-    <block wx:if="{{PanelShow===3 && ClassDayNumber>=13}}">
52
+    <block wx:if="{{PanelShow===2 && ClassDayNumber>=16 && IsPay==0}}">
53
+      <view class="panelItem FlexColumn">
54
+        <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
55
+        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=4&EndDate={{ClassTimeEnd}}">续费</view>
56
+      </view>
57
+      <view class='lineFooter'></view>
58
+      <view class="line"></view>
59
+    </block>
60
+
61
+    <block wx:if="{{PanelShow===2 && ClassDayNumber>=13 && ClassDayNumber<16}}">
28 62
       <view class="panelItem FlexColumn">
29 63
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a03_usermanual_banner_header.png' />
30 64
         <view class="text9">截止日期:{{ClassTimeEnd}}</view>
@@ -34,7 +68,7 @@
34 68
       <view class="line"></view>
35 69
     </block>
36 70
 
37
-    <block wx:if="{{PanelShow===3 && ClassDayNumber>=5 && ClassDayNumber<=11}}">
71
+    <block wx:if="{{PanelShow===2 && ClassDayNumber>=4 && ClassDayNumber<10}}">
38 72
       <view class="panelItem FlexColumn">
39 73
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
40 74
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
@@ -44,7 +78,7 @@
44 78
       <view class="line"></view>
45 79
     </block>
46 80
 
47
-    <block wx:if="{{PanelShow===3 && ClassDayNumber>=0}}">
81
+    <block wx:if="{{PanelShow===2 && ClassDayNumber>=0 && ClassDayNumber<16}}">
48 82
       <view class="panelItem FlexColumn">
49 83
         <image class="salesactivity_a01_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner_header.png' />
50 84
         <view class="text5">截止日期:{{ClassTimeEnd}}</view>
@@ -61,41 +95,46 @@
61 95
       <view class="panelTitle2"></view>
62 96
     </view>
63 97
 
98
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber>=16 && IsPay==0}}">
99
+      <text class="text3">您的有效期已过期。请尽快续费。续费后可立即恢复使用。</text>
100
+    </view>
101
+
64 102
     <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
65 103
       <text class="text3">感谢您的报名。您还没有加入在线辅导班群。请尽快联系秒过班务员为您安排开班事宜。\n\n联系方法,请添加班务员微信号:changyibzr</text>
66 104
       <view class="btn" bindtap='copyManager'>复制微信号</view>
67 105
       <text class="text3">如已添加,请稍等片刻,班务员正在为您办理相关手续,这需要一点时间。办完后将通过微信和您联系。</text>
106
+      <view class="btn" bindtap='gotoIndex'>刷新状态</view>
68 107
     </view>
69 108
 
70
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2}}">
109
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber<0}}">
71 110
       <text class="text4">
72 111
       用户手册用于发布课程、优惠活动等最新消息。\n目前尚未开班。更多消息,开班后请再来看看。\n您的开班时间:{{ClassTimeStart}}-{{ClassTimeEnd}}。\n我们将在开班当日起通过公众号向您发送资料和通知,请勿取消关注。
73 112
       </text>
74 113
     </view>
75 114
 
76
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=15}}" bindtap="goto" data-url="../other/lesson?LessonID=5">
115
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=15 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
77 116
       <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
78 117
       <view class="text7">新闻</view>
79 118
       <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
80 119
     </view>
81 120
 
82
-    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{PanelShow===3  && ClassDayNumber>=item.PageID}}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
121
+    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{PanelShow===2  && ((ClassDayNumber>=item.PageID && ClassDayNumber<16) || IsPay==1) }}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
83 122
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
84 123
       <view class="text7">{{item.text1}}</view>
85 124
       <view class="text8">{{item.text2}}</view>
86 125
       <view class="text10">{{item.text3}}</view>
87 126
     </view>
88 127
 
89
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=0}}" bindtap="goto" data-url="../other/lessonlist">
128
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<16) || IsPay==1) }}" bindtap="goto" data-url="../other/lessonlist">
90 129
       <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
91 130
       <view class="text7">课程</view>
92 131
       <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>
93 132
     </view>
94 133
 
95
-    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=0}}" bindtap="goto" data-url="../other/webview?PageID=0">
134
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<16) || IsPay==1) }}" bindtap="goto" data-url="../other/webview?PageID=0">
96 135
       <image class="news_mustread" src='{{ImagePath}}web/news_mustread.png' />
97 136
       <view class="text7">新闻</view>
98
-      <view class="text8">家长必读</view>
137
+      <view class="text8">新手包使用指南</view>
99 138
     </view>
100 139
 
101 140
   </block>

+ 81 - 51
pages/other/userbook.wxss

@@ -5,6 +5,7 @@
5 5
 .text1 {
6 6
   margin: 360rpx 0 0 0;
7 7
   font-size: 64rpx;
8
+  text-align: center;
8 9
 }
9 10
 
10 11
 .text2 {
@@ -42,6 +43,10 @@
42 43
   font-size: 28rpx;
43 44
 }
44 45
 
46
+.panel10 {
47
+  height: 101rpx;
48
+}
49
+
45 50
 .left {
46 51
   margin-left: 30rpx;
47 52
   margin-top: 30rpx;
@@ -62,6 +67,28 @@
62 67
   font-size: 24rpx;
63 68
 }
64 69
 
70
+
71
+.panel2{
72
+  width:100%;
73
+  justify-content: space-between;
74
+  border-top:1rpx solid #e3e3e3;
75
+}
76
+.usermanual_index_wallet {
77
+  width: 50rpx;
78
+  height: 50rpx;
79
+}
80
+
81
+.panel21{
82
+  width:374rpx;
83
+  height:171rpx;
84
+  font-size:28rpx;
85
+  font-weight: 400;
86
+}
87
+.line2{
88
+  width:1rpx;
89
+  height:171rpx;
90
+  background-color: #e3e3e3;
91
+}
65 92
 .panelTitle {
66 93
   width: 100%;
67 94
   justify-content: space-between;
@@ -82,120 +109,123 @@
82 109
 }
83 110
 
84 111
 .line {
85
-  width:100%;
86
-  height:20rpx;
112
+  width: 100%;
113
+  height: 20rpx;
87 114
   background-color: #f0f0f0;
88 115
 }
89 116
 
90
-
91
-.text3{
92
-  width:690rpx;
117
+.text3 {
118
+  width: 690rpx;
93 119
   margin-top: 30rpx;
94 120
 }
95 121
 
96
-.btn{
97
-  font-size:28rpx;
98
-  width:480rpx;
99
-  height:90rpx;
122
+.btn {
123
+  font-size: 28rpx;
124
+  width: 480rpx;
125
+  height: 90rpx;
100 126
   border-radius: 10rpx;
101 127
   text-align: center;
102 128
   line-height: 90rpx;
103
-  color:#0071EF;
129
+  color: #0071ef;
104 130
   background-color: #fff;
105
-  border:1rpx solid #9B9B9B;
131
+  border: 1rpx solid #9b9b9b;
106 132
   margin: 40rpx 0 10rpx 0;
107 133
 }
108 134
 
109
-.text4{
110
-  width:690rpx;
135
+.text4 {
136
+  width: 690rpx;
111 137
   line-height: 42rpx;
112 138
 }
113 139
 
114
-.salesactivity_a01_usermanual_banner_header{
115
-  width:100%;
116
-  height:403rpx;
140
+.salesactivity_a01_usermanual_banner_header {
141
+  width: 100%;
142
+  height: 403rpx;
117 143
 }
118 144
 
119
-.salesactivity_a01_usermanual_banner_bg{
120
-  width:100%;
121
-  height:170rpx;
145
+.salesactivity_a01_usermanual_banner_bg {
146
+  width: 100%;
147
+  height: 170rpx;
122 148
   position: absolute;
123
-  bottom:0;
149
+  bottom: 0;
124 150
   z-index: 5;
125 151
 }
126 152
 
127
-.text5{
153
+.text5 {
128 154
   margin-bottom: 60rpx;
129 155
 }
130 156
 
131
-.panelItem1{
157
+.panelItem1 {
132 158
   justify-content: flex-start;
133 159
   width: 100%;
134 160
   z-index: 10;
135 161
 }
136 162
 
137
-.btn2{
138
-  width:300rpx;
139
-  color:#1E1E1E;
163
+.btn2 {
164
+  width: 300rpx;
165
+  color: #1e1e1e;
140 166
   margin: 0 50rpx 50rpx 60rpx;
141 167
 }
142 168
 
143
-.text9{
144
-  width:690rpx;
169
+.text9 {
170
+  width: 690rpx;
145 171
   margin-bottom: 20rpx;
146 172
   text-align: center;
147
-  font-size:24rpx;
173
+  font-size: 24rpx;
148 174
 }
149 175
 
150
-
151
-.btn3{
152
-  width:480rpx;
176
+.btn3 {
177
+  width: 480rpx;
153 178
   margin: 0 0 60rpx 0;
154 179
 }
155 180
 
156
-.text6{
157
-  font-size:28rpx;
158
-  color:#0071EF;
181
+.text6 {
182
+  font-size: 28rpx;
183
+  color: #0071ef;
159 184
   text-decoration: underline;
160 185
   margin-bottom: 50rpx;
161 186
 }
162 187
 
163
-.news_lesson_a01{
164
-  width:690rpx;
165
-  height:240rpx;
188
+.news_lesson_a01 {
189
+  width: 690rpx;
190
+  height: 240rpx;
166 191
   border-radius: 10rpx;
167 192
   margin: 40rpx 0 30rpx 0;
168 193
 }
169 194
 
170
-.text7{
171
-  width:690rpx;
195
+.text7 {
196
+  width: 690rpx;
172 197
   text-align: left;
173 198
   font-weight: 400;
174 199
 }
175
-.text8{
176
-  width:690rpx;
200
+
201
+.text8 {
202
+  width: 690rpx;
177 203
   text-align: left;
178
-  font-size:32rpx;
204
+  font-size: 32rpx;
205
+  font-weight: 500;
179 206
   margin: 10rpx 0 20rpx 0;
180 207
 }
181 208
 
182
-.text10{
183
-  width:690rpx;
209
+.text10 {
210
+  width: 690rpx;
184 211
   text-align: left;
185 212
   font-weight: 400;
186 213
   margin-bottom: 20rpx;
187 214
 }
188 215
 
189
-.news_mustread{
190
-  width:690rpx;
191
-  height:240rpx;
216
+.news_mustread {
217
+  width: 690rpx;
218
+  height: 240rpx;
192 219
   border-radius: 10rpx;
193 220
   margin: 40rpx 0 30rpx 0;
194 221
 }
195 222
 
196
-.salesactivity_a02_usermanual_banner_header{
197
-  width:100%;
198
-  height:458rpx;
223
+.salesactivity_a02_usermanual_banner_header {
224
+  width: 100%;
225
+  height: 458rpx;
199 226
 }
200 227
 
201
-
228
+.salesactivity_a04_usermanual_banner_header {
229
+  width: 100%;
230
+  height: 523rpx;
231
+}

+ 10 - 3
pages/other/webview.js

@@ -16,10 +16,17 @@ Page({
16 16
   onUnload:function(){
17 17
   },
18 18
   onShareAppMessage: function () {
19
+    var imageUrl ="../images/program_screenshot_usermanual.png";
20
+    var path = "/pages/index/index?type=webview&PageID="+this.data.PageID;
21
+    var title ="《秒过学习法》课外课";
22
+    if (this.data.PageID==="0"){
23
+      imageUrl = "../images/program_screenshot_mustread.png";
24
+      title="《秒过学习法》家长必读";
25
+    }
19 26
     return {
20
-      title: app.globalData.ShareTitle,
21
-      path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
22
-      imageUrl: "../images/program_screenshot_lesson1.png",
27
+      title: title,
28
+      path: path,
29
+      imageUrl: imageUrl,
23 30
     }
24 31
   },
25 32
 })

+ 1 - 1
project.config.json

@@ -49,7 +49,7 @@
49 49
 			"list": []
50 50
 		},
51 51
 		"miniprogram": {
52
-			"current": 4,
52
+			"current": 1,
53 53
 			"list": [
54 54
 				{
55 55
 					"id": 0,

+ 2 - 2
utils/main.js

@@ -78,8 +78,8 @@ function getBaiduToken() {
78 78
 
79 79
 function payMoney(payType, buyType, money, detail, callback) {
80 80
   console.log(money);
81
-  if (app.globalData.userInfo.UserID < 8)
82
-    money = 0.01;
81
+  // if (app.globalData.userInfo.UserID < 8)
82
+  //   money = 0.01;
83 83
   //登录认证
84 84
   wx.login({
85 85
     success: function (res) {