59 lines
2.9 KiB
HTML
59 lines
2.9 KiB
HTML
<div>
|
|
<!--头部、背景图片-->
|
|
<div class="header">
|
|
<div class="container">
|
|
|
|
</div>
|
|
</div>
|
|
<div v-if="tableData.length > 0" class="info" v-for="item in tableData">
|
|
<div style="display: flex;">
|
|
<div>
|
|
<van-image v-if="item.sex === '男'" width="40" round height="40" src="/assets/platform/img/checkin/man.png"></van-image>
|
|
<van-image v-if="item.sex === '女'" width="40" round height="40" src="/assets/platform/img/checkin/woman.png"></van-image>
|
|
</div>
|
|
<div style="margin-left: 10px">
|
|
<div style="color: #236eb4; font-weight: bold">{{item.username}}</div>
|
|
<div style="font-size: 12px; color: grey">{{item.unitname}}</div>
|
|
</div>
|
|
</div>
|
|
<div style="margin-top: 8px">
|
|
<div>{{item.content}}</div>
|
|
<van-row style="margin-top: 4px">
|
|
<van-col span="8" v-for="(file, index) in item.files" style="height: 104px">
|
|
<van-image style="padding-right: 4px; width: 96%; height: 100px" @click="openImage(item.files, index)"
|
|
:src="FILE_DOMAIN + file.url"></van-image>
|
|
</van-col>
|
|
</van-row>
|
|
</div>
|
|
<div style="display: flex; justify-content: space-between; margin-top: 6px; align-items: center;">
|
|
<div>
|
|
<span style="color: grey">{{moment(item.time).format('HH:mm')}}</span>
|
|
<span @click="delContent(item)" style="font-size: 12px; margin-left: 6px; color: #236eb4">删除</span>
|
|
</div>
|
|
<div :style="item.me_zan === false ? 'font-size: 20px' : 'font-size: 20px; color: red'">
|
|
<div @click="zan(item)" style="display: flex; align-items: center">
|
|
<van-icon name="good-job-o" style="font-size: 20px" :badge="item.zan_count"></van-icon>
|
|
<span style="margin-left: 8px; font-size: 14px">赞</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<van-empty
|
|
v-if="tableData.length==0"
|
|
class="custom-image"
|
|
image="/none.png"
|
|
description="暂无数据"
|
|
></van-empty>
|
|
</div>
|
|
|
|
<!--签到成功确认框-->
|
|
<van-popup v-model="signShow" round class="sign_pop">
|
|
<van-image width="300px" round src="/assets/platform/img/checkin/sign.png" style="position: absolute; top: -150px;z-index: 9999"></van-image>
|
|
<div style="line-height: 25px; margin-top: 30px; letter-spacing: 1px">
|
|
<div style="font-size: 16px">恭喜获得天数+1</div>
|
|
<div style="color: grey">您是今日第<span style="color: chocolate; font-weight: bold">{{signCount}}</span>位签到</div>
|
|
<div class="sign_button">
|
|
<van-button @click="signShow = false" round type="info" size="small" color="#236eb4">我知道了</van-button>
|
|
</div>
|
|
</div>
|
|
</van-popup> |