From 9d2faef403b93f91105eee38cc89614983d029da Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Thu, 11 Jul 2024 15:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=EF=BC=9A=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20-=20=E8=A7=92=E8=89=B2=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E7=BC=B4=E8=B4=B9=20-=20=E9=80=80=E6=AC=BE=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=80=E6=AC=BE=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/agent/user/pay_record.vue | 14 ++++++++++---- utils/util.js | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/agent/user/pay_record.vue b/pages/agent/user/pay_record.vue index fd15bc3..a325a94 100644 --- a/pages/agent/user/pay_record.vue +++ b/pages/agent/user/pay_record.vue @@ -179,13 +179,19 @@ export default { let _this = this; let options = { title: '提示',// 弹框标题 - content: '该操作不可逆,请确认是否申请退款!',// 提示 - confirmText: '申请',// 确认按钮文字 + confirmText: '提交',// 确认按钮文字 showCancel: true, // 是否显示取消按钮 cancelText: '取消', // 取消按钮文字 + editable: true,//是否显示输入框 + placeholderText: '请输入申请原因',//输入框提示内容 } - _this.$util.tips(options, function () { - agentPayRecordApplyRefund({ id: item.id }).then(res=>{ + _this.$util.tips(options, function (result) { + let inputValue = result.content || ''; + let params = { + id: item.id, + reason: inputValue + }; + agentPayRecordApplyRefund(params).then(res=>{ if(Number(res.status) === 200){ _this.getInfo(); }else{ diff --git a/utils/util.js b/utils/util.js index 89babb9..c29f080 100644 --- a/utils/util.js +++ b/utils/util.js @@ -132,6 +132,8 @@ export default { cancelText: '取消', // 取消按钮文字 success(res) { if (res.confirm) { + if(confirmData) confirmData.res = res; + else confirmData = res; // console.log('点击确认按钮') if(typeof confirmFun === "function") confirmFun(confirmData); } else {