1
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
const totalAmount = computed(() => props.list.reduce((pre, cur) => pre + cur.amount, 0).toFixed(2))
|
const totalAmount = computed(() => props.list.reduce((pre, cur) => pre + cur.amount, 0).toFixed(2))
|
||||||
const handleCheckout = () => {
|
const handleCheckout = () => {
|
||||||
const ids = props.list.map((v: any) => v.listingId)
|
const ids = props.list.map((v: any) => v.listingId)
|
||||||
|
if (ids.length === 0) return
|
||||||
console.log('购买:', ids)
|
console.log('购买:', ids)
|
||||||
CreateOrder(ids, true).then((res) => {
|
CreateOrder(ids, true).then((res) => {
|
||||||
router.go(0)
|
router.go(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user