// 全局js配置,一般用来配置接口的基地址,和 短地址 等一些... var config = { // 开发阶段 devBaseUrl: 'http://127.0.0.1:3030', // 测试阶段 testBaseUrl: 'http://127.0.0.1:3030', // 正式阶段 prodBaseUrl: 'http://127.0.0.1:3030', stage: 'dev', // dev test prod switchStage: function () { switch (this.stage) { case "dev": return this.devBaseUrl break; case "test": return this.testBaseUrl break; case "prod": return this.prodBaseUrl break; default: break; } }, apiList: { notice: '/home/notice', info:'/home/info', search: '/home/search', tab: '/home/tab' }, footerArr: [ { title: '首页', href: 'index.html', img: '../img/index-icon/index.png' }, { title: '广场', href: 'square.html', img: '../img/index-icon/dating.png' }, { title: '我的', href: 'me.html', img: '../img/index-icon/user.png' }, // { title: '我的', href: 'me.html', icon: 'icon-wo' }, ] }