feat 消息中心搭建
This commit is contained in:
1
src/components.d.ts
vendored
1
src/components.d.ts
vendored
@@ -22,6 +22,7 @@ declare module 'vue' {
|
|||||||
HomeWarning: typeof import('./components/home/warning.vue')['default']
|
HomeWarning: typeof import('./components/home/warning.vue')['default']
|
||||||
HomeWarning_list: typeof import('./components/home/warning_list.vue')['default']
|
HomeWarning_list: typeof import('./components/home/warning_list.vue')['default']
|
||||||
InputEntry: typeof import('./components/InputEntry.vue')['default']
|
InputEntry: typeof import('./components/InputEntry.vue')['default']
|
||||||
|
MessageList: typeof import('./components/message/list.vue')['default']
|
||||||
MessageNav: typeof import('./components/message/nav.vue')['default']
|
MessageNav: typeof import('./components/message/nav.vue')['default']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
56
src/components/message/list.vue
Normal file
56
src/components/message/list.vue
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<template>
|
||||||
|
<view class="message-item">
|
||||||
|
<view class="message-icon">
|
||||||
|
<wd-icon name="setting" size="24px" color="#4685FD" />
|
||||||
|
</view>
|
||||||
|
<view class="message-content">
|
||||||
|
<text class="message-title">
|
||||||
|
系统版本更新
|
||||||
|
</text>
|
||||||
|
<text class="message-desc">
|
||||||
|
智能压实系统已更新至 v2.3.1
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.message-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 16px;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: #f0f5ff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-right: 12px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-content {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333333;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message-desc {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -20,9 +20,8 @@ function handleMarkAllRead() {
|
|||||||
</back-nav>
|
</back-nav>
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<text class="empty">
|
<message-list />
|
||||||
暂无消息
|
<message-list />
|
||||||
</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -35,14 +34,6 @@ function handleMarkAllRead() {
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
padding-top: 100px;
|
padding-top: 72px;
|
||||||
}
|
|
||||||
|
|
||||||
.empty {
|
|
||||||
font-size: 14px;
|
|
||||||
color: #999999;
|
|
||||||
text-align: center;
|
|
||||||
display: block;
|
|
||||||
margin-top: 100px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user