From c42fb56b2c97da437d0fd4f5e7f7166d57dc255c Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 14 Nov 2025 14:44:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=A4=84=E7=90=86=E5=92=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=AE=A1=E6=A0=B8=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/verify.js | 29 ++++++++--------------------- pages/verify/detail/index.vue | 12 +++++++++--- pages/verify/list/index.vue | 10 +++++++++- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/api/verify.js b/api/verify.js index a4fe883..b34b114 100644 --- a/api/verify.js +++ b/api/verify.js @@ -44,30 +44,17 @@ export const getVerifyDetail = (id) => { }; /** - * 审核通过 + * 审核处理(统一接口) * @param {string|number} id 审核ID - * @param {string} remark 审核备注(可选) + * @param {string|number} status 审核状态:1-通过,2-驳回 + * @param {string} msg 审核意见(可选) * @returns {Promise} 返回接口响应 */ -export const approveVerify = (id, remark = '') => { - return uni.$uv.http.put(`/bst/verify/${id}/approve`, { - remark: remark - }, { - custom: { - auth: true - } - }); -}; - -/** - * 审核驳回 - * @param {string|number} id 审核ID - * @param {string} remark 审核备注(可选) - * @returns {Promise} 返回接口响应 - */ -export const rejectVerify = (id, remark = '') => { - return uni.$uv.http.put(`/bst/verify/${id}/reject`, { - remark: remark +export const handleVerify = (id, status, msg = '') => { + return uni.$uv.http.put('/bst/verify/handle', { + id: id.toString(), + status: status.toString(), + msg: msg }, { custom: { auth: true diff --git a/pages/verify/detail/index.vue b/pages/verify/detail/index.vue index 0d4c259..45140a9 100644 --- a/pages/verify/detail/index.vue +++ b/pages/verify/detail/index.vue @@ -147,7 +147,7 @@