47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
var config = {
|
|
// 开发阶段的请求基地址
|
|
devBaseUrl: 'http://127.0.0.1:3000/api/json',
|
|
|
|
// 测试阶段的请求基地址
|
|
testBaseUrl: 'http://127.0.0.1:3000/test/api',
|
|
|
|
// 上线阶段的请求基地址
|
|
prodBaseUrl: 'http://127.0.0.1:3000/prod/api',
|
|
|
|
stage: "dev", // dev test prod
|
|
|
|
apiList: {
|
|
type: '/class', // 请求分类
|
|
classList: '/classList', // 请求分类列表
|
|
index: '/index',
|
|
info: '/agent/info',
|
|
classListt:"/classList",
|
|
search:'/agent/search',
|
|
modelList: '/modelList',
|
|
mechanism:"/mechanism"
|
|
},
|
|
|
|
// 底部导航
|
|
footerArr: [
|
|
{ title: '首页', icon: 'icon-home', path: 'index.html' },
|
|
{ title: '机构', icon: 'icon-jigou', path: 'mechanism.html' },
|
|
{ title: '模特', icon: 'icon-me', path: 'model.html' },
|
|
{ title: '我的', icon: 'icon-wo', path: 'my.html' },
|
|
],
|
|
|
|
|
|
checkStage: function () {
|
|
switch (this.stage) {
|
|
case "dev":
|
|
return this.devBaseUrl;
|
|
break;
|
|
|
|
case "test":
|
|
return this.testBaseUrl;
|
|
break;
|
|
case "prod":
|
|
return this.prodBaseUrl;
|
|
break;
|
|
}
|
|
}
|
|
} |