chengjie 6 år sedan
förälder
incheckning
a16e8ac864

+ 3 - 0
app.json

@@ -36,6 +36,9 @@
36 36
     "pages/other/homework",
37 37
     "pages/other/lesson",
38 38
     "pages/other/webview",
39
+    "pages/other/newuser",
40
+    "pages/other/userbook",
41
+    "pages/other/activity",
39 42
     "pages/other/pay"
40 43
     
41 44
   ],

BIN
marketing/images/promotion_leaflet_a01.png


+ 5 - 0
marketing/main/extenduser.js

@@ -10,6 +10,11 @@ Page({
10 10
   data: {
11 11
   },
12 12
   onLoad: function (options) {
13
+    if (options){
14
+      app.globalData.userInfo={};
15
+      app.globalData.userInfo.UserID=options.UserID;
16
+    }
17
+    
13 18
     var pageType = 0;
14 19
     if (options.PageType == 1) {
15 20
       pageType = 1;

+ 72 - 0
marketing/main/shareuser.js

@@ -2,6 +2,7 @@ import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
+var downloadNumber=0;
5 6
 
6 7
 Page({
7 8
   data: {
@@ -11,6 +12,7 @@ Page({
11 12
       Containnerheight: main.getWindowHeight(),
12 13
     });
13 14
     this.init();
15
+    downloadNumber=0;
14 16
   },
15 17
   init:function(){
16 18
     var that = this;
@@ -23,6 +25,76 @@ Page({
23 25
       }
24 26
     });
25 27
   }, 
28
+  buildImage:function(){
29
+
30
+    if (!app.globalData.userInfo) {
31
+      app.globalData.userInfo = {};
32
+      app.globalData.userInfo.UserID = 1;
33
+    }
34
+    var that=this;
35
+    wx.showLoading({
36
+      title: '请稍候',
37
+    });
38
+    var imageUrl = '../images/promotion_leaflet_a01.png';
39
+    var imageQRCode = app.globalData.serverUrl;
40
+    imageQRCode += common.Encrypt("BuildWXServiceQRCode?QRCodeType=0&UserID=" + app.globalData.userInfo.UserID + "&SourceID=" + app.globalData.ProgramID);
41
+
42
+    var that = this;
43
+    var downloadTask = wx.downloadFile({
44
+      url: imageQRCode,
45
+      success(res) {
46
+        if (res.statusCode === 200) {
47
+
48
+          var canvas = wx.createCanvasContext("shareCanvas", that);
49
+          canvas.drawImage(imageUrl, 0, 0, 750, 1256);
50
+          canvas.drawImage(res.tempFilePath, 550, 1068, 160, 160);
51
+          canvas.fillStyle = "#1e1e1e";
52
+          canvas.setFontSize(28);
53
+          canvas.fillText("开班时间:2019-09-01", 50, 1212);
54
+          canvas.draw(1, function (n) {
55
+
56
+            wx.canvasToTempFilePath({
57
+              x: 0,
58
+              y: 0,
59
+              width: 750,
60
+              height: 1256,
61
+              destWidth: 750,
62
+              destHeight: 1256,
63
+              canvasId: 'shareCanvas',
64
+              success: function (res2) {
65
+
66
+                console.log(res2.tempFilePath);
67
+                wx.hideLoading();
68
+                wx.previewImage({
69
+                  current: res2.tempFilePath, // 当前显示图片的http链接
70
+                  urls: [res2.tempFilePath] // 需要预览的图片http链接列表
71
+                });
72
+              },
73
+              fail:function(err){
74
+                wx.hideLoading();
75
+              }
76
+            })
77
+          });
78
+        }
79
+        else{
80
+          wx.hideLoading();
81
+        }
82
+      },
83
+      fail: function (err) {
84
+        wx.hideLoading();
85
+        downloadNumber++;
86
+        if (downloadNumber<3)
87
+          that.buildImage();
88
+      }
89
+    });
90
+
91
+    downloadTask.onProgressUpdate((res) => {
92
+      console.log('下载进度', res.progress)
93
+      console.log('已经下载的数据长度', res.totalBytesWritten)
94
+      console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite)
95
+    })
96
+    
97
+  },
26 98
   onShareAppMessage: function () {
27 99
     return {
28 100
       title: app.globalData.ShareTitle,

+ 3 - 1
marketing/main/shareuser.wxml

@@ -8,4 +8,6 @@
8 8
     <text class="text5" wx:if="{{item.Text5}}">{{item.Text5}}</text>
9 9
     <button class="btn" open-type="{{item.OpenType}}" bindtap="{{item.BindTap}}">{{item.BtnStr}}</button>
10 10
   </view>
11
-</view>
11
+</view>
12
+
13
+<canvas class='Canvas' canvas-id="shareCanvas"></canvas>

+ 9 - 0
marketing/main/shareuser.wxss

@@ -41,3 +41,12 @@
41 41
   background-color: #0071EF;
42 42
   border-radius: 10rpx;
43 43
 }
44
+
45
+
46
+.Canvas{
47
+  width: 750px; 
48
+  height: 1256px;
49
+  background-color: #fff;
50
+  position: fixed;
51
+  left:760rpx;
52
+}

BIN
pages/images/program_screenshot_main.png


BIN
pages/images/salesactivity_a01_usermanual_banner_bg.png


BIN
pages/images/trial_checklist_header.png


BIN
pages/images/trial_lesson_header.png


+ 11 - 0
pages/index/index.js

@@ -86,6 +86,12 @@ Page({
86 86
           gotoBindingUrl: "../other/binding?type=bebound&ParentUserID=" + options.ParentUserID + "&NickName=" + options.NickName + "&AvatarUrl=" + options.AvatarUrl,
87 87
         });
88 88
       }
89
+
90
+      if (options.type == "userbook") {
91
+        this.setData({
92
+          UserBookUrl: "../other/userbook",
93
+        });
94
+      }
89 95
     }
90 96
     this.setData({
91 97
       IsRefresh: false,
@@ -230,6 +236,11 @@ Page({
230 236
               url: '../main/preview?type=share&id=' + that.data.MiaoguoCardID,
231 237
             });
232 238
           }
239
+          else if (that.data.UserBookUrl) {
240
+            wx.reLaunch({
241
+              url: that.data.UserBookUrl,
242
+            });
243
+          }
233 244
           else if (that.data.gotoBindingUrl){
234 245
             wx.reLaunch({
235 246
               url: that.data.gotoBindingUrl,

+ 1 - 1
pages/main/default.js

@@ -56,7 +56,7 @@ Page({
56 56
 
57 57
           if (!app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1){
58 58
             wx.redirectTo({
59
-              url: '../other/pay?paypanel=0&payindex=1',
59
+              url: '../other/newuser',
60 60
             });
61 61
           }
62 62
           else if (app.globalData.userInfo.IsMember && app.globalData.userInfo.IsShow == 1){

+ 10 - 1
pages/main/systemsetting.js

@@ -45,7 +45,11 @@ Page({
45 45
       url: '../other/binding',
46 46
     })
47 47
   },
48
-
48
+  gotoUserbook:function(){
49
+    wx.navigateTo({
50
+      url: '../other/userbook',
51
+    });
52
+  },
49 53
   updateMember: function () {
50 54
     wx.reLaunch({
51 55
       url: '../index/index',
@@ -65,6 +69,11 @@ Page({
65 69
       });
66 70
     }
67 71
   },
72
+  gotoMarketingUserList: function (e) {
73
+    wx.navigateTo({
74
+      url: '../../marketing/main/index',
75
+    });
76
+  },
68 77
   onShareAppMessage: function () {
69 78
     return {
70 79
       title: app.globalData.ShareTitle,

+ 13 - 4
pages/main/systemsetting.wxml

@@ -1,13 +1,22 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
 
3 3
   <view class="panelTitle FlexRow">
4
-    <view class="panelTitle1">帐号</view>
4
+    <view class="panelTitle1">用户</view>
5 5
     <view class="panelTitle2"></view>
6 6
   </view>
7
-  <view class="panelItem FlexRow">
8
-    <view class="panelItem1">有效期</view>
7
+  <view class="panelItem FlexRow" bindtap='gotoUserbook'>
8
+    <view class="panelItem1">用户手册</view>
9 9
     <view class="panelItem2 FlexRow">
10
-      {{ProductServiceTime}}
10
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
11
+    </view>
12
+  </view>
13
+  <view class="lineWidthAll FlexRow">
14
+    <view class="lineWidth720"></view>
15
+  </view>
16
+  <view class="panelItem FlexRow" bindtap='gotoMarketingUserList'>
17
+    <view class="panelItem1">推广计划</view>
18
+    <view class="panelItem2 FlexRow">
19
+      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
11 20
     </view>
12 21
   </view>
13 22
   <!-- <view class="lineWidthAll FlexRow">

+ 75 - 0
pages/other/activity.js

@@ -0,0 +1,75 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+const ActivityArr = [
6
+  {},
7
+  {
8
+    ActivityName: "newuserhelp",
9
+    ImageArr: [
10
+      { src: "salesactivity_a01_manual_01.png", h: 453 },
11
+      { src: "salesactivity_a01_manual_02.png", h: 989 },
12
+    ]
13
+  },
14
+  {
15
+    ActivityName: "earlybird",
16
+    ImageArr: [
17
+      { src: "salesactivity_a02_manual_01.png", h: 397 },
18
+      { src: "salesactivity_a02_manual_02.png", h: 715 },
19
+    ]
20
+  },
21
+  {
22
+    ActivityName: "end",
23
+    ImageArr: [
24
+      { src: "salesactivity_a03_manual_01.png", h: 397 },
25
+      { src: "salesactivity_a03_manual_02.png", h: 715 },
26
+    ]
27
+  }];
28
+
29
+Page({
30
+  data: {
31
+    ImagePath: app.globalData.uploadImageUrl,
32
+  },
33
+  onLoad: function (options) {
34
+    var that = this;
35
+    var activityID="1";
36
+    if (options && options.ActivityID) {
37
+      activityID = options.ActivityID;
38
+    }
39
+
40
+    var EndTime = "";
41
+    if (options && options.EndTime) {
42
+      EndTime = options.EndTime;
43
+    } 
44
+    
45
+    var EarlyBirdTimeStart = "",EarlyBirdTimeEnd = "";
46
+    if (options && options.EarlyBirdTimeStart) {
47
+      EarlyBirdTimeStart = options.EarlyBirdTimeStart;
48
+      EarlyBirdTimeEnd = options.EarlyBirdTimeEnd;
49
+    }
50
+
51
+    that.setData({
52
+      Containnerheight: main.getWindowHeight(),
53
+      Activity: ActivityArr[activityID],
54
+      ActivityID:activityID,
55
+      EndTime: EndTime,
56
+      EarlyBirdTimeStart: EarlyBirdTimeStart,
57
+      EarlyBirdTimeEnd: EarlyBirdTimeEnd,
58
+    });
59
+  },
60
+  gotoPay: function (e) {
61
+    var PayType = e.currentTarget.dataset.paytype;
62
+    var EndDate = e.currentTarget.dataset.enddate;
63
+
64
+    wx.navigateTo({
65
+      url: '../other/pay?PayType=' + PayType + '&EndDate=' + EndDate,
66
+    });
67
+  },
68
+  onShareAppMessage: function () {
69
+    return {
70
+      title: app.globalData.ShareTitle,
71
+      path: app.globalData.SharePath + '?LessonID=all&UserID=' + app.globalData.userInfo.UserID,
72
+      imageUrl: "../images/program_screenshot_lesson1.png",
73
+    }
74
+  },
75
+})

+ 3 - 0
pages/other/activity.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "会员活动"
3
+}

+ 23 - 0
pages/other/activity.wxml

@@ -0,0 +1,23 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <image class="img" src="{{ImagePath}}web/{{item.src}}" style="Height:{{item.h}}rpx;" wx:for="{{Activity.ImageArr}}" wx:key="index" />
3
+  <block wx:if="{{ActivityID=='1'}}">
4
+    <text class="EndTime">截止日期\n{{EndTime}}</text>
5
+  </block>
6
+  <block wx:if="{{ActivityID=='2'}}">
7
+    <text class="EndTime">活动时间\n{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</text>
8
+    <view class="panel1 FlexRow">
9
+      <view class="panel11">已领取,6天内有效,</view>
10
+      <view class="panel12" bindtap="gotoPay" data-paytype="2" data-enddate="{{EndTime}}">去续费</view>
11
+    </view>
12
+    <text class="text1">条款:领取后请在活动时间内完成续费,逾期无效。\n续费次日起7天内可退款。</text>
13
+  </block>
14
+  <block wx:if="{{ActivityID=='3'}}">
15
+    <text class="EndTime">截止日期\n{{EndTime}}</text>
16
+    <view class="panel1 FlexRow">
17
+      <view class="panel11">已领取,今天内有效,</view>
18
+      <view class="panel12" bindtap="gotoPay" data-paytype="3" data-enddate="{{EndTime}}">去续费</view>
19
+    </view>
20
+    <text class="text1">条款:领取后请在活动时间内完成续费,逾期无效。\n续费次日起7天内可退款。</text>
21
+  </block>
22
+  <view style="height:100rpx"></view>
23
+</view>

+ 35 - 0
pages/other/activity.wxss

@@ -0,0 +1,35 @@
1
+.container {
2
+  background-color: #fff;
3
+}
4
+
5
+.img{
6
+  width:100%;
7
+}
8
+
9
+.EndTime{
10
+  font-size:28rpx;
11
+  font-weight: 400;
12
+  text-align: center;
13
+}
14
+
15
+.text1{
16
+  font-size:24rpx;
17
+  text-align: center;
18
+}
19
+
20
+.panel1{
21
+  width:560rpx;
22
+  height:90rpx;
23
+  background-color: #F0F0F0;
24
+  border-radius: 10rpx;
25
+  margin:30rpx 0 20rpx 0; 
26
+}
27
+.panel11{
28
+  font-size:36rpx;
29
+  color:#787878;
30
+}
31
+.panel12{
32
+  font-size:36rpx;
33
+  color:#0071EF;
34
+  text-decoration: underline;
35
+}

+ 35 - 11
pages/other/homework.js

@@ -9,20 +9,45 @@ Page({
9 9
   },
10 10
   onLoad: function (options) {
11 11
     var that = this;
12
+
13
+    var userid = app.globalData.userInfo.UserID;
14
+    if (options.UserID)
15
+      userid = options.UserID;
16
+      
17
+    var EndTime = "";
18
+    if (options.EndTime){
19
+      EndTime = options.EndTime;
20
+      EndTime = EndTime.replace("年", "-");
21
+      EndTime = EndTime.replace("月", "-");
22
+      EndTime = EndTime.replace("日", "");
23
+      var today=new Date();
24
+      EndTime=new Date(EndTime);
25
+      var dayNumber=common.diffDate("d",today,EndTime);
26
+      that.setData({
27
+        ClassTimeEnd: EndTime,
28
+        DayNumber: dayNumber,
29
+      });
30
+    }
31
+
12 32
     that.setData({
13 33
       Containnerheight: main.getWindowHeight(),
14
-      NickName: app.globalData.userInfo.NickName,
15
-      AvatarUrl: app.globalData.userInfo.AvatarUrl,
34
+      UserID:userid,
16 35
     });
17 36
 
18
-    var userid = app.globalData.userInfo.UserID;
19
-    if (options.UserID)
20
-      userid=options.UserID;
37
+    this.init();
21 38
 
22
-    main.getData("GetMiaoguoCheckList?UserID=" + userid, function (data) {
39
+    app.globalData.Homework=0;
40
+  },
41
+  onPullDownRefresh: function () {
42
+    this.init();
43
+    wx.stopPullDownRefresh();
44
+  },
45
+  init:function(){
46
+    var that = this;
47
+    main.getData("GetMiaoguoCheckList?UserID=" + that.data.UserID, function (data) {
23 48
       if (data) {
24 49
 
25
-        common.getStorageValue(that, "HomeworkListClick", [0,0,0], function () {
50
+        common.getStorageValue(that, "HomeworkListClick", [0, 0, 0], function () {
26 51
 
27 52
           if (that.data.HomeworkListClick[1] == 0) {
28 53
             data.List[1].Finished = 0;
@@ -42,8 +67,6 @@ Page({
42 67
         });
43 68
       }
44 69
     });
45
-
46
-    app.globalData.Homework=0;
47 70
   },
48 71
   clickOK:function(e){
49 72
     var that = this;
@@ -61,9 +84,10 @@ Page({
61 84
       wx.setStorageSync("HomeworkListClick", that.data.HomeworkListClick);
62 85
     });
63 86
   },
64
-  gotoLessonList:function(){
87
+  goto: function (e) {
88
+    var url = e.currentTarget.dataset.url;
65 89
     wx.navigateTo({
66
-      url: '../other/lessonlist',
90
+      url: url,
67 91
     });
68 92
   },
69 93
   onShareAppMessage: function () {

+ 2 - 0
pages/other/homework.json

@@ -1,5 +1,7 @@
1 1
 {
2 2
   "navigationBarTitleText": "作业清单",
3
+  "navigationBarBackgroundColor": "#1D6FC7",
4
+  "navigationBarTextStyle": "white",
3 5
   "backgroundColor": "#F0F0F0",
4 6
   "enablePullDownRefresh": true
5 7
 }

+ 5 - 10
pages/other/homework.wxml

@@ -1,17 +1,12 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class='userinfo FlexRow'>
3
-    <view class="left FlexRow">
4
-      <image class='avatar' src="{{AvatarUrl}}" />
5
-      <view class="nickname">{{NickName}}</view>
6
-    </view>
7
-    <image src="../images/checklist_nameline_illus.png" class="checklist_nameline_illus" />
8
-  </view>
2
+  <image bindtap="goto" data-url="../other/activity?EndTime={{ClassTimeEnd}}" src="../images/trial_checklist_header.png" class="trial_checklist_header" />
3
+  
9 4
   <view class='panelItem0 panelItem FlexRow'>
10 5
     <view class='panelItem1 FlexColumn'>
11
-      <view class="panelItem01">【待修改】</view>
6
+      <view class="panelItem01">倒计时{{DayNumber}}天内有效</view>
12 7
       <view class="panelItem02">下拉刷新结果</view>
13 8
     </view>
14
-    <view class='panelItem2'>{{FinishedCount}}%</view>
9
+    <view class='panelItem2'>奖励{{FinishedCount/5}}天</view>
15 10
   </view>
16 11
   <view class='lineFooter'></view>
17 12
 
@@ -49,7 +44,7 @@
49 44
     <view class="panelTitle1 FlexColumn">
50 45
       <view class="">课程</view>
51 46
       <view class="panelTitle11">先上课后操作,遇到问题请到班群讨论。看完后系统自动打勾。</view>
52
-      <view class="panelTitle12" bindtap="gotoLessonList">查看课程</view>
47
+      <view class="panelTitle12" bindtap="goto" data-url='../other/lessonlist'>查看课程</view>
53 48
     </view>
54 49
     <view></view>
55 50
   </view>

+ 1 - 22
pages/other/homework.wxss

@@ -1,27 +1,6 @@
1
-.userinfo{
1
+.trial_checklist_header{
2 2
   width:100%;
3 3
   height:130rpx;
4
-  background-color: #1D6FC7;
5
-  justify-content: space-between;
6
-}
7
-
8
-.avatar{
9
-  margin-left:30rpx;
10
-  width:70rpx;
11
-  height:70rpx;
12
-  border-radius: 50%;
13
-}
14
-
15
-.nickname{
16
-  margin-left: 20rpx;
17
-  font-size: 28rpx;
18
-  color:#fff;
19
-}
20
-
21
-.checklist_nameline_illus{
22
-  width:287rpx;
23
-  height:130rpx;
24
-  margin-right: 10rpx;
25 4
 }
26 5
 
27 6
 .panelTitle{

+ 3 - 1
pages/other/lessonlist.json

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

+ 2 - 0
pages/other/lessonlist.wxml

@@ -1,4 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <image class="trial_lesson_header" src='../images/trial_lesson_header.png' />
3
+        
2 4
   <view class="main FlexColumn">
3 5
     <block wx:for="{{[List[3],List[4],List[5],List[6]]}}" wx:key="index">
4 6
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">

+ 5 - 1
pages/other/lessonlist.wxss

@@ -1,6 +1,10 @@
1
+.trial_lesson_header{
2
+  width: 100%;
3
+  height:130rpx;
4
+}
5
+
1 6
 .main{
2 7
   width: 100%;
3
-  margin-top: 20rpx;
4 8
 }
5 9
 
6 10
 .panelItem {

+ 41 - 0
pages/other/newuser.js

@@ -0,0 +1,41 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+var app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    PayPanel: 0,
9
+  },
10
+  onLoad: function (options) {
11
+    var that = this;
12
+    that.setData({
13
+      Containnerheight: main.getWindowHeight(),
14
+    });
15
+  },
16
+  copyManager: function () {
17
+    wx.setClipboardData({
18
+      data: "秒过学习法",
19
+      success(res) {
20
+        wx.showModal({
21
+          title: '已复制',
22
+          showCancel: false,
23
+          content: "请在微信添加公众号中长按粘贴。",
24
+          confirmText: "知道了",
25
+        });
26
+      }
27
+    });
28
+  },
29
+  gotoIndex: function () {
30
+    wx.reLaunch({
31
+      url: '../index/index',
32
+    })
33
+  },
34
+  onShareAppMessage: function () {
35
+    return {
36
+      title: app.globalData.ShareTitle,
37
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
38
+      imageUrl: app.globalData.ShareImage,
39
+    }
40
+  },
41
+})

+ 4 - 0
pages/other/newuser.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarBackgroundColor": "#9BD41C",
3
+  "navigationBarTextStyle": "white"
4
+}

+ 12 - 0
pages/other/newuser.wxml

@@ -0,0 +1,12 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' >
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>
11
+
12
+</view>

+ 41 - 0
pages/other/newuser.wxss

@@ -0,0 +1,41 @@
1
+.container{
2
+  background-color: #ffffff;
3
+}
4
+
5
+.text1{
6
+  margin: 200rpx 0 0 0;
7
+  font-size:64rpx;
8
+  color:#329468;
9
+}
10
+.text2{
11
+  margin: 10rpx 0 0 0;
12
+  font-size:36rpx;
13
+}
14
+.text3{
15
+  font-size:28rpx;
16
+  font-weight: 400;
17
+}
18
+
19
+.btn{
20
+  font-size:36rpx;
21
+  width:520rpx;
22
+  height:90rpx;
23
+  border-radius: 10rpx;
24
+  text-align: center;
25
+  line-height: 90rpx;
26
+  color:#fff;
27
+  background-color: #329468;
28
+  margin-top: 30rpx;
29
+}
30
+
31
+.text4{
32
+  margin: 60rpx 0 0 0;
33
+  font-size:36rpx;
34
+}
35
+
36
+.text6{
37
+  margin: 100rpx 0 0 0;
38
+  font-size:36rpx;
39
+  color:#329468;
40
+  text-align: center;
41
+}

+ 11 - 55
pages/other/pay.js

@@ -3,8 +3,6 @@ import main from '../../utils/main';
3 3
 
4 4
 var app = getApp();
5 5
 var userid = 0;
6
-var introducer = 0;
7
-var payindex=1;
8 6
 
9 7
 Page({
10 8
   data: {
@@ -16,39 +14,18 @@ Page({
16 14
   },
17 15
   onLoad: function (options) {
18 16
     userid = options.UserID;
19
-    introducer = options.Introducer;
20 17
 
21
-    payindex = options.payindex;
22
-    if (!payindex)
23
-      payindex = 1;
24
-    this.init(payindex);
18
+    var PayType = options.PayType;
19
+    var EndDate = options.EndDate;
20
+    this.init(PayType, EndDate);
25 21
 
26
-    if (options.paypanel){
27
-      this.setData({
28
-        PayPanel: options.paypanel,
29
-      });
30
-    }
31
-
32
-    if (!app.globalData.userInfo.IsMember){
33
-      var imageUrl = wx.getStorageSync("MiaoguoCode");
34
-      if (imageUrl) {
35
-        this.setData({
36
-          PayPanel: 2,
37
-        });
38
-      }
39
-    }
40
-    else{
41
-      wx.removeStorageSync("MiaoguoCode");
42
-    }
43
-  },
44
-  gotoPay: function () {
45
-    this.setData({
46
-      PayPanel: 1,
47
-    });
48 22
   },
49
-  init: function (param) {
23
+  init: function (PayType, EndDate) {
50 24
     var that = this;
51
-    main.getData('GetMiaoguoPayInfo2?payType=' + param+'&UserID='+app.globalData.userInfo.UserID, function (data) {
25
+    EndDate = EndDate.replace("年", "-");
26
+    EndDate = EndDate.replace("月", "-");
27
+    EndDate = EndDate.replace("日", "");
28
+    main.getData('GetMiaoguoPayInfo3?EndDate=' + EndDate + '&PayType=' + PayType +'&UserID='+app.globalData.userInfo.UserID, function (data) {
52 29
       if (data) {
53 30
         that.setData({
54 31
           Info: data,
@@ -61,37 +38,16 @@ Page({
61 38
     var money = this.data.Info.PayMoney;
62 39
     var detail = {};
63 40
     detail.UserID = app.globalData.userInfo.UserID;
64
-    detail.Introducer = app.globalData.introducer;
41
+    detail.Introducer = app.globalData.userInfo.Introducer;
65 42
     detail = JSON.stringify(detail);
66 43
 
67 44
     console.log(money);
68 45
     main.payMoney(7, null, money, detail,function(){
69
-      if (that.data.PayPanel == 1 && payindex==1){
70 46
         that.setData({
71
-          PayPanel: 2,
72
-        });
73
-        wx.setStorageSync("MiaoguoCode", that.data.Info.Text7);
74
-      }
75
-      else if (that.data.PayPanel == 3 || (that.data.PayPanel == 1 && payindex > 1)) {
76
-        that.setData({
77
-          PayPanel: 4,
47
+          PayPanel: 1,
78 48
         })
79
-      }
80
-    })
81
-  },
82
-  copyManager: function () {
83
-    wx.setClipboardData({
84
-      data: this.data.Info.Text7,
85
-      success(res) {
86
-        wx.showModal({
87
-          title: '已复制',
88
-          showCancel: false,
89
-          content: "复制成功,请在“添加朋友”中长按粘贴微信号。",
90
-          confirmText: "知道了",
91
-        });
92
-      }
49
+      
93 50
     })
94
-    wx.setStorageSync("MiaoguoCode", this.data.Info.Text7);
95 51
   },
96 52
   gotoIndex:function(){
97 53
     wx.reLaunch({

+ 3 - 26
pages/other/pay.wxml

@@ -1,16 +1,5 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' wx:if="{{PayPanel==0}}">
2
-  <image class='imageDM' src="http://miaguo-1253256735.file.myqcloud.com/DM.png" ></image>
3
-  <view class='btn' bindtap='gotoPay'>报名</view>
4
-  <view style='height:100rpx;'></view>
5
-</view>
6
-
7
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' wx:if="{{PayPanel==3}}">
8
-  <image class='imageDM2' src="http://miaguo-1253256735.file.myqcloud.com/DM2.png" ></image>
9
-  <view class='btn' bindtap='gotoPay'>续费</view>
10
-  <view style='height:100rpx;'></view>
11
-</view>
12 1
 
13
-<view class="container FlexColumn" wx:if="{{PayPanel==1}}">
2
+<view class="container FlexColumn" wx:if="{{PayPanel==0}}">
14 3
   <view class='text1'>{{Info.Text1}}</view>
15 4
   <view class="List FlexColumn">
16 5
     <block wx:for="{{Info.List1}}" wx:key="index">
@@ -28,20 +17,7 @@
28 17
   <view class="btn" bindtap='payMoney'>{{Info.Text8}}</view>
29 18
 </view>
30 19
 
31
-<view class="container FlexColumn" wx:if="{{PayPanel==2}}">
32
-  <view class='panel FlexColumn'>
33
-    <view class='text3'>{{Info.Text3}}</view>
34
-    <view class='text4'>{{Info.Text4}}</view>
35
-    <text class='text5'>{{Info.Text5}}</text>
36
-    <view class='text6'>{{Info.Text6}}</view>
37
-    <view class='text7'>{{Info.Text7}}</view>
38
-  </view>
39
-
40
-  <view class="btn" bindtap='copyManager'>复制微信号</view>
41
-
42
-</view>
43
-
44
-<view class="container FlexColumn" wx:if="{{PayPanel==4}}">
20
+<view class="container FlexColumn" wx:if="{{PayPanel==1}}">
45 21
   <view class='panel FlexColumn'>
46 22
     <view class='text3'>{{Info.Text3}}</view>
47 23
     <view class='text4'>{{Info.Text4}}</view>
@@ -53,3 +29,4 @@
53 29
   <view class="btn" bindtap='gotoIndex'>开通</view>
54 30
 
55 31
 </view>
32
+

+ 139 - 0
pages/other/userbook.js

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

+ 7 - 0
pages/other/userbook.json

@@ -0,0 +1,7 @@
1
+{
2
+  "navigationBarTitleText": "用户手册",
3
+  "navigationBarBackgroundColor": "#FF9F33",
4
+  "navigationBarTextStyle": "white",
5
+  "backgroundColorTop": "#FF9F33",
6
+  "enablePullDownRefresh": true
7
+}

+ 104 - 0
pages/other/userbook.wxml

@@ -0,0 +1,104 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{PanelShow===0}}">
3
+    <view class='text1'>尚未报名</view>
4
+    <text class='text2'>请先关注公众号《秒过学习法》\n然后开通新手包</text>
5
+  </block>
6
+  <block wx:if="{{PanelShow>0}}">
7
+    <view class='userinfo FlexRow'>
8
+      <view class="left FlexRow">
9
+        <image class='avatar' src="{{AvatarUrl}}" />
10
+        <view class="nickname">{{NickName}}</view>
11
+      </view>
12
+      <view></view>
13
+    </view>
14
+    <view class="panel1 FlexRow">
15
+      <view class="left">有效期</view>
16
+      <view class="right FlexColumn">
17
+        <view class="panel11">{{ProductServiceTime}}</view>
18
+        <view class="panel12">新手包16天体验</view>
19
+      </view>
20
+    </view>
21
+    <view class='lineFooter'></view>
22
+    <view class="panelTitle FlexRow" wx:if="{{PanelShow===3}}">
23
+      <view class="panelTitle1">会员活动</view>
24
+      <view class="panelTitle2"></view>
25
+    </view>
26
+
27
+    <block wx:if="{{PanelShow===3 && ClassDayNumber>=13}}">
28
+      <view class="panelItem FlexColumn">
29
+        <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a03_usermanual_banner_header.png' />
30
+        <view class="text9">截止日期:{{ClassTimeEnd}}</view>
31
+        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/activity?ActivityID=3&EndTime={{ClassTimeEnd}}">活动详情</view>
32
+      </view>
33
+      <view class='lineFooter'></view>
34
+      <view class="line"></view>
35
+    </block>
36
+
37
+    <block wx:if="{{PanelShow===3 && ClassDayNumber>=5 && ClassDayNumber<=11}}">
38
+      <view class="panelItem FlexColumn">
39
+        <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
40
+        <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
41
+        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/activity?ActivityID=2&EarlyBirdTimeStart={{EarlyBirdTimeStart}}&EarlyBirdTimeEnd={{EarlyBirdTimeEnd}}&EndTime={{ClassTimeEnd}}">活动详情</view>
42
+      </view>
43
+      <view class='lineFooter'></view>
44
+      <view class="line"></view>
45
+    </block>
46
+
47
+    <block wx:if="{{PanelShow===3 && ClassDayNumber>=0}}">
48
+      <view class="panelItem FlexColumn">
49
+        <image class="salesactivity_a01_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner_header.png' />
50
+        <view class="text5">截止日期:{{ClassTimeEnd}}</view>
51
+        <view class="panelItem1 FlexRow">
52
+          <view class="btn2 btn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">查看作业清单</view>
53
+          <view class="text6" bindtap="goto" data-url="../other/activity?ActivityID=1&EndTime={{ClassTimeEnd}}">详细规则</view>
54
+        </view>
55
+        <image class="salesactivity_a01_usermanual_banner_bg" src='../images/salesactivity_a01_usermanual_banner_bg.png' />
56
+      </view>
57
+    </block>
58
+
59
+    <view class="panelTitle FlexRow">
60
+      <view class="panelTitle1">最新消息</view>
61
+      <view class="panelTitle2"></view>
62
+    </view>
63
+
64
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
65
+      <text class="text3">感谢您的报名。您还没有加入在线辅导班群。请尽快联系秒过班务员为您安排开班事宜。\n\n联系方法,请添加班务员微信号:changyibzr</text>
66
+      <view class="btn" bindtap='copyManager'>复制微信号</view>
67
+      <text class="text3">如已添加,请稍等片刻,班务员正在为您办理相关手续,这需要一点时间。办完后将通过微信和您联系。</text>
68
+    </view>
69
+
70
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2}}">
71
+      <text class="text4">
72
+      用户手册用于发布课程、优惠活动等最新消息。\n目前尚未开班。更多消息,开班后请再来看看。\n您的开班时间:{{ClassTimeStart}}-{{ClassTimeEnd}}。\n我们将在开班当日起通过公众号向您发送资料和通知,请勿取消关注。
73
+      </text>
74
+    </view>
75
+
76
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=15}}" bindtap="goto" data-url="../other/lesson?LessonID=5">
77
+      <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
78
+      <view class="text7">新闻</view>
79
+      <view class="text8">养孩子是一场Team Working,有你、有我、有秒过</view>
80
+    </view>
81
+
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}}">
83
+      <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
84
+      <view class="text7">{{item.text1}}</view>
85
+      <view class="text8">{{item.text2}}</view>
86
+      <view class="text10">{{item.text3}}</view>
87
+    </view>
88
+
89
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=0}}" bindtap="goto" data-url="../other/lessonlist">
90
+      <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
91
+      <view class="text7">课程</view>
92
+      <view class="text8">4节课程告诉您,家长做什么可以迅速提高孩子的成绩</view>
93
+    </view>
94
+
95
+    <view class="panelItem FlexColumn" wx:if="{{PanelShow===3 && ClassDayNumber>=0}}" bindtap="goto" data-url="../other/webview?PageID=0">
96
+      <image class="news_mustread" src='{{ImagePath}}web/news_mustread.png' />
97
+      <view class="text7">新闻</view>
98
+      <view class="text8">家长必读</view>
99
+    </view>
100
+
101
+  </block>
102
+
103
+  <view style="height:80rpx"></view>
104
+</view>

+ 201 - 0
pages/other/userbook.wxss

@@ -0,0 +1,201 @@
1
+.container {
2
+  background-color: #fff;
3
+}
4
+
5
+.text1 {
6
+  margin: 360rpx 0 0 0;
7
+  font-size: 64rpx;
8
+}
9
+
10
+.text2 {
11
+  margin: 10rpx 0 0 0;
12
+  font-size: 28rpx;
13
+  font-weight: 400;
14
+  text-align: center;
15
+}
16
+
17
+.userinfo {
18
+  width: 100%;
19
+  height: 130rpx;
20
+  background-color: #ff9f33;
21
+  justify-content: space-between;
22
+}
23
+
24
+.avatar {
25
+  width: 70rpx;
26
+  height: 70rpx;
27
+  border-radius: 50%;
28
+}
29
+
30
+.nickname {
31
+  margin-left: 20rpx;
32
+  font-size: 28rpx;
33
+  color: #fff;
34
+}
35
+
36
+.panel1 {
37
+  width: 100%;
38
+  height: 134rpx;
39
+  align-items: flex-start;
40
+  justify-content: space-between;
41
+  font-weight: 400;
42
+  font-size: 28rpx;
43
+}
44
+
45
+.left {
46
+  margin-left: 30rpx;
47
+  margin-top: 30rpx;
48
+}
49
+
50
+.right {
51
+  margin-right: 30rpx;
52
+  margin-top: 30rpx;
53
+  align-items: flex-end;
54
+}
55
+
56
+.panel11 {
57
+  color: #787878;
58
+}
59
+
60
+.panel12 {
61
+  font-weight: 500;
62
+  font-size: 24rpx;
63
+}
64
+
65
+.panelTitle {
66
+  width: 100%;
67
+  justify-content: space-between;
68
+  background-color: #f0f0f0;
69
+}
70
+
71
+.panelTitle .panelTitle1 {
72
+  font-size: 32rpx;
73
+  margin: 50rpx 30rpx 30rpx 30rpx;
74
+}
75
+
76
+.panelItem {
77
+  width: 100%;
78
+  justify-content: flex-start;
79
+  font-size: 24rpx;
80
+  font-weight: 400;
81
+  position: relative;
82
+}
83
+
84
+.line {
85
+  width:100%;
86
+  height:20rpx;
87
+  background-color: #f0f0f0;
88
+}
89
+
90
+
91
+.text3{
92
+  width:690rpx;
93
+  margin-top: 30rpx;
94
+}
95
+
96
+.btn{
97
+  font-size:28rpx;
98
+  width:480rpx;
99
+  height:90rpx;
100
+  border-radius: 10rpx;
101
+  text-align: center;
102
+  line-height: 90rpx;
103
+  color:#0071EF;
104
+  background-color: #fff;
105
+  border:1rpx solid #9B9B9B;
106
+  margin: 40rpx 0 10rpx 0;
107
+}
108
+
109
+.text4{
110
+  width:690rpx;
111
+  line-height: 42rpx;
112
+}
113
+
114
+.salesactivity_a01_usermanual_banner_header{
115
+  width:100%;
116
+  height:403rpx;
117
+}
118
+
119
+.salesactivity_a01_usermanual_banner_bg{
120
+  width:100%;
121
+  height:170rpx;
122
+  position: absolute;
123
+  bottom:0;
124
+  z-index: 5;
125
+}
126
+
127
+.text5{
128
+  margin-bottom: 60rpx;
129
+}
130
+
131
+.panelItem1{
132
+  justify-content: flex-start;
133
+  width: 100%;
134
+  z-index: 10;
135
+}
136
+
137
+.btn2{
138
+  width:300rpx;
139
+  color:#1E1E1E;
140
+  margin: 0 50rpx 50rpx 60rpx;
141
+}
142
+
143
+.text9{
144
+  width:690rpx;
145
+  margin-bottom: 20rpx;
146
+  text-align: center;
147
+  font-size:24rpx;
148
+}
149
+
150
+
151
+.btn3{
152
+  width:480rpx;
153
+  margin: 0 0 60rpx 0;
154
+}
155
+
156
+.text6{
157
+  font-size:28rpx;
158
+  color:#0071EF;
159
+  text-decoration: underline;
160
+  margin-bottom: 50rpx;
161
+}
162
+
163
+.news_lesson_a01{
164
+  width:690rpx;
165
+  height:240rpx;
166
+  border-radius: 10rpx;
167
+  margin: 40rpx 0 30rpx 0;
168
+}
169
+
170
+.text7{
171
+  width:690rpx;
172
+  text-align: left;
173
+  font-weight: 400;
174
+}
175
+.text8{
176
+  width:690rpx;
177
+  text-align: left;
178
+  font-size:32rpx;
179
+  margin: 10rpx 0 20rpx 0;
180
+}
181
+
182
+.text10{
183
+  width:690rpx;
184
+  text-align: left;
185
+  font-weight: 400;
186
+  margin-bottom: 20rpx;
187
+}
188
+
189
+.news_mustread{
190
+  width:690rpx;
191
+  height:240rpx;
192
+  border-radius: 10rpx;
193
+  margin: 40rpx 0 30rpx 0;
194
+}
195
+
196
+.salesactivity_a02_usermanual_banner_header{
197
+  width:100%;
198
+  height:458rpx;
199
+}
200
+
201
+

+ 17 - 58
pages/other/webview.js

@@ -1,66 +1,25 @@
1
-// pages/other/webview.js
2
-Page({
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
3 5
 
4
-  /**
5
-   * 页面的初始数据
6
-   */
6
+Page({
7 7
   data: {
8 8
 
9 9
   },
10
-
11
-  /**
12
-   * 生命周期函数--监听页面加载
13
-   */
14 10
   onLoad: function (options) {
15
-
11
+    var that = this;
12
+    that.setData({
13
+      PageID:options.PageID,
14
+    });
16 15
   },
17
-
18
-  /**
19
-   * 生命周期函数--监听页面初次渲染完成
20
-   */
21
-  onReady: function () {
22
-
23
-  },
24
-
25
-  /**
26
-   * 生命周期函数--监听页面显示
27
-   */
28
-  onShow: function () {
29
-
30
-  },
31
-
32
-  /**
33
-   * 生命周期函数--监听页面隐藏
34
-   */
35
-  onHide: function () {
36
-
16
+  onUnload:function(){
37 17
   },
38
-
39
-  /**
40
-   * 生命周期函数--监听页面卸载
41
-   */
42
-  onUnload: function () {
43
-
44
-  },
45
-
46
-  /**
47
-   * 页面相关事件处理函数--监听用户下拉动作
48
-   */
49
-  onPullDownRefresh: function () {
50
-
51
-  },
52
-
53
-  /**
54
-   * 页面上拉触底事件的处理函数
55
-   */
56
-  onReachBottom: function () {
57
-
58
-  },
59
-
60
-  /**
61
-   * 用户点击右上角分享
62
-   */
63 18
   onShareAppMessage: function () {
64
-
65
-  }
66
-})
19
+    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",
23
+    }
24
+  },
25
+})

+ 1 - 1
pages/other/webview.wxml

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

+ 8 - 8
project.config.json

@@ -49,7 +49,7 @@
49 49
 			"list": []
50 50
 		},
51 51
 		"miniprogram": {
52
-			"current": 3,
52
+			"current": 4,
53 53
 			"list": [
54 54
 				{
55 55
 					"id": 0,
@@ -62,14 +62,14 @@
62 62
 					"id": 1,
63 63
 					"name": "pages/index/index",
64 64
 					"pathName": "pages/index/index",
65
-					"query": "type= unbinding",
65
+					"query": "type=userbook",
66 66
 					"scene": 1007
67 67
 				},
68 68
 				{
69 69
 					"id": 2,
70
-					"name": "推广计划",
71
-					"pathName": "marketing/main/extenduser",
72
-					"query": "",
70
+					"name": "marketing/main/index",
71
+					"pathName": "marketing/main/index",
72
+					"query": "UserID=1",
73 73
 					"scene": null
74 74
 				},
75 75
 				{
@@ -81,9 +81,9 @@
81 81
 				},
82 82
 				{
83 83
 					"id": 4,
84
-					"name": "lessonlist",
85
-					"pathName": "pages/index/index",
86
-					"query": "UserID=1&Marketing=1",
84
+					"name": "pages/other/activity",
85
+					"pathName": "pages/other/activity",
86
+					"query": "EndTime=2019-09-01",
87 87
 					"scene": 1001
88 88
 				}
89 89
 			]