Files
UNION_HUTB/target/classes/views/mobile/medicalAid/Review.html
T
2026-09-09 09:14:28 +08:00

136 lines
3.9 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<!---->
<style>
#app {
height: 100%;
}
.text-overflow {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.cell-card {
padding: 20px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
width: 90%;
margin: 20px auto;
border-radius: 20px;
}
.handleicon {
width: 50%;
text-align: center;
}
</style>
<div id="app" v-cloak>
<van-nav-bar
title="重大医疗补助列表"
left-arrow
placeholder
fixed
@click-left="location.href='/mobile/index'"
></van-nav-bar>
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model="loading"
:finished="finished"
:finished-text="tableData.length>0?'没有更多了':''"
@load="onLoad"
>
<van-cell v-for="o in tableData" class="cell-card" @click="openView(o)">
<div class="text-overflow" style="font-weight: bold;color: #409EFF">{{ o.user_name }}</div>
<van-divider></van-divider>
<van-row gutter="30" style="font-size: 12px">
<van-col span="8">
<div style="color: gray">申请时间</div>
<div class="text-overflow">{{o.apply_time}}</div>
</van-col>
<van-col span="8">
<div style="color: gray">所属单位</div>
<div class="text-overflow">{{o.unit_name}}</div>
</van-col>
<van-col span="8">
<div style="color: gray">疾病诊断</div>
<div class="text-overflow">{{o.disease_diagnosis}}</div>
</van-col>
</van-row>
<div style="position: absolute;right: 0;top: 5px">
<span :style="'color:'+o.state_color">{{o.state_name}}</span>
</div>
</van-cell>
<van-empty v-if="tableData.length==0" class="custom-image" image="/none.svg"
description="暂无数据">
</van-empty>
</van-list>
</van-pull-refresh>
</div>
<script>
new Vue({
el: '#app',
data() {
return {
list: [],
loading: false,
finished: false,
refreshing: false,
pageForm: {
pageNumber: 1,
pageSize: 5,
totalCount: 0
},
tableData: []
}
},
methods: {
async onRefresh() {
this.tableData = []
this.pageForm = {
pageNumber: 1,
pageSize: 5,
totalCount: 0
}
await this.onLoad()
setTimeout(() => {
this.refreshing = false
}, 1000)
},
async onLoad() {
this.loading = true
$.post('/mobile/medicalAid/serious/pageData', this.pageForm).then(res => {
this.loading = false
if (res.code === 0) {
this.tableData = this.tableData.concat(res.data.list)
if (this.tableData.length === res.data.totalCount) {
this.finished = true
} else {
this.finished = true
this.pageForm.pageNumber++
}
}
})
},
openView(o) {
window.location.href = '/mobile/medicalAid/serious/serious?id=' + o.id + '&state=' + o.state_id
}
}
})
</script>
<!--#
}
#-->