| | |
| | | <template> |
| | | <view class="login-container"> |
| | | <view class="header"> |
| | | <image src="/static/avatar/logo.jpg" class="logo" /> |
| | | <image src="/static/avatar/logo.png" class="logo" /> |
| | | <text class="hospital-name">青岛OPO</text> |
| | | </view> |
| | | |
| | |
| | | // 判断是否为tabBar页面 |
| | | const tabBarPages = ["/pages/index/index", "/pages/appointment/index", "/pages/consultation/index", "/pages/my/index"]; |
| | | if (tabBarPages.includes(redirects)) { |
| | | console.log(redirects,'预路由1'); |
| | | uni.switchTab({ url: redirects }); |
| | | } else { |
| | | console.log(redirects,'预路由2'); |
| | | uni.redirectTo({ url: redirects }); |
| | | } |
| | | } catch (err) { |