diff --git a/src/App.vue b/src/App.vue index 9280810..d70a322 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,10 +25,17 @@ }) onMounted(() => { observer.observe(viewRef.value) + console.log('onMounted') }) onBeforeUnmount(() => { observer.disconnect() }) + window['onClickPrivacy'] = () => { + const e = window.event || event + e.stopPropagation() + e.preventDefault() + console.log('点击了隐私政策') + } diff --git a/src/views/shoppingCart/order-summary.vue b/src/views/shoppingCart/order-summary.vue new file mode 100644 index 0000000..f42b138 --- /dev/null +++ b/src/views/shoppingCart/order-summary.vue @@ -0,0 +1,160 @@ + + + Order Summary + + Selected + 3 + + + + + Brands + + + {{ v.name }} + {{ v.count }}item + + + + + + Total File Size + + 36 mb + + + + + Total + $45.00 HKD + + + CHECKOUT SELECTED + Digital assets. Creator retains copyright. + + + + + + diff --git a/src/views/shoppingCart/sc-list.vue b/src/views/shoppingCart/sc-list.vue new file mode 100644 index 0000000..6458175 --- /dev/null +++ b/src/views/shoppingCart/sc-list.vue @@ -0,0 +1,441 @@ + + + + + + Shopping Cart + + + + + + 3 Selected + + Select All + Deselect All + + + + + Sort By + {{ label }} + + + + + + + + + + + + {{ v.title }} + + + {{ v.brand }} + + + {{ tag }} + + + + + {{ v.fileSize }}kb{{ + isMini ? '' : ` | ${v.date}` + }} + + + + + ${{ v.amount }} HKD + + + Remove + + + + + + + + + + + \ No newline at end of file