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 @@