Files
dvcp_v2_wechat_app/project/sanjianxi/AppNeighborLinkage/AppNeighborLinkage.vue

185 lines
4.4 KiB
Vue
Raw Normal View History

2022-04-15 16:19:53 +08:00
<template>
<div class="AppNeighborLinkage">
<div class="header">
<div class="search">
<u-search placeholder="请输入需要搜索的内容" v-model="keyword" :show-action="false"></u-search>
</div>
<div class="select">
2022-04-18 09:52:37 +08:00
<div class="item" @click="typeSelect">
2022-04-18 16:07:52 +08:00
<AiSelect class="right" v-model="type" dict="yesOrNo">
<span v-if="!type">全部状态</span>
<span v-else>{{ type }}</span>
<u-icon name="arrow-down-fill" color="#666666" size="28"></u-icon>
</AiSelect>
2022-04-18 09:52:37 +08:00
</div>
2022-04-18 16:07:52 +08:00
<div class="item" @click="isShowDate = true">
<span v-if="!checkTime">时间选择</span>
<span v-else>{{ checkTime }}</span>
2022-04-18 09:52:37 +08:00
<u-icon name="arrow-down-fill" color="#666666" size="28"></u-icon>
</div>
2022-04-18 16:07:52 +08:00
<u-picker mode="time" :params="params" v-model="isShowDate" @confirm="onDateChange"></u-picker>
2022-04-15 16:19:53 +08:00
</div>
</div>
2022-04-18 09:52:37 +08:00
2022-04-18 17:34:57 +08:00
<div class="section" v-if="list.length">
2022-04-18 16:07:52 +08:00
<div class="card" @click="$linkTo('./neighborDetail')">
<div class="info">
<p>帮助赵顺伟咨询户口迁移问题帮助赵顺伟咨询</p>
<div><span>事件日期</span><span>2022-04-15</span></div>
<div><span>四邻对象</span><span>李白</span></div>
</div>
<div class="status">
<span></span><span>待审核</span>
</div>
</div>
2022-04-18 09:52:37 +08:00
</div>
2022-04-18 17:34:57 +08:00
<AiEmpty description="暂无数据" class="emptyWrap" v-else />
2022-04-18 09:52:37 +08:00
2022-04-18 16:07:52 +08:00
<div class="btn" v-if="isShowDate == false">
2022-04-18 09:52:37 +08:00
<div class="myInfo" @click="$linkTo('./myNeighborInfo')">我的四邻信息</div>
2022-04-18 11:54:05 +08:00
<div class="addBtn" @click="$linkTo('./addLinkage')">添加联动记录</div>
2022-04-18 09:52:37 +08:00
</div>
2022-04-15 16:19:53 +08:00
</div>
</template>
<script>
export default {
name: "AppNeighborLinkage",
appName: "四邻联动",
data() {
return {
keyword:'',
2022-04-18 09:52:37 +08:00
type: '',
2022-04-18 16:07:52 +08:00
checkTime: '',
isShowDate: false,
params: {
year: true,
month: true,
day: true,
},
list: [],
current: 1,
2022-04-15 16:19:53 +08:00
}
},
2022-04-18 09:52:37 +08:00
onShow() {
this.$dict.load('yesOrNo')
2022-04-18 16:07:52 +08:00
this.getList()
2022-04-18 09:52:37 +08:00
},
2022-04-15 16:19:53 +08:00
methods: {
2022-04-18 16:07:52 +08:00
onDateChange(e) {
this.checkTime = `${e.year}-${e.month}-${e.day}`
2022-04-15 16:19:53 +08:00
},
2022-04-18 16:07:52 +08:00
getList() {
2022-04-18 17:34:57 +08:00
// this.$instance.post('/app/apppartyfourresident/listFourResident').then(res=>{
// console.log(res);
// })
2022-04-18 16:07:52 +08:00
}
2022-04-15 16:19:53 +08:00
}
}
</script>
<style lang="scss" scoped>
.AppNeighborLinkage {
.header {
2022-04-18 09:52:37 +08:00
position: fixed;
top: 0;
left: 0;
width: 100%;
2022-04-15 16:19:53 +08:00
.search {
box-sizing: border-box;
padding: 24px 32px;
background: #4181FF;
height: 112px;
}
.select {
2022-04-18 09:52:37 +08:00
display: flex;
2022-04-15 16:19:53 +08:00
height: 112px;
2022-04-18 09:52:37 +08:00
line-height: 112px;
background: #FFF;
.item {
flex: 1;
text-align: center;
}
}
}
.section {
padding: 244px 32px 140px 32px;
box-sizing: border-box;
.card {
background: #FFF;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.04);
border-radius: 16px;
2022-04-18 16:07:52 +08:00
margin-bottom: 24px;
2022-04-18 09:52:37 +08:00
.info {
padding: 20px 30px 30px;
box-sizing: border-box;
border-bottom: 1px solid #DDDDDD;
2022-04-18 16:07:52 +08:00
p {
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
div {
span:first-child {
color: #999999;
margin-right: 32px;
}
}
2022-04-18 17:34:57 +08:00
div:first-child {
margin-top: 32px;
}
2022-04-18 09:52:37 +08:00
}
.status {
padding: 32px 32px;
span:first-child {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #FF883C;
margin-right: 10px;
}
}
}
}
.btn {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
padding: 16px 32px;
box-sizing: border-box;
display: flex;
2022-04-18 16:07:52 +08:00
background: #F3F6F9;
2022-04-18 09:52:37 +08:00
.myInfo,
.addBtn {
flex: 1;
height: 88px;
line-height: 88px;
text-align: center;
color: #FFF;
background: #4181FF;
border-radius: 16px;
}
.myInfo {
margin-right: 20px;
color: #A0C0FF;
background: #FFF;
border: 1px solid #A0C0FF;
2022-04-15 16:19:53 +08:00
}
}
2022-04-18 16:07:52 +08:00
::v-deep .AiSelect {
display: inline-block;
}
2022-04-18 17:34:57 +08:00
::v-deep .emptyWrap {
margin-top: 200px;
}
2022-04-15 16:19:53 +08:00
}
</style>