Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_cp/dv_cp_wechat_app into dev
This commit is contained in:
@@ -56,7 +56,8 @@ export default {
|
||||
userList: {},
|
||||
userId: '',
|
||||
areaId: '',
|
||||
areaName:''
|
||||
areaName:'',
|
||||
girdId: ''
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
@@ -88,7 +89,8 @@ export default {
|
||||
var info = {
|
||||
girdMemberId: this.userId,
|
||||
residentId: item.id,
|
||||
name: item.name
|
||||
name: item.name,
|
||||
girdId: this.girdId
|
||||
}
|
||||
checkUserList.push(info)
|
||||
}
|
||||
@@ -117,6 +119,7 @@ export default {
|
||||
this.userId = option.id
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.girdId = option.girdId
|
||||
},
|
||||
onShow() {
|
||||
document.title = '新增责任家庭'
|
||||
|
||||
@@ -42,7 +42,8 @@ export default {
|
||||
current:1,
|
||||
userId: '',
|
||||
edit: true,
|
||||
checked: true
|
||||
checked: true,
|
||||
girdId: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -54,7 +55,7 @@ export default {
|
||||
})
|
||||
},
|
||||
toAddFamily(){
|
||||
uni.navigateTo({url: `./AddFamily?id=${this.userId}`})
|
||||
uni.navigateTo({url: `./AddFamily?id=${this.userId}&girdId=${this.girdId}`})
|
||||
},
|
||||
userClick(index) {
|
||||
this.list[index].checked = !this.list[index].checked
|
||||
@@ -91,6 +92,7 @@ export default {
|
||||
},
|
||||
onLoad(option) {
|
||||
this.userId = option.id
|
||||
this.girdId = option.girdId
|
||||
console.log(this.userId)
|
||||
},
|
||||
onShow() {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="right">
|
||||
<div class="name">{{item.name}}
|
||||
<span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
|
||||
<span class="family-btn" @click="linkTo(`./FamilyList?id=${item.id}`)" v-if="item.checkType == 1">责任家庭 ></span>
|
||||
<span class="family-btn" @click="linkTo(`./FamilyList?id=${item.id}&girdId=${userGird.id}`)" v-if="item.checkType == 1">责任家庭 ></span>
|
||||
</div>
|
||||
<p>{{item.girdName}} </p>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
<template>
|
||||
<div class="AppMailList">
|
||||
<AiTopFixed>
|
||||
<div class="area-content">
|
||||
<AiAreaPicker :areaId="user.areaId" :value="areaId" @select="areaSelect" :name.sync="areaName">
|
||||
<img src="./img/local-icon.png" alt="">
|
||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="24"/>
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="list-content">
|
||||
<u-index-list :scrollTop="scrollTop" :index-list="indexList">
|
||||
<div v-for="(letter, index) in indexList" :key="index">
|
||||
@@ -41,11 +51,15 @@ export default {
|
||||
return {
|
||||
scrollTop: 0,
|
||||
list: [],
|
||||
indexList: []
|
||||
indexList: [],
|
||||
areaId: '',
|
||||
areaName: ''
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
mounted() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getList()
|
||||
uni.$on('updateList', () => {
|
||||
this.getList()
|
||||
@@ -56,13 +70,17 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getList()
|
||||
},
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
},
|
||||
getList() {
|
||||
this.$http.post(`/app/appconvenientaddressbook/list`, null, {
|
||||
params: {
|
||||
areaId: this.user.areaId,
|
||||
areaId: this.areaId,
|
||||
isPublic: 1,
|
||||
resource: "portal",
|
||||
size: 999
|
||||
@@ -89,6 +107,23 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppMailList {
|
||||
::v-deep .fixed{
|
||||
z-index: 9999;
|
||||
}
|
||||
.area-content {
|
||||
width: 100%;
|
||||
line-height: 64px;
|
||||
|
||||
img {
|
||||
width: 42px;
|
||||
vertical-align: middle;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.u-icon {
|
||||
margin-left: 6px;
|
||||
}
|
||||
}
|
||||
// background-color: #F3F6F9;
|
||||
.list-content{
|
||||
padding-bottom: 112px;
|
||||
|
||||
BIN
src/apps/AppMailList/img/local-icon.png
Normal file
BIN
src/apps/AppMailList/img/local-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user