| | |
| | | <view v-if="item.name == '待办中心' && taskNum" class="superscript">{{taskNum}}</view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="loginout" @click="loginOut">退出登陆</view>
|
| | | <view class="footer-actions">
|
| | | <view class="switch-role" @click="switchRole">切换角色</view>
|
| | | <view class="loginout" @click="loginOut">退出登录</view>
|
| | | </view>
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | logoutPost, |
| | | myNoticesH5
|
| | | } from '@/api'
|
| | | import { switchRole as doSwitchRole, goRoleSelect } from '@/utils/roleSwitch.js'
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | |
| | | url: item.url
|
| | | })
|
| | | },
|
| | | switchRole () {
|
| | | doSwitchRole(logoutPost)
|
| | | },
|
| | | loginOut() {
|
| | | logoutPost().then(res => {
|
| | | this.$store.commit('empty')
|
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: '/pages/login' |
| | | }) |
| | | }, 300)
|
| | | })
|
| | | // window.location.href= 'https://zhcg.fnwtzx.com/fn_h5'
|
| | | logoutPost().catch(() => {}).finally(() => goRoleSelect())
|
| | | },
|
| | |
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | .loginout {
|
| | | .footer-actions {
|
| | | position: fixed;
|
| | | bottom: 88rpx;
|
| | | left: 50%;
|
| | | transform: translate(-50%, 0);
|
| | | width: 152rpx;
|
| | | left: 0;
|
| | | right: 0;
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | align-items: center;
|
| | | gap: 24rpx;
|
| | | }
|
| | |
|
| | | .switch-role,
|
| | | .loginout {
|
| | | height: 60rpx;
|
| | | padding: 0 32rpx;
|
| | | border-radius: 30rpx;
|
| | | border: 1rpx solid $primaryColor;
|
| | | color: $primaryColor;
|
| | | font-size: 26rpx;
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | align-items: center;
|
| | | }
|
| | |
|
| | | .switch-role {
|
| | | border: 1rpx solid $primaryColor;
|
| | | color: $primaryColor;
|
| | | }
|
| | |
|
| | | .loginout {
|
| | | border: 1rpx solid #ccc;
|
| | | color: #666;
|
| | | }
|
| | | }
|
| | | </style> |