1.修复供应商列表分页 2.修复代客下单新版积分设置

This commit is contained in:
gyq
2025-12-23 13:49:39 +08:00
parent 455c7cea28
commit 15dbd79c7d
3 changed files with 23 additions and 7 deletions

View File

@@ -421,10 +421,14 @@ async function pointsInit() {
if (!carts.vipUser.id) {
return;
}
const res = await PointsApi.calcOrderUsablePoints({
const { pointsConfig, pointsUser } = await PointsApi.calcOrderUsablePoints({
shopUserId: carts.vipUser.id,
orderAmount: scoreMaxMoney.value,
// orderAmount: scoreMaxMoney.value,
});
const res = pointsConfig
carts.vipUser.accountPoints = pointsUser.id ? pointsUser.pointBalance : 0;
pointsRes.value = res;
carts.pointDeductionRule.pointsPerYuan = res.equivalentPoints;
if (score.sel == -1) {
@@ -693,6 +697,10 @@ watch(
onMounted(() => {
carts.payParamsInit();
getPaytype();
if (carts.vipUser.id) {
pointsInit();
}
});
defineExpose({
nowPayClick,