From 8df8618f40b083c5432943df0b04b02996f64e3f Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Fri, 24 Apr 2026 14:04:01 +0800 Subject: [PATCH] feat: wardrobe orders --- src/assets/icons/Invoice.svg | 6 + src/views/shoppingCart/sc-item.vue | 342 ++++++++-------- src/views/wardrobe/Assets.vue | 46 +-- src/views/wardrobe/Empty.vue | 56 +++ src/views/wardrobe/Orders.vue | 604 ++++++++++++++++++----------- 5 files changed, 636 insertions(+), 418 deletions(-) create mode 100644 src/assets/icons/Invoice.svg create mode 100644 src/views/wardrobe/Empty.vue diff --git a/src/assets/icons/Invoice.svg b/src/assets/icons/Invoice.svg new file mode 100644 index 0000000..f2d3425 --- /dev/null +++ b/src/assets/icons/Invoice.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/views/shoppingCart/sc-item.vue b/src/views/shoppingCart/sc-item.vue index d96d4cd..9b60251 100644 --- a/src/views/shoppingCart/sc-item.vue +++ b/src/views/shoppingCart/sc-item.vue @@ -1,164 +1,194 @@ \ No newline at end of file + > .text { + font-family: KaiseiOpti-Regular; + font-size: 1.4rem; + color: #808080; + } + } + } + > .right { + align-self: var(--sc-item-right-align-self, end); + display: var(--sc-item-right-display, ''); + flex-direction: var(--sc-item-right-flex-direction, ''); + justify-content: var(--sc-item-right-justify-content, ''); + align-items: var(--sc-item-right-align-items, ''); + height: var(--sc-item-right-height, auto); + margin-top: var(--sc-item-right-margin-top, 0); + > .amount { + font-family: KaiseiOpti-Bold; + font-size: var(--sc-item-amount-font-size, 2.2rem); + color: #232323; + > span { + font-size: var(--sc-item-currency-font-size, 1.4rem); + color: #585858; + vertical-align: bottom; + } + } + > .remove { + margin-top: var(--sc-item-remove-margin-top, 9rem); + display: flex; + align-items: center; + justify-content: center; + user-select: none; + cursor: pointer; + > .icon { + width: 2rem; + height: 2rem; + margin-right: 0.4rem; + } + > .text { + font-family: KaiseiOpti-Regular; + font-size: 1.4rem; + color: #808080; + } + } + } + + &.is-order-actions-layout { + display: grid; + grid-template-columns: + var(--sc-item-img-width, 14.8rem) + minmax(0, 1fr) + var(--sc-item-order-amount-width, 12rem) + var(--sc-item-order-action-width, 18rem); + column-gap: var(--sc-item-order-column-gap, 2rem); + + > .content { + min-width: 0; + } + + > .right { + display: contents; + + > .amount { + grid-column: 3; + align-self: center; + white-space: nowrap; + } + + > .download { + cursor: pointer; + } + } + } +} + diff --git a/src/views/wardrobe/Assets.vue b/src/views/wardrobe/Assets.vue index eb1467f..7a22eaf 100644 --- a/src/views/wardrobe/Assets.vue +++ b/src/views/wardrobe/Assets.vue @@ -99,17 +99,7 @@ -
- - -

Nothing in Wardrobe yet

-

- Explore the digital item and add pieces to your collection. -

-
- Explore Digital Items -
-
+ @@ -117,6 +107,7 @@ import { computed, nextTick, onMounted, onUnmounted, reactive, ref, shallowRef, watch } from 'vue' import { useRouter } from 'vue-router' import img from '@/assets/images/collectionStory/Rectangle.png' +import Empty from './Empty.vue' interface FilterOption { label: string @@ -553,39 +544,6 @@ onUnmounted(() => { } } - .assets-empty { - flex: 1; - - color: #979797; - .empty-img { - width: 14.2rem; - height: 18.8rem; - } - - .assets-empty__title { - font-family: 'KaiseiOpti-Bold'; - font-size: 1.6rem; - margin: 2.4rem 0 0.8rem; - } - - .assets-empty__description { - font-family: 'KaiseiOpti-Regular'; - font-size: 1.4rem; - } - - .assets-empty__button { - margin-top: 3rem; - height: 4.4rem; - line-height: 4.4rem; - padding: 0 3.8rem; - border: 0.1rem solid #c4c4c4; - font-family: 'KaiseiOpti-Regular'; - font-size: 1.6rem; - color: #585858; - cursor: pointer; - text-transform: uppercase; - } - } } } diff --git a/src/views/wardrobe/Empty.vue b/src/views/wardrobe/Empty.vue new file mode 100644 index 0000000..f09a150 --- /dev/null +++ b/src/views/wardrobe/Empty.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/wardrobe/Orders.vue b/src/views/wardrobe/Orders.vue index 38e51ff..ecb22bc 100644 --- a/src/views/wardrobe/Orders.vue +++ b/src/views/wardrobe/Orders.vue @@ -1,257 +1,425 @@ + + - -