// 谣言相关接口 import fetch from '@/common/fetch.js'; // import BASE_URL from './base.js'; const BASE_URL = 'https://app.xjwljb.com:9090/report_xj/frontAPI/' const LIST = BASE_URL + '/achieveRumorList' const Vote = BASE_URL + '/businessVoteRecord/isVote' const Add = BASE_URL + '/voteRumor' // 谣言列表 export function getRumorList() { return fetch.post(LIST).then(res => res); } // 用户是否投票 // export function isVote(data) { // return fetch.post(Vote, data).then(res => res); // } // 用户投票 export function addVote(data) { return fetch.post(Add, data, {}, {'Content-Type': 'application/x-www-form-urlencoded'}).then(res => res); }