优化代客下单逻辑

This commit is contained in:
gyq
2025-11-18 09:06:47 +08:00
parent 7c7fc3ef0f
commit 4478cc01fe
11 changed files with 193 additions and 259 deletions

View File

@@ -675,8 +675,7 @@ function clearCouponUser() {
couponFormUser.value = ''
couponFormUserList.value = []
goodsStore.showVipPrice = 0
goodsStore.vipUserInfo = ''
goodsStore.clearVipUserInfo()
couponForm.value.pointsNum = ''
couponForm.value.discountRatio = ''
@@ -846,7 +845,7 @@ function resetCouponFormHandle() {
async function selectUserHandle(row) {
try {
console.log('selectUserHandle===', row);
goodsStore.vipUserInfo = { ...row }
goodsStore.selectUser(row)
// 选择会员后重新计算会员价
if (store.shopInfo.isMemberPrice && row.isVip) {
console.log('选择会员后重新计算会员价===', row);