diff --git a/src/api/Invite.ts b/src/api/Invite.ts new file mode 100644 index 0000000..7cf30e8 --- /dev/null +++ b/src/api/Invite.ts @@ -0,0 +1,62 @@ +import axios from 'axios'; +import { S } from 'mockjs'; + + +export interface LoginData { + username: string; + password: string; +} + + +export interface jobuser { + status: string; + code: number; + message: string; + data: { + jobuser: { + username: string; // 账号 + password: string; // 密码 + time: Date; // 注册时间 + type: number; // 累计在线时间 + }[] + }; + +} + +export interface Black { + status: string; + code: number; + message: string; + data: Array<{}>; +} +export interface Refresh { + status: string; + code: number; + data: { + access_token: string; + refresh_token: string; + }; + message: string; +} + +export interface ListParams { + black?: string; + username?: string; + } +/** + * + * @param data 获取子 + * @returns + */ +export function getSonId(id: string) { + return axios.post('/api/v1/Invite/getSonId', { id }); +} + +/** + * + * @param data 获取父 + * @returns + */ +export function getDayId(id: string) { + return axios.post('/api/v1/Invite/getDayId', { id }); + } diff --git a/src/api/withdraw.ts b/src/api/withdraw.ts new file mode 100644 index 0000000..baac07f --- /dev/null +++ b/src/api/withdraw.ts @@ -0,0 +1,64 @@ +import axios from 'axios'; +import { S } from 'mockjs'; + + +export interface LoginData { + username: string; + password: string; +} + + +export interface jobuser { + status: string; + code: number; + message: string; + data: object; + +} + +export interface Black { + status: string; + code: number; + message: string; + data: {}; +} +export interface Refresh { + status: string; + code: number; + data: { + access_token: string; + refresh_token: string; + }; + message: string; +} + +export interface ListParams { + black?: string; + username?: string; + } +/** + * + * @param data 获取列表 + * @returns + */ +export function lists(params: ListParams) { + return axios.post('/api/v1/withdraw/lists',params); +} + +// /** +// * +// * @param id 拉黑 +// * @returns +// */ +// export function getBlack(id: string) { +// return axios.post('/api/v1/jobuser/getBlack', { id }); +// } + +// /** +// * +// * @param id 洗白 +// * @returns +// */ +// export function getOutBlack(id: string) { +// return axios.post('/api/v1/jobuser/getOutBlack', { id }); +// } \ No newline at end of file diff --git a/src/locale/zh-CN.ts b/src/locale/zh-CN.ts index f51ed5a..3cfde48 100644 --- a/src/locale/zh-CN.ts +++ b/src/locale/zh-CN.ts @@ -36,6 +36,8 @@ import localeJobuser from '@/views/jobuser/locale/zh-CN'; import localeJUserblack from '@/views/userblack/locale/zh-CN'; import localeDictionary from '@/views/dictionary/locale/zh-CN'; + +import localeWithdraw from '@/views/withdraw/locale/zh-CN'; export default { 'menu.dashboard': '仪表盘', 'menu.server.dashboard': '仪表盘-服务端', @@ -58,6 +60,7 @@ export default { 'menu.volunteerservicecorps':'志愿队', 'menu.jobuser':'用户', "menu.dictionary":'客服', + "menu.withdraw": '提现管理', ...localeSettings, ...localeMessageBox, ...localeLogin, @@ -84,5 +87,6 @@ export default { ...localevolunteerservicecorps, ...localeJobuser, ...localeJUserblack, - ...localeDictionary + ...localeDictionary, + ...localeWithdraw }; diff --git a/src/router/routes/modules/withdraw.ts b/src/router/routes/modules/withdraw.ts new file mode 100644 index 0000000..8650f8d --- /dev/null +++ b/src/router/routes/modules/withdraw.ts @@ -0,0 +1,28 @@ +import { DEFAULT_LAYOUT } from '../base'; +import { AppRouteRecordRaw } from '../types'; + +const JOBUSER: AppRouteRecordRaw = { + path: '/withdraw', + name: 'withdraw', + component: DEFAULT_LAYOUT, + meta: { + locale: 'menu.withdraw', + requiresAuth: true, + icon: 'icon-user', + order: 0, + }, + children: [ + { + path: 'withdraws', + name: 'withdraws', + component: () => import('@/views/withdraw/index.vue'), + meta: { + locale: 'menu.withdraw.list', + requiresAuth: true, + roles: ['*'], + }, + }, + ], +}; + +export default JOBUSER; diff --git a/src/views/carousel/carousel.vue b/src/views/carousel/carousel.vue index 2b2786f..d1fb78e 100644 --- a/src/views/carousel/carousel.vue +++ b/src/views/carousel/carousel.vue @@ -10,8 +10,8 @@ 100 积分 = 5 PKR -->

100积分

- - + + diff --git a/src/views/dashboard/monitor/index.vue b/src/views/dashboard/monitor/index.vue index 421e11f..029d59f 100644 --- a/src/views/dashboard/monitor/index.vue +++ b/src/views/dashboard/monitor/index.vue @@ -1,87 +1,85 @@ - - - - - - diff --git a/src/views/dictionary/index.vue b/src/views/dictionary/index.vue index 00c7dae..7612e06 100644 --- a/src/views/dictionary/index.vue +++ b/src/views/dictionary/index.vue @@ -25,6 +25,9 @@ + + + 保存 @@ -45,7 +48,9 @@ const form = reactive({ service_2:"", service_3:"", service_url:"", - service_user_url:"" + service_user_url:"", + points:"" + }); const handleSubmit=()=>{ setAll(form) diff --git a/src/views/jobuser/components/FamilyTreeChart.vue b/src/views/jobuser/components/FamilyTreeChart.vue new file mode 100644 index 0000000..7f026c6 --- /dev/null +++ b/src/views/jobuser/components/FamilyTreeChart.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/views/jobuser/index.vue b/src/views/jobuser/index.vue index 269b2b0..3514ee7 100644 --- a/src/views/jobuser/index.vue +++ b/src/views/jobuser/index.vue @@ -8,6 +8,7 @@ + @@ -43,6 +47,7 @@ import { Modal } from '@arco-design/web-vue'; import { Message } from '@arco-design/web-vue'; import showgroup from './components/showgroup.vue'; +import FamilyTreeChart from './components/FamilyTreeChart.vue'; interface DataItem { id: number; diff --git a/src/views/withdraw/components/FamilyTreeChart.vue b/src/views/withdraw/components/FamilyTreeChart.vue new file mode 100644 index 0000000..7f026c6 --- /dev/null +++ b/src/views/withdraw/components/FamilyTreeChart.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/views/withdraw/components/banner.vue b/src/views/withdraw/components/banner.vue new file mode 100644 index 0000000..00b5534 --- /dev/null +++ b/src/views/withdraw/components/banner.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/views/withdraw/components/showgroup.vue b/src/views/withdraw/components/showgroup.vue new file mode 100644 index 0000000..a2b8f02 --- /dev/null +++ b/src/views/withdraw/components/showgroup.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/src/views/withdraw/index.vue b/src/views/withdraw/index.vue new file mode 100644 index 0000000..165c2d1 --- /dev/null +++ b/src/views/withdraw/index.vue @@ -0,0 +1,198 @@ + + + + + + + + diff --git a/src/views/withdraw/locale/en-US.ts b/src/views/withdraw/locale/en-US.ts new file mode 100644 index 0000000..543d824 --- /dev/null +++ b/src/views/withdraw/locale/en-US.ts @@ -0,0 +1,5 @@ +export default { + 'menu.profile.basic': 'User List', + 'menu.withdraw.list': '提现记录', + }; + \ No newline at end of file diff --git a/src/views/withdraw/locale/zh-CN.ts b/src/views/withdraw/locale/zh-CN.ts new file mode 100644 index 0000000..543d824 --- /dev/null +++ b/src/views/withdraw/locale/zh-CN.ts @@ -0,0 +1,5 @@ +export default { + 'menu.profile.basic': 'User List', + 'menu.withdraw.list': '提现记录', + }; + \ No newline at end of file