|
|
@ -287,7 +287,7 @@ export default { |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.init(); |
|
|
|
this.init(response.data); |
|
|
|
this.$Message.success(response.info); |
|
|
|
|
|
|
|
} else { |
|
|
@ -308,13 +308,12 @@ export default { |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.init(response.data.payid); |
|
|
|
if (this.isPayPublic == 1) { |
|
|
|
this.init(); |
|
|
|
this.$Message.success(response.info); |
|
|
|
} else { |
|
|
|
window.open(response.data.authurl, '_blank'); |
|
|
|
window.open(response.data.authurl, '_blank'); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$Message.error(response.info); |
|
|
|
} |
|
|
@ -328,7 +327,7 @@ export default { |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.init(); |
|
|
|
this.init(response.data); |
|
|
|
this.$Message.success(response.info); |
|
|
|
} else { |
|
|
|
this.$Message.error(response.info); |
|
|
@ -356,10 +355,24 @@ export default { |
|
|
|
handleClick(tab, event) { |
|
|
|
console.log(tab, event); |
|
|
|
}, |
|
|
|
init() { |
|
|
|
init(payid) { |
|
|
|
this.addPayDialogVisible = false; |
|
|
|
this.$emit('update:visible', false); |
|
|
|
this.resetForm(); // 重置表单 |
|
|
|
|
|
|
|
if(payid){ |
|
|
|
this.$http('POST', '/agentnew/ajax_get_payinfo', { |
|
|
|
payid: payid, |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
this.$emit('update:data', response.data); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
},watch: { |
|
|
|
visible(newVal) { |
|
|
|