From 8a896f2289019927f07394964e9a8307900d589e Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 4 Apr 2023 16:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppNewFarmerBank/AppNewFarmerBank.vue | 55 ++++++++++++------- .../fengdu/AppNewFarmerBank/integralAdd.vue | 4 ++ .../fengdu/AppNewFarmerBank/signIn.vue | 2 +- 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue index f8921b2..c554af9 100644 --- a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue +++ b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue @@ -30,27 +30,31 @@

兑换得好物

-
+

精选动态

-
+
更多
-
-
-
百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…
-
- - - 99+ +
+
+
+
百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…
+
+ + + 99+ +
+
+
+
-
- -
+
+
@@ -63,16 +67,24 @@ export default { data() { return { status: null, + current: 1, + list: [], } }, computed: { ...mapState(['user']) }, methods: { - getList() { - this.$instance.post(``).then(res=> { + getList(moduleId) { + this.$instance.post(`/app/appcontentinfo/list-web`,null,{ + params: { + moduleId: moduleId, + current: this.current, + // areaId: this.user.areaId + } + }).then(res=> { if(res?.data) { - console.log(res); + this.list = res.data.records.length > 3 ? res.data.records.slice(2) : res.data.records } }) }, @@ -103,14 +115,19 @@ export default { this.status = 1 } }) + }, + getModule() { + this.$instance.post(`/app/appintegraluserapply/queryModuleByName`).then(res=> { + if(res?.data) { + this.getList(res.data) + } + }) } + }, onShow() { - uni.setNavigationBarTitle({ - title: '功德银行' - }); - // this.getList() this.getStatus() + this.getModule() }, } diff --git a/src/project/fengdu/AppNewFarmerBank/integralAdd.vue b/src/project/fengdu/AppNewFarmerBank/integralAdd.vue index 924335c..93abfbf 100644 --- a/src/project/fengdu/AppNewFarmerBank/integralAdd.vue +++ b/src/project/fengdu/AppNewFarmerBank/integralAdd.vue @@ -84,6 +84,10 @@ export default { return this.$u.toast('请选择事件类型') } + if (!this.form.content) { + return this.$u.toast('请输入详细描述') + } + if ((this.form.images.length + this.form.videos.length) > 9) { return this.$u.toast('图片和视频不得超过9个') } else { diff --git a/src/project/fengdu/AppNewFarmerBank/signIn.vue b/src/project/fengdu/AppNewFarmerBank/signIn.vue index 8e0d6c9..5dbac65 100644 --- a/src/project/fengdu/AppNewFarmerBank/signIn.vue +++ b/src/project/fengdu/AppNewFarmerBank/signIn.vue @@ -5,7 +5,7 @@

今日已完成签到

-

积分+{{ data.changeIntegral || 0}}

+

积分+{{ data.changeIntegral || 0}}

时间
{{ data.createTime.slice(0,16) }}