|
@@ -6,71 +6,72 @@ Page({
|
|
|
showMore: false, //更多
|
|
|
show: false,
|
|
|
notice: "通知通知我是通知通知通知我是通知通知通知我是通知通知通知我是通知",
|
|
|
- "spxxArr": [{
|
|
|
- "isfinish": "/images/unfinish.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/zb.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png"
|
|
|
- }, {
|
|
|
- "isfinish": "/images/finish.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/db.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png"
|
|
|
- }, {
|
|
|
- "isfinish": "/images/unstart.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/db.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png",
|
|
|
- },
|
|
|
- {
|
|
|
- "isfinish": "/images/unstart.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/db.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png"
|
|
|
- },
|
|
|
- {
|
|
|
- "isfinish": "/images/unstart.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/db.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png"
|
|
|
- },
|
|
|
- {
|
|
|
- "isfinish": "/images/unstart.png",
|
|
|
- "spfm": "/images/spfm.jpg",
|
|
|
- "iszburl": "/images/db.png",
|
|
|
- "name": "一期素质教育培训",
|
|
|
- "startdate": "6月9日",
|
|
|
- "starttime": "19:30",
|
|
|
- "isstartstudy": "/images/startstudy.png",
|
|
|
- "isdtxs": "/images/dtxs.png",
|
|
|
- "ispjkc": "/images/pjkc.png"
|
|
|
- }
|
|
|
- ],
|
|
|
+ kcArr: [],
|
|
|
+ // "spxxArr": [{
|
|
|
+ // "isfinish": "/images/unfinish.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/zb.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png"
|
|
|
+ // }, {
|
|
|
+ // "isfinish": "/images/finish.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/db.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png"
|
|
|
+ // }, {
|
|
|
+ // "isfinish": "/images/unstart.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/db.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "isfinish": "/images/unstart.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/db.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "isfinish": "/images/unstart.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/db.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "isfinish": "/images/unstart.png",
|
|
|
+ // "spfm": "/images/spfm.jpg",
|
|
|
+ // "iszburl": "/images/db.png",
|
|
|
+ // "name": "一期素质教育培训",
|
|
|
+ // "startdate": "6月9日",
|
|
|
+ // "starttime": "19:30",
|
|
|
+ // "isstartstudy": "/images/startstudy.png",
|
|
|
+ // "isdtxs": "/images/dtxs.png",
|
|
|
+ // "ispjkc": "/images/pjkc.png"
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
"myactiveArr": [{
|
|
|
"name": "现场体验:长山花园社区",
|
|
|
"cysj": "2020/06/20 07:09",
|
|
@@ -100,6 +101,43 @@ Page({
|
|
|
this.setData({
|
|
|
show: false
|
|
|
});
|
|
|
+ var sessionKey = "";
|
|
|
+ // var _this = this;
|
|
|
+ wx.checkSession({
|
|
|
+ success: () => {
|
|
|
+ console.log("我有缓存")
|
|
|
+ sessionKey = wx.getStorageSync('sessionKey');
|
|
|
+ console.log(sessionKey)
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl2 + '/education/student/wx/verification?sessionKey=' + sessionKey,
|
|
|
+ method: "post",
|
|
|
+ // data:
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res, "我成功了")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail() {
|
|
|
+ console.log("我没有缓存并去登录请求")
|
|
|
+ wx.login({
|
|
|
+ success(res) {
|
|
|
+ console.log(res);
|
|
|
+ var code = res.code
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl2 + '/wx/user/wx7e7a46e129d6cd0f/login',
|
|
|
+ method: "get",
|
|
|
+ data: {
|
|
|
+ code
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ sessionKey = res.data.sessionKey;
|
|
|
+ wx.setStorageSync('sessionKey', res.data.sessionKey);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
myactiveMore() {
|
|
|
wx.navigateTo({
|
|
@@ -131,23 +169,79 @@ Page({
|
|
|
title: '领取成功'
|
|
|
})
|
|
|
},
|
|
|
- goWrite(){
|
|
|
+ goWrite() {
|
|
|
wx.navigateTo({
|
|
|
url: '../studentRegistration/studentRegistration'
|
|
|
})
|
|
|
},
|
|
|
- goWrite2(){
|
|
|
+ goWrite2() {
|
|
|
wx.navigateTo({
|
|
|
url: '../feedBack/feedBack'
|
|
|
})
|
|
|
},
|
|
|
onReady: function () {},
|
|
|
onLoad: function () {
|
|
|
-
|
|
|
+ var sessionKey = "";
|
|
|
+ var _this = this;
|
|
|
+ wx.checkSession({
|
|
|
+ success: () => {
|
|
|
+ console.log("我有缓存")
|
|
|
+ sessionKey = wx.getStorageSync('sessionKey');
|
|
|
+ console.log(sessionKey)
|
|
|
+ var enSessionKey = encodeURIComponent(sessionKey)
|
|
|
+ console.log(enSessionKey,"woshi zhuanyi")
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl2 + '/education/student/wx/selStudentSessionKey?sessionKey=' + enSessionKey,
|
|
|
+ method: "post",
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res, "333")
|
|
|
+ if (res.data.data.isAgree == 0) {
|
|
|
+ _this.setData({
|
|
|
+ show: true
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ _this.setData({
|
|
|
+ show: false
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl + '/wx/course/selectBySessionKey/' + sessionKey,
|
|
|
+ method: "get",
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res)
|
|
|
+ _this.setData({
|
|
|
+ kcArr: res.data.list
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail() {
|
|
|
+ console.log("我没有缓存并去登录请求")
|
|
|
+ wx.login({
|
|
|
+ success(res) {
|
|
|
+ console.log(res);
|
|
|
+ var code = res.code
|
|
|
+ wx.request({
|
|
|
+ url: app.globalData.publicUrl2 + '/wx/user/wx7e7a46e129d6cd0f/login',
|
|
|
+ method: "get",
|
|
|
+ data: {
|
|
|
+ code
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ sessionKey = res.data.sessionKey;
|
|
|
+ wx.setStorageSync('sessionKey', res.data.sessionKey);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- onShow: function () {
|
|
|
- this.setData({
|
|
|
- show: true
|
|
|
- });
|
|
|
- }
|
|
|
+ // onShow: function () {
|
|
|
+ // this.setData({
|
|
|
+ // show: true
|
|
|
+ // });
|
|
|
+ // }
|
|
|
})
|