From fb74a242fa141288d9909cb3ce60f28662a613c5 Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Fri, 12 Dec 2025 20:05:24 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E9=9D=93=E5=8F=B7=E5=AE=A1=E6=89=B9?=
=?UTF-8?q?=E9=A1=B5):=20=E9=A9=B3=E5=9B=9E=E6=93=8D=E4=BD=9C=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E5=BC=B9=E7=AA=97=EF=BC=8C=E4=BB=A5=E4=BE=BF=E4=BA=8E?=
=?UTF-8?q?=E5=A1=AB=E5=86=99=E5=A4=87=E6=B3=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/user.js | 110 ++++++------
.../components/applyHandle.vue | 98 +++++++++++
.../user/beautiful-number-apply/index.vue | 159 ++++++++++++------
3 files changed, 261 insertions(+), 106 deletions(-)
create mode 100644 src/views/user/beautiful-number-apply/components/applyHandle.vue
diff --git a/src/api/user.js b/src/api/user.js
index 7349b80..ba2c448 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -1,76 +1,76 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
export function login(data) {
return request({
- url: '/account/token',
- method: 'post',
+ url: "/account/token",
+ method: "post",
data
- })
+ });
}
export function getInfo() {
return request({
- url: '/account/info',
- method: 'get'
- })
+ url: "/account/info",
+ method: "get"
+ });
}
export function logout() {
return request({
- url: '/mock/user/logout',
- method: 'post'
- })
+ url: "/mock/user/logout",
+ method: "post"
+ });
}
// 获取账号菜单
export function getAccountMenus() {
return request({
- url: '/account/menus',
- method: 'get'
- })
+ url: "/account/menus",
+ method: "get"
+ });
}
// 获取按钮权限
export function getButtonPermissions() {
return request({
- url: '/account/buttons/aliases',
- method: 'get'
- })
+ url: "/account/buttons/aliases",
+ method: "get"
+ });
}
// 用户道具流水列表
export function userPropsTable(params) {
return request({
- url: '/running/water/user/props/page',
- method: 'get',
+ url: "/running/water/user/props/page",
+ method: "get",
params
- })
+ });
}
// 用户购买麦位类型流水列表
export function userPropsMikeType(params) {
return request({
- url: '/room-mike-type/page',
- method: 'get',
+ url: "/room-mike-type/page",
+ method: "get",
params
- })
+ });
}
// 用户靓号申请列表
export function userBeautifulNumberApplyTable(params) {
return request({
- url: '/beautiful/number/apply/page',
- method: 'get',
+ url: "/beautiful/number/apply/page",
+ method: "get",
params
- })
+ });
}
// 处理靓号申请状态
-export function handleBeautifulNumberApplyState(id, state) {
+export function handleBeautifulNumberApplyState(id, state, remark) {
return request({
- url: `/beautiful/number/apply/handle/${id}/${state}`,
- method: 'get'
- })
+ url: `/beautiful/number/apply/handle/${id}/${state}?remark=${remark}`,
+ method: "get"
+ });
}
// ////////////////////////////////////////////////////// 用户银行卡 start ////////////////////////////////////////////////////////////////
@@ -78,52 +78,52 @@ export function handleBeautifulNumberApplyState(id, state) {
// 根据团队id获得银行卡列表.
export function listBankCardTable(userId) {
return request({
- url: '/user/bank-card/list/user-id/' + userId,
- method: 'get'
- })
+ url: "/user/bank-card/list/user-id/" + userId,
+ method: "get"
+ });
}
// 团队通过银行卡.
export function listUserPassBankCards(userId) {
return request({
- url: '/user/bank-card/pass-list',
- method: 'get',
+ url: "/user/bank-card/pass-list",
+ method: "get",
params: { userId }
- })
+ });
}
// 修改银行卡资料
export function updateBankCard(data) {
return request({
- url: '/user/bank-card/update',
- method: 'post',
+ url: "/user/bank-card/update",
+ method: "post",
data
- })
+ });
}
// 添加银行卡资料
export function addBankCard(data) {
return request({
- url: '/user/bank-card/add',
- method: 'post',
+ url: "/user/bank-card/add",
+ method: "post",
data
- })
+ });
}
// 根据银行卡id删除.
export function deleteBankCard(bankCardId) {
return request({
- url: '/user/bank-card/delete/' + bankCardId,
- method: 'get'
- })
+ url: "/user/bank-card/delete/" + bankCardId,
+ method: "get"
+ });
}
// 切换使用中的银行卡.
export function useBankCard(bankCardId) {
return request({
- url: '/user/bank-card/use/' + bankCardId,
- method: 'get'
- })
+ url: "/user/bank-card/use/" + bankCardId,
+ method: "get"
+ });
}
// ////////////////////////////////////////////////////// 用户银行卡 end ////////////////////////////////////////////////////////////////
@@ -131,24 +131,24 @@ export function useBankCard(bankCardId) {
// 用户密码日志列表
export function userPasswordLog(params) {
return request({
- url: '/user-password-log/page',
- method: 'get',
+ url: "/user-password-log/page",
+ method: "get",
params
- })
+ });
}
// 用户上传专属礼物分页列表
export function pageUserCustomGift(params) {
return request({
- url: '/user/custom-gift',
- method: 'get',
+ url: "/user/custom-gift",
+ method: "get",
params
- })
+ });
}
// 切换用户上传专属礼物状态
export function switchStatus(id, status) {
return request({
url: `/user/custom-gift/${id}/${status}`,
- method: 'get'
- })
+ method: "get"
+ });
}
diff --git a/src/views/user/beautiful-number-apply/components/applyHandle.vue b/src/views/user/beautiful-number-apply/components/applyHandle.vue
new file mode 100644
index 0000000..8dfa16e
--- /dev/null
+++ b/src/views/user/beautiful-number-apply/components/applyHandle.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
diff --git a/src/views/user/beautiful-number-apply/index.vue b/src/views/user/beautiful-number-apply/index.vue
index 1eea01d..779a390 100644
--- a/src/views/user/beautiful-number-apply/index.vue
+++ b/src/views/user/beautiful-number-apply/index.vue
@@ -1,6 +1,8 @@
+
+
-
+
{{ item.label }}
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
待处理
@@ -73,6 +86,8 @@
驳回
+
+
+
+
同意
+ >同意
驳回
+ :disabled="scope.row.state != 0"
+ @click.native="showRejectWindow(scope.row.id)"
+ >驳回
+
+
+
+