| | |
| | | <template> |
| | | <PageLayout class="mine-page-wrapper" :need-auth="false"> |
| | | <PageLayoutWithBg class="mine-page-wrapper" :need-auth="false"> |
| | | <template #navigationBar> |
| | | <TransparentNavigationBar :title="'个人中心'" :is-absolute="false"> |
| | | </TransparentNavigationBar> |
| | |
| | | <template v-if="isChannelAccount"> |
| | | <ListItemV2 :icon="IconMineDataBoard" title="数据看板" @click="goDashboard"></ListItemV2> |
| | | <ListItemV2 |
| | | :icon="IconMinePromotion" |
| | | title="推广二维码" |
| | | :icon="IconMineChannel" |
| | | title="渠道二维码" |
| | | @click="goShareQrcode" |
| | | ></ListItemV2> |
| | | </template> |
| | | <ListItemV2 |
| | | :icon="IconMinePromotion" |
| | | title="推广二维码" |
| | | @click="goPromotionQrcode" |
| | | v-if="!!userPromoterIdNumber" |
| | | ></ListItemV2> |
| | | <ListItemV2 |
| | | :icon="IconMineAgentRecruitment" |
| | | title="代理招募" |
| | | @click="goAgentRecruitment" |
| | | ></ListItemV2> |
| | | <ListItemV2 |
| | | :icon="IconMineCustomerService" |
| | | v-if="isWeb && !isInAlipay" |
| | |
| | | ></ListItemV2> |
| | | </List> |
| | | </ContentScrollView> |
| | | </PageLayout> |
| | | </PageLayoutWithBg> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | import IconMineUserId from '@/assets/mine/icon-mine-userId.png'; |
| | | import IconMineDataBoard from '@/assets/mine/icon-mine-data-board.png'; |
| | | import IconMinePromotion from '@/assets/mine/icon-mine-promotion.png'; |
| | | import IconMineChannel from '@/assets/mine/icon-mine-channel.png'; |
| | | import IconMineAgentRecruitment from '@/assets/mine/icon-mine-agent-recruitment.png'; |
| | | import IconMineCustomerService from '@/assets/mine/icon-mine-customer-service.png'; |
| | | import IconMineExist from '@/assets/mine/icon-mine-exist.png'; |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | |
| | | import { useLifeRechargeContext } from '@life-payment/core-vue'; |
| | | import { hiddenPhoneNumber } from '@life-payment/utils'; |
| | | |
| | | const { userDetail, virtualPhoneNumber, isChannelAccount } = useUser(); |
| | | const { userDetail, virtualPhoneNumber, isChannelAccount, userPromoterIdNumber } = useUser(); |
| | | |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | |
| | | const goOrderManage = useAccessLogin(() => goPage(RouterPath.order)); |
| | | const goUserAccountList = useAccessLogin(() => goPage(RouterPath.userAccountList)); |
| | | const goShareQrcode = useAccessLogin(() => goPage(RouterPath.shareQrcode)); |
| | | const goPromotionQrcode = useAccessLogin(() => { |
| | | RouteHelper.navigateTo({ |
| | | url: `${RouterPath.promotionQrcode}?promoterIdNumber=${userPromoterIdNumber.value}`, |
| | | }); |
| | | }); |
| | | const goDashboard = useAccessLogin(() => goPage(RouterPath.dashboard)); |
| | | const goAgentRecruitment = () => { |
| | | RouteHelper.navigateTo({ |
| | | url: userPromoterIdNumber.value |
| | | ? `${RouterPath.agentRecruitment}?promoterIdNumber=${userPromoterIdNumber.value}` |
| | | : RouterPath.agentRecruitment, |
| | | }); |
| | | }; |
| | | |
| | | async function goLogout() { |
| | | try { |