| | |
| | | </div> --> |
| | | </UserHomeTopView> |
| | | <div class="mine-content-record"> |
| | | <div class="mine-content-record-item"> |
| | | <div class="mine-content-record-item" @click="goMineFavorites"> |
| | | <img class="mine-content-record-item-icon" :src="IconCollect" alt="" /> |
| | | <nut-badge top="0" right="0" :value="8" color="#FF7D00"> |
| | | <div class="mine-content-record-item-text">我的收藏</div> |
| | | </nut-badge> |
| | | </div> |
| | | <div class="mine-content-record-item"> |
| | | <img class="mine-content-record-item-icon" :src="IconCollect" alt="" /> |
| | | <img class="mine-content-record-item-icon" :src="IconRecord" alt="" /> |
| | | <nut-badge top="0" right="0" :value="8" color="#FF7D00"> |
| | | <div class="mine-content-record-item-text">联系记录</div> |
| | | </nut-badge> |
| | | </div> |
| | | </div> |
| | | <div class="mine-content"></div> |
| | | <Cell :title="'更多服务'" class="mine-content-service"> |
| | | <div class="mine-content-service-list"> |
| | | <div class="mine-content-service--list-item"> |
| | | <img class="mine-content-service--list-item-icon" :src="IconFinance" alt="" /> |
| | | <div class="mine-content-service--list-item-text">财务管理</div> |
| | | </div> |
| | | <div class="mine-content-service--list-item"> |
| | | <img class="mine-content-service--list-item-icon" :src="IconRealName" alt="" /> |
| | | <div class="mine-content-service--list-item-text">企业实名</div> |
| | | </div> |
| | | <div class="mine-content-service--list-item" @click="goSetting"> |
| | | <img class="mine-content-service--list-item-icon" :src="IconSetting" alt="" /> |
| | | <div class="mine-content-service--list-item-text">设置</div> |
| | | </div> |
| | | </div> |
| | | </Cell> |
| | | <nut-button type="info" class="mine-content-logout" @click="handleLoginout" |
| | | >退出登录</nut-button |
| | | > |
| | | </ContentView> |
| | | <ContentScrollView v-if="isLogin" class="mine-content-scroll-view"> </ContentScrollView> |
| | | </PageLayoutWithBg> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { |
| | | PageLayoutWithBg, |
| | | TransparentNavigationBar, |
| | | ContentScrollView, |
| | | UserHomeTopView, |
| | | } from '@/components'; |
| | | import { PageLayoutWithBg, TransparentNavigationBar, UserHomeTopView } from '@/components'; |
| | | import IconBusinessCard from '@/assets/mine/icon-business-card.png'; |
| | | import IconCollect from '@/assets/mine/icon-collect.png'; |
| | | import IconRecord from '@/assets/mine/icon-record.png'; |
| | | import IconMale from '@/assets/mine/icon-male.png'; |
| | | import IconFemale from '@/assets/mine/icon-female.png'; |
| | | import IconFinance from '@/assets/mine/icon-finance.png'; |
| | | import IconRealName from '@/assets/mine/icon-realname.png'; |
| | | import IconSetting from '@/assets/mine/icon-setting.png'; |
| | | import { useUser, useIsLogin, useGoLogin } from '@/hooks'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { RouterPath, OssAssets } from '@/constants'; |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | import { Message } from '@12333/utils'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useQueryClient } from '@tanstack/vue-query'; |
| | | |
| | | const userStore = useUserStore(); |
| | | const queryClient = useQueryClient(); |
| | | const { userDetail, isCertified } = useUser(); |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | |
| | | } |
| | | |
| | | function goSetting() { |
| | | // goPage(RouterPath.setting); |
| | | goPage(RouterPath.setting); |
| | | } |
| | | |
| | | Taro.showShareMenu({ |
| | |
| | | function goAuthentication() { |
| | | goPage(RouterPath.authenticationHome); |
| | | } |
| | | function goMineFavorites() { |
| | | goPage(RouterPath.mineFavorites); |
| | | } |
| | | |
| | | async function handleLoginout() { |
| | | try { |
| | | await Message.confirm({ |
| | | message: '确定要退出登录吗?', |
| | | }); |
| | | userStore.logoutAndToHome(); |
| | | queryClient.removeQueries(); |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |