const creditNotice = { template: /*html*/ ` {{lang.coin_text67}} {{lang.coin_text66}}: {{lang.coin_text68}} {{lang.coin_text69}} `, data() { return { isShow: false, credit_remind_amount: undefined, submitLoading: false, credit_remind: 0, coinClientCoupon: {}, }; }, methods: { open() { this.isShow = true; accountDetail().then((res) => { const {credit_remind, credit_remind_amount} = res.data.data.account; this.credit_remind = credit_remind; this.credit_remind_amount = credit_remind_amount; }); }, diaClose() { this.amount = undefined; this.isShow = false; }, submitCredit() { if (!this.credit_remind_amount) { return this.$message.error(lang.coin_text70); } this.submitLoading = true; apiCreateCreditRemind({ credit_remind: this.credit_remind, credit_remind_amount: this.credit_remind_amount, }) .then((res) => { if (res.data.status === 200) { this.$message.success(res.data.msg); this.diaClose(); this.$emit("success", { credit_remind: this.credit_remind, credit_remind_amount: this.credit_remind_amount, }); } }) .catch((error) => { this.$message.error(error.data.msg); }) .finally(() => { this.submitLoading = false; }); }, }, };