mySms.vue
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
<div>
<el-card :body-style="{'padding':'0'}">
<div class="indexTitle"><h3 class="leftboderTT">{{ language==0?'系统消息':'System messages' }}</h3></div>
<ul>
<li v-for="(n,index) in list" :key="index">
<div class="dot"></div>
<h3>{{ n.title }}</h3>
<span>{{ n.time }}</span>
</li>
</ul>
<el-empty :image="`/img/order_no.png`" :image-size="228" v-if="list?.length == 0"/>
</el-card>
</div>
</template>
<script setup>
import cache from "@/plugins/cache";
import {onMounted} from "@vue/runtime-core";
const language = ref(cache.local.get('language') || 0)
const list = ref([])
onMounted(()=>{
getList()
})
const getList =()=>{
list.value = []
}
</script>
<style scoped lang="scss">
.indexTitle {
margin: 20px 0 12px;
padding: 0 20px 15px;
border-bottom: 1px solid #e5e5e5;
h3 {
font-size: 16px;
color: var(--el-color-primary);
}
}
ul{padding: 20px;
li{background: #FBFCFD;position: relative;padding: 20px 20px 20px 40px;margin-bottom: 18px;
cursor: pointer;
&:hover{
h3{color: var(--el-color-primary)}
}
.dot{position: absolute;width: 7px;
height: 7px;left: 20px;top: 24px;
background: #C5161E;
border-radius: 50%;}
h3{font-weight: 400;margin: 0;
font-size: 16px;
color: #29343C;}
span{font-weight: 400;display: inline-block;
font-size: 12px;margin: 10px 0 0;
color: #929AA0;}
}
}
</style>