|
|
@ -13,6 +13,9 @@ const addRefund = ref({ |
|
|
|
allCoin: 0, |
|
|
|
contactId: "", |
|
|
|
refundGoods: "", |
|
|
|
freeCoin: 0, |
|
|
|
rechargeCoin: 0, |
|
|
|
taskCoin: 0, |
|
|
|
}); |
|
|
|
// 这是添加充值信息的接口 |
|
|
|
const add = async function () { |
|
|
@ -100,11 +103,11 @@ const getUser = async function (jwcode) { |
|
|
|
} |
|
|
|
}; |
|
|
|
const calculatedAllGold = computed(() => { |
|
|
|
return ( |
|
|
|
addRefund.value.freeCoin + |
|
|
|
addRefund.value.rechargeCoin + |
|
|
|
addRefund.value.taskCoin |
|
|
|
); |
|
|
|
const sum = |
|
|
|
Number(addRefund.value.freeCoin) + |
|
|
|
Number(addRefund.value.rechargeCoin) + |
|
|
|
Number(addRefund.value.taskCoin); |
|
|
|
return !isNaN(sum) ? sum : 0; |
|
|
|
}); |
|
|
|
|
|
|
|
watch(calculatedAllGold, (newVal) => { |
|
|
|