chore(管理员中心): 文件结构调整
This commit is contained in:
parent
0a3f4129c6
commit
3360092d3c
@ -130,12 +130,6 @@ const router = createRouter({
|
|||||||
component: () => import('../views/RechargeAgency/SellerRecordsView.vue'),
|
component: () => import('../views/RechargeAgency/SellerRecordsView.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/bd-setting',
|
|
||||||
name: 'bd-setting',
|
|
||||||
component: () => import('../views/BDSettingView.vue'),
|
|
||||||
meta: { requiresAuth: true },
|
|
||||||
},
|
|
||||||
// 公共页面
|
// 公共页面
|
||||||
{
|
{
|
||||||
path: '/not_app',
|
path: '/not_app',
|
||||||
@ -164,7 +158,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: '/admin-center',
|
path: '/admin-center',
|
||||||
name: 'admin-center',
|
name: 'admin-center',
|
||||||
component: () => import('../views/AdminCenter.vue'),
|
component: () => import('../views/Admin/AdminCenter.vue'),
|
||||||
meta: { requiresAuth: true },
|
meta: { requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -55,7 +55,6 @@
|
|||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<img
|
<img
|
||||||
:src="info.userProfile.userAvatar"
|
:src="info.userProfile.userAvatar"
|
||||||
alt="../assets/icon/coin.png"
|
|
||||||
style="width: 36px; height: 36px; border-radius: 50%"
|
style="width: 36px; height: 36px; border-radius: 50%"
|
||||||
/>
|
/>
|
||||||
<div style="margin-left: 8px">
|
<div style="margin-left: 8px">
|
||||||
@ -67,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<img
|
<img
|
||||||
src="../assets/icon/arrow.png"
|
src="../../assets/icon/arrow.png"
|
||||||
alt=""
|
alt=""
|
||||||
style="width: 24px; transition: transform 0.5s"
|
style="width: 24px; transition: transform 0.5s"
|
||||||
:class="{ rotated: BDIndex == selectedBDIndex }"
|
:class="{ rotated: BDIndex == selectedBDIndex }"
|
||||||
@ -143,7 +142,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<img
|
<img
|
||||||
src="../assets/icon/arrow.png"
|
src="../../assets/icon/arrow.png"
|
||||||
alt=""
|
alt=""
|
||||||
style="
|
style="
|
||||||
width: 24px;
|
width: 24px;
|
||||||
@ -180,7 +179,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import MobileHeader from '../components/MobileHeader.vue'
|
import MobileHeader from '@/components/MobileHeader.vue'
|
||||||
import { onMounted, ref, computed } from 'vue'
|
import { onMounted, ref, computed } from 'vue'
|
||||||
import { getBDList, getAgencyList, getAgencyTotalRecharge } from '@/api/userInfo'
|
import { getBDList, getAgencyList, getAgencyTotalRecharge } from '@/api/userInfo'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@ -367,7 +366,7 @@ const formatPrice = (value) => {
|
|||||||
.bg {
|
.bg {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-image: url(../assets/images/secondBg.png);
|
background-image: url(../../assets/images/secondBg.png);
|
||||||
background-size: 100% auto;
|
background-size: 100% auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
@ -1,213 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="bd-setting gradient-background-circles">
|
|
||||||
<MobileHeader title="BD Setting" />
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
<!-- 设置选项列表 -->
|
|
||||||
<div class="settings-list">
|
|
||||||
<!-- 通知设置 -->
|
|
||||||
<div class="setting-item" @click="goToNotifications">
|
|
||||||
<div class="setting-icon">🔔</div>
|
|
||||||
<div class="setting-content">
|
|
||||||
<h3>Notifications</h3>
|
|
||||||
<p>Manage your notification preferences</p>
|
|
||||||
</div>
|
|
||||||
<div class="setting-arrow">></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 团队管理 -->
|
|
||||||
<div class="setting-item" @click="goToTeamManagement">
|
|
||||||
<div class="setting-icon">👥</div>
|
|
||||||
<div class="setting-content">
|
|
||||||
<h3>Team Management</h3>
|
|
||||||
<p>Manage your team members and permissions</p>
|
|
||||||
</div>
|
|
||||||
<div class="setting-arrow">></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 数据统计 -->
|
|
||||||
<div class="setting-item" @click="goToStatistics">
|
|
||||||
<div class="setting-icon">📊</div>
|
|
||||||
<div class="setting-content">
|
|
||||||
<h3>Statistics</h3>
|
|
||||||
<p>View team performance and analytics</p>
|
|
||||||
</div>
|
|
||||||
<div class="setting-arrow">></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 账户设置 -->
|
|
||||||
<div class="setting-item" @click="goToAccountSettings">
|
|
||||||
<div class="setting-icon">⚙️</div>
|
|
||||||
<div class="setting-content">
|
|
||||||
<h3>Account Settings</h3>
|
|
||||||
<p>Manage your account information</p>
|
|
||||||
</div>
|
|
||||||
<div class="setting-arrow">></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 帮助与支持 -->
|
|
||||||
<div class="setting-item" @click="goToHelp">
|
|
||||||
<div class="setting-icon">❓</div>
|
|
||||||
<div class="setting-content">
|
|
||||||
<h3>Help & Support</h3>
|
|
||||||
<p>Get help and contact support</p>
|
|
||||||
</div>
|
|
||||||
<div class="setting-arrow">></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 退出登录按钮 -->
|
|
||||||
<div class="logout-section">
|
|
||||||
<button class="logout-btn" @click="logout">
|
|
||||||
<span class="logout-icon">🚪</span>
|
|
||||||
<span>Logout</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { useRouter } from 'vue-router'
|
|
||||||
import MobileHeader from '../components/MobileHeader.vue'
|
|
||||||
|
|
||||||
const router = useRouter()
|
|
||||||
|
|
||||||
const goToNotifications = () => {
|
|
||||||
router.push('/message')
|
|
||||||
}
|
|
||||||
|
|
||||||
const goToTeamManagement = () => {
|
|
||||||
router.push('/team-member')
|
|
||||||
}
|
|
||||||
|
|
||||||
const goToStatistics = () => {
|
|
||||||
router.push('/platform-policy')
|
|
||||||
}
|
|
||||||
|
|
||||||
const goToAccountSettings = () => {
|
|
||||||
router.push('/host-setting')
|
|
||||||
}
|
|
||||||
|
|
||||||
const goToHelp = () => {
|
|
||||||
router.push('/platform-policy')
|
|
||||||
}
|
|
||||||
|
|
||||||
const logout = () => {
|
|
||||||
// 确认退出
|
|
||||||
if (confirm('Are you sure you want to logout?')) {
|
|
||||||
// 清除用户数据
|
|
||||||
localStorage.clear()
|
|
||||||
// 跳转到登录页面或首页
|
|
||||||
router.push('/')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.bd-setting {
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
padding: 16px;
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 设置列表 */
|
|
||||||
.settings-list {
|
|
||||||
background-color: white;
|
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-item {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 16px;
|
|
||||||
border-bottom: 1px solid #f5f5f5;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-item:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-item:hover {
|
|
||||||
background-color: #f8f9fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-item:active {
|
|
||||||
background-color: #e9ecef;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-icon {
|
|
||||||
font-size: 24px;
|
|
||||||
margin-right: 12px;
|
|
||||||
width: 40px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-content {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-content h3 {
|
|
||||||
margin: 0 0 4px 0;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-content p {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 14px;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting-arrow {
|
|
||||||
font-size: 18px;
|
|
||||||
color: #8B5CF6;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 退出登录区域 */
|
|
||||||
.logout-section {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logout-btn {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
background-color: #fee2e2;
|
|
||||||
color: #dc2626;
|
|
||||||
border: 1px solid #fecaca;
|
|
||||||
padding: 12px 24px;
|
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 600;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logout-btn:hover {
|
|
||||||
background-color: #fecaca;
|
|
||||||
border-color: #f87171;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logout-btn:active {
|
|
||||||
background-color: #fca5a5;
|
|
||||||
transform: scale(0.98);
|
|
||||||
}
|
|
||||||
|
|
||||||
.logout-icon {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user