Files
dvcp_v2_wxcp_app/src/project/saas/AppPropagandaStatistics/groupSendResident.vue

116 lines
2.6 KiB
Vue
Raw Normal View History

2022-07-12 18:10:42 +08:00
<template>
2022-07-13 14:35:20 +08:00
<div class="groupSendResident">
<AiTopFixed>
<div class="search">
<div class="searchBox">
<u-search placeholder="请输入任务名称" v-model="name" :show-action="false"></u-search>
</div>
2022-07-14 15:40:57 +08:00
<div class="filterBtn"><img src="./images/shaixuan.png" alt="">筛选</div>
2022-07-13 14:35:20 +08:00
</div>
</AiTopFixed>
<div class="resident_list">
2022-07-14 15:40:57 +08:00
<div class="card" @click="toDetail" v-for="(item,index) in list" :key="index">
2022-07-13 14:35:20 +08:00
<div class="card_title">
2022-07-14 15:40:57 +08:00
<div class="card_left">{{ item.content }}</div>
2022-07-13 14:35:20 +08:00
<div class="card_right"><span></span>进行中</div>
</div>
2022-07-14 15:40:57 +08:00
<div>创建时间<span>{{ item.createTime }}</span></div>
2022-07-13 14:35:20 +08:00
<div>共需<span class="num">56</span>名成员完成群发目前已完成<span class="num">65%</span></div>
2022-07-14 15:40:57 +08:00
<div>创建部门<span>{{ item.createUserDept }}</span></div>
2022-07-13 14:35:20 +08:00
</div>
</div>
</div>
2022-07-12 18:10:42 +08:00
</template>
<script>
export default {
data() {
return {
current: 1,
2022-07-14 15:40:57 +08:00
name: '',
list: [],
2022-07-12 18:10:42 +08:00
}
},
2022-07-13 16:59:58 +08:00
methods: {
toDetail() {
uni.navigateTo({url: `./groupSendDetail`})
2022-07-14 15:40:57 +08:00
},
getList() {
this.$http.post(`/app/appmasssendingtask/list`, null, {
params: {
current: this.current,
}
}).then(res=> {
if(res?.data) {
this.list = this.current == 1? res.data.records : [...res.data.records, ...this.list]
}
console.log(res);
})
2022-07-13 16:59:58 +08:00
}
},
2022-07-13 14:35:20 +08:00
onShow() {
document.title = '群发居民群'
2022-07-14 15:40:57 +08:00
this.getList()
2022-07-13 14:35:20 +08:00
},
2022-07-12 18:10:42 +08:00
onReachBottom() {
this.current ++
},
}
</script>
<style lang="scss" scoped>
2022-07-13 14:35:20 +08:00
.groupSendResident {
.search {
display: flex;
height: 80px;
align-items: center;
justify-content: space-between;
.searchBox {
width: 562px;
}
.filterBtn {
2022-07-14 15:40:57 +08:00
img {
width: 28px;
height: 28px;
}
2022-07-13 14:35:20 +08:00
}
}
.resident_list {
padding: 24px 32px 20px 32px;
box-sizing: border-box;
.card {
background: #FFF;
border-radius: 16px;
padding: 30px;
2022-07-14 15:40:57 +08:00
margin-bottom: 24px;
2022-07-13 14:35:20 +08:00
& > div {
padding: 10px 0;
}
.num {
color: #3AA0FF;
}
.card_title {
display: flex;
justify-content: space-between;
.card_left {
font-size: 32px;
color: #000000;
font-weight: 600;
}
.card_right {
span {
display: inline-block;
width: 16px;
height: 16px;
background: #3399FF;
border-radius: 50%;
margin-right: 10px;
}
}
}
}
}
}
2022-07-12 18:10:42 +08:00
</style>