7e8d4779 by simon

优化调整

1 parent a8d19002
......@@ -42,15 +42,11 @@ export default {
<style lang="scss">
#app {
/* font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px; */
border: 0;
margin: 0;
padding: 0;
font-size: $fontSize;
color: $color;
}
body,
......@@ -68,7 +64,6 @@ div {
margin: 20px;
}
.app__bgc {
position: fixed;
background-color: #ffffff;
......
<template>
<div class="empty-tips" v-if="visb">
<div class="empty-tips" v-if="visible">
<div class="tips">
<span class="iconfont iconempty"></span>
<div class="tips">{{innerText ? innerText :'这里空空如也~'}}</div>
<div class="tips">{{innerText ? innerText :'暂无记录'}}</div>
</div>
</div>
</template>
<script>
export default {
props: ['visb', 'innerText'],
props: ['visible', 'innerText'],
data() {
return {
key: 'value'
......@@ -23,21 +23,21 @@ export default {
box-sizing: border-box;
position: fixed;
text-align: center;
color: #666666;
color: #888;
font-size: 32px;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
top: 35%;
top: 30%;
.iconfont {
font-size: 100px;
font-size: 160px;
}
.tips {
position: relative;
padding: 20px;
padding: 12px;
}
}
</style>
......
......@@ -178,8 +178,10 @@ export function formatDate(date, fmt) {
if (!date) return '-'
// 把-换成/ 避免iOS和安卓真机问题
var reg = /-/g;
date = date && date.replace(reg, '/');
if (typeof date == 'object') {
date += "";
date = date && date.replace(reg, '/');
}
date = new Date(date)
const o = {
'M+': date.getMonth() + 1, // 月份
......@@ -202,6 +204,7 @@ export function formatDate(date, fmt) {
/**
* @desc 函数防抖
* @param func 函数
......