|
@@ -189,7 +189,27 @@ function apiPost(url, params, contentType) {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
complete: res =>{
|
|
complete: res =>{
|
|
-
|
|
|
|
|
|
+ wx.hideLoading({
|
|
|
|
+ success: (res) => {},
|
|
|
|
+ })
|
|
|
|
+ if(res.data.message == "请先登录系统!"){
|
|
|
|
+ wx.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '请重新登录学生端',
|
|
|
|
+ showCancel: false, //是否显示取消按钮
|
|
|
|
+ cancelText: "否", //默认是“取消”
|
|
|
|
+ cancelColor: '#999999', //取消文字的颜色
|
|
|
|
+ confirmText: "我知道了", //默认是“确定”
|
|
|
|
+ // confirmColor: 'skyblue', //确定文字的颜色
|
|
|
|
+ success(res){
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ wx.redirectTo({
|
|
|
|
+ url: '/pages/login/login',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
@@ -231,6 +251,24 @@ function doPost(url, params) {
|
|
wx.hideLoading({
|
|
wx.hideLoading({
|
|
success: (res) => {},
|
|
success: (res) => {},
|
|
})
|
|
})
|
|
|
|
+ if(res.data.message == "请先登录系统!"){
|
|
|
|
+ wx.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '请重新登录学生端',
|
|
|
|
+ showCancel: false, //是否显示取消按钮
|
|
|
|
+ cancelText: "否", //默认是“取消”
|
|
|
|
+ cancelColor: '#999999', //取消文字的颜色
|
|
|
|
+ confirmText: "我知道了", //默认是“确定”
|
|
|
|
+ // confirmColor: 'skyblue', //确定文字的颜色
|
|
|
|
+ success(res){
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ wx.redirectTo({
|
|
|
|
+ url: '/pages/login/login',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
@@ -272,6 +310,24 @@ function notWxPost(url, params) {
|
|
wx.hideLoading({
|
|
wx.hideLoading({
|
|
success: (res) => {},
|
|
success: (res) => {},
|
|
})
|
|
})
|
|
|
|
+ if(res.data.message == "请先登录系统!"){
|
|
|
|
+ wx.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '请重新登录学生端',
|
|
|
|
+ showCancel: false, //是否显示取消按钮
|
|
|
|
+ cancelText: "否", //默认是“取消”
|
|
|
|
+ cancelColor: '#999999', //取消文字的颜色
|
|
|
|
+ confirmText: "我知道了", //默认是“确定”
|
|
|
|
+ // confirmColor: 'skyblue', //确定文字的颜色
|
|
|
|
+ success(res){
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ wx.redirectTo({
|
|
|
|
+ url: '/pages/login/login',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}).catch(err => {
|
|
}).catch(err => {
|