This commit is contained in:
yanran200730
2022-05-25 11:49:20 +08:00
parent 7b2df28bbd
commit 343f2da882
2 changed files with 9 additions and 3 deletions

View File

@@ -141,8 +141,8 @@
this.list = res.data.map(v => {
return {
...v,
workInTime: v.workInTime ? this.$dayjs(v.workInTime).format('hh:mm') : '',
workOutTime: v.workOutTime ? this.$dayjs(v.workOutTime).format('hh:mm') : ''
workInTime: v.workInTime ? this.$dayjs(v.workInTime).format('HH:mm') : '',
workOutTime: v.workOutTime ? this.$dayjs(v.workOutTime).format('HH:mm') : ''
}
})

View File

@@ -47,7 +47,8 @@
<div class="album-list__wrapper">
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
<span v-if="item.photoHasRead === 'NO'">未查看</span>
<image src="./../images/icon.png" />
<image src="./../images/icon.png" v-if="!item.lastPhotoUrl" />
<image class="item-img" :src="item.lastPhotoUrl" v-else />
<div class="item-bottom">
<h2>{{ item.albumName }}</h2>
<div class="item-bottom__info">
@@ -332,6 +333,11 @@
width: 80px;
height: 80px;
}
.item-img {
width: 100%;
height: 100%;
}
}
}
}