提交 e6ba1637 authored 作者: lihuihui's avatar lihuihui

登录 直播

上级 d21a074d
...@@ -35,7 +35,7 @@ export default class API { ...@@ -35,7 +35,7 @@ export default class API {
/* 具体执行请求失败后业务逻辑前,先执行该方法 */ /* 具体执行请求失败后业务逻辑前,先执行该方法 */
const beforeFail = _config.beforeFail ? _config.beforeFail : this._reqFail const beforeFail = _config.beforeFail ? _config.beforeFail : this._reqFail
const headers = { const headers = {
tenant: 'classes', tenant: 'wmp',
version: window.G.VERSION version: window.G.VERSION
} }
_config.headers = _.assignIn(_config.headers, headers) _config.headers = _.assignIn(_config.headers, headers)
......
...@@ -5,7 +5,7 @@ export default class OtherAPI extends BaseAPI { ...@@ -5,7 +5,7 @@ export default class OtherAPI extends BaseAPI {
/** /**
* 当前登录用户,检测是否该系统有权限 * 当前登录用户,检测是否该系统有权限
*/ */
getInfo = () => this.post('/user_center/get_user_info', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) getInfo = () => this.post('/user/getinfo', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 获取我的消息信息 * 获取我的消息信息
*/ */
......
...@@ -15,7 +15,7 @@ export default class LoginAPI extends BaseAPI { ...@@ -15,7 +15,7 @@ export default class LoginAPI extends BaseAPI {
/** /**
* 当前登录用户,检测是否该系统有权限 * 当前登录用户,检测是否该系统有权限
*/ */
getInfo = () => this.get('/user_center/get_user_info', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }) getInfo = () => this.get('/user/getinfo', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/** /**
* 发送验证码 * 发送验证码
* @param {[string]} obj.mobile 手机号 * @param {[string]} obj.mobile 手机号
......
...@@ -58,7 +58,6 @@ export default { ...@@ -58,7 +58,6 @@ export default {
} }
}, },
mounted () { mounted () {
console.log(this.attr, '=============')
// Login.clearCookies({}).then(res => res) // Login.clearCookies({}).then(res => res)
}, },
methods: { methods: {
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
}, },
mounted () { mounted () {
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
this.loginUrl.url = 'www.baidu.com' this.loginUrl.url = '/mobile/list'
} }
}, },
methods: { methods: {
......
...@@ -41,8 +41,8 @@ const agentProcessor = () => { ...@@ -41,8 +41,8 @@ const agentProcessor = () => {
headers['Host'] = 'sso.ezijing.com' headers['Host'] = 'sso.ezijing.com'
headers['host'] = 'sso.ezijing.com' headers['host'] = 'sso.ezijing.com'
} else { } else {
headers['Host'] = 'ep-api.ezijing.com' headers['Host'] = 'wmp-api2.ezijing.com'
headers['host'] = 'ep-api.ezijing.com' headers['host'] = 'wmp-api2.ezijing.com'
} }
/* 测试 */ /* 测试 */
// if (/\/essay/gi.test(options.url) && /post/gi.test(req.method)) { // if (/\/essay/gi.test(options.url) && /post/gi.test(req.method)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论