Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
47ad09f5
提交
47ad09f5
authored
8月 01, 2024
作者:
jinrb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
绑定建设用地账号
上级
8b2707d7
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
137 行增加
和
85 行删除
+137
-85
TokenLoginPage.vue
src/views/sys/login/TokenLoginPage.vue
+15
-4
MiniLogin.vue
src/views/system/loginmini/MiniLogin.vue
+122
-81
没有找到文件。
src/views/sys/login/TokenLoginPage.vue
浏览文件 @
47ad09f5
...
...
@@ -5,8 +5,8 @@
<span
class=
"dot dot-spin"
><i></i><i></i><i></i><i></i></span>
</div>
</div>
<a-card
v-else
title=
"绑定
粤政易账号"
style=
"width: 30
0px"
>
<a-form
:model=
"formState"
name=
"绑定
粤政易账号"
@
finish=
"onFinish"
:label-col=
"
{ span: 8
}" :wrapper-col="{ span: 16 }" autocomplete="off">
<a-card
v-else
title=
"绑定
建设用地账号"
style=
"width: 42
0px"
>
<a-form
:model=
"formState"
name=
"绑定
建设用地账号"
@
finish=
"onFinish"
:label-col=
"
{ span: 6
}" :wrapper-col="{ span: 16 }" autocomplete="off">
<a-form-item
label=
"账号"
name=
"username"
:rules=
"[
{ required: true, message: '请输入账号' }]">
<a-input
placeholder=
"请输入污染地块登录账号"
v-model:value=
"formState.username"
/>
</a-form-item>
...
...
@@ -14,8 +14,8 @@
<a-form-item
label=
"密码"
name=
"password"
:rules=
"[
{ required: true, message: '请输入密码' }]">
<a-input-password
placeholder=
"请输入污染地块登录密码"
v-model:value=
"formState.password"
/>
</a-form-item>
<a-form-item
:wrapper-col=
"
{ offset:
8
, span: 16 }">
<a-button
type=
"primary"
html-type=
"submit"
>
绑定
</a-button>
<a-form-item
:wrapper-col=
"
{ offset:
6
, span: 16 }">
<a-button
type=
"primary"
html-type=
"submit"
style=
"width: 100%;"
>
绑定
</a-button>
</a-form-item>
</a-form>
</a-card>
...
...
@@ -128,6 +128,17 @@ function onFinish() {
// }
</
script
>
<
style
>
.app-loading
.ant-card-head-title
{
text-align
:
center
;
color
:
#0065cc
;
}
.app-loading
.ant-form-item-control-input-content
{
text-align
:
center
;
}
</
style
>
<
style
scoped
>
html
[
data-theme
=
'dark'
]
.app-loading
{
background-color
:
#2c344a
;
...
...
src/views/system/loginmini/MiniLogin.vue
浏览文件 @
47ad09f5
...
...
@@ -9,7 +9,6 @@
</div>
<div
class=
"aui-form"
>
<div
class=
"aui-formBox"
>
<div
class=
"aui-formWell"
>
<a-tabs
v-model:activeKey=
"activeKey"
@
change=
"changeTab"
>
<a-tab-pane
key=
"1"
tab=
"建设用地账号登录"
>
...
...
@@ -44,11 +43,11 @@
</a-form>
</div>
</a-tab-pane>
<a-tab-pane
key=
"2"
tab=
"
粤政易账号登录
"
>
<a-tab-pane
key=
"2"
tab=
"
智慧云平台登录"
v-if=
"isgld
"
>
<!--
<div
class=
"aui-flex aui-form-nav investment_title"
>
<div
class=
"aui-flex-box"
>
{{
t
(
'sys.login.signInFormTitle'
)
}}
</div>
</div>
-->
<div
class=
"aui-form-box"
style=
"height: 260px
"
>
<div
class=
"aui-form-box"
style=
"height: 260px"
v-if=
"false
"
>
<a-form
ref=
"loginRef"
:model=
"formData"
v-if=
"activeIndex === 'accountLogin'"
@
keyup
.
enter
.
native=
"loginHandleClick"
>
<div
class=
"aui-account"
>
<div
class=
"aui-inputClear"
>
...
...
@@ -96,60 +95,67 @@
</div>
</
template
>
<
script
lang=
"ts"
setup
name=
"login-mini"
>
import
{
getCodeInfo
}
from
'/@/api/sys/user'
;
import
{
onMounted
,
reactive
,
ref
,
toRaw
,
unref
}
from
'vue'
;
import
codeImg
from
'/@/assets/images/checkcode.png'
;
import
{
useUserStore
}
from
'/@/store/modules/user'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
RsaParams
}
from
'/@/utils/rsa.js'
;
const
{
prefixCls
}
=
useDesign
(
'mini-login'
);
const
{
notification
,
createMessage
}
=
useMessage
();
const
userStore
=
useUserStore
();
const
{
t
}
=
useI18n
();
const
randCodeData
=
reactive
<
any
>
({
import
{
getCodeInfo
}
from
'/@/api/sys/user'
;
import
{
onMounted
,
reactive
,
ref
,
toRaw
,
unref
}
from
'vue'
;
import
codeImg
from
'/@/assets/images/checkcode.png'
;
import
{
useUserStore
}
from
'/@/store/modules/user'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
RsaParams
}
from
'/@/utils/rsa.js'
;
import
{
router
}
from
'/@/router'
;
const
{
prefixCls
}
=
useDesign
(
'mini-login'
);
const
{
notification
,
createMessage
}
=
useMessage
();
const
userStore
=
useUserStore
();
const
{
t
}
=
useI18n
();
const
randCodeData
=
reactive
<
any
>
({
randCodeImage
:
''
,
requestCodeSuccess
:
false
,
checkKey
:
null
,
});
//手机号登录还是账号登录
const
activeIndex
=
ref
<
string
>
(
'accountLogin'
);
const
type
=
ref
<
string
>
(
'login'
);
//账号登录表单字段
const
formData
=
reactive
<
any
>
({
});
//手机号登录还是账号登录
const
activeIndex
=
ref
<
string
>
(
'accountLogin'
);
const
type
=
ref
<
string
>
(
'login'
);
//账号登录表单字段
const
formData
=
reactive
<
any
>
({
inputCode
:
''
,
username
:
''
,
password
:
''
,
url
:
''
,
});
//手机登录表单字段
const
activeKey
=
ref
(
'1'
);
url
:
''
,
});
//手机登录表单字段
const
activeKey
=
ref
(
'1'
);
const
loginRef
=
ref
();
const
loginRef
=
ref
();
const
isgld
=
ref
(
false
);
const
loginLoading
=
ref
<
boolean
>
(
false
);
const
loginLoading
=
ref
<
boolean
>
(
false
);
defineProps
({
defineProps
({
sessionTimeout
:
{
type
:
Boolean
,
},
});
});
function
changeTab
()
{
function
changeTab
(
e
)
{
console
.
log
(
e
,
'防守打法'
)
if
(
e
==
2
)
{
router
.
push
({
path
:
'/tokenLogin'
})
return
}
formData
.
value
=
{
inputCode
:
''
,
username
:
''
,
password
:
''
,
url
:
''
,
}
}
url
:
''
,
};
}
/**
/**
* 获取验证码
*/
function
handleChangeCheckCode
()
{
function
handleChangeCheckCode
()
{
formData
.
inputCode
=
''
;
randCodeData
.
checkKey
=
1629428467008
;
...
...
@@ -157,15 +163,15 @@
randCodeData
.
randCodeImage
=
res
;
randCodeData
.
requestCodeSuccess
=
true
;
});
}
}
async
function
loginHandleClick
()
{
async
function
loginHandleClick
()
{
if
(
unref
(
activeIndex
)
===
'accountLogin'
)
{
accountLogin
();
}
}
}
async
function
accountLogin
()
{
async
function
accountLogin
()
{
if
(
!
formData
.
username
)
{
createMessage
.
warn
(
t
(
'sys.login.accountPlaceholder'
));
return
;
...
...
@@ -216,7 +222,6 @@
});
}
}
}
catch
(
error
:
any
)
{
notification
.
error
({
message
:
t
(
'sys.api.errorTip'
),
...
...
@@ -227,24 +232,51 @@
}
finally
{
loginLoading
.
value
=
false
;
}
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
//加载验证码
handleChangeCheckCode
();
formData
.
url
=
window
.
location
.
href
});
formData
.
url
=
window
.
location
.
href
;
if
(
window
.
location
.
href
.
indexOf
(
"jsydgld"
)
>
-
1
)
{
isgld
.
value
=
true
}
});
</
script
>
<
style
lang=
"less"
scoped
>
@import '/@/assets/loginmini/style/home.less';
@import '/@/assets/loginmini/style/base.less';
@import '/@/assets/loginmini/style/home.less';
@import '/@/assets/loginmini/style/base.less';
:deep(.ant-input:focus) {
:deep(.ant-input:focus) {
box-shadow: none;
}
.aui-get-code {
}
.ant-input-affix-wrapper-focused{
border: none!important;
}
.ant-input-affix-wrapper{
border: none!important;
box-shadow: none!important;
margin-left: 20px;
width: calc(100% - 20px);
background: #ffffff;
.ant-input{
background: #ffffff!important;
box-shadow: none!important;
}
}
.aui-inputClear {
background-color: #ffffff !important;
.fix-auto-fill{
background-color: #ffffff !important;
}
input:-webkit-autofill {
box-shadow: none!important;
}
}
.aui-get-code {
float: right;
position: relative;
z-index: 3;
...
...
@@ -255,23 +287,23 @@
margin: 7px;
border: 1px solid #1573e9;
top: 12px;
}
}
.aui-get-code:hover {
.aui-get-code:hover {
color: #1573e9;
}
}
.code-shape {
.code-shape {
border-color: #dadada !important;
color: #aaa !important;
}
}
:deep(.jeecg-dark-switch) {
:deep(.jeecg-dark-switch) {
position: absolute;
margin-right: 10px;
}
}
.aui-link-login {
.aui-link-login {
height: 55px;
padding: 10px 1px;
font-size: 14px;
...
...
@@ -280,21 +312,21 @@
margin-bottom: 8px;
font-size: 20px;
font-weight: bold;
}
}
.aui-phone-logo {
.aui-phone-logo {
position: absolute;
margin-left: 10px;
width: 60px;
top: 2px;
z-index: 4;
}
}
.top-3 {
.top-3 {
top: 0.45rem;
}
}
.login-title {
.login-title {
height: 77px;
display: flex;
justify-content: center;
...
...
@@ -311,24 +343,14 @@
}
margin-bottom: 50px;
}
}
</
style
>
<
style
lang=
"less"
>
@prefix-cls: ~'@{namespace}-mini-login';
@dark-bg: #293146;
@prefix-cls: ~'@{namespace}-mini-login';
@dark-bg: #293146;
.ant-tabs-tab{
font-size: 22px;
font-weight: bold;
flex: 1;
justify-content: center;
}
.ant-tabs-nav-wrap, .ant-tabs-nav-list{
width: 100%;
}
html[data-theme='dark'] {
html[data-theme='dark'] {
.@{prefix-cls} {
background-color: @dark-bg !important;
background-image: none;
...
...
@@ -417,11 +439,30 @@
.aui-third-login a {
background: transparent;
}
}
.login-background-img {
.ant-tabs-tab, .ant-tabs-tab-active{
color: #666;
}
.ant-tabs-tab{
font-weight: 400;
}
.aui-formButton {
.ant-btn-primary {
border-color: #3183ff;
background: #3183ff;
}
}
}
.ant-tabs-tab {
font-size: 22px;
font-weight: bold;
flex: 1;
justify-content: center;
}
.ant-tabs-nav-wrap,
.ant-tabs-nav-list {
width: 100%;
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论