Files
dvcp_v2_wxcp_app/src/project/saas/AppCooperationPropaganda/sendScoped.vue

109 lines
2.5 KiB
Vue
Raw Normal View History

2022-08-30 18:08:25 +08:00
<template>
<div class="sendScoped">
2022-08-31 17:05:17 +08:00
<div class="checkedBox">
<div class="item" v-for="(item,index) in checkList" :key="index" @click="checkBtn(item)">
<div class="left">
<icon type="success" size="18" v-if="item.checked"/>
<icon type="circle" size="18" v-else />
<div class="title">{{ item.name }}</div>
</div>
<div class="right" v-if="item.name != '全部居民群'">
<div v-if="item.name == '按部门选择' && deptSelect.length">已选择{{ 1 }}名成员</div>
<div v-if="item.name == '按网格选择' && girdSelect.length">已选择{{ 2 }}名成员</div>
<u-icon name="arrow-right" color="#CCD0D3"></u-icon>
</div>
2022-08-31 13:43:21 +08:00
</div>
</div>
2022-08-30 18:08:25 +08:00
<div class="btn">
2022-08-31 17:05:17 +08:00
<div class="submitBtn" @click="submit">确定</div>
2022-08-30 18:08:25 +08:00
</div>
</div>
</template>
<script>
export default {
name: 'sendScoped',
data() {
return {
2022-08-31 13:43:21 +08:00
value: '',
checkList: [
2022-08-31 17:05:17 +08:00
{ name: '全部居民群', checked: true },
2022-08-31 13:43:21 +08:00
{ name: '按部门选择', checked: false },
{ name: '按网格选择', checked: false }
],
2022-08-31 17:05:17 +08:00
showContent: false,
type: '',
deptSelect: [],
girdSelect: [],
2022-08-30 18:08:25 +08:00
}
},
methods: {
2022-08-31 13:43:21 +08:00
checkBtn(e) {
this.checkList.forEach(v=> v.checked = false)
e.checked = true
2022-08-31 17:05:17 +08:00
if(e.name == '按部门选择' || e.name == '按网格选择') {
uni.navigateTo({url: `./scopedSelect?type=0`})
} else {
uni.navigateTo({url: `./scopedSelect?type=1`})
}
},
submit() {
uni.navigateBack()
2022-08-31 13:43:21 +08:00
}
2022-08-30 18:08:25 +08:00
},
onLoad(o) {
2022-08-31 17:05:17 +08:00
this.type = o.type;
2022-08-30 18:08:25 +08:00
document.title = "选择发送范围"
},
}
</script>
<style lang="scss" scoped>
.sendScoped {
2022-08-31 17:05:17 +08:00
.checkedBox {
background: #FFF;
padding: 0 32px;
2022-08-31 13:43:21 +08:00
box-sizing: border-box;
2022-08-31 17:05:17 +08:00
.item {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #DDD;
padding: 30px 0;
box-sizing: border-box;
.left,
.right {
display: flex;
align-items: center;
.title {
margin-left: 12px;
}
}
}
2022-08-31 13:43:21 +08:00
}
2022-08-31 17:05:17 +08:00
2022-08-30 18:08:25 +08:00
.btn {
position: fixed;
bottom: 0;
left: 0;
background: #FFF;
display: flex;
width: 100%;
height: 128px;
padding: 24px 32px;
box-sizing: border-box;
.submitBtn {
flex: 1;
height: 80px;
line-height: 80px;
text-align: center;
border-radius: 8px;
border: 2px solid #CCCCCC;
background: #1365DD;
color: #FFF;
}
}
}
</style>