feat(BD中心): 更新图标

This commit is contained in:
hzj 2025-10-10 11:04:22 +08:00
parent f03fe824cc
commit d43d562527

View File

@ -34,7 +34,7 @@
<!-- 账户状态标签 --> <!-- 账户状态标签 -->
<div class="account-tags"> <div class="account-tags">
<span class="tag bd-tag">👑 BD</span> <img src="../assets/icon/BD.png" alt="" height="20px" style="margin-left: 10px" />
</div> </div>
</div> </div>
@ -71,12 +71,8 @@
<!-- 操作按钮 --> <!-- 操作按钮 -->
<div class="action-buttons"> <div class="action-buttons">
<button class="action-btn exchange-btn" @click="exchangeGoldCoins"> <button class="action-btn exchange-btn" @click="exchangeGoldCoins">Exchange</button>
Exchange <button class="action-btn transfer-btn" @click="transfer">Transfer</button>
</button>
<button class="action-btn transfer-btn" @click="transfer">
Transfer
</button>
</div> </div>
</div> </div>
</div> </div>
@ -88,8 +84,8 @@ import { useRouter } from 'vue-router'
import MobileHeader from '../components/MobileHeader.vue' 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 { getTeamId } from '@/utils/userStore.js'
import {usePageInitializationWithConfig} from "@/utils/pageConfig.js"; import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import {isInApp} from "@/utils/appBridge.js"; import { isInApp } from '@/utils/appBridge.js'
const router = useRouter() const router = useRouter()
@ -108,11 +104,13 @@ const getAgentMonth = async () => {
if (res2.status === true) { if (res2.status === true) {
salaryInfo.lastMonth = res.body.thisMonthTotalTarget salaryInfo.lastMonth = res.body.thisMonthTotalTarget
} }
} }
const goToTeamMember = () => { 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 = () => { const exchangeGoldCoins = () => {
@ -123,19 +121,13 @@ const transfer = () => {
router.push('/transfer') router.push('/transfer')
} }
const { const { appConnected, userInfo, salaryInfo, handleImageError, getAvatarPlaceholder } =
appConnected, usePageInitializationWithConfig('BD_CENTER', {
userInfo,
salaryInfo,
handleImageError,
getAvatarPlaceholder
} = usePageInitializationWithConfig('BD_CENTER', {
needsTeamInfo: true, needsTeamInfo: true,
onDataLoaded: () => { onDataLoaded: () => {
getAgentMonth() getAgentMonth()
} },
}) })
</script> </script>
<style scoped> <style scoped>
@ -192,7 +184,8 @@ const {
} }
@keyframes pulse { @keyframes pulse {
0%, 100% { 0%,
100% {
opacity: 1; opacity: 1;
} }
50% { 50% {
@ -210,7 +203,7 @@ const {
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 25px; border-radius: 25px;
background-color: #8B5CF6; background-color: #8b5cf6;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -254,7 +247,7 @@ const {
.system-info { .system-info {
font-size: 12px !important; font-size: 12px !important;
color: #8B5CF6 !important; color: #8b5cf6 !important;
margin-top: 2px !important; margin-top: 2px !important;
} }
@ -280,8 +273,8 @@ const {
} }
.bd-tag { .bd-tag {
background-color: #E0E7FF; background-color: #e0e7ff;
color: #5B21B6; color: #5b21b6;
} }
/* Total team salary 区域 */ /* Total team salary 区域 */
@ -327,7 +320,7 @@ const {
.salary-separator { .salary-separator {
width: 1px; width: 1px;
height: 40px; height: 40px;
background-color: #8B5CF6; background-color: #8b5cf6;
} }
/* Team Member 独立区域 */ /* Team Member 独立区域 */
@ -358,7 +351,7 @@ const {
.member-title { .member-title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1F2937; color: #1f2937;
} }
/* 操作按钮 */ /* 操作按钮 */
@ -386,12 +379,12 @@ const {
} }
.exchange-btn { .exchange-btn {
background-color: #FDE68A; background-color: #fde68a;
color: #D97706; color: #d97706;
} }
.transfer-btn { .transfer-btn {
background-color: #8B5CF6; background-color: #8b5cf6;
color: white; color: white;
} }
@ -399,6 +392,6 @@ const {
.arrow { .arrow {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
color: #8B5CF6; color: #8b5cf6;
} }
</style> </style>