2023-12-13 10:20:14 +08:00
|
|
|
|
let apiRoot = 'https://wlcbzs.cn/';
|
|
|
|
|
let zwfw = 'https://app.zwfw.nmg.gov.cn/';
|
2023-03-03 19:29:04 +08:00
|
|
|
|
// let apiRoot = 'http://192.168.0.10:7019/';
|
2023-02-07 17:55:09 +08:00
|
|
|
|
let clinetUser = 'qmywzs/';
|
|
|
|
|
let clinetNews = 'qmywzs/';
|
|
|
|
|
let clinetDuty = 'qmywzs/';
|
2023-01-11 19:31:59 +08:00
|
|
|
|
let api = {
|
|
|
|
|
common: {
|
2023-02-07 17:55:09 +08:00
|
|
|
|
imgUrl: apiRoot + clinetDuty + "route/file/download/true/",
|
|
|
|
|
baseUrl: apiRoot + clinetDuty,
|
2023-12-13 10:20:14 +08:00
|
|
|
|
getAppVersion: apiRoot + clinetDuty + "app/appversion/get-number/4e59e156-1ebd-4477-876b-ff0a2dce0c99",
|
|
|
|
|
appDownloadUrl: apiRoot + clinetDuty + "app/appversion/download/4e59e156-1ebd-4477-876b-ff0a2dce0c99",
|
2023-02-08 17:59:16 +08:00
|
|
|
|
doUploadImg: apiRoot + clinetDuty + "app/file/uploadimage",
|
2023-02-24 18:11:28 +08:00
|
|
|
|
doUploadVideo: apiRoot + clinetDuty + "app/file/uploadvideo",
|
2023-03-03 19:29:04 +08:00
|
|
|
|
getAreaByPid: apiRoot + clinetDuty + "app/area/listbyparentidrelease/",
|
2023-12-13 10:20:14 +08:00
|
|
|
|
//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',
|
|
|
|
|
|
2023-01-11 19:31:59 +08:00
|
|
|
|
},
|
|
|
|
|
news: {
|
|
|
|
|
getMainFun: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease",
|
2023-01-13 16:21:31 +08:00
|
|
|
|
getNewsList: apiRoot + clinetNews +
|
|
|
|
|
"app/newscontent/listpagenewscontentrelease", //获取新闻列表 newsDirectoriesId
|
2023-02-07 17:55:09 +08:00
|
|
|
|
NEWS_MAIN_ID: "cadef8e1-1baf-4aec-a1b4-f002bd5e99f5", //新闻类型ID
|
|
|
|
|
NEWS_BANNER_ID: "cb7cd502-ff00-4d58-83c1-c54c57add14c",
|
2023-02-27 11:21:31 +08:00
|
|
|
|
NEWS_MAIN_FUNC: "f367f74b-3778-4801-a0c5-b85377a12a0b",
|
2023-02-07 17:55:09 +08:00
|
|
|
|
imgUrl: apiRoot + clinetNews + "route/file/download/true/",
|
2023-02-27 11:21:31 +08:00
|
|
|
|
getMainFunc: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease", //获取首页功能
|
2023-02-27 17:55:45 +08:00
|
|
|
|
getNewsDetail: apiRoot + clinetNews + "app/newscontent/getnewscontentbyidrelease/", //获取新闻详情
|
2023-02-07 17:55:09 +08:00
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
duty: {
|
|
|
|
|
getActivityList: apiRoot + clinetDuty + "app/activity/release/listpage",
|
|
|
|
|
getActivityDetail: apiRoot + clinetDuty + "app/activity/release/get/",
|
|
|
|
|
doSignActivity: apiRoot + clinetDuty + "app/activity-join/save",
|
2023-02-17 18:13:06 +08:00
|
|
|
|
doSignOrgActivity: apiRoot + clinetDuty + "app/activity-join-company/save",
|
2023-02-07 17:55:09 +08:00
|
|
|
|
getMineActivity: apiRoot + clinetDuty + "app/activity-join/myActivity",
|
2023-02-17 18:13:06 +08:00
|
|
|
|
getUnitActivity: apiRoot + clinetDuty + "app/activity-join-company/myActivity",
|
2023-02-07 17:55:09 +08:00
|
|
|
|
delMineActivity: apiRoot + clinetDuty + "app/activity-join/remove/",
|
2023-02-17 18:13:06 +08:00
|
|
|
|
getDutyExplain: apiRoot + clinetDuty + "app/activity-responsible/release/list",
|
2023-02-28 11:15:48 +08:00
|
|
|
|
doSearchCerif: apiRoot + clinetDuty + "app/activity-join/release/myCertificateListPageNoToken",
|
|
|
|
|
doSearchCerifUnit: apiRoot + clinetDuty +
|
2023-03-03 19:29:04 +08:00
|
|
|
|
"app/activity-join-company/release/myCertificateListPageNoToken", //收搜单位证书
|
2023-02-17 18:13:06 +08:00
|
|
|
|
getMineCertif: apiRoot + clinetDuty + "app/activity-join/myCertificateListPage",
|
|
|
|
|
getUnitSignInfo: apiRoot + clinetDuty + "app/activity-join-company/get/",
|
|
|
|
|
getMineSignInfo: apiRoot + clinetDuty + "app/activity-join/get/",
|
2023-02-24 18:11:28 +08:00
|
|
|
|
getMineReportList: apiRoot + clinetDuty + 'app/activity-report/listpage',
|
2023-02-27 11:21:31 +08:00
|
|
|
|
doSaveActivityReport: apiRoot + clinetDuty + 'app/activity-report/save',
|
2023-02-24 18:11:28 +08:00
|
|
|
|
doEditActivityReport: apiRoot + clinetDuty + 'app/activity-report/updateactivityreport/',
|
2023-02-27 11:21:31 +08:00
|
|
|
|
getActivityReportDetail: apiRoot + clinetDuty + 'app/activity-report/get/',
|
2023-02-24 18:11:28 +08:00
|
|
|
|
doDelActivityReport: apiRoot + clinetDuty + 'app/activity-report/remove/',
|
2023-03-03 19:29:04 +08:00
|
|
|
|
doSaveActivity: apiRoot + clinetDuty + "app/activity/save",
|
2023-01-11 19:31:59 +08:00
|
|
|
|
},
|
|
|
|
|
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: {
|
2023-02-27 17:55:45 +08:00
|
|
|
|
getVerifyCode: apiRoot + clinetUser + "app/sms/verify-code/", //get 获取验证码
|
|
|
|
|
doLogin: apiRoot + clinetUser + "app/sign/phone", //post 登录
|
|
|
|
|
doRegister: apiRoot + clinetUser + "app/register/phone", //post 注册
|
2023-01-11 19:31:59 +08:00
|
|
|
|
doChangePhone: apiRoot + clinetUser + "app/user/updatephoneusername", //修改手机号 put
|
2023-02-08 17:59:16 +08:00
|
|
|
|
doChangePwd: apiRoot + clinetUser + "app/user/update-password", //put 修改密码
|
|
|
|
|
getUserInfo: apiRoot + clinetUser + "app/user/get-app-user", //获取用户基础信息
|
|
|
|
|
doUpdateUserIcon: apiRoot + clinetDuty + "app/user/update-avatar", //更新用户头像
|
2023-12-13 10:20:14 +08:00
|
|
|
|
doUpdateUserInfo: apiRoot + clinetDuty + "app/user/update-info", //更改用户信息
|
|
|
|
|
msbLogin:apiRoot+clinetDuty+"app/msblogin/release/getToken",//蒙速办登录
|
2023-02-08 17:59:16 +08:00
|
|
|
|
|
2023-01-11 19:31:59 +08:00
|
|
|
|
},
|
|
|
|
|
wechat: {
|
|
|
|
|
miniAppLogin: apiRoot + 'wechat/miniAppLogin',
|
|
|
|
|
mpLogin: apiRoot + 'wechat/mpLogin',
|
|
|
|
|
devLogin: apiRoot + 'wechat/devLogin',
|
|
|
|
|
mpConfig: apiRoot + 'wechat/mpConfig',
|
|
|
|
|
},
|
|
|
|
|
};
|
2023-12-13 10:20:14 +08:00
|
|
|
|
export default api;
|