From e6c053b04f6acc49141c567fecf51a31a4ce6246 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 30 Nov 2022 15:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E7=99=BD=E9=A1=B5+=20=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppHelpDeclaration/add.vue | 2 +- .../pidu/AppPointsApply/AppPointsApply.vue | 19 ++++++++------- src/project/pidu/AppPointsApply/addPoints.vue | 23 +++++++++---------- 3 files changed, 23 insertions(+), 21 deletions(-) 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张)
- +
diff --git a/src/project/pidu/AppPointsApply/AppPointsApply.vue b/src/project/pidu/AppPointsApply/AppPointsApply.vue index c9532810..1fc23fa4 100644 --- a/src/project/pidu/AppPointsApply/AppPointsApply.vue +++ b/src/project/pidu/AppPointsApply/AppPointsApply.vue @@ -5,16 +5,19 @@

申请记录

-
-
-
{{ 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)