diff --git a/src/api/votingElection.ts b/src/api/votingElection.ts new file mode 100644 index 0000000..5cf736a --- /dev/null +++ b/src/api/votingElection.ts @@ -0,0 +1,15 @@ +import { request } from '@/utils/http' + +// 获取投票选举(正在进行) +export function getCategoryData() { + return request.http({ + url: '/api/vote_progress' + }) +} + +export function feedback(data: any) { + return request.http({ + url: '/api/t.feedback/add', + data + }) +} \ No newline at end of file diff --git a/src/pages/votingElection/index.vue b/src/pages/votingElection/index.vue index 126385a..ca427dc 100644 --- a/src/pages/votingElection/index.vue +++ b/src/pages/votingElection/index.vue @@ -1,44 +1,47 @@