diff --git a/src/project/fengdu/AppVote/AppVote.vue b/src/project/fengdu/AppVote/AppVote.vue index 92e69860..b7473119 100644 --- a/src/project/fengdu/AppVote/AppVote.vue +++ b/src/project/fengdu/AppVote/AppVote.vue @@ -1,19 +1,19 @@ @@ -24,26 +24,38 @@ export default { appName: "公众投票", data() { return { - detail: {} + detail: {}, + list: [] } }, methods: { getDetail() { - this.$http.post("/app/vote/detail", null, {}) + this.$http.post("/app/appvideovoteconfig/queryDetailByCorpId", null, { + withoutToken: true + }).then(res => { + if (res?.data) { + this.detail = res.data + } + }) }, getList() { - this.$http.post("/app/vote/list", null, {}) + this.$http.post("/app/appvideoinfo/list", null, { + withoutToken: true, + param: {size: 20} + }).then(res => { + if (res?.data) { + this.list = res.data.records + } + }) }, handleDetail(id) { uni.navigateTo({url: './voteDetail?id=' + id}) } }, - created() { - // this.getDetail() - // this.getList() + onShow() { + this.getDetail() + this.getList() }, - - } @@ -52,6 +64,12 @@ export default { min-height: 100vh; background: #fff; + .AiGroup { + width: 100%; + padding-right: 32px; + box-sizing: border-box; + } + .voteItem { height: 240px; border: 1px solid #CCCCCC; @@ -60,6 +78,7 @@ export default { padding: 24px; box-sizing: border-box; font-family: PingFangSC; + align-items: flex-start; b { font-size: 34px; diff --git a/src/project/fengdu/AppVote/voteDetail.vue b/src/project/fengdu/AppVote/voteDetail.vue index 75eb79ab..71853395 100644 --- a/src/project/fengdu/AppVote/voteDetail.vue +++ b/src/project/fengdu/AppVote/voteDetail.vue @@ -1,10 +1,13 @@