diff --git a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue index b1a1389..800eaac 100644 --- a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue +++ b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue @@ -10,7 +10,7 @@ 欢迎进入{{ user.areaName }}! -
签到
+
{{ status==1? '已签到':'签到' }}
@@ -30,27 +30,30 @@

兑换得好物

-
+

精选动态

-
+
更多
-
-
-
百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…
-
- - - 99+ +
+
+
+
百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…
+
+ + + 99+ +
+
+
+
-
- -
+
@@ -62,24 +65,32 @@ export default { appName: "功德银行", 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 } }) }, handleBannerClick() { - + }, - toPages(url) { + toPages(url,status) { if(!this.user.idNumber) { this.$dialog.confirm({ content: '您只有完成信息认证后,才可进行相关操作。', @@ -89,22 +100,41 @@ export default { }).catch(() => { }) } else { - this.$linkTo(url) + if(!status) { + this.$linkTo(url) + } else { + // 停留 + } + } + }, + getStatus() { + this.$instance.post(`/app/appwechatsigninfo/checkSign`).then(res=> { + if(res?.data !== null) { + 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() }, }