| | |
| | | <ContentScrollView v-if="isLogin" class="mine-content-scroll-view"> |
| | | <div class="mine-id-menu-wrapper"> |
| | | <img :src="IconLamp" class="mine-id-menu-icon" /> |
| | | <div class="mine-id-menu-text"> |
| | | 您当前的身份为{{ MatchMakingIdentityEnumText[matchMakingIdentity] }} |
| | | </div> |
| | | <div class="mine-id-menu-btn" @click="goPage(RouterPath.toggleMatchMakingIdentity)"> |
| | | 切换身份 |
| | | </div> |
| | | </div> |
| | | <div class="mine-menu-list"> |
| | | <div class="mine-menu-list-item" @click="goBusinessManagement"> |
| | | <img :src="IconMenuBusiness" class="mine-menu-list-item-icon" /> |
| | | <div class="mine-menu-list-item-text">业务管理</div> |
| | | </div> |
| | | <div class="mine-menu-list-item" @click="goTradeChatRecord"> |
| | | <img :src="IconMenuContact" class="mine-menu-list-item-icon" /> |
| | | <div class="mine-menu-list-item-text">联系记录</div> |
| | | </div> |
| | | </div> |
| | | <List class="mine-setting-list"> |
| | | <ListItem :icon="IconMessage" title="消息" @click="goMessage"> |
| | | <template #extra> |
| | | <nut-badge |
| | | :value="myMessageCount.unReadCount ?? 0" |
| | | class="mine-setting-badge" |
| | | :hidden="!myMessageCount.unReadCount" |
| | | ></nut-badge> |
| | | </template> |
| | | </ListItem> |
| | | <ListItem :icon="IconSetting" title="设置" @click="goSetting"></ListItem> |
| | | </List> |
| | | </ContentScrollView> |
| | |
| | | import IconMenuContact from '@/assets/mine/icon-menu-contact.png'; |
| | | import IconSetting from '@/assets/mine/icon-setting.png'; |
| | | import IconMessage from '@/assets/mine/icon-message.png'; |
| | | import { useUser, useIsLogin, useGoLogin, useMyMessageCount } from '@/hooks'; |
| | | import { useUser, useIsLogin, useGoLogin } from '@/hooks'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { RouterPath, OssAssets } from '@/constants'; |
| | | import { MatchMakingIdentityEnumText, MatchMakingIdentityEnum } from '@12333/constants'; |
| | | import { List, ListItem } from '@12333/components'; |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | |
| | | const { userDetail, isCertified, matchMakingIdentity } = useUser(); |
| | | const { userDetail, isCertified } = useUser(); |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | | |
| | |
| | | } |
| | | |
| | | function goSetting() { |
| | | goPage(RouterPath.setting); |
| | | } |
| | | |
| | | function goMessage() { |
| | | goPage(RouterPath.messageList); |
| | | } |
| | | |
| | | function goBusinessManagement() { |
| | | if (matchMakingIdentity.value === MatchMakingIdentityEnum.Employing) { |
| | | goPage(RouterPath.orderManage); |
| | | } else if (matchMakingIdentity.value === MatchMakingIdentityEnum.Contributors) { |
| | | goPage(RouterPath.resourceManage); |
| | | } |
| | | // goPage(RouterPath.setting); |
| | | } |
| | | |
| | | Taro.showShareMenu({ |
| | |
| | | Taro.useShareAppMessage((res) => { |
| | | return { |
| | | title: `${userDetail.value?.contacter}名片`, |
| | | path: `${RouterPath.userHomePage}?userId=${userDetail.value?.userId}`, |
| | | // path: `${RouterPath.userHomePage}?userId=${userDetail.value?.userId}`, |
| | | imageUrl: userDetail.value?.avatarUrl, |
| | | }; |
| | | }); |
| | | |
| | | const { myMessageCount } = useMyMessageCount(); |
| | | |
| | | function goAuthentication() { |
| | | goPage(RouterPath.authenticationHome); |
| | | } |
| | | |
| | | function goTradeChatRecord() { |
| | | goPage(RouterPath.tradeChatRecord); |
| | | } |
| | | </script> |
| | | |