Commit 2e995243 authored by youjie's avatar youjie

no message

parent 2ffabe70
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
height: 100%; height: 100%;
right: -96rpx; right: -111rpx;
width:232px; width:232px;
-webkit-transform: translate3d(100%, 0, 0); -webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0);
......
...@@ -37,10 +37,11 @@ ...@@ -37,10 +37,11 @@
content: '将退出登录,是否继续', content: '将退出登录,是否继续',
success: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
uni.removeStorageSync('userInfo')
uni.reLaunch({ uni.reLaunch({
url: '/pages/login/accountLogin' url: '/pages/login/accountLogin'
}); });
uni.removeStorageSync('userInfo')
} else if (res.cancel) { } else if (res.cancel) {
} }
......
...@@ -130,6 +130,11 @@ ...@@ -130,6 +130,11 @@
CourseName:'' CourseName:''
}); });
data.userData=uni.getStorageSync("userInfo") data.userData=uni.getStorageSync("userInfo")
if(data.userData && data.userData.AccountType==2){
uni.redirectTo({
url:'/pages/index/index'
})
}
let methods = { let methods = {
changePopStatusHandler(status){ changePopStatusHandler(status){
data.showPopu=status==1 data.showPopu=status==1
...@@ -153,7 +158,8 @@ ...@@ -153,7 +158,8 @@
}) })
}, },
changeCourseHandler(id,name){ changeCourseHandler(id,name){
data.Msg.courseId=id data.Msg.CourseId=id
data.Msg.ExamName = name
data.OperationMsg.courseId=id data.OperationMsg.courseId=id
data.currentCourseId=id data.currentCourseId=id
data.CourseName = name data.CourseName = name
...@@ -203,6 +209,7 @@ ...@@ -203,6 +209,7 @@
}, },
//获取考试信息列表 //获取考试信息列表
getExamPageList(){ getExamPageList(){
if(data.Msg.CourseId){
data.pageState = "loading"; data.pageState = "loading";
uni.showLoading() uni.showLoading()
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
...@@ -227,6 +234,7 @@ ...@@ -227,6 +234,7 @@
} }
} }
}) })
}
}, },
lower(e) { lower(e) {
if (data.Msg.PageIndex < data.pageCount) { if (data.Msg.PageIndex < data.pageCount) {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
let methods = { let methods = {
login() { login() {
uni.reLaunch({ uni.navigateTo({
url: '/pages/login/accountLogin' url: '/pages/login/accountLogin'
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment