体检-首页路由
This commit is contained in:
parent
9e522c6eb3
commit
a4fe9d0491
|
|
@ -192,11 +192,11 @@
|
|||
})
|
||||
},
|
||||
gotoYy(name) {
|
||||
const params = {
|
||||
username: uni.getStorageSync('userPhone'),
|
||||
jwtToken: uni.getStorageSync('App-Token')
|
||||
}
|
||||
if (name == '考试培训移动端') {
|
||||
const params = {
|
||||
username: uni.getStorageSync('userPhone'),
|
||||
jwtToken: uni.getStorageSync('App-Token')
|
||||
}
|
||||
uni.request({
|
||||
url: config.login + '/login',
|
||||
method: 'POST',
|
||||
|
|
@ -234,13 +234,46 @@
|
|||
})
|
||||
}
|
||||
})
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/YNEduApp/index/index'
|
||||
} else if( name == '健康体检移动端') {
|
||||
// uni.request({
|
||||
// url: config.login + '/login',
|
||||
// method: 'POST',
|
||||
// data: JSON.stringify(params),
|
||||
// header: {
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// success: res => {
|
||||
// console.log(res)
|
||||
// let req = res.data
|
||||
// console.log('🚀 ~ getUserInfo ~ req:', req)
|
||||
// if (req.code == 200) {
|
||||
// setTimeout(() => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/HealthExaminationApp/index/index'
|
||||
// })
|
||||
// }, 500)
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: req.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// fail: err => {
|
||||
// console.log('🚀 ~ gotoYy ~ err:', err)
|
||||
// uni.showToast({
|
||||
// title: err.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
setTimeout(() => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/HealthExaminationApp/index/index'
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
/* uni.navigateTo({
|
||||
url: '/pages/webview?webviewUrl=' + encodeURIComponent(url)
|
||||
}); */
|
||||
|
||||
},
|
||||
getDayNoticeAnnoByUserId() {
|
||||
getDayNoticeAnnoByUserId({}).then(response => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue