@@ -109,11 +111,6 @@
icon: 'cart_0',
active_icon: 'cart_1',
path: '/shoppingCart'
- },
- {
- icon: 'user_0',
- active_icon: 'user_1',
- path: '/account'
}
])
const onNavItemClick = (path: string) => {
diff --git a/src/views/shoppingCart/index.d.js b/src/views/shoppingCart/index.d.js
new file mode 100644
index 0000000..31f580a
--- /dev/null
+++ b/src/views/shoppingCart/index.d.js
@@ -0,0 +1,7 @@
+/** 商品状态 */
+export const SCART_STATUS = {
+ /** 正常 */
+ NORMAL: 1,
+ /** 下架 */
+ DISABLED: 0,
+}
\ No newline at end of file
diff --git a/src/views/shoppingCart/sc-item.vue b/src/views/shoppingCart/sc-item.vue
index 7e9fa37..4283378 100644
--- a/src/views/shoppingCart/sc-item.vue
+++ b/src/views/shoppingCart/sc-item.vue
@@ -1,7 +1,14 @@
-
+
-
![]()
+ {{ info.status }}
+
{{ info.title }}
@@ -12,14 +19,20 @@
{{ tag }}
-
{{ FormatDate(info.date, 'SM D, YYYY, h:mm A') }}
-
${{ info.amount }} HKD
+
+
+
+ No Longer Available
+
+
Delisted from marketplace
+
+
${{ info.amount }} HKD
{} }
+ info: {
+ type: Object as () => {
+ status: number
+ title: string
+ brand: string
+ tags: string[]
+ date: string
+ amount: number
+ cover: string
+ },
+ default: () => {}
+ },
+ disabled: { type: Boolean, default: false }
})
const onRemove = () => {
- emit('remove', props.info.id)
+ emit('remove', props.info)
}
@@ -76,7 +101,7 @@
> .title {
font-family: KaiseiOpti-Bold;
font-size: var(--sc-item-title-font-size, 2.4rem);
- color: #232323;
+ color: var(--sc-item-title-color, #232323);
}
> .brand {
display: flex;
@@ -85,11 +110,12 @@
width: 2.4rem;
height: 2.4rem;
margin-right: 1rem;
+ color: var(--sc-item-brand-color, #232323);
}
> .text {
font-size: var(--sc-item-brand-font-size, 1.6rem);
text-decoration: underline;
- color: #232323;
+ color: var(--sc-item-brand-color, #232323);
}
}
> .tags {
@@ -104,24 +130,17 @@
font-size: var(--sc-item-tag-font-size, 1.4rem);
padding: var(--sc-item-tag-padding, 0 1rem);
text-align: center;
- color: #8f8f8f;
- background-color: #eee;
+ color: var(--sc-item-tag-color, #8f8f8f);
+ background-color: var(--sc-item-tag-bg-color, #eee);
}
}
> .date {
display: flex;
align-items: center;
- > .icon {
- width: 2.4rem;
- height: 2.4rem;
- margin-right: 1rem;
- color: #808080;
- }
-
+ color: var(--sc-item-date-color, #808080);
> .text {
font-family: KaiseiOpti-Regular;
font-size: 1.4rem;
- color: #808080;
}
}
}
@@ -133,6 +152,26 @@
align-items: var(--sc-item-right-align-items);
height: var(--sc-item-right-height);
margin-top: var(--sc-item-right-margin-top);
+ > .unshelve {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ > .title {
+ margin-bottom: 0.8rem;
+ font-family: KaiseiOpti-Bold;
+ font-size: 1.6rem;
+ color: #000;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.8rem;
+ }
+ > .tip {
+ font-family: KaiseiOpti-Regular;
+ font-size: 1.4rem;
+ color: #585858;
+ }
+ }
> .amount {
font-family: KaiseiOpti-Bold;
font-size: var(--sc-item-amount-font-size, 2.2rem);
@@ -147,7 +186,7 @@
margin-top: var(--sc-item-remove-margin-top, 9rem);
display: flex;
align-items: center;
- justify-content: center;
+ justify-content: flex-end;
user-select: none;
cursor: pointer;
> .icon {
@@ -196,5 +235,14 @@
}
}
}
+ &.disabled {
+ --sc-item-title-color: #cbcbcb;
+ --sc-item-brand-color: #cbcbcb;
+ --sc-item-date-color: #cbcbcb;
+ --sc-item-tag-color: #cbcbcb;
+ > img {
+ opacity: 0.5;
+ }
+ }
}
diff --git a/src/views/shoppingCart/sc-list.vue b/src/views/shoppingCart/sc-list.vue
index 8afdcc5..514b2e7 100644
--- a/src/views/shoppingCart/sc-list.vue
+++ b/src/views/shoppingCart/sc-list.vue
@@ -12,7 +12,7 @@
{{ selectedCount }} Selected
@@ -45,15 +45,21 @@
/>
-
-
+
+
+
@@ -70,6 +76,9 @@