123
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user