This commit is contained in:
李志鹏
2026-05-28 11:31:37 +08:00
parent 8f23b4c387
commit 5ada85d05c
5 changed files with 68 additions and 10 deletions

View File

@@ -62,11 +62,11 @@
})
const totalAmount = computed(() => props.list.reduce((pre, cur) => pre + cur.amount, 0).toFixed(2))
const handleCheckout = () => {
const ids = props.list.map((v: any) => v.listingId)
if (ids.length === 0) return
console.log('购买:', ids)
CreateOrder(ids, true).then((res) => {
router.go(0)
if (props.list.length === 0) return
const list = btoa(encodeURIComponent(JSON.stringify(props.list)))
router.push({
name: 'pay',
query: { list }
})
}
</script>