群发居民群

This commit is contained in:
shijingjing
2022-09-14 14:37:54 +08:00
parent dfe5007a77
commit 5fd22dfc3a
2 changed files with 41 additions and 23 deletions

View File

@@ -56,19 +56,14 @@ export default {
},
submit() {
if(this.sendType == 'ResidentsGroup') {
this.getWxGroups().then(()=>{
setTimeout(() => {
uni.navigateBack()
}, 600)
})
this.getWxGroups()
} else if(this.sendType == 'Residents' || this.sendType == 'CircleOfFriends') {
this.getSendScope().then(()=>{
setTimeout(() => {
uni.navigateBack()
}, 600)
})
this.getSendScope()
}
uni.setStorageSync('sendScope', this.sendScope)
setTimeout(() => {
uni.navigateBack()
}, 600)
},
// 群发居民群
getWxGroups() {
@@ -120,6 +115,7 @@ export default {
},
onShow() {
this.sendScope = uni.getStorageSync('sendScope') || ''
// 部门、网格
const girdArr = uni.getStorageSync('girdSelect')
if(girdArr.length) {
this.girdListIds = girdArr.map(e=>e.id)
@@ -128,6 +124,7 @@ export default {
if(deptArr.length) {
this.deptListIds = deptArr.map(v=>v.id)
}
// 性别
this.sex = uni.getStorageSync('gender')
// 标签
if(this.sendType == 'Residents') {