申请信息
-
+
@@ -98,7 +98,8 @@ export default {
info: {},
showVideo: false,
videoUrl: '',
- isEdit: false
+ isEdit: false,
+ flag: false
};
},
onLoad(option) {
@@ -117,6 +118,7 @@ export default {
this.info = res.data
this.info.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.name.split('.')[1])))
this.info.videos = res.data.files.filter(e => (['mp4'].includes(e.name.split('.')[1])))
+ this.flag = false
}
})
},
@@ -167,14 +169,42 @@ export default {
},
edit() {
if(this.isEdit) {
- this.editConfirm()
+ this.submit()
}else {
this.isEdit = true
}
},
- editConfirm() {
+ submit() {
+ if(this.flag) return
- }
+ if (!this.info.content) {
+ return this.$u.toast('请输入详细描述')
+ }
+
+ if ((this.info.images.length + this.info.videos.length) > 9) {
+ return this.$u.toast('图片和视频不得超过9个')
+ } else {
+ this.info.files = [...this.info.images,...this.info.videos]
+ }
+
+ this.flag = true
+ this.$http.post(`/app/appintegraluserapply/updateByGirdMember`,{
+ ...this.info,
+ userId: this.info.integralUserId,
+ // phone: this.info.phone,
+ // applyItemId: this.info.applyItemId,
+ // content: this.info.content,
+ // girdId: this.info.girdId,
+ // id: this.info.id
+ }).then(res=> {
+ if(res?.data) {
+ this.$u.toast('提交成功')
+ uni.$emit('updateList')
+ this.getDetail()
+ this.isEdit = false
+ }
+ })
+ },
},
};
diff --git a/src/project/fd/AppIntegralApply/integralAdd.vue b/src/project/fd/AppPointsReview/integralAdd.vue
similarity index 84%
rename from src/project/fd/AppIntegralApply/integralAdd.vue
rename to src/project/fd/AppPointsReview/integralAdd.vue
index 6ea4ef69..4fb287f6 100644
--- a/src/project/fd/AppIntegralApply/integralAdd.vue
+++ b/src/project/fd/AppPointsReview/integralAdd.vue
@@ -2,8 +2,10 @@
+
取消
{{isEdit ? '保存' : '编辑'}}
@@ -21,7 +21,7 @@
积分值
-
+
{{info.applyIntegral}}
*姓名
- {{form.name || '请选择'}}
-
+
+
+
+
@@ -16,7 +18,9 @@
*事件类型
-
+
+
*积分值
@@ -49,7 +53,7 @@
- {{user.girdName}}
+ {{form.girdName}}
{{ item.name }}
+