杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
|
||||
<div v-if="wishlistItems.length === 0" class="empty-wishlist">
|
||||
<el-icon :size="60" :style="{ color: '#fadb14' }"><StarFilled /></el-icon>
|
||||
<el-icon :size="60" :style="{ color: 'var(--theme-primary)' }"><StarFilled /></el-icon>
|
||||
<p>收藏列表为空</p>
|
||||
<el-button type="primary" @click="handleBrowseProducts">
|
||||
浏览作品
|
||||
@@ -177,8 +177,7 @@ const handleProductClick = (productId: IdType) => {
|
||||
|
||||
/** getRandomColor is a local helper used by this page script. */
|
||||
const getRandomColor = () => {
|
||||
const colors = ['#ffe4d6', '#d6eaff', '#e2ffd6', '#fff2d6', '#d6ffe4', '#e4d6ff']
|
||||
return colors[Math.floor(Math.random() * colors.length)]
|
||||
return 'var(--theme-primary-soft)'
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
@@ -189,15 +188,29 @@ onMounted(() => {
|
||||
<style scoped>
|
||||
.mobile-container {
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
padding-top: 60px;
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.92)),
|
||||
var(--theme-background-image),
|
||||
var(--theme-page-bg);
|
||||
background-size: cover, cover, auto;
|
||||
background-position: center top;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
height: 60px;
|
||||
padding: 10px 15px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
@@ -205,13 +218,16 @@ onMounted(() => {
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.empty {
|
||||
@@ -219,17 +235,19 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.wishlist-items {
|
||||
padding: 20px;
|
||||
padding-bottom: 20px;
|
||||
padding: 16px;
|
||||
padding-bottom: 28px;
|
||||
}
|
||||
|
||||
.wishlist-item {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
padding: 15px;
|
||||
background: #f9f9f9;
|
||||
border-radius: 15px;
|
||||
background: var(--theme-card-bg);
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 16px;
|
||||
margin-bottom: 15px;
|
||||
box-shadow: 0 14px 34px rgba(122, 67, 88, 0.08);
|
||||
}
|
||||
|
||||
.item-image {
|
||||
@@ -258,6 +276,7 @@ onMounted(() => {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
color: rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid var(--theme-border);
|
||||
}
|
||||
|
||||
.item-details {
|
||||
@@ -271,10 +290,11 @@ onMounted(() => {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin: 0 0 5px 0;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.item-price {
|
||||
color: var(--primary-color);
|
||||
color: var(--theme-primary);
|
||||
font-weight: bold;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
@@ -287,7 +307,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.delete-icon {
|
||||
color: #ff4757;
|
||||
color: var(--theme-accent);
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
}
|
||||
@@ -297,12 +317,33 @@ onMounted(() => {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 60px 20px;
|
||||
color: #999;
|
||||
margin: 16px;
|
||||
padding: 64px 20px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--theme-card-bg);
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 14px 34px rgba(122, 67, 88, 0.08);
|
||||
}
|
||||
|
||||
.empty-wishlist p {
|
||||
margin: 20px 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
:deep(.el-button--primary) {
|
||||
--el-button-bg-color: var(--theme-primary);
|
||||
--el-button-border-color: var(--theme-primary);
|
||||
--el-button-hover-bg-color: var(--theme-accent);
|
||||
--el-button-hover-border-color: var(--theme-accent);
|
||||
}
|
||||
|
||||
:deep(.el-button--info) {
|
||||
--el-button-bg-color: var(--theme-primary-soft);
|
||||
--el-button-border-color: var(--theme-border);
|
||||
--el-button-text-color: var(--theme-accent);
|
||||
--el-button-hover-bg-color: var(--theme-primary-soft);
|
||||
--el-button-hover-border-color: var(--theme-border);
|
||||
--el-button-hover-text-color: var(--theme-accent);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user