diff --git a/src/project/pidu/AppPointsApply/AppPointsApply.vue b/src/project/pidu/AppPointsApply/AppPointsApply.vue
index 00212cbe..c46c3383 100644
--- a/src/project/pidu/AppPointsApply/AppPointsApply.vue
+++ b/src/project/pidu/AppPointsApply/AppPointsApply.vue
@@ -5,14 +5,14 @@
申请记录
-
+
-
完成群发任务完成群发任务完成群发任务完成群发任务完成群发任务完成群发任务
-
审核通过
+
{{ item.applyItem }}
+
{{ item.status }}
-
积分+5
-
2020-12-11 10:10
+
积分+{{ item.applyIntegral }}
+
{{ item.createTime }}
@@ -24,17 +24,33 @@ export default {
appName: '积分申请',
data() {
return {
-
+ current: 1,
+ list: [],
}
},
onShow() {
-
+ this.getPointsList()
},
methods: {
toAdd() {
uni.navigateTo({url: './addPoints'})
+ },
+ getPointsList() {
+ this.$http.post(`/app/appintegralmemberapply/listByGirdMember`, null, {
+ params: {
+ current: this.current,
+ }
+ }).then(res=> {
+ if(res?.data) {
+ this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
+ }
+ })
}
},
+ onReachBottom() {
+ this.current ++
+ this.getPointsList()
+ }
}
diff --git a/src/project/pidu/AppPointsApply/addPoints.vue b/src/project/pidu/AppPointsApply/addPoints.vue
index 96b95683..98ecf1b1 100644
--- a/src/project/pidu/AppPointsApply/addPoints.vue
+++ b/src/project/pidu/AppPointsApply/addPoints.vue
@@ -2,21 +2,21 @@
@@ -28,22 +28,50 @@ export default {
return {
value: '',
form: {
+ applyItem: '',
+ applyIntegral: '',
+ voucherImageUrl: '',
files: []
- }
+ },
+ flag: false,
}
},
onShow() {
document.title = '积分申请'
},
methods: {
+ submit() {
+ if(this.flag) return
+ if(!this.form.applyItem) {
+ return this.$toast('请输入申请事项')
+ }
+
+ if(!this.form.applyIntegral) {
+ return this.$toast('请输入积分数量')
+ }
+
+ this.flag = true
+ this.$http.post(`/app/appintegralmemberapply/addOrUpdate`,{
+ ...this.form,
+ voucherImageUrl: 'http://respub.sinoecare.net/20221130/1-20221130092429.jpeg'
+ }).then(res=> {
+ if(res.code == 0) {
+ this.flag = false
+ this.$toast('提交成功')
+ setTimeout(() => {
+ uni.navigateBack()
+ }, 600)
+ }
+ })
+ }
}
}