diff --git a/src/apps/AppHelpDeclaration/add.vue b/src/apps/AppHelpDeclaration/add.vue
index 80f6000a..51b7eb05 100644
--- a/src/apps/AppHelpDeclaration/add.vue
+++ b/src/apps/AppHelpDeclaration/add.vue
@@ -64,7 +64,7 @@
上传佐证材料(最多9张)
-
-
{{ item.applyItem }}
-
{{ $dict.getLabel('integralApplyStatus',item.status) }}
-
-
-
积分+{{ item.applyIntegral }}
-
{{ item.createTime }}
+
+
+
+
{{ item.applyItem }}
+
{{ $dict.getLabel('integralApplyStatus',item.status) }}
+
+
+
积分+{{ item.applyIntegral }}
+
{{ item.createTime }}
+
+
diff --git a/src/project/pidu/AppPointsApply/addPoints.vue b/src/project/pidu/AppPointsApply/addPoints.vue
index 99d76248..5be5f90c 100644
--- a/src/project/pidu/AppPointsApply/addPoints.vue
+++ b/src/project/pidu/AppPointsApply/addPoints.vue
@@ -12,7 +12,7 @@
@@ -37,9 +37,7 @@ export default {
}
},
onLoad(opt) {
-
if(opt) {
- console.log(opt);
this.getDetail(opt.id)
}
document.title = '积分申请'
@@ -48,9 +46,8 @@ export default {
getDetail(id) {
this.$http.post(`/app/appintegralmemberapply/queryDetailById?id=${id}`).then(res=> {
if(res?.data) {
- // console.log(res);
this.form = res.data
- this.form.files = [res.data.voucherImageUrl]
+ this.form.files = [{url:res.data.voucherImageUrl}]
}
})
},
@@ -58,21 +55,23 @@ export default {
if(this.flag) return
if(!this.form.applyItem) {
- return this.$toast('请输入申请事项')
+ return this.$u.toast('请输入申请事项')
}
if(!this.form.applyIntegral) {
- return this.$toast('请输入积分数量')
+ return this.$u.toast('请输入积分数量')
+ }
+
+ if(this.form.files.length) {
+ this.form.voucherImageUrl = this.form.files[0].url
}
this.flag = true
- this.$http.post(`/app/appintegralmemberapply/addOrUpdate`,{
- ...this.form,
- voucherImageUrl: 'http://respub.sinoecare.net/20221130/1-20221130092429.jpeg'
- }).then(res=> {
+
+ this.$http.post(`/app/appintegralmemberapply/addOrUpdate`,{...this.form}).then(res=> {
if(res.code == 0) {
this.flag = false
- this.$toast('提交成功')
+ this.$u.toast('提交成功')
setTimeout(() => {
uni.navigateBack()
}, 600)