| | |
| | | import axios from "axios"; |
| | | export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 资源请求地址 |
| | | // export const resourceCtx = "https://www.tepcb.com/books/resource/"; // 资源请求地址 |
| | | // export const resourceCtx = "https://jsek.bnuic.com/books/resource/"; // 资源请求地址 |
| | | // export const tinymceBaseUrl = "https://jsek.bnuic.com/home/"; |
| | | export const tinymceBaseUrl = "https://www.tepcb.com/home/"; |
| | | export let activeBook = {}; // 资源请求地址 |
| | | |
| | | // export let activeBook = { |
| | | // name: "aviationPassengerTransport6th", |
| | | // rootCmsItemId: "86281", |
| | | // storeRefcode: "defaultGoodsStore1", |
| | | // bookId: "5033", |
| | | // bookName: "民航旅客运输(第6版)", |
| | | // }; |
| | | |
| | | export let goodsStore = ""; |
| | | // 请求教材配置信息 |
| | | const getBookConfig = async (ctx) => { |
| | | const response = await axios.get(ctx + "/bookConfig.json"); |
| | | return response.data; |
| | | }; |
| | | export const appId = 1; |
| | | |
| | | export const appId = 0; |
| | | export const requestTimeOut = 300000; // 请求超时时间 |
| | | //export const tokenKey = "jsek-token"; |
| | | export const tokenKey = "website-front-token"; |
| | | export const tokenKey = "token"; |
| | | // export const tokenKey = "website-front-token" |
| | | |
| | | const config = { |
| | | resourceCtx, |
| | | tinymceBaseUrl, |
| | | activeBook, |
| | | requestTimeOut, |
| | | tokenKey, |