Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
b60c29c1
提交
b60c29c1
编写于
7月 07, 2020
作者:
linjinyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
login 国际化
上级
8866759e
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
login.vue
src/components/login/login.vue
+9
-9
未找到文件。
src/components/login/login.vue
浏览文件 @
b60c29c1
...
...
@@ -14,7 +14,7 @@
size=
'large'
prefix=
'ios-contact'
v-model
.
trim=
"form.loginname"
placeholder=
"用户名
"
:placeholder=
"$t('components.login.placeholder1')
"
@
keyup
.
enter
.
native=
"handleSubmit"
>
</i-input>
</form-item>
...
...
@@ -24,7 +24,7 @@
prefix=
'ios-key'
v-model
.
trim=
"form.password"
type=
'password'
placeholder=
"密码
"
:placeholder=
"$t('components.login.placeholder2')
"
@
keyup
.
enter
.
native=
"handleSubmit"
>
</i-input>
</form-item>
...
...
@@ -32,18 +32,18 @@
<i-button
@
click=
"handleSubmit"
type=
'primary'
class=
"login_btn"
>
登录
class=
"login_btn"
>
{{
$t
(
'components.login.name'
)
}}
</i-button>
<i-button
@
click=
"goReset"
type=
'success'
class=
"login_reset"
>
重置
class=
"login_reset"
>
{{
$t
(
'components.login.reset'
)
}}
</i-button>
</form-item>
<form-item>
<div
style=
"text-align: center"
>
<span
class=
"form_tipinfo"
>
其他登录方式
</span>
<span
class=
"form_tipinfo"
>
{{
$t
(
'components.login.other'
)
}}
</span>
</div>
<div
style=
"text-align: center"
>
<div
class=
"sign-btn"
@
click=
"tencentHandleClick('tencent')"
>
...
...
@@ -195,13 +195,13 @@ export default class Login extends Vue {
if
(
data
&&
data
.
message
)
{
this
.
loginTip
=
data
.
message
;
this
.
$Message
.
error
({
content
:
"登录失败,"
+
data
.
message
,
content
:
(
this
.
$t
(
'components.login.loginfailed'
)
as
string
)
+
' '
+
data
.
message
,
duration
:
5
,
closable
:
true
});
}
else
{
this
.
$Message
.
error
({
content
:
"登录失败"
,
content
:
(
this
.
$t
(
'components.login.loginfailed'
)
as
string
)
,
duration
:
5
,
closable
:
true
});
...
...
@@ -259,7 +259,7 @@ export default class Login extends Vue {
* @param thirdpart
*/
public
tencentHandleClick
(
thirdpart
:
any
)
{
this
.
$Message
.
warning
(
"qq授权登录暂未支持"
)
this
.
$Message
.
warning
(
(
this
.
$t
(
'components.login.warning1'
)
as
string
)
)
}
/**
...
...
@@ -267,7 +267,7 @@ export default class Login extends Vue {
* @param thirddpart
*/
public
wechatHandleClick
(
thirddpart
:
any
)
{
this
.
$Message
.
warning
(
"微信授权登录暂未支持"
)
this
.
$Message
.
warning
(
(
this
.
$t
(
'components.login.warning2'
)
as
string
)
)
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录