feat 消息中心搭建
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user