Commit ed75397e authored by zhengke's avatar zhengke

登录

parent 7a758eb5
...@@ -447,6 +447,9 @@ page { ...@@ -447,6 +447,9 @@ page {
.q-pl-lg{ .q-pl-lg{
padding-left: 20px; padding-left: 20px;
} }
.q-pr-lg{
padding-right: 20px;
}
.q-py-lg{ .q-py-lg{
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
......
...@@ -145,7 +145,10 @@ import { ...@@ -145,7 +145,10 @@ import {
ToBottom, ToBottom,
PeopleSafe, PeopleSafe,
StarOne, StarOne,
CloudStorage CloudStorage,
Mail,
Wechat,
User,
} from '@icon-park/vue-next' } from '@icon-park/vue-next'
export interface Icons { export interface Icons {
...@@ -295,7 +298,10 @@ export const icons: Icons = { ...@@ -295,7 +298,10 @@ export const icons: Icons = {
IconToBottom:ToBottom, IconToBottom:ToBottom,
IconPeopleSafe:PeopleSafe, IconPeopleSafe:PeopleSafe,
IconStarOne:StarOne, IconStarOne:StarOne,
IconCloudStorage:CloudStorage IconCloudStorage:CloudStorage,
IconMail:Mail,
IconWechat:Wechat,
IconUser:User,
} }
export default { export default {
......
...@@ -58,9 +58,9 @@ class UserServices { ...@@ -58,9 +58,9 @@ class UserServices {
return Api.Post("travel_set_signout", msg) return Api.Post("travel_set_signout", msg)
} }
static async wechatLoginAsync(account: string, code: string, v_token: string, tid: string = ''): Promise<HttpResponse> { static async GetShowQrcode(QrCodeType: string): Promise<HttpResponse> {
let msg = { account, code, v_token, tid } let msg = { QrCodeType }
return Api.Post("travel_login_password", msg) return Api.Post("Wechat_QrCode_GetShowQrcode", msg)
} }
static async VerifyLoginAsync(account: string, code: string, v_token: string, tid: string = ''): Promise<HttpResponse> { static async VerifyLoginAsync(account: string, code: string, v_token: string, tid: string = ''): Promise<HttpResponse> {
......
This diff is collapsed.
...@@ -4,23 +4,25 @@ ...@@ -4,23 +4,25 @@
<el-input v-model="model.account" placeholder="账号/邮箱" /> <el-input v-model="model.account" placeholder="账号/邮箱" />
</el-form-item> </el-form-item>
<el-form-item label="" prop="password"> <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>
<el-form-item label=""> <el-form-item label="" v-if="needVerify">
<div class="row q-mt-lg full-width"> <div class="row full-width">
<div class="col"> <div class="col">
<vue-hcaptcha ref="invisibleHcaptcha" sitekey="46e00e53-ddb2-4e7b-9c51-621534c2f1f5" @verify="verifyHandler" <vue-hcaptcha ref="invisibleHcaptcha" sitekey="46e00e53-ddb2-4e7b-9c51-621534c2f1f5" @verify="verifyHandler"
v-if="needVerify"></vue-hcaptcha> ></vue-hcaptcha>
</div> </div>
<el-button link type="primary" @click="redicetToForgot">忘记密码?</el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item style="margin-bottom: 8px;">
<el-button type="primary" class="full-width q-mb-lg" @click="submitForm(loginFormRef)" :loading="loading">登录</el-button> <el-button type="primary" class="full-width" @click="submitForm(loginFormRef)" :loading="loading">登录</el-button>
</el-form-item> </el-form-item>
<div class="text-info text-small row flex-center"> <div class="text-info text-small row flex-between">
<span>还没有账号?</span> <div class="row items-center">
<el-button link type="primary" class="q-mb-lg" @click="redicetToRegist">立即注册</el-button> <!-- <span>还没有账号?</span>
<el-button link type="primary" @click="redicetToRegist">立即注册</el-button> -->
</div>
<el-button link type="primary" @click="redicetToForgot">忘记密码?</el-button>
</div> </div>
</el-form> </el-form>
</template> </template>
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
<el-form-item> <el-form-item>
<el-button type="primary" class="full-width q-mb-lg" @click="submitForm(loginFormRef)" :loading="loading">登录</el-button> <el-button type="primary" class="full-width q-mb-lg" @click="submitForm(loginFormRef)" :loading="loading">登录</el-button>
</el-form-item> </el-form-item>
<div class="text-info text-small row flex-center"> <!-- <div class="text-info text-small row flex-center">
<span>账户/邮箱登录?</span> <span>账户/邮箱登录?</span>
<el-button link type="primary" class="q-mb-lg" @click="passwordLogin">立即登录</el-button> <el-button link type="primary" class="q-mb-lg" @click="passwordLogin">立即登录</el-button>
</div> </div> -->
</el-form> </el-form>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
......
<template> <template>
<div class="wechatLoginForm" v-loading="qrLoading"> <div class="wechatLoginForm text-center q-mt-lg" v-loading="qrLoading">
<!-- <QRCode :value="qrCode" style="width: 13.31vw;height: auto;border: 1px solid #1E3FE7;" v-if="!qrLoading"></QRCode> <QRCode :value="qrCode" style="width: 159px;height: 159px;border: 1px solid #EBEBEB;" 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="http://www.viitto.com" style="width: 159px;height: 159px;border: 1px solid #EBEBEB;" 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> </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> <span>账户/邮箱登录?</span>
<el-button link type="primary" class="q-mb-lg" @click="passwordLogin">立即登录</el-button> <el-button link type="primary" class="q-mb-lg" @click="passwordLogin">立即登录</el-button>
</div> </div> -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, ref } from 'vue' import { reactive, ref } from 'vue'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment