zhongshujie
2 天以前 1695fcd442fe2cefb6d3b63869ad8a72ebd5210a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import axios from "axios";
export let activeBook = {}; // 资源请求地址
export let ceShiActiveBook = {
  name: "toddlerSportsSafetyProtection",
  rootCmsItemId: "68651",
  storeRefcode: "defaultGoodsStore3",
  bookId: "3845",
  bookName: "婴幼儿运动安全与保护",
  textbookOwnership: "北京师范大学出版社",
  bookThemeColor: "#7ACAB4",
  chapterThemeColor: {
    1: "#7ACAB4",
    2: "#7ACAB4",
    3: "#7ACAB4",
  },
  pageThemeColor: {
    1: "#7ACAB4",
    2: "#7ACAB4",
    3: "#7ACAB4",
  },
  resourceUrl:
    "https://jsek.bnuic.com/books/resource/toddlerSportsSafetyProtection",
  requestCtx: "https://jsek.bnuic.com/",
  textbookComponents: [
    "1E16353F",
    "B7C5B45D",
    "A3298FCF",
    "A04689E6",
    "CB0EACEC",
    "CF2E1400",
    "395B91FC",
    "229EC161",
    "BC9B0CBD",
    "7D5594B3",
    "C05AA457",
    "94FF5E48",
    "E30C0843",
    "86F0A1B8",
    "D2D30448",
  ],
}; //  测试图书资源请求地址
export let goodsStore = "";
// 请求教材配置信息
const getBookConfig = async (ctx) => {
  const response = await axios.get(ctx + "/bookConfig.json");
  return response.data;
};
 
// 请求教材资源信息
const getBookResources = async (ctx) => {
  const response = await axios.get(ctx + "/bookResources.json");
  return response.data;
};
 
export const appId = 0;
export const requestTimeOut = 300000; // 请求超时时间
export const tokenKey = "token";
//  export const tokenKey = "website-front-token"
 
const config = {
  activeBook,
  ceShiActiveBook,
  requestTimeOut,
  tokenKey,
  goodsStore,
  appId,
  getBookConfig,
  getBookResources,
};
export default config;