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,30 +209,32 @@ ...@@ -203,30 +209,32 @@
}, },
//获取考试信息列表 //获取考试信息列表
getExamPageList(){ getExamPageList(){
data.pageState = "loading"; if(data.Msg.CourseId){
uni.showLoading() data.pageState = "loading";
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { uni.showLoading()
if(res){ proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
uni.hideLoading() if(res){
data.titleList.forEach(item => { uni.hideLoading()
if(item.name=='考试信息'){ data.titleList.forEach(item => {
item.num = res.Data.RowsCount if(item.name=='考试信息'){
item.num = res.Data.RowsCount
}
});
if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) {
data.exams = res.Data.PageData;
} else {
data.exams = [...res.Data.PageData, ...data.exams];
}
data.pageCount = res.Data.PageCount;
if (data.Msg.PageIndex >= res.Data.PageCount) {
data.pageState = "none";
} else {
data.pageState = "more";
} }
});
if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) {
data.exams = res.Data.PageData;
} else {
data.exams = [...res.Data.PageData, ...data.exams];
}
data.pageCount = res.Data.PageCount;
if (data.Msg.PageIndex >= res.Data.PageCount) {
data.pageState = "none";
} else {
data.pageState = "more";
} }
} })
}) }
}, },
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