This commit is contained in:
李远 2026-03-20 13:05:00 +08:00
parent 37c2262f80
commit 8d632dd3f8
3 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="dashboard-container">
<div class="dashboard-container" v-if="userId === 1">
<el-card v-for="(item, index) in cardData" :key="index" class="stat-card" shadow="hover">
<div class="card-content">
<h3>
@ -12,11 +12,18 @@
</div>
</el-card>
</div>
<Agent v-else />
</template>
<script setup>
import { UserFilled } from '@element-plus/icons-vue'
import { getStorage } from '@/utils/storage'
import Agent from '@/views/agent/index.vue'
//id
const userId = getStorage('userInfo')?.id
const cardData = [
{ label: '代理总数', value: 100, icon: UserFilled },
{ label: '今日新增代理总数', value: 100, icon: UserFilled },
@ -59,7 +66,8 @@ const cardData = [
justify-content: center;
align-items: center;
font-size: 22px;
.icon{
.icon {
margin-right: 8px;
}
}

View File

@ -76,7 +76,7 @@ const loginForm = ref({
email: 'test@163.com',
countryCode: '+86',
phone: '',
password: '123456',
password: '888888',
code: '123456',
})
const loginRules = ref<FormRules>({

View File

@ -162,7 +162,7 @@ const handleRegister = async () => {
reg_type: activeTab.value === 'email' ? 1 : 2,
invite_code: registerForm.value.inviteCode,
code: registerForm.value.code,
password: md5Encrypt(registerForm.value.password)
password: registerForm.value.password
};
//