Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
889d78bb
Commit
889d78bb
authored
Nov 22, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src\views\auth\login\login.vue): 修复登录时的错误提示
parent
2b7bc75c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
16 deletions
+36
-16
Login.vue
src/views/Auth/Login/Login.vue
+36
-16
No files found.
src/views/Auth/Login/Login.vue
View file @
889d78bb
<
template
>
<
template
>
<nav-bar
:bangsBlock=
"true"
/>
<nav-bar
:bangsBlock=
"true"
/>
<div
class=
"register pt-5"
>
<div
class=
"register pt-5"
>
<Icon
name=
"icon-a-shanchu1"
color=
"black"
size=
"20"
class=
"mb-7"
@
click=
"handleClickClose"
/>
<Icon
name=
"icon-a-shanchu1"
color=
"black"
size=
"20"
class=
"mb-7"
@
click=
"handleClickClose"
/>
<div
class=
"flex justify-between items-center text-base"
>
<div
class=
"flex justify-between items-center text-base"
>
<img
src=
"@/assets/icons/app-icon.png"
class=
"h-12"
/>
<img
src=
"@/assets/icons/app-icon.png"
class=
"h-12"
/>
</div>
</div>
...
@@ -45,7 +51,8 @@
...
@@ -45,7 +51,8 @@
:checked=
"rememberPwdChecked"
:checked=
"rememberPwdChecked"
@
change=
"handleRememberPwdChange"
@
change=
"handleRememberPwdChange"
class=
"text-font-gray text-sm"
class=
"text-font-gray text-sm"
>
记住密码
</Check>
>
记住密码
</Check
>
</div>
</div>
<!-- <div class="text-font-gray text-sm" @click="handleClickForgetPwd">
<!-- <div class="text-font-gray text-sm" @click="handleClickForgetPwd">
忘记密码
忘记密码
...
@@ -62,12 +69,21 @@
...
@@ -62,12 +69,21 @@
:src=
"checkStatus ? checkedIcon : notCheckedIcon"
:src=
"checkStatus ? checkedIcon : notCheckedIcon"
/>
/>
</transition>
</transition>
<span
class=
"text-white"
style=
"color: #474747 !important"
>
我已阅读并同意
</span>
<span
class=
"text-white"
style=
"color: #474747 !important"
>
我已阅读并同意
</span
>
</div>
<div
class=
"underline text-app-blue"
@
click=
"$router.push({ name: 'UserAgreement' })"
>
用户协议
</div>
</div>
<div
class=
"underline text-app-blue"
@
click=
"$router.push({ name: 'UserAgreement' })"
>
用户协议
</div>
</div>
</div>
<transition
name=
"fade"
mode=
"out-in"
>
<transition
name=
"fade"
mode=
"out-in"
>
<div
v-if=
"accountType !== eAccountType.NULL && loginWay !== eLoginWay.NULL"
>
<div
v-if=
"accountType !== eAccountType.NULL && loginWay !== eLoginWay.NULL"
>
<div>
<div>
<div
v-if=
"accountType === eAccountType.NO_REG"
>
<div
v-if=
"accountType === eAccountType.NO_REG"
>
<LoginButton
<LoginButton
...
@@ -89,12 +105,16 @@
...
@@ -89,12 +105,16 @@
v-if=
"loginWay === eLoginWay.PWD"
v-if=
"loginWay === eLoginWay.PWD"
@
click=
"transferLoginWay(eLoginWay.CODE)"
@
click=
"transferLoginWay(eLoginWay.CODE)"
class=
"text-center text-app-blue"
class=
"text-center text-app-blue"
>
验证码登录
</div>
>
验证码登录
</div>
<div
<div
class=
"text-center text-app-blue"
class=
"text-center text-app-blue"
v-if=
"loginWay === eLoginWay.CODE"
v-if=
"loginWay === eLoginWay.CODE"
@
click=
"transferLoginWay(eLoginWay.PWD)"
@
click=
"transferLoginWay(eLoginWay.PWD)"
>
密码登录
</div>
>
密码登录
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -103,7 +123,7 @@
...
@@ -103,7 +123,7 @@
</div>
</div>
</template>
</template>
<
script
lang=
'ts'
>
<
script
lang=
"ts"
>
import
Input
from
"@/components/common/Input/index.vue"
;
import
Input
from
"@/components/common/Input/index.vue"
;
import
CodeInput
from
"./components/CodeInput/index.vue"
;
import
CodeInput
from
"./components/CodeInput/index.vue"
;
import
{
Dialog
,
Toast
}
from
"vant"
;
import
{
Dialog
,
Toast
}
from
"vant"
;
...
@@ -124,13 +144,13 @@ import LoginButton from "./components/LoginButton/index.vue";
...
@@ -124,13 +144,13 @@ import LoginButton from "./components/LoginButton/index.vue";
import
Check
from
"@/components/common/Check/index.vue"
;
import
Check
from
"@/components/common/Check/index.vue"
;
import
PhoneInput
from
"./components/PhoneInput/index.vue"
;
import
PhoneInput
from
"./components/PhoneInput/index.vue"
;
import
SlideValidator
from
"@/components/common/SlideValidator/index.vue"
;
import
SlideValidator
from
"@/components/common/SlideValidator/index.vue"
;
import
Icon
from
"@/components/common/Icon.vue"
import
Icon
from
"@/components/common/Icon.vue"
;
import
notCheckedIcon
from
"@/assets/icons/not_checked.png"
;
import
notCheckedIcon
from
"@/assets/icons/not_checked.png"
;
import
checkedIcon
from
"@/assets/icons/checked.png"
;
import
checkedIcon
from
"@/assets/icons/checked.png"
;
import
LoginSerivce
from
"./LoginService"
;
import
LoginSerivce
from
"./LoginService"
;
import
NavBar
from
"@/components/NavBar/index.vue"
import
NavBar
from
"@/components/NavBar/index.vue"
;
const
accountType
=
eAccountType
.
NULL
;
const
accountType
=
eAccountType
.
NULL
;
const
loginWay
=
eLoginWay
.
NULL
;
const
loginWay
=
eLoginWay
.
NULL
;
...
@@ -173,7 +193,7 @@ export default defineComponent({
...
@@ -173,7 +193,7 @@ export default defineComponent({
Check
,
Check
,
PhoneInput
,
PhoneInput
,
SlideValidator
,
SlideValidator
,
Icon
Icon
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -201,7 +221,7 @@ export default defineComponent({
...
@@ -201,7 +221,7 @@ export default defineComponent({
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
},
},
handleClear
(
phone
:
string
)
{
handleClear
(
phone
:
string
)
{
this
.
pwd
=
''
;
this
.
pwd
=
""
;
},
},
handleSelect
(
item
:
iRememberPhonePwd
)
{
handleSelect
(
item
:
iRememberPhonePwd
)
{
this
.
ignorePhoneCheck
=
true
;
this
.
ignorePhoneCheck
=
true
;
...
@@ -209,10 +229,10 @@ export default defineComponent({
...
@@ -209,10 +229,10 @@ export default defineComponent({
this
.
pwd
=
item
.
pwd
;
this
.
pwd
=
item
.
pwd
;
this
.
rememberPwdChecked
=
true
;
this
.
rememberPwdChecked
=
true
;
this
.
loginWay
=
eLoginWay
.
PWD
;
this
.
loginWay
=
eLoginWay
.
PWD
;
this
.
accountType
=
eAccountType
.
REG_PDSET
this
.
accountType
=
eAccountType
.
REG_PDSET
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
ignorePhoneCheck
=
true
;
this
.
ignorePhoneCheck
=
true
;
})
})
;
},
},
handleClickRadio
()
{
handleClickRadio
()
{
this
.
checkStatus
=
!
this
.
checkStatus
;
this
.
checkStatus
=
!
this
.
checkStatus
;
...
@@ -239,7 +259,7 @@ export default defineComponent({
...
@@ -239,7 +259,7 @@ export default defineComponent({
try
{
try
{
await
this
.
registerFunc
(
phone
,
code
);
await
this
.
registerFunc
(
phone
,
code
);
}
catch
(
err
:
any
)
{
}
catch
(
err
:
any
)
{
Toast
.
fail
(
err
)
Toast
.
fail
(
err
.
message
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment