fix: 修复挂账按订单支付还款传参问题,增加修改密功能

This commit is contained in:
2025-03-19 14:56:20 +08:00
parent 706ce14395
commit eb93ad889a
4 changed files with 203 additions and 6 deletions

View File

@@ -378,9 +378,10 @@ async function pointsInit() {
if (!props.user.id || score.sel == -1) {
return;
}
const orderAmount = currentpayMoney.value - pointsDiscountAmount.value;
const res = await PointsApi.calcOrderUsablePoints({
shopUserId: props.user.id,
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
orderAmount: orderAmount <= 0 ? 0 : orderAmount,
});
pointsRes.value = res;
usePointsNumber.value = res.usable ? res.maxUsablePoints : 0;