From b0ee5a07839e088c50991e12547184b85988e613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Thu, 23 Apr 2026 11:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 7 + src/assets/css/style.css | 42 +-- src/assets/css/style.less | 4 +- src/assets/icons/order/delete.svg | 5 + src/assets/icons/order/file.svg | 8 + src/assets/icons/order/shop.svg | 5 + src/router/index.ts | 5 + src/views/main-header.vue | 4 +- src/views/shoppingCart/index.vue | 45 +++ src/views/shoppingCart/order-summary.vue | 160 ++++++++ src/views/shoppingCart/sc-list.vue | 441 +++++++++++++++++++++++ 11 files changed, 689 insertions(+), 37 deletions(-) create mode 100644 src/assets/icons/order/delete.svg create mode 100644 src/assets/icons/order/file.svg create mode 100644 src/assets/icons/order/shop.svg create mode 100644 src/views/shoppingCart/index.vue create mode 100644 src/views/shoppingCart/order-summary.vue create mode 100644 src/views/shoppingCart/sc-list.vue 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