diff --git a/src/api/withdraw.ts b/src/api/withdraw.ts new file mode 100644 index 0000000..d230eae --- /dev/null +++ b/src/api/withdraw.ts @@ -0,0 +1,71 @@ +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: {}; +} +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/jobuser/index.vue b/src/views/jobuser/index.vue index 4ebabbb..abf6fcc 100644 --- a/src/views/jobuser/index.vue +++ b/src/views/jobuser/index.vue @@ -8,6 +8,7 @@ +