@@ -49,9 +80,10 @@
@@ -81,13 +113,16 @@ const {proxy} = getCurrentInstance()
const router = useRouter()
const {t} = useI18n()
+const msgVisible = ref(true);
let searchVisible = ref(false)
let msg = ref(false)
-let msgNum = ref(0)
+let msgNum = ref(2)
+let msgList = ref([])
const tasksVisible = ref(false)
let taskNum = ref(0)
const settingDialog = ref(false)
const userInfo = tools.data.get("USER_INFO");
+let msgTab = ref("notice")
let realname = userInfo.realname;
let realnameF = realname.substring(0, 1);
@@ -183,25 +218,50 @@ function screen() {
tools.screen(document.documentElement)
}
-//显示短消息
-function showMsg() {
- msg.value = true
-}
-
-function closeMsg(num) {
- if (num > -1) {
- msgNum.value = num
- }
- msg.value = false
-}
-
async function loadData() {
// let res = await this.$API.home.message.newCount()
// this.msgNum = res.data.count
+ msgNum.value = 5
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。您有一笔新的订单请及时处理',
+ time: '2025-06-17 17:59:21'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。您有一笔新的订单请及时处理',
+ time: '2025-06-16 10:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2025-06-15 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2025-05-15 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2025-01-16 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2024-06-15 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2024-06-15 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2015-06-15 12:29:30'
+ })
+ msgList.value.push({
+ title: '您有一笔新的订单请及时处理。',
+ time: '2025-06-15 12:29:30'
+ })
}
-
diff --git a/src/style/app.scss b/src/style/app.scss
index c75349d..39107b3 100644
--- a/src/style/app.scss
+++ b/src/style/app.scss
@@ -89,7 +89,8 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo
.pi-tags li {cursor: pointer;display: inline-block;float: left;height:34px;line-height: 34px;position: relative;flex-shrink: 0;}
.pi-tags li::after {content: " ";width:1px;height:100%;position: absolute;right:0px;background-image: linear-gradient(#fff, #e6e6e6);}
.pi-tags li a {display: inline-block;padding:0 10px;width:100%;height:100%;color: #999;text-decoration:none;display: flex;align-items: center;}
-.pi-tags li i {margin-left:10px;border-radius: 3px;width:18px;height:18px;display: flex;align-items: center;justify-content: center;}
+.pi-tags li i {border-radius: 3px;width:18px;height:18px;display: flex;align-items: center;justify-content: center;}
+.pi-tags li span {margin-right: 5px;margin-left: 5px;}
.pi-tags li i:hover {background: rgba(0,0,0,.2);color: #fff;}
.pi-tags li:hover {background: #ecf5ff;}
.pi-tags li.active {background: #409EFF;}