diff --git a/ruoyi-ui/src/api/kaohe/vote.js b/ruoyi-ui/src/api/kaohe/vote.js index 8c385ce..297779e 100644 --- a/ruoyi-ui/src/api/kaohe/vote.js +++ b/ruoyi-ui/src/api/kaohe/vote.js @@ -42,3 +42,13 @@ export function delVote(id) { method: 'delete' }) } + + +// 首页查询评分接口和参数 +export function listByConditons(query) { + return request({ + url: '/kaohe/vote/listByConditons', + method: 'get', + params: query + }) +} diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 6fe2b6b..164f72d 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -2,9 +2,13 @@
-
{{ item.voteTitle }}
-
+
+
{{ item.voteTitle }}
+
{{ item.sTime + '-' + item.eTime }}
+
+
去评分
+ +