9.18/3
This commit is contained in:
@@ -20,7 +20,8 @@ const _sfc_main = {
|
||||
select(p) {
|
||||
const opener = getCurrentPages()[getCurrentPages().length - 2];
|
||||
if (opener && opener.$vm && opener.$vm.items) {
|
||||
opener.$vm.items.push({ productId: p.id, productName: p.name, quantity: 1, unitPrice: Number(p.price || 0) });
|
||||
const initPrice = Number(p.retailPrice != null ? p.retailPrice : p.price || 0);
|
||||
opener.$vm.items.push({ productId: p.id, productName: p.name, quantity: 1, unitPrice: initPrice, _autoPrice: true });
|
||||
}
|
||||
common_vendor.index.navigateBack();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user