let apiRoot = 'http://219.159.20.131:8081/'; let clinetUser = 'usercenter/'; let clinetNews = 'news/'; let api = { common: { aboutUs: apiRoot + 'common/aboutUs.html', verify: apiRoot + "common/verify.html", }, news: { getMainFun: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease", getNewsList: apiRoot + clinetNews + "app/newscontent/listpagenewscontentrelease", //获取新闻列表 newsDirectoriesId NEWS_MAIN_TAB: "213f660a-1660-48da-b244-56de7cf5c27e", NEWS_BANNER_ID: "eab0ca3c-d35d-4c02-9397-ace2bdd10fc1", imgUrl: apiRoot + clinetNews + "route/file/downloadfile/true/" }, article: { index: apiRoot + 'article/index.html', category: apiRoot + 'article/category.html', detail: apiRoot + 'article/detail.html', comment: apiRoot + 'article/comment.html', commentDetail: apiRoot + "article/commentDetail.html", commentReply: apiRoot + "article/commentReply.html", addComment: apiRoot + 'article/addComment.html', addReply: apiRoot + 'article/addReply.html', like: apiRoot + "article/like.html", commentLike: apiRoot + "article/commentLike.html", commentReplyLike: apiRoot + "article/commentReplyLike.html", favorite: apiRoot + "article/favorite.html", favoriteList: apiRoot + "article/favoriteList.html", }, user: { getVerifyCode: apiRoot + clinetUser + "api/sms/getverificationcode/", //get 获取验证码 doLogin: apiRoot + clinetUser + "app/sign/login", //post 登录 doRegister: apiRoot + clinetUser + "app/register/saveregisteruser", //post 注册 doChangePhone: apiRoot + clinetUser + "app/user/updatephoneusername", //修改手机号 put doChangePwd: apiRoot + clinetUser + "app/user/updateuserpassword", //put 修改密码 getUserInfo: apiRoot + clinetUser + "app/user/getappuser", //获取用户基础信息 }, wechat: { miniAppLogin: apiRoot + 'wechat/miniAppLogin', mpLogin: apiRoot + 'wechat/mpLogin', devLogin: apiRoot + 'wechat/devLogin', mpConfig: apiRoot + 'wechat/mpConfig', }, }; export default api;