194 lines
4.9 KiB
Vue
194 lines
4.9 KiB
Vue
|
|
<template>
|
||
|
|
<div class="AppFourNeighbor">
|
||
|
|
<AiTopFixed>
|
||
|
|
<div flex>
|
||
|
|
<div class="time-select" @click="showTimeSelect=true">
|
||
|
|
<img src="./components/img/time-icon.png" alt="" class="time-icon">
|
||
|
|
<span>{{search.time || '日期选择' }}</span>
|
||
|
|
<img src="./components/img/down-icon-666.png" alt="" v-if="!search.time" class="mar-r16">
|
||
|
|
</div>
|
||
|
|
<u-icon name="close-circle" color="#999" size="32" v-if="search.time" @click="clearTime" class="mar-r16"></u-icon>
|
||
|
|
<u-search placeholder="请输入四邻对象、描述、党员信息" :show-action="false" search-icon-color="#ccc" v-model="search.title"
|
||
|
|
@search="isMore = false, search.current = 1, getList()"/>
|
||
|
|
</div>
|
||
|
|
</AiTopFixed>
|
||
|
|
<div class="list-content">
|
||
|
|
<div class="item" @click="toDetail">
|
||
|
|
<div class="top">
|
||
|
|
<p class="title">帮助赵顺伟咨询户口迁移问题帮助赵顺伟咨询户口迁移问题</p>
|
||
|
|
<div class="info"><span class="label">党员信息</span>张三</div>
|
||
|
|
<div class="info"><span class="label">四邻对象</span>张三</div>
|
||
|
|
<div class="info"><span class="label">事件日期</span>2022-04-15</div>
|
||
|
|
</div>
|
||
|
|
<div class="bottom status0">
|
||
|
|
<span class="tips"></span>待审核
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="item">
|
||
|
|
<div class="top">
|
||
|
|
<p class="title">帮助赵顺伟咨询户口迁移问题帮助赵顺伟咨询户口迁移问题</p>
|
||
|
|
<div class="info"><span class="label">党员信息</span>张三</div>
|
||
|
|
<div class="info"><span class="label">四邻对象</span>张三</div>
|
||
|
|
<div class="info"><span class="label">事件日期</span>2022-04-15</div>
|
||
|
|
</div>
|
||
|
|
<div class="bottom status0">
|
||
|
|
<span class="tips"></span>待审核
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="footer" @click="toAdd">
|
||
|
|
<div class="btn">新增联动记录</div>
|
||
|
|
</div>
|
||
|
|
<u-picker v-model="showTimeSelect" mode="time" :params="params" @confirm="selectTime"></u-picker>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import {mapState} from "vuex";
|
||
|
|
|
||
|
|
export default {
|
||
|
|
name: 'AppFourNeighbor',
|
||
|
|
appName: '四邻联动',
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
search: {title: '', time: ''},
|
||
|
|
showTimeSelect: false,
|
||
|
|
params: {year: true, month: true, day: true, hour: false, minute: false, second: false},
|
||
|
|
}
|
||
|
|
},
|
||
|
|
computed: {
|
||
|
|
...mapState(['user']),
|
||
|
|
|
||
|
|
},
|
||
|
|
created() {
|
||
|
|
this.$dict.load('appSpecialTypeFive')
|
||
|
|
},
|
||
|
|
onShow() {
|
||
|
|
document.title = '四邻联动'
|
||
|
|
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
clearTime() {
|
||
|
|
this.search.time = ''
|
||
|
|
},
|
||
|
|
selectTime(e) {
|
||
|
|
this.search.time = e.year + '-' + e.month + '-' + e.day
|
||
|
|
},
|
||
|
|
toAdd() {
|
||
|
|
uni.navigateTo({url: './Add'})
|
||
|
|
},
|
||
|
|
toDetail() {
|
||
|
|
uni.navigateTo({url: './Detail'})
|
||
|
|
}
|
||
|
|
},
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.AppFourNeighbor {
|
||
|
|
// background-color: #F3F6F9;
|
||
|
|
::v-deep .AiTopFixed .u-search {
|
||
|
|
margin-bottom: 0 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mar-r16{
|
||
|
|
margin-right: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.time-select{
|
||
|
|
img{
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
vertical-align: bottom;
|
||
|
|
}
|
||
|
|
.time-icon{
|
||
|
|
width: 40px;
|
||
|
|
height: 40px;
|
||
|
|
}
|
||
|
|
span{
|
||
|
|
display: inline-block;
|
||
|
|
margin: 0 4px;
|
||
|
|
font-size: 28px;
|
||
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #666;
|
||
|
|
line-height: 40px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.list-content{
|
||
|
|
padding: 24px 32px 144px;
|
||
|
|
.item{
|
||
|
|
width: 100%;
|
||
|
|
background: #FFF;
|
||
|
|
box-shadow: inset 0px 0px 0px 0px #DDDDDD;
|
||
|
|
border-radius: 16px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
.top{
|
||
|
|
padding: 32px 32px 24px;
|
||
|
|
border-bottom: 1px solid #ddd;
|
||
|
|
.title{
|
||
|
|
font-size: 32px;
|
||
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #333;
|
||
|
|
line-height: 44px;
|
||
|
|
margin-bottom: 32px;
|
||
|
|
}
|
||
|
|
.info{
|
||
|
|
font-size: 26px;
|
||
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
||
|
|
line-height: 36px;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
color: #333;
|
||
|
|
.label{
|
||
|
|
display: inline-block;
|
||
|
|
color: #999;
|
||
|
|
width: 150px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.bottom{
|
||
|
|
padding: 32px;
|
||
|
|
font-size: 28px;
|
||
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
||
|
|
line-height: 40px;
|
||
|
|
.tips{
|
||
|
|
display: inline-block;
|
||
|
|
width: 8px;
|
||
|
|
height: 8px;
|
||
|
|
margin-right: 8px;
|
||
|
|
border-radius: 50%;
|
||
|
|
vertical-align: middle;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.status0{
|
||
|
|
color: #FF883C;
|
||
|
|
.tips{
|
||
|
|
background: #FF883C;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.footer {
|
||
|
|
width: 100%;
|
||
|
|
position: fixed;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
width: 100%;
|
||
|
|
height: 112px;
|
||
|
|
line-height: 112px;
|
||
|
|
text-align: center;
|
||
|
|
background: #3975C6;
|
||
|
|
font-size: 32px;
|
||
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
||
|
|
font-weight: 500;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|