1.修复供应商列表分页 2.修复代客下单新版积分设置
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user