Files
dvcp_v2_wxcp_app/library/apps/AppPeopleList/Content.vue

100 lines
2.1 KiB
Vue
Raw Normal View History

2022-02-15 09:29:42 +08:00
<template>
<div class="Content">
<div class="text-area">
2022-02-25 15:55:09 +08:00
<div class="title"><span class="tips">*</span>不通过理由</div>
2022-03-04 15:41:24 +08:00
<textarea placeholder="请输入" maxlength="200" v-model="opinion"></textarea>
<div class="num">{{opinion.length}}/200</div>
2022-02-25 15:55:09 +08:00
<!-- <u-input v-model="opinion" type="textarea" placeholder="请输入" maxlength="500" /> -->
2022-02-15 09:29:42 +08:00
</div>
2022-02-16 14:23:54 +08:00
<div class="footer" @click="examine(0)">
2022-02-15 09:29:42 +08:00
<div class="btn">保存</div>
</div>
</div>
</template>
<script>
export default {
name: "Content",
data() {
return {
2022-02-16 14:23:54 +08:00
opinion: '',
id: '',
2022-02-15 09:29:42 +08:00
};
},
onShow() {
document.title = '居民档案审核'
},
onLoad(option) {
2022-02-16 14:23:54 +08:00
this.id = option.id
2022-02-15 09:29:42 +08:00
},
methods: {
2022-02-16 14:23:54 +08:00
examine(pass) {
2022-02-25 15:55:09 +08:00
if(!this.opinion) {
return this.$u.toast('请输入不通过理由')
}
2022-02-16 14:23:54 +08:00
this.$http.post(`/app/appresident/examine?id=${this.id}&pass=${pass}&opinion=${this.opinion}`).then((res) => {
if (res.code == 0) {
this.$u.toast('审核成功')
uni.$emit('updatePeople')
setTimeout(() => {
2022-02-25 15:55:09 +08:00
uni.navigateBack({delta: 2})
2022-02-16 14:23:54 +08:00
}, 600)
}
})
2022-02-15 09:29:42 +08:00
}
},
};
</script>
<style scoped lang="scss">
.Content {
.text-area{
padding: 34px 32px;
background-color: #fff;
.title{
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
line-height: 44px;
margin-bottom: 32px;
2022-02-25 15:55:09 +08:00
.tips{
font-size: 32px;
margin-right: 8px;
color: #f46;
}
2022-02-15 09:29:42 +08:00
}
textarea{
width: 100%;
height: 500px;
word-break: break-all;
}
}
2022-02-25 15:55:09 +08:00
.num{
text-align: right;
color: #999;
}
2022-02-15 09:29:42 +08:00
.footer {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
}
.btn {
width: 100%;
height: 112px;
line-height: 112px;
text-align: center;
background: #3975C6;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFF;
}
.line-bg {
width: 100%;
height: 16px;
background: #F5F5F5;
}
}
</style>