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 {