积分审核
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user