Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c6d86bf3
authored
Nov 28, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除单租户企微登录
1 parent
2b97e0ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
linkwe-ui/src/views/login.vue
linkwe-ui/src/views/login.vue
View file @
c6d86bf
...
@@ -8,7 +8,12 @@
...
@@ -8,7 +8,12 @@
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<h3
class=
"title"
>
LinkWeChat
</h3>
<h3
class=
"title"
>
LinkWeChat
</h3>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<el-input
v-model=
"loginForm.username"
type=
"text"
auto-complete=
"off"
placeholder=
"账号"
>
<el-input
v-model=
"loginForm.username"
type=
"text"
auto-complete=
"off"
placeholder=
"账号"
>
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -37,8 +42,13 @@
...
@@ -37,8 +42,13 @@
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-checkbox
class=
"fr"
v-model=
"loginForm.rememberMe"
style=
"margin:0px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-checkbox
class=
"fr"
v-model=
"loginForm.rememberMe"
style=
"margin:0px 0px 25px 0px;"
<el-checkbox
v-model=
"isDemonstrationLogin"
@
change=
"changeDemonAccount"
style=
"margin:0px 0px 25px 0px;"
>
记住密码
</el-checkbox
>
<el-checkbox
v-model=
"isDemonstrationLogin"
@
change=
"changeDemonAccount"
style=
"margin:0px 0px 25px 0px;"
>
演示账号登录
</el-checkbox
>
演示账号登录
</el-checkbox
>
>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
...
@@ -53,7 +63,7 @@
...
@@ -53,7 +63,7 @@
<span
v-else
>
登 录 中...
</span>
<span
v-else
>
登 录 中...
</span>
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
class=
"ac"
v-if=
"authLink"
>
<
!--
<
el-form-item
class=
"ac"
v-if=
"authLink"
>
<a
:href=
"authLink"
>
<a
:href=
"authLink"
>
<img
<img
src=
"//wwcdn.weixin.qq.com/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white$4dab5411.png"
src=
"//wwcdn.weixin.qq.com/node/wwopen/wwopenmng/style/images/independent/brand/300x40_white$4dab5411.png"
...
@@ -63,7 +73,7 @@
...
@@ -63,7 +73,7 @@
alt=
"企业微信登录"
alt=
"企业微信登录"
/>
/>
</a>
</a>
</el-form-item>
</el-form-item>
-->
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -159,7 +169,7 @@ export default {
...
@@ -159,7 +169,7 @@ export default {
},
},
methods
:
{
methods
:
{
getCode
()
{
getCode
()
{
getCodeImg
().
then
(
(
res
)
=>
{
getCodeImg
().
then
(
res
=>
{
this
.
codeUrl
=
'data:image/gif;base64,'
+
res
.
img
this
.
codeUrl
=
'data:image/gif;base64,'
+
res
.
img
this
.
loginForm
.
uuid
=
res
.
uuid
this
.
loginForm
.
uuid
=
res
.
uuid
})
})
...
@@ -175,7 +185,7 @@ export default {
...
@@ -175,7 +185,7 @@ export default {
}
}
},
},
handleLogin
()
{
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
(
valid
)
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
this
.
loading
=
true
if
(
this
.
loginForm
.
rememberMe
)
{
if
(
this
.
loginForm
.
rememberMe
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment