From d43d5625279fc7aca2c52d153995ac352108dc88 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 10 Oct 2025 11:04:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(BD=E4=B8=AD=E5=BF=83):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BDCenterView.vue | 77 +++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 42 deletions(-) diff --git a/src/views/BDCenterView.vue b/src/views/BDCenterView.vue index ad87f26..17c4b89 100644 --- a/src/views/BDCenterView.vue +++ b/src/views/BDCenterView.vue @@ -27,14 +27,14 @@

{{ userInfo.userNickname || userInfo.name }}

ID: {{ userInfo.id || userInfo.account }}

- - - + + +
- 👑 BD +
@@ -71,12 +71,8 @@
- - + +
@@ -86,10 +82,10 @@ import { ref } from 'vue' import { useRouter } from 'vue-router' import MobileHeader from '../components/MobileHeader.vue' -import {getAgentMonthLastTarget, getAgentMonthTarget, getBdAgentList} from '../api/teamBill.js' +import { getAgentMonthLastTarget, getAgentMonthTarget, getBdAgentList } from '../api/teamBill.js' import { getTeamId } from '@/utils/userStore.js' -import {usePageInitializationWithConfig} from "@/utils/pageConfig.js"; -import {isInApp} from "@/utils/appBridge.js"; +import { usePageInitializationWithConfig } from '@/utils/pageConfig.js' +import { isInApp } from '@/utils/appBridge.js' const router = useRouter() @@ -108,11 +104,13 @@ const getAgentMonth = async () => { if (res2.status === true) { salaryInfo.lastMonth = res.body.thisMonthTotalTarget } - } const goToTeamMember = () => { - router.push({ path: '/team-member', query: { source: 'bd-center', members: teamMemberCount.value } }) + router.push({ + path: '/team-member', + query: { source: 'bd-center', members: teamMemberCount.value }, + }) } const exchangeGoldCoins = () => { @@ -123,19 +121,13 @@ const transfer = () => { router.push('/transfer') } -const { - appConnected, - userInfo, - salaryInfo, - handleImageError, - getAvatarPlaceholder -} = usePageInitializationWithConfig('BD_CENTER', { - needsTeamInfo: true, - onDataLoaded: () => { - getAgentMonth() - } -}) - +const { appConnected, userInfo, salaryInfo, handleImageError, getAvatarPlaceholder } = + usePageInitializationWithConfig('BD_CENTER', { + needsTeamInfo: true, + onDataLoaded: () => { + getAgentMonth() + }, + })