36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
export default {
|
|
// devBaseUrl: 'http://helpcodes.com:3030', // 开发阶段
|
|
devBaseUrl: 'http://192.168.31.100:3030', // 开发阶段
|
|
prodBaseUrl: 'http://192.168.31.100:3030', // 正式阶段
|
|
apiList: {
|
|
login: '/user/login', // 用户登录
|
|
add: '/user/add', // 用户注册
|
|
history: '/user/history', // 发布的历史
|
|
changeStatus: '/user/changeStatus', // 发布的历史
|
|
Statistics: '/user/Statistics', // 我的页面获取 失物招领 和 寻物启事 的数量
|
|
edit: '/user/edit', // 编辑用户信息
|
|
notice: '/home/notice', // 公告
|
|
push: '/home/push', // 发布
|
|
info: '/home/info', // 详情
|
|
tab: '/home/tab', // 广场的接口
|
|
search: '/home/search', // 搜索
|
|
token: '/home/token', /// 后去oss上传的配置信息
|
|
},
|
|
aliOss: {
|
|
host: 'https://losta.oss-cn-shanghai.aliyuncs.com',
|
|
},
|
|
CheckBaseUrl: function () {
|
|
switch (__wxConfig.envVersion) {
|
|
case "develop":
|
|
return this.devBaseUrl;
|
|
break;
|
|
case "release":
|
|
// return this.prodBaseUrl;
|
|
return this.devBaseUrl;
|
|
break;
|
|
default:
|
|
return this.devBaseUrl;
|
|
break;
|
|
}
|
|
}
|
|
} |