体检-首页路由

This commit is contained in:
binbin_pan 2024-09-02 09:47:28 +08:00
parent 9e522c6eb3
commit a4fe9d0491
1 changed files with 42 additions and 9 deletions

View File

@ -192,11 +192,11 @@
}) })
}, },
gotoYy(name) { gotoYy(name) {
const params = {
username: uni.getStorageSync('userPhone'),
jwtToken: uni.getStorageSync('App-Token')
}
if (name == '考试培训移动端') { if (name == '考试培训移动端') {
const params = {
username: uni.getStorageSync('userPhone'),
jwtToken: uni.getStorageSync('App-Token')
}
uni.request({ uni.request({
url: config.login + '/login', url: config.login + '/login',
method: 'POST', method: 'POST',
@ -234,13 +234,46 @@
}) })
} }
}) })
// uni.reLaunch({ } else if( name == '健康体检移动端') {
// url: '/pages/YNEduApp/index/index' // 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() {
getDayNoticeAnnoByUserId({}).then(response => { getDayNoticeAnnoByUserId({}).then(response => {