Files
dvcp_v2_wxcp_app/src/apps/AppVillagersCircle/Reject.vue

99 lines
2.1 KiB
Vue
Raw Normal View History

2022-02-15 18:42:21 +08:00
<template>
<div class="Reject">
<div class="text-area">
2022-02-22 19:14:35 +08:00
<div class="title"><span style="color:#FF4466;">*</span>不通过理由</div>
2022-02-17 19:45:25 +08:00
<textarea placeholder="请输入" maxlength="200" v-model="value"></textarea>
2022-03-04 15:51:10 +08:00
<div style="color:#999;text-align:right;">{{value.length}}/200</div>
2022-02-15 18:42:21 +08:00
</div>
<div class="footer" @click="submit">
<div class="btn">保存</div>
</div>
</div>
</template>
<script>
export default {
name: "Reject",
data() {
return {
value: '',
2022-02-17 21:10:48 +08:00
id: '',
2022-02-21 09:17:17 +08:00
pass: '', // 0 驳回发布信息 1 驳回发布评论
2022-02-18 17:05:32 +08:00
flag: '', // 0 驳回信息 1 驳回评论
2022-02-15 18:42:21 +08:00
};
},
onShow() {
2022-02-22 15:20:55 +08:00
document.title = '评论审核'
2022-02-15 18:42:21 +08:00
},
2022-02-17 19:45:25 +08:00
onLoad(o) {
this.id = o.id
2022-02-17 21:10:48 +08:00
this.pass = o.pass
2022-02-18 17:05:32 +08:00
this.flag = o.flag
2022-02-15 18:42:21 +08:00
},
methods: {
submit() {
2022-02-22 19:14:35 +08:00
if(!this.value) {
return this.$u.toast('请输入不通过理由')
}
2022-02-21 09:17:17 +08:00
let url = ['/app/appvillagercircleinfo/examine','/app/appvillagercirclecomment/examine']
this.$http.post(url[this.flag],null, {
2022-02-18 17:05:32 +08:00
params: {
id: this.id,
pass: this.pass,
opinion: this.value
}
}).then(() => {
this.$u.toast('保存成功')
uni.$emit('update')
setTimeout(()=>{
uni.navigateBack({delta: 2})
},600)
2022-02-17 21:10:48 +08:00
})
2022-02-15 18:42:21 +08:00
}
},
};
</script>
<style scoped lang="scss">
.Reject {
.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;
}
textarea{
width: 100%;
height: 500px;
word-break: break-all;
}
}
.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>