mySms.vue 1.45 KB
<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 {onMounted} from "@vue/runtime-core";
import {useStorage} from "@vueuse/core/index";
const language= useStorage('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>