app_tree_planting/config/api.js
2023-12-13 10:20:14 +08:00

92 lines
5.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

let apiRoot = 'https://wlcbzs.cn/';
let zwfw = 'https://app.zwfw.nmg.gov.cn/';
// let apiRoot = 'http://192.168.0.10:7019/';
let clinetUser = 'qmywzs/';
let clinetNews = 'qmywzs/';
let clinetDuty = 'qmywzs/';
let api = {
common: {
imgUrl: apiRoot + clinetDuty + "route/file/download/true/",
baseUrl: apiRoot + clinetDuty,
getAppVersion: apiRoot + clinetDuty + "app/appversion/get-number/4e59e156-1ebd-4477-876b-ff0a2dce0c99",
appDownloadUrl: apiRoot + clinetDuty + "app/appversion/download/4e59e156-1ebd-4477-876b-ff0a2dce0c99",
doUploadImg: apiRoot + clinetDuty + "app/file/uploadimage",
doUploadVideo: apiRoot + clinetDuty + "app/file/uploadvideo",
getAreaByPid: apiRoot + clinetDuty + "app/area/listbyparentidrelease/",
//app_id scope 固定base_info%2Cauth_user redirect_uri 应用地址(应用准入网关+应用上下文urlencode 编码,后面可拼接应用所需参数
getMsbAuthorize: zwfw + "dgov-authing/auth2.0/authorize",
getToken: zwfw + "dgov-authing/auth2.0/token",
getMsbUserInfo: zwfw + "dgov-authing/auth2.0/get_base_info",
msbAppId:'3b54b778-ef8b-417f-929d-5814f90e0e57',
msbAppSecret:'e9cf6bb8-2764-4129-b069-951d5870108b',
},
news: {
getMainFun: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease",
getNewsList: apiRoot + clinetNews +
"app/newscontent/listpagenewscontentrelease", //获取新闻列表 newsDirectoriesId
NEWS_MAIN_ID: "cadef8e1-1baf-4aec-a1b4-f002bd5e99f5", //新闻类型ID
NEWS_BANNER_ID: "cb7cd502-ff00-4d58-83c1-c54c57add14c",
NEWS_MAIN_FUNC: "f367f74b-3778-4801-a0c5-b85377a12a0b",
imgUrl: apiRoot + clinetNews + "route/file/download/true/",
getMainFunc: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease", //获取首页功能
getNewsDetail: apiRoot + clinetNews + "app/newscontent/getnewscontentbyidrelease/", //获取新闻详情
},
duty: {
getActivityList: apiRoot + clinetDuty + "app/activity/release/listpage",
getActivityDetail: apiRoot + clinetDuty + "app/activity/release/get/",
doSignActivity: apiRoot + clinetDuty + "app/activity-join/save",
doSignOrgActivity: apiRoot + clinetDuty + "app/activity-join-company/save",
getMineActivity: apiRoot + clinetDuty + "app/activity-join/myActivity",
getUnitActivity: apiRoot + clinetDuty + "app/activity-join-company/myActivity",
delMineActivity: apiRoot + clinetDuty + "app/activity-join/remove/",
getDutyExplain: apiRoot + clinetDuty + "app/activity-responsible/release/list",
doSearchCerif: apiRoot + clinetDuty + "app/activity-join/release/myCertificateListPageNoToken",
doSearchCerifUnit: apiRoot + clinetDuty +
"app/activity-join-company/release/myCertificateListPageNoToken", //收搜单位证书
getMineCertif: apiRoot + clinetDuty + "app/activity-join/myCertificateListPage",
getUnitSignInfo: apiRoot + clinetDuty + "app/activity-join-company/get/",
getMineSignInfo: apiRoot + clinetDuty + "app/activity-join/get/",
getMineReportList: apiRoot + clinetDuty + 'app/activity-report/listpage',
doSaveActivityReport: apiRoot + clinetDuty + 'app/activity-report/save',
doEditActivityReport: apiRoot + clinetDuty + 'app/activity-report/updateactivityreport/',
getActivityReportDetail: apiRoot + clinetDuty + 'app/activity-report/get/',
doDelActivityReport: apiRoot + clinetDuty + 'app/activity-report/remove/',
doSaveActivity: apiRoot + clinetDuty + "app/activity/save",
},
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 + "app/sms/verify-code/", //get 获取验证码
doLogin: apiRoot + clinetUser + "app/sign/phone", //post 登录
doRegister: apiRoot + clinetUser + "app/register/phone", //post 注册
doChangePhone: apiRoot + clinetUser + "app/user/updatephoneusername", //修改手机号 put
doChangePwd: apiRoot + clinetUser + "app/user/update-password", //put 修改密码
getUserInfo: apiRoot + clinetUser + "app/user/get-app-user", //获取用户基础信息
doUpdateUserIcon: apiRoot + clinetDuty + "app/user/update-avatar", //更新用户头像
doUpdateUserInfo: apiRoot + clinetDuty + "app/user/update-info", //更改用户信息
msbLogin:apiRoot+clinetDuty+"app/msblogin/release/getToken",//蒙速办登录
},
wechat: {
miniAppLogin: apiRoot + 'wechat/miniAppLogin',
mpLogin: apiRoot + 'wechat/mpLogin',
devLogin: apiRoot + 'wechat/devLogin',
mpConfig: apiRoot + 'wechat/mpConfig',
},
};
export default api;