事务记录
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="emptyWrap">
|
<div class="emptyWrap">
|
||||||
<img class="emptyImg" :src="emptyImg">
|
<img class="emptyImg" :src="emptyImg" :class="noPermit ? 'small-img' : ''">
|
||||||
<div class="emptyText" v-html="description"></div>
|
<div class="emptyText" v-html="description"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -39,6 +39,11 @@ export default {
|
|||||||
height: initial;
|
height: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.small-img{
|
||||||
|
width: 282px;
|
||||||
|
height: 306px;
|
||||||
|
}
|
||||||
|
|
||||||
.emptyText {
|
.emptyText {
|
||||||
font-size: 29px;
|
font-size: 29px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<div class="no-message" v-else>
|
<div class="no-message" v-else>
|
||||||
<image src="https://cdn.cunwuyun.cn/wxAdmin/img/message.png"/>
|
<image src="https://cdn.cunwuyun.cn/wxAdmin/img/message.png"/>
|
||||||
<p>您还未添加过入户调查走访<br>点击<b>新增按钮</b>试试吧~</p>
|
<p>您还未添加过事务记录<br>点击<b>新增按钮</b>试试吧~</p>
|
||||||
</div>
|
</div>
|
||||||
<AiFixedBtn>
|
<AiFixedBtn>
|
||||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="gotoAdd()"/>
|
<div class="addBtn iconfont iconfont-iconfangda" @tap="gotoAdd()"/>
|
||||||
|
|||||||
@@ -22,12 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</u-index-list>
|
</u-index-list>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty v-if="!list.length"/>
|
<AiEmpty v-if="!list.length" :noPermit="true" />
|
||||||
<!-- <div class="id-list">
|
|
||||||
<div class="item" v-for="(item, index) in list" :key="index">
|
|
||||||
<u-index-anchor :index="item.label" />
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="footer-btn" @click="toAddList">我添加的</div>
|
<div class="footer-btn" @click="toAddList">我添加的</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,162 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="list">
|
|
||||||
<div class="list-content">
|
|
||||||
<u-index-list :scrollTop="scrollTop" :index-list="indexList">
|
|
||||||
<div v-for="(letter, index) in indexList" :key="index">
|
|
||||||
<u-index-anchor :index="letter"/>
|
|
||||||
<div class="item" v-for="(item, index) in list.filter(e=>e.nameInitials==letter)">
|
|
||||||
<div class="title">{{item.label}}</div>
|
|
||||||
<div class="phone-list">
|
|
||||||
<div class="item-info">
|
|
||||||
<p>{{item.name}}</p>
|
|
||||||
<div class="phone">
|
|
||||||
<span>{{item.type}}</span>{{item.phone}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</u-index-list>
|
|
||||||
</div>
|
|
||||||
<AiEmpty v-if="!list.length"/>
|
|
||||||
<!-- <div class="id-list">
|
|
||||||
<div class="item" v-for="(item, index) in list" :key="index">
|
|
||||||
<u-index-anchor :index="item.label" />
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="footer-btn" @click="toAddList">我添加的</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { mapState } from 'vuex'
|
|
||||||
export default {
|
|
||||||
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
scrollTop: 0,
|
|
||||||
list: [],
|
|
||||||
indexList: []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: { ...mapState(['user']) },
|
|
||||||
mounted() {
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
document.title = "便民通讯录"
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
callPhone(phone) {
|
|
||||||
uni.makePhoneCall({phoneNumber: phone})
|
|
||||||
},
|
|
||||||
getList() {
|
|
||||||
this.$http.post(`/app/appconvenientaddressbook/list`, null, {
|
|
||||||
params: {
|
|
||||||
areaId: this.user.areaId,
|
|
||||||
isPublic: 1,
|
|
||||||
resource: "portal",
|
|
||||||
size: 999
|
|
||||||
}
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.indexList = [...new Set(res.data.records.map(e=>e.nameInitials))];
|
|
||||||
this.list = res.data.records;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
toAddList() {
|
|
||||||
// this.$emit('change', {
|
|
||||||
// type: 'MyAddList',
|
|
||||||
// })
|
|
||||||
uni.navigateTo({url: `./myAddList`})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
onPageScroll(e) {
|
|
||||||
this.scrollTop = e.scrollTop;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.list {
|
|
||||||
background-color: #F3F6F9;
|
|
||||||
.list-content{
|
|
||||||
padding-bottom: 112px;
|
|
||||||
// .title{
|
|
||||||
// padding-left: 48px;
|
|
||||||
// line-height: 64px;
|
|
||||||
// font-size: 26px;
|
|
||||||
// font-family: PingFangSC-Semibold, PingFang SC;
|
|
||||||
// font-weight: 600;
|
|
||||||
// color: #999;
|
|
||||||
// }
|
|
||||||
.item{
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.phone-list{
|
|
||||||
background-color: #fff;
|
|
||||||
width: 100%;
|
|
||||||
.item-info{
|
|
||||||
width: 680px;
|
|
||||||
padding: 32px 48px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
|
|
||||||
p{
|
|
||||||
font-size: 32px;
|
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #333;
|
|
||||||
line-height: 44px;
|
|
||||||
word-break: break-all;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
width: 100%;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
.phone{
|
|
||||||
font-size: 26px;
|
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
|
||||||
color: #333;
|
|
||||||
line-height: 36px;
|
|
||||||
width: 100%;
|
|
||||||
word-break: break-all;
|
|
||||||
span{
|
|
||||||
display: inline-block;
|
|
||||||
margin-right: 16px;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.footer-btn{
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
height: 112px;
|
|
||||||
line-height: 112px;
|
|
||||||
background: #3975C6;
|
|
||||||
box-shadow: 0px 1px 0px 0px #EEEEEE;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
font-size: 32px;
|
|
||||||
font-family: PingFangSC-Medium, PingFang SC;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #FFF;
|
|
||||||
z-index: 999;
|
|
||||||
}
|
|
||||||
::v-deep .u-index-anchor {
|
|
||||||
top: 0!important;
|
|
||||||
}
|
|
||||||
.phone-icon{
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
vertical-align: sub;
|
|
||||||
position: absolute;
|
|
||||||
top: 60px;
|
|
||||||
right: 64px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -83,7 +83,6 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.myAddList {
|
.myAddList {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #F3F6F9;
|
|
||||||
.list-content{
|
.list-content{
|
||||||
padding-bottom: 112px;
|
padding-bottom: 112px;
|
||||||
.item-info{
|
.item-info{
|
||||||
@@ -130,7 +129,6 @@ export default {
|
|||||||
}
|
}
|
||||||
.empty{
|
.empty{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #fff;
|
|
||||||
img{
|
img{
|
||||||
width: 282px;
|
width: 282px;
|
||||||
height: 306px;
|
height: 306px;
|
||||||
|
|||||||
Reference in New Issue
Block a user