137 lines
4.1 KiB
HTML
137 lines
4.1 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>
|
|
|
|
<div>
|
|
<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.sqrname }}</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.sqsj}}</div>
|
|
</van-col>
|
|
<van-col span="8">
|
|
<div style="color: gray">所属单位</div>
|
|
<div class="text-overflow">{{o.unitname}}</div>
|
|
</van-col>
|
|
<van-col span="8">
|
|
<div style="color: gray">性 别</div>
|
|
<div class="text-overflow">{{o.sex}}</div>
|
|
</van-col>
|
|
</van-row>
|
|
<div style="position: absolute;right: 0;top: 5px">
|
|
<van-tag plain v-if="o.zt===1" type="warning">待基层工会审核</van-tag>
|
|
<van-tag plain v-if="o.zt===3" type="warning">待校工会审核</van-tag>
|
|
<van-tag plain v-if="o.zt===5" type="danger">审核不通过</van-tag>
|
|
<van-tag plain v-if="o.zt===4" type="success">审核通过</van-tag>
|
|
</div>
|
|
|
|
|
|
</van-cell>
|
|
<van-empty v-if="tableData.length==0" class="custom-image" image="/none.svg"
|
|
description="暂无数据">
|
|
</van-empty>
|
|
</van-list>
|
|
</div>
|
|
|
|
</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/knbf/sh/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/knbf/sh/detail?id=' + o.id + '&state=' + o.zt
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#--> |