import { parseScene } from '@/utils/util' const app = getApp() Page({ data: {}, onLoad(options) { if (options.scene) { const params = parseScene(options.scene) if (params) { app.globalData.waitBindDoctorId = (params as any).doctorId } } app.waitLogin().then(() => { const initLoginInfo = app.globalData.initLoginInfo || {} if (initLoginInfo.isLogin === 0) { wx.reLaunch({ url: '/pages/index/index', }) } if (initLoginInfo.loginType === 1) { if (initLoginInfo.isReg === 1) { wx.reLaunch({ url: '/pages/index/index', }) return } wx.reLaunch({ url: '/pages/index/index', }) } if (initLoginInfo.loginType === 2) { wx.reLaunch({ url: '/pages/index/index', }) } }) }, }) export {}