|
|
@ -3,7 +3,7 @@ import service from "." |
|
|
|
const CanApi = { |
|
|
|
//获取候选人列表
|
|
|
|
getCandidates(token){ |
|
|
|
return service.post('/getCandidates/',{token}); |
|
|
|
return service.post('https://api.xxcg.com/investvote/getCandidates/',{token}); |
|
|
|
}, |
|
|
|
|
|
|
|
//投票
|
|
|
@ -11,11 +11,11 @@ const CanApi = { |
|
|
|
let formData = new FormData(); |
|
|
|
formData.append("token", token); |
|
|
|
formData.append("code", code); |
|
|
|
return service.post('/vote',formData) |
|
|
|
return service.post('https://api.xxcg.com/investvote/vote',formData) |
|
|
|
}, |
|
|
|
//查看详情
|
|
|
|
Detail(jwcode){ |
|
|
|
return service.get(`/getVotesByCandidate/`+`${jwcode}`) |
|
|
|
return service.get(`https://api.xxcg.com/investvote/getVotesByCandidate/`+`${jwcode}`) |
|
|
|
} |
|
|
|
} |
|
|
|
|