111
QYF-GitLab1
2025-01-03 2ee8ddb1ecac7df4198e54e08ec7f22daf4b07c0
assets/js/config.js
@@ -5,8 +5,7 @@
// export const epubUrl = "http://182.92.203.7:3007/epubReadMobile/";
export const epubUrl = "https://jsek.bnuic.com/epubReadMobile/#/";
// export const pdfUrl = "http://182.92.203.7:3007/pdfRead/";
// const pdfUrl = "https://jsek.bnuic.com/pdfRead" // 正式
export const pdfUrl = "http://192.168.3.196:8080/pdfRead"
const pdfUrl = "https://jsek.bnuic.com/pdfRead" // 正式
export const requestTimeOut = 300000; // 请求超时时间
export const tokenKey = "jsek-token";
export const userInfoKey = "website-front-userInfo"; // 用户信息key
@@ -26,6 +25,14 @@
  /^(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}$/; //座机号正则
export const shareUrl = "https://jsek.bnuic.com/QRCodePorject/#/otherJumpPage"; //微信分享进入小程序
// 自定义refCode
const refCodes = {
  message: 'MessageCode', // 消息、通知
  talk: 'TalkCode', // 话题
  teachingPlan: 'jsek_teachingPlan', // 教学计划类型
  homework: 'homework', // 新建作业类型
  teachInteraction: 'TeachInteraction' //教学互动
}
const config = {
  requestCtx,
  requestTimeOut,
@@ -44,6 +51,7 @@
  pdfUrl,
  appId,
  textReaderUrl,
  shareUrl
  shareUrl,
  refCodes
};
export default config;