+
diff --git a/src/project/fengdu/AppNewFarmerBank/integralAdd.vue b/src/project/fengdu/AppNewFarmerBank/integralAdd.vue
index 1a50013..aa4e587 100644
--- a/src/project/fengdu/AppNewFarmerBank/integralAdd.vue
+++ b/src/project/fengdu/AppNewFarmerBank/integralAdd.vue
@@ -2,13 +2,38 @@
详情描述
{{ form.content.length }}/300
+
+
上传图片
+
+
可上传图片,最多上传9张。
+
+
+
上传视频
+
+
可上传视频,最大30M。
+
+
+
+
+
@@ -19,19 +44,66 @@ export default {
data() {
return {
form: {
- type: 0,
+ applyItemId: 0,
+ applyIntegral: '',
+ applyItemName: '',
content: '',
- }
+ files: [],
+ girdId: '',
+ girdName: '',
+ },
+ list: [],
+ dictList: [],
}
},
onLoad(o) {
this.$dict.load(['clapEventStatus'])
+ this.getType()
+ },
+ watch: {
+ 'form.applyItemId'(v) {
+ if(v) {
+ this.form.applyItemName = this.list.filter(e=> (e.id==v))[0].ruleName
+ this.form.applyIntegral = this.list.filter(e => (e.id == v))[0].integral
+ }
+ }
+ },
+ methods: {
+ submit() {
+ this.$instance.post(`/app/appintegraluserapply/addOrUpdate`,{
+ ...this.form
+ }).then(res=> {
+ if(res?.data) {
+ console.log(res);
+ }
+ })
+ },
+ // 事件类型
+ getType() {
+ this.$instance.post(`/app/appintegralrule/listByFD`).then(res=> {
+ if(res?.data) {
+ this.list = res.data
+ this.dictList = res.data.map(v => {
+ return {
+ value: v.id,
+ label: v.ruleName
+ }
+ })
+ }
+ })
+ },
+ handleSelectGrid(v) {
+ this.form.girdName = v.girdName
+ this.form.girdId = v.girdId
+ }
}
}
\ No newline at end of file
diff --git a/src/project/fengdu/AppNewFarmerBank/integralApply.vue b/src/project/fengdu/AppNewFarmerBank/integralApply.vue
index ce0e175..a43f866 100644
--- a/src/project/fengdu/AppNewFarmerBank/integralApply.vue
+++ b/src/project/fengdu/AppNewFarmerBank/integralApply.vue
@@ -1,18 +1,18 @@
-
-
+
+
-
房钱午后卫生
-
2020-12-11 10:10
+
{{ item.applyItemName }}
+
{{ item.createTime }}
-
+5
+
+{{ item.applyIntegral }}
待审核
-
+
@@ -25,17 +25,34 @@ export default {
appName: "积分申请",
data() {
return {
-
+ current: 1,
+ list: [],
}
},
methods: {
toAdd() {
this.$linkTo('./integralAdd')
+ },
+ getList() {
+ this.$instance.post(`/app/appintegraluserapply/listByAppletUser`,null,{
+ params: {
+ current: this.current,
+ size: 10
+ }
+ }).then(res => {
+ if (res?.data) {
+ this.list = res.data.records
+ }
+ })
}
},
onShow() {
-
+ this.getList()
},
+ onReachBottom() {
+ this.current++
+ this.getList()
+ }
}