Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
ed75397e
Commit
ed75397e
authored
Jun 17, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
7a758eb5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
209 additions
and
66 deletions
+209
-66
common.css
src/assets/styles/common.css
+3
-0
icon.ts
src/plugins/icon.ts
+8
-2
UserService.ts
src/services/UserService.ts
+3
-3
Login.vue
src/views/Auth/Login.vue
+176
-42
passwordLogin.vue
src/views/Auth/components/passwordLogin.vue
+12
-10
verifyLogin.vue
src/views/Auth/components/verifyLogin.vue
+2
-2
wechatLogin.vue
src/views/Auth/components/wechatLogin.vue
+5
-7
No files found.
src/assets/styles/common.css
View file @
ed75397e
...
...
@@ -447,6 +447,9 @@ page {
.q-pl-lg
{
padding-left
:
20px
;
}
.q-pr-lg
{
padding-right
:
20px
;
}
.q-py-lg
{
padding-top
:
20px
;
padding-bottom
:
20px
;
...
...
src/plugins/icon.ts
View file @
ed75397e
...
...
@@ -145,7 +145,10 @@ import {
ToBottom
,
PeopleSafe
,
StarOne
,
CloudStorage
CloudStorage
,
Mail
,
Wechat
,
User
,
}
from
'@icon-park/vue-next'
export
interface
Icons
{
...
...
@@ -295,7 +298,10 @@ export const icons: Icons = {
IconToBottom
:
ToBottom
,
IconPeopleSafe
:
PeopleSafe
,
IconStarOne
:
StarOne
,
IconCloudStorage
:
CloudStorage
IconCloudStorage
:
CloudStorage
,
IconMail
:
Mail
,
IconWechat
:
Wechat
,
IconUser
:
User
,
}
export
default
{
...
...
src/services/UserService.ts
View file @
ed75397e
...
...
@@ -58,9 +58,9 @@ class UserServices {
return
Api
.
Post
(
"travel_set_signout"
,
msg
)
}
static
async
wechatLoginAsync
(
account
:
string
,
code
:
string
,
v_token
:
string
,
tid
:
string
=
''
):
Promise
<
HttpResponse
>
{
let
msg
=
{
account
,
code
,
v_token
,
tid
}
return
Api
.
Post
(
"
travel_login_password
"
,
msg
)
static
async
GetShowQrcode
(
QrCodeType
:
string
):
Promise
<
HttpResponse
>
{
let
msg
=
{
QrCodeType
}
return
Api
.
Post
(
"
Wechat_QrCode_GetShowQrcode
"
,
msg
)
}
static
async
VerifyLoginAsync
(
account
:
string
,
code
:
string
,
v_token
:
string
,
tid
:
string
=
''
):
Promise
<
HttpResponse
>
{
...
...
src/views/Auth/Login.vue
View file @
ed75397e
This diff is collapsed.
Click to expand it.
src/views/Auth/components/passwordLogin.vue
View file @
ed75397e
...
...
@@ -4,23 +4,25 @@
<el-input
v-model=
"model.account"
placeholder=
"账号/邮箱"
/>
</el-form-item>
<el-form-item
label=
""
prop=
"password"
>
<el-input
v-model=
"model.password"
type=
"password"
placeholder=
"密码"
autocomplete=
"new-password"
show-password
class=
"q-mt-lg"
/>
<el-input
v-model=
"model.password"
type=
"password"
placeholder=
"密码"
autocomplete=
"new-password"
show-password
/>
</el-form-item>
<el-form-item
label=
""
>
<div
class=
"row
q-mt-lg
full-width"
>
<el-form-item
label=
""
v-if=
"needVerify"
>
<div
class=
"row full-width"
>
<div
class=
"col"
>
<vue-hcaptcha
ref=
"invisibleHcaptcha"
sitekey=
"46e00e53-ddb2-4e7b-9c51-621534c2f1f5"
@
verify=
"verifyHandler"
v-if=
"needVerify"
></vue-hcaptcha>
></vue-hcaptcha>
</div>
<el-button
link
type=
"primary"
@
click=
"redicetToForgot"
>
忘记密码?
</el-button>
</div>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
class=
"full-width
q-mb-lg
"
@
click=
"submitForm(loginFormRef)"
:loading=
"loading"
>
登录
</el-button>
<el-form-item
style=
"margin-bottom: 8px;"
>
<el-button
type=
"primary"
class=
"full-width"
@
click=
"submitForm(loginFormRef)"
:loading=
"loading"
>
登录
</el-button>
</el-form-item>
<div
class=
"text-info text-small row flex-center"
>
<span>
还没有账号?
</span>
<el-button
link
type=
"primary"
class=
"q-mb-lg"
@
click=
"redicetToRegist"
>
立即注册
</el-button>
<div
class=
"text-info text-small row flex-between"
>
<div
class=
"row items-center"
>
<!--
<span>
还没有账号?
</span>
<el-button
link
type=
"primary"
@
click=
"redicetToRegist"
>
立即注册
</el-button>
-->
</div>
<el-button
link
type=
"primary"
@
click=
"redicetToForgot"
>
忘记密码?
</el-button>
</div>
</el-form>
</
template
>
...
...
src/views/Auth/components/verifyLogin.vue
View file @
ed75397e
...
...
@@ -24,10 +24,10 @@
<el-form-item>
<el-button
type=
"primary"
class=
"full-width q-mb-lg"
@
click=
"submitForm(loginFormRef)"
:loading=
"loading"
>
登录
</el-button>
</el-form-item>
<div
class=
"text-info text-small row flex-center"
>
<
!-- <
div class="text-info text-small row flex-center">
<span>账户/邮箱登录?</span>
<el-button link type="primary" class="q-mb-lg" @click="passwordLogin">立即登录</el-button>
</div>
</div>
-->
</el-form>
</template>
<
script
lang=
"ts"
setup
>
...
...
src/views/Auth/components/wechatLogin.vue
View file @
ed75397e
<
template
>
<div
class=
"wechatLoginForm"
v-loading=
"qrLoading"
>
<!--
<QRCode
:value=
"qrCode"
style=
"width: 13.31vw;height: auto;border: 1px solid #1E3FE7;"
v-if=
"!qrLoading"
></QRCode>
<QRCode
value=
"http://www.viitto.com"
style=
"width: 13.31vw;height: auto;border: 0.1px solid #1E3FE7;"
v-if=
"qrLoading"
></QRCode>
-->
<QRCode
:value=
"qrCode"
style=
"width: 256px;height: 256px;border: 1px solid #1E3FE7;"
v-if=
"!qrLoading"
></QRCode>
<QRCode
value=
"http://www.viitto.com"
style=
"width: 256px;height: 256px;border: 1px solid #1E3FE7;"
v-if=
"qrLoading"
></QRCode>
<div
class=
"wechatLoginForm text-center q-mt-lg"
v-loading=
"qrLoading"
>
<QRCode
:value=
"qrCode"
style=
"width: 159px;height: 159px;border: 1px solid #EBEBEB;"
v-if=
"!qrLoading"
></QRCode>
<QRCode
value=
"http://www.viitto.com"
style=
"width: 159px;height: 159px;border: 1px solid #EBEBEB;"
v-if=
"qrLoading"
></QRCode>
</div>
<div
class=
"text-info text-small row flex-center q-pt-lg"
>
<
!--
<
div
class=
"text-info text-small row flex-center q-pt-lg"
>
<span>
账户/邮箱登录?
</span>
<el-button
link
type=
"primary"
class=
"q-mb-lg"
@
click=
"passwordLogin"
>
立即登录
</el-button>
</div>
</div>
-->
</
template
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
}
from
'vue'
...
...
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