| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="right" @click="handleToInfo"> |
| | | <text class="link">个人信息</text> |
| | | <view class="iconfont icon-right"></view> |
| | | <view class="right" @click="handleLogout"> |
| | | <text class="link">退出登录</text> |
| | | <!-- <view class="iconfont icon-right"></view>--> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | <view class="menu-card"> |
| | | <view class="menu-item" @click="handleUnitManage"> |
| | | <uni-icons type="home" size="22" color="#3C96F3" /> |
| | | <text class="label">单位管理</text> |
| | | <text class="label">单位信息</text> |
| | | <uni-icons class="arrow" type="right" size="18" color="#c0c4cc" /> |
| | | </view> |
| | | <view class="menu-item" @click="handleUserManage"> |
| | | <view class="menu-item" @click="handleToInfo"> |
| | | <uni-icons type="person" size="22" color="#3C96F3" /> |
| | | <text class="label">用户管理</text> |
| | | <text class="label">用户信息</text> |
| | | <uni-icons class="arrow" type="right" size="18" color="#c0c4cc" /> |
| | | </view> |
| | | <view class="menu-item" @click="handleContractManage"> |
| | | <uni-icons type="compose" size="22" color="#3C96F3" /> |
| | | <text class="label">合同管理</text> |
| | | <text class="label">合同信息</text> |
| | | <uni-icons class="arrow" type="right" size="18" color="#c0c4cc" /> |
| | | </view> |
| | | </view> |
| | | |
| | | <view> |
| | | <uni-popup ref="popup" type="dialog"> |
| | | <uni-popup-dialog type="info" cancelText="关闭" confirmText="退出" title="通知" content="确定注销并退出系统吗" |
| | | @confirm="dialogConfirm"> |
| | | </uni-popup-dialog> |
| | | </uni-popup> |
| | | </view> |
| | | <!-- 底部两个信息卡片 --> |
| | | <!-- <view class="info-cards"> |
| | | <view class="info-card"> |
| | |
| | | uni.$on('refresh', () => { |
| | | avatar.value = userStore.avatar; |
| | | }) |
| | | |
| | | function handleToInfo() { |
| | | uni.navigateTo({ |
| | | url: '/pages_mine/pages/info/index' |
| | |
| | | |
| | | // 现有跳转方法保留:handleToInfo / handleToLogin / handleToAvatar / handleHelp 等 |
| | | function handleUnitManage() { |
| | | // TODO: 替换为真实路由 |
| | | uni.showToast({ title: '模块建设中~', icon: 'none' }); |
| | | uni.navigateTo({ |
| | | url: '/pages_mine/pages/company/index' |
| | | }); |
| | | } |
| | | function handleUserManage() { |
| | | // TODO: 替换为真实路由 |
| | | uni.showToast({ title: '模块建设中~', icon: 'none' }); |
| | | } |
| | | function handleContractManage() { |
| | | // TODO: 替换为真实路由 |
| | | uni.showToast({ title: '模块建设中~', icon: 'none' }); |
| | | uni.navigateTo({ |
| | | url: '/pages_mine/pages/contract/index' |
| | | }); |
| | | } |
| | | onMounted(() => { |
| | | // 设置用户信息 |
| | | // 设置用户信息 |
| | | userStore.getInfo() |
| | | }); |
| | | </script> |
| | | |