Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
3283bf91
提交
3283bf91
authored
7月 04, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发布,准备上线替换
上级
fa3d1bef
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
19 行删除
+20
-19
index.html
client-dist/index.html
+2
-2
app.f6978a26.js
client-dist/resources/app.f6978a26.js
+0
-0
login_api.js
client/components/services/api/login_api.js
+16
-16
config.js
server/config.js
+2
-1
没有找到文件。
client-dist/index.html
浏览文件 @
3283bf91
...
...
@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.84238682.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.90efc743.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.11505cfd.js"
></script></body></html>
\ No newline at end of file
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.84238682.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.90efc743.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.f6978a26.js"
></script></body></html>
\ No newline at end of file
client-dist/resources/app.
11505cfd
.js
→
client-dist/resources/app.
f6978a26
.js
浏览文件 @
3283bf91
This source diff could not be displayed because it is too large. You can
view the blob
instead.
client/components/services/api/login_api.js
浏览文件 @
3283bf91
...
...
@@ -6,14 +6,14 @@ export default class LoginAPI extends BaseAPI {
* 调用登录接口
* @param {[string]} obj.login_name 用户名
* @param {[string]} obj.password 密码 md5加密
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
userLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/login'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
userLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/login'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 调用退出登录
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
outLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/logout'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
outLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/logout'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 当前登录用户,检测是否该系统有权限
* /user_center/get_user_info
...
...
@@ -22,45 +22,45 @@ export default class LoginAPI extends BaseAPI {
/**
* 发送验证码
* @param {[string]} obj.mobile 手机号
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
sendCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/send_login_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
sendCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/send_login_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 验证码登录
* @param {[string]} obj.mobile 手机号
* @param {[string]} obj.code 验证码
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
codeLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/code_login'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
codeLogin
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/code_login'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 发送重置密码验证码
* @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.source_type 值 3
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
sendResetPwdCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/send_reset_password_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
sendResetPwdCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/send_reset_password_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 重置密码验证码确认
* @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.code 验证码
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
validateCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/validate_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
validateCode
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/validate_code'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 重置密码
* @param {[string]} obj.contact 手机号/邮箱
* @param {[string]} obj.code 验证码
* @param {[string]} obj.new_password 新的密码
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
resetPwd
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/reset_password'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
resetPwd
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/reset_password'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 个人信息 - 修改密码
* @param {[string]} obj.old_password 验证码
* @param {[string]} obj.new_password 新的密码
* @param {[string]} obj.service 这里 一直是定值
web
.ezijing.com
* @param {[string]} obj.service 这里 一直是定值
h5
.ezijing.com
*/
updatePwd
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/change_password'
,
_
.
assignIn
(
obj
,
{
service
:
'
web
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
updatePwd
=
(
obj
=
{})
=>
this
.
post
(
'/user_center/change_password'
,
_
.
assignIn
(
obj
,
{
service
:
'
h5
.ezijing.com'
}),
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 个人信息 - 上传头像
*/
...
...
server/config.js
浏览文件 @
3283bf91
const
state
=
process
.
env
.
NODE_ENV
let
conf
=
{}
if
(
state
===
'test'
)
{
conf
.
agentApiUrl
=
'https://api2.ezijing.com/'
// conf.agentApiUrl = 'https://api2.ezijing.com/'
conf
.
agentApiUrl
=
'https://zapi.ezijing.com/'
// conf.agentApiUrl = 'http://10.1.1.5:8024/'
// conf.agentApiUrl = 'http://192.168.3.254:8081'
}
else
if
(
state
===
'production'
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论