积分审核

This commit is contained in:
liuye
2023-03-31 17:09:09 +08:00
parent c5f9f3bf37
commit 190c3dd7d0
2 changed files with 107 additions and 21 deletions

View File

@@ -23,7 +23,7 @@
</div>
<div class="footer">
<div class="confirm">通过</div>
<div class="cancel" @click="show=true">不通过</div>
<div class="cancel" @click="show=true">不通过</div>6+-
</div>
<u-popup v-model="show" mode="bottom">
<div class="textarea">
@@ -43,19 +43,45 @@ export default {
name: "detail",
data() {
return {
keyword: '',
areaId: '',
areaName: '',
show: false,
value: ''
value: '',
id: '',
info: {},
};
},
onLoad(option) {
this.id = option.id
this.getDetail()
},
onShow() {
},
methods: {
getDetail() {
this.$http.post(`/app/appintegraluserapply/queryDetailById?id=${id}`).then(res=> {
if(res?.data) {
this.info = res.data
}
})
},
confirm() {
if(!this.value) {
return this.$u.toast('请输入不通过理由')
}
this.submit(0)
},
agree() {
this.$confirm('确定通过该条申请').then(() => {
this.submit(1)
})
},
submit(status) {
this.$http.post(`/app/appintegraluserapply/auditById?id=${this.id}&auditStatus=${status}&auditDesc=${this.value}`).then(res=> {
if(res?.data) {
this.$u.toast('操作成功')
this.getDetail()
}
})
}
},
};
@@ -175,7 +201,6 @@ uni-page-body {
}
.cancel {
color: #1365DD;
line-height: 76px;
box-sizing: border-box;
}
.confirm {