This commit is contained in:
parent
37c2262f80
commit
8d632dd3f8
|
|
@ -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,6 +66,7 @@ const cardData = [
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 22px;
|
||||
|
||||
.icon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ const loginForm = ref({
|
|||
email: 'test@163.com',
|
||||
countryCode: '+86',
|
||||
phone: '',
|
||||
password: '123456',
|
||||
password: '888888',
|
||||
code: '123456',
|
||||
})
|
||||
const loginRules = ref<FormRules>({
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
||||
// 注册逻辑
|
||||
|
|
|
|||
Loading…
Reference in New Issue