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