| | |
| | | export const requestCtx = "https://www.caupress.cn"; // 请求地址 |
| | | export const requestTimeOut = 300000; // 请求超时时间 |
| | | export const tokenKey = "zgnydx-token"; |
| | | export const userInfoKey = "zgnydx-userInfo"; // 用户信息key |
| | | export const appId = 1; |
| | | export const appRefCode = "caupress"; |
| | | export const goodsStore = `defaultGoodsStore${appId}`; // 默认商品库 |
| | | export const publicStore = `defaultPublicStore${appId}`; // 默认资源开放仓储 |
| | | export const publicRepository = `defaultPublicRepository${appId}`; // 默认资源开放库 |
| | | export const requestCtx = 'https://yxjy.pumcp.com/' // 请求地址 |
| | | // export const appId = 1051; |
| | | |
| | | // export const requestCtx = 'http://172.31.31.145' // 请求地址 |
| | | // export const requestCtx = 'http://172.0.0.1' // 请求地址 |
| | | export const appId = 1 |
| | | |
| | | export const requestTimeOut = 300000 // 请求超时时间 |
| | | export const tokenKey = 'xiehe-token' |
| | | export const userInfoKey = 'xiehe-userInfo' // 用户信息key |
| | | export const appRefCode = 'PUMC' |
| | | export const goodsStore = `defaultGoodsStore${appId}` // 默认商品库(书城) |
| | | export const publicStore = `defaultPublicStore${appId}` // 默认资源开放仓储 |
| | | export const publicRepository = `defaultPublicRepository${appId}` // 默认资源开放库 |
| | | |
| | | export const reg_tel = |
| | | /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; // 电话号正则 |
| | | /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/ // 电话号正则 |
| | | export const reg_telphone = /^0\d{2}-\d{8}$|^0\d{3}-\d{7}$/ //座机号正则 |
| | | |
| | | const pdfUrl = "https://www.caupress.cn/pdfRead/"; |
| | | // const pdfUrl = "http://192.168.3.196:8083/pdfRead/"; |
| | | // refcode |
| | | const refCode = { |
| | | // 收藏资源库 |
| | | FavoriteMathVideo: 'FavoriteMathVideo', |
| | | FavoriteMathPicture: 'FavoriteMathPicture', |
| | | FavoriteMathAudio: 'FavoriteMathAudio', |
| | | FavoriteMathModel: 'FavoriteMathModel', |
| | | // 轮播图 |
| | | bannerCode: 'jilin_banner\\jilin_digitalResource', |
| | | // 标准 |
| | | criterion: 'jilin_criterion', |
| | | // 资讯 |
| | | information: 'jilin_information', |
| | | // 关于我们 |
| | | aboutUs: 'jilin_aboutUs', |
| | | // 荣誉奖励 |
| | | honorAwards: 'jilin_honorAwards', |
| | | // 联系我们 |
| | | contactUs: 'jilin_contactUs', |
| | | // 仓库库 |
| | | pictureCode: 'jilin_imgResourceLibrary', |
| | | audioCode: 'jilin_audiosResourceLibrary', |
| | | videoCode: 'jilin_videosResourceLibrary', |
| | | modelCode: 'jilin_modelsResourceLibrary', |
| | | // 商品库 |
| | | imageStore: 'jilin_imgLibrary\\jilin_imageStore', |
| | | videoStore: 'jilin_videosLibrary\\jilin_videosStore', |
| | | audiosStore: 'jilin_audiosLibrary\\jilin_audiosStore', |
| | | modelStore: 'jilin_modelsLibrary\\jilin_modelsStore', |
| | | // 会员商品库 |
| | | memberImage: 'jilin_imgLibrary\\jilin_memberImage', |
| | | memberAudios: 'jilin_audiosLibrary\\jilin_memberAudios', |
| | | memberVideos: 'jilin_videosLibrary\\jilin_memberVideos', |
| | | memberModels: 'jilin_modelsLibrary\\jilin_memberModels', |
| | | // 最新资源库 |
| | | newImageStore: 'jilin_imgLibrary\\jilin_newImageStore', |
| | | newaudiosStore: 'jilin_audiosLibrary\\jilin_newaudiosStore', |
| | | newVideosStore: 'jilin_videosLibrary\\jilin_newVideosStore', |
| | | newModelsStore: 'jilin_modelsLibrary\\jilin_newModelsStore', |
| | | // 首页推荐资源 |
| | | recommendImgStore: 'jilin_imgLibrary\\jilin_recommendedImage', |
| | | recommendAudioStore: 'jilin_audiosLibrary\\jilin_recommendedAudio', |
| | | recommendVideoStore: 'jilin_videosLibrary\\jilin_recommendedVideo', |
| | | recommendModelStore: 'jilin_modelsLibrary\\jilin_recommendedModel', |
| | | } |
| | | |
| | | // 频道refCode |
| | | export const refCodes = { |
| | | index: { |
| | | banner: "caupress_banner\\caupress_homepageBanner", |
| | | information: "caupress_informationCenter\\caupress_information", |
| | | notice: "caupress_informationCenter\\caupress_notice", |
| | | column: "caupress_homepageColumn", |
| | | honor: "caupress_honor", |
| | | }, |
| | | // 意见反馈 |
| | | Feedback: "feedback", |
| | | // 投稿 |
| | | Contribution: "caupress_contributedWorks", |
| | | // 隐私政策 |
| | | Privacy:"caupress_protocol", |
| | | // 法律声明 |
| | | Statement:"caupress_protocol", |
| | | //教师认证formtypeItem |
| | | teacherCertification: "caupress_teacherCertification", |
| | | // 电子样书cmsTypeRefcode |
| | | electronicSampleApplication: "electronicSampleApplication", |
| | | // 电子样书申请 |
| | | applyBook: "applyBook", |
| | | // 纸质样书申请 |
| | | applyEntityBook: "applyEntityBook", |
| | | // 资源下载申请 |
| | | productDownLoad: "productDownLoad", |
| | | }; |
| | | |
| | | export const seriesList = { |
| | | caupress_yyxbkspkxygclzyxljc: "应用型本科食品科学与工程类专业系列教材", |
| | | caupress_ptgdyxsplzyxljc: "普通高等院校食品类专业系列教材", |
| | | caupress_ptgdjyfjylylzysswghjc: "普通高等院校风景园林/园林系列教材", |
| | | caupress_gdzyjyxmsyzyjpjc: "高等职业教育畜牧兽医专业精品教材", |
| | | caupress_gdzyjyxmsyzyqgxjhxljc: |
| | | "高等职业教育畜牧兽医专业群“工学结合”系列教材", |
| | | caupress_xczxbwnmpxxl: "乡村振兴百万农民培训系列教材", |
| | | caupress_tdzyglyyxzxfzsdzyxljc: "土地资源管理应用型转型发展试点专业系列教材", |
| | | caupress_ptgdyxtdzyglzyjpkcj: "普通高等院校土地资源管理专业精品课程建设教材", |
| | | caupress_gdzyjygklqcnygcnjxlghjc: |
| | | "高等职业教育工科类汽车、农业工程、农机系列规划教材", |
| | | }; |
| | | const wxLogin = { |
| | | appid: 'wx2b9d4a6308fd03d6', |
| | | scope: 'snsapi_login', |
| | | logInRedirectURL: encodeURIComponent(requestCtx + '/website'), |
| | | authenRedirectURL: encodeURIComponent(requestCtx + '/website/#/userInfo'), |
| | | } |
| | | |
| | | const config = { |
| | | requestCtx, |
| | |
| | | userInfoKey, |
| | | appRefCode, |
| | | goodsStore, |
| | | publicStore, |
| | | publicRepository, |
| | | refCodes, |
| | | reg_tel, |
| | | seriesList, |
| | | pdfUrl |
| | | }; |
| | | export default config; |
| | | appId, |
| | | refCode, |
| | | wxLogin, |
| | | reg_telphone, |
| | | } |
| | | export default config |