From a4fe9d04919cfeeb6437b9eae178e33be80f5aa5 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Mon, 2 Sep 2024 09:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E6=A3=80-=E9=A6=96=E9=A1=B5=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gzt/index.vue | 51 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/pages/gzt/index.vue b/pages/gzt/index.vue index d5ab176..a8743f3 100644 --- a/pages/gzt/index.vue +++ b/pages/gzt/index.vue @@ -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 => {