const app = getApp() Page({ data: { id: '', detail: {}, popupShow: true, popupType: 'popup8', popupParams: { close: true, } as any, }, onLoad(options) { this.setData({ id: options.id, }) app.waitLogin({ type: [1] }).then(() => { this.getDetail() }) }, getDetail() { wx.ajax({ method: 'GET', url: '?r=xd/qol/view', data: { Id: this.data.id, }, }).then((res) => { this.setData({ detail: res, }) }) }, handleReport() { wx.navigateTo({ url: '/patient/pages/qolReport/index', }) }, handleBack() { wx.navigateBack({ fail() { wx.reLaunch({ url: '/patient/pages/index/index', }) }, }) }, handlePopupOk() {}, handlePopupCancel() {}, }) export {}