9.18/3
This commit is contained in:
@@ -28,7 +28,8 @@
|
||||
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 })
|
||||
}
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user