Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a5108e6a
authored
2023-03-23 11:10:38 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:区分上报监管
1 parent
063e1485
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
318 additions
and
449 deletions
src/image/icons/svg/close.svg
src/layout/components/Navbar.vue
src/layout1/components/Navbar.vue
src/layout1/index.vue
src/views/loginsb/index.vue
src/image/icons/svg/close.svg
View file @
a5108e6
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1673321301365"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"3462"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"32"
height=
"32"
><path
d=
"M910.617673 211.45497c-29.726022-40.739866-65.373916-76.582189-105.953124-106.533338-31.447223-23.211654-65.346287-42.500976-101.132328-57.574277-17.797341-7.496741-38.217417 1.723248-44.400233 20.018939l0 0c-5.586229 16.531512 2.569522 34.533514 18.648732 41.309848 30.91408 13.027711 60.204174 29.700439 87.38421 49.761334 35.128055 25.927509 65.986877 56.9562 91.719958 92.223425 53.42477 73.218582 81.662905 159.989831 81.662905 250.935146 0 57.551764-11.264555 113.364931-33.480532 165.888168-21.464871 50.748824-52.199872 96.333022-91.352591 135.484717-39.152718 39.153742-84.736916 69.888743-135.484717 91.352591-52.523237 22.215978-108.336404 33.480532-165.888168 33.480532-57.552787 0-113.364931-11.264555-165.889191-33.480532-50.748824-21.464871-96.331999-52.199872-135.484717-91.352591-39.152718-39.152718-69.888743-84.736916-91.353614-135.484717-22.214954-52.523237-33.479509-108.336404-33.479509-165.888168 0-90.842984 28.180829-177.536462 81.495082-250.706949 25.681916-35.244712 56.481386-66.265216 91.545996-92.199888 27.118638-20.056801 56.344263-36.737716 87.192851-49.78794 16.072047-6.798846 24.204262-24.812105 18.594497-41.336454l0 0c-6.207375-18.285458-26.638707-27.478841-44.424792-19.958564-35.712363 15.098883-69.537749 34.399461-100.915387 57.607022-40.505529 29.958312-76.084862 65.791425-105.750509 106.506732C52.210106 296.342312 19.618826 396.581294 19.618826 501.596046c0 66.5016 13.031804 131.033335 38.734186 191.800327 24.818245 58.677401 60.340273 111.367437 105.58064 156.606781 45.240367 45.240367 97.930403 80.763418 156.607804 105.581664 60.766992 25.701358 125.297704 38.734186 191.800327 38.734186 66.502623 0 131.033335-13.031804 191.800327-38.734186 58.677401-24.818245 111.366414-60.341297 156.606781-105.581664 45.240367-45.239344 80.762395-97.92938 105.581664-156.606781 25.701358-60.766992 38.734186-125.297704 38.734186-191.800327C1005.062695 396.463614 972.403878 296.133557 910.617673 211.45497z"
fill=
"#ffffff"
p-id=
"3463"
></path><path
d=
"M509.270842 388.009058 509.270842 388.009058c20.261463 0 36.839023-16.57756 36.839023-36.839023L546.109866 75.454506c0-20.261463-16.57756-36.839023-36.839023-36.839023l0 0c-20.261463 0-36.839023 16.57756-36.839023 36.839023l0 275.715529C472.431819 371.431497 489.00938 388.009058 509.270842 388.009058z"
fill=
"#ffffff"
p-id=
"3464"
></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1673321301365"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"3462"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"32"
height=
"32"
><path
d=
"M910.617673 211.45497c-29.726022-40.739866-65.373916-76.582189-105.953124-106.533338-31.447223-23.211654-65.346287-42.500976-101.132328-57.574277-17.797341-7.496741-38.217417 1.723248-44.400233 20.018939l0 0c-5.586229 16.531512 2.569522 34.533514 18.648732 41.309848 30.91408 13.027711 60.204174 29.700439 87.38421 49.761334 35.128055 25.927509 65.986877 56.9562 91.719958 92.223425 53.42477 73.218582 81.662905 159.989831 81.662905 250.935146 0 57.551764-11.264555 113.364931-33.480532 165.888168-21.464871 50.748824-52.199872 96.333022-91.352591 135.484717-39.152718 39.153742-84.736916 69.888743-135.484717 91.352591-52.523237 22.215978-108.336404 33.480532-165.888168 33.480532-57.552787 0-113.364931-11.264555-165.889191-33.480532-50.748824-21.464871-96.331999-52.199872-135.484717-91.352591-39.152718-39.152718-69.888743-84.736916-91.353614-135.484717-22.214954-52.523237-33.479509-108.336404-33.479509-165.888168 0-90.842984 28.180829-177.536462 81.495082-250.706949 25.681916-35.244712 56.481386-66.265216 91.545996-92.199888 27.118638-20.056801 56.344263-36.737716 87.192851-49.78794 16.072047-6.798846 24.204262-24.812105 18.594497-41.336454l0 0c-6.207375-18.285458-26.638707-27.478841-44.424792-19.958564-35.712363 15.098883-69.537749 34.399461-100.915387 57.607022-40.505529 29.958312-76.084862 65.791425-105.750509 106.506732C52.210106 296.342312 19.618826 396.581294 19.618826 501.596046c0 66.5016 13.031804 131.033335 38.734186 191.800327 24.818245 58.677401 60.340273 111.367437 105.58064 156.606781 45.240367 45.240367 97.930403 80.763418 156.607804 105.581664 60.766992 25.701358 125.297704 38.734186 191.800327 38.734186 66.502623 0 131.033335-13.031804 191.800327-38.734186 58.677401-24.818245 111.366414-60.341297 156.606781-105.581664 45.240367-45.239344 80.762395-97.92938 105.581664-156.606781 25.701358-60.766992 38.734186-125.297704 38.734186-191.800327C1005.062695 396.463614 972.403878 296.133557 910.617673 211.45497z"
fill=
"#ffffff"
p-id=
"3463"
></path><path
d=
"M509.270842 388.009058 509.270842 388.009058c20.261463 0 36.839023-16.57756 36.839023-36.839023L546.109866 75.454506c0-20.261463-16.57756-36.839023-36.839023-36.839023l0 0c-20.261463 0-36.839023 16.57756-36.839023 36.839023l0 275.715529C472.431819 371.431497 489.00938 388.009058 509.270842 388.009058z"
p-id=
"3464"
></path></svg>
\ No newline at end of file
...
...
src/layout/components/Navbar.vue
View file @
a5108e6
...
...
@@ -55,9 +55,9 @@ export default {
})
.
catch
((
error
)
=>
{
// console.dir(error);
})
;
}
,
}
,
})
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/layout1/components/Navbar.vue
View file @
a5108e6
...
...
@@ -7,14 +7,12 @@
</div>
<div
class=
"right-menu"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"hover"
@
command=
"handleCommand"
>
<div
class=
"avatar-wrapper"
>
<span
style=
"padding-right:10px"
>
{{
name
}}
</span>
<img
:src=
"avatar + '?imageView2/1/w/80/h/80'"
class=
"user-avatar"
/>
<div
class=
"user"
>
{{
userName
}}
<span
@
click=
"onCancel"
>
<i
class=
"el-icon-switch-button"
></i>
</span>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"a"
>
个人中心
</el-dropdown-item>
<el-dropdown-item
command=
"b"
>
退出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
...
...
@@ -23,17 +21,15 @@
<
script
>
import
{
mapGetters
}
from
'vuex'
import
Breadcrumb
from
'./Breadcrumb'
import
defaultSettings
from
'@/settings'
import
{
logout
}
from
"@/api/login.js"
;
export
default
{
components
:
{
Breadcrumb
},
computed
:
{
...
mapGetters
([
'sidebar'
,
'avatar'
,
'name'
])
},
data
()
{
return
{
title
:
defaultSettings
.
title
...
mapGetters
([
"sidebar"
,
"dicData"
,
"userInfo"
]),
userName
()
{
return
this
.
userInfo
?
this
.
userInfo
.
name
:
""
}
},
methods
:
{
...
...
@@ -44,11 +40,22 @@ export default {
themeChange
(
val
)
{
this
.
$store
.
dispatch
(
'app/updateTheme'
,
val
)
},
handleCommand
(
command
)
{
if
(
command
==
'a'
)
{
}
else
{
}
onCancel
()
{
logout
()
.
then
((
res
)
=>
{
sessionStorage
.
removeItem
(
"token"
);
this
.
$store
.
dispatch
(
"user/resetState"
);
this
.
$store
.
dispatch
(
"permission/resetRoutes"
);
this
.
$router
.
replace
({
path
:
"/sb"
,
query
:
{
redirect
:
this
.
$route
.
fullPath
,
},
});
})
.
catch
((
error
)
=>
{
// console.dir(error);
})
}
}
}
...
...
@@ -79,45 +86,6 @@ export default {
}
}
.NoticeBar
{
position
:
absolute
;
bottom
:
0
;
}
.el-dropdown-menu
{
padding
:
0
!important
;
border
:
1px
solid
#ebeef5
;
box-shadow
:
0
2px
10px
0
rgba
(
0
,
0
,
0
,
0.12
);
border-radius
:
4px
0
0
4px
4px
;
.el-dropdown-menu__item
{
text-align
:
center
;
margin-top
:
0
!important
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#4a4a4a
;
width
:
140px
;
height
:
36px
;
line-height
:
36px
;
}
.el-dropdown-menu__item
:nth-child
(
6
)
{
border-top
:
1px
solid
#ebeef5
;
}
.popper__arrow
{
top
:
-11px
!important
;
left
:
110px
!important
;
transform
:
rotate
(
0deg
)
scale
(
2
);
}
.el-dropdown-menu__item
:not
(
.is-disabled
)
:hover
,
.el-dropdown-menu__item
:focus
{
background
:
#f6f7f9
;
color
:
#4a4a4a
;
}
}
.navbar
{
height
:
$
headerHeight
;
overflow
:
hidden
;
...
...
@@ -133,117 +101,12 @@ export default {
width
:
300px
;
}
.backdrop
{
flex
:
1
;
width
:
60%
;
background-size
:
100%
100%
;
height
:
$
headerHeight
;
display
:
flex
;
align-items
:
center
;
}
.hamburger-container
{
line-height
:
43px
;
height
:
100%
;
float
:
left
;
cursor
:
pointer
;
transition
:
background
0.3s
;
-webkit-tap-highlight-color
:
transparent
;
&:hover
{
background
:
rgba
(
0
,
0
,
0
,
0.025
);
}
}
.breadcrumb-container
{
float
:
left
;
}
.right-menu
{
float
:
right
;
height
:
100%
;
line-height
:
50px
;
display
:
flex
;
align-items
:
center
;
.function
{
margin
:
0
15px
;
cursor
:
pointer
;
}
.shutdown
{
font-size
:
20px
;
margin-left
:
15px
;
cursor
:
pointer
;
}
.organization-item
{
margin-right
:
40px
;
margin-top
:
-40px
!important
;
}
.item
{
margin-right
:
40px
;
margin-top
:
-20px
;
line-height
:
18.4px
;
.right-menu-item
{
&.hover-effect
{
cursor
:
pointer
;
position
:
relative
;
.item-box
{
position
:
absolute
;
top
:
-5px
;
left
:
3px
;
width
:
100%
;
min-width
:
25px
;
height
:
25px
;
cursor
:
pointer
;
z-index
:
100
;
}
}
&
:focus
{
outline
:
none
;
}
.right-menu-item
{
display
:
inline-block
;
height
:
100%
;
font-size
:
18px
;
color
:
#fff
;
vertical-align
:
text-bottom
;
&.hover-effect
{
cursor
:
pointer
;
transition
:
background
0.3s
;
display
:
flex
;
align-items
:
center
;
&:hover
{
background
:
rgba
(
0
,
0
,
0
,
0.025
);
}
}
}
.avatar-wrapper
{
position
:
relative
;
transition
:
background
0.3s
;
display
:
flex
;
height
:
40px
;
align-items
:
center
;
.user-avatar
{
cursor
:
pointer
;
width
:
35px
;
height
:
35px
;
border-radius
:
50%
;
}
.el-icon-caret-bottom
{
cursor
:
pointer
;
position
:
absolute
;
right
:
-15px
;
top
:
17px
;
font-size
:
12px
;
}
}
}
}
...
...
src/layout1/index.vue
View file @
a5108e6
...
...
@@ -83,9 +83,4 @@ export default {
width
:
100%
;
transition
:
width
0.28s
;
}
.el-dropdown-menu--small
{
padding
:
0
;
width
:
5px
;
}
</
style
>
...
...
src/views/loginsb/index.vue
View file @
a5108e6
...
...
@@ -19,10 +19,12 @@
<div
class=
"flex-container"
>
<div
class=
"flex-input"
>
<el-input
class=
"yz"
@
keyup
.
native=
"login('user')"
v-model=
"user.yz"
placeholder=
"请输入验证码"
></el-input>
</div>
</div>
<div
class=
"flex-line"
></div>
<div
class=
"flex-img"
><canvas
id=
"s-canvas"
ref=
"s-canvas"
></canvas></div>
<div
class=
"flex-renovate"
><font
id=
"renovate"
@
click=
"verification"
>
换一批
</font></div>
<div
class=
"flex-renovate"
>
<font
id=
"renovate"
@
click=
"verification"
>
换一批
</font>
</div>
</div>
</el-form-item>
<el-form-item
class=
"login-btn"
>
...
...
@@ -35,308 +37,317 @@
</
template
>
<
script
>
import
{
loginIn
}
from
"@/api/login.js"
;
import
{
api
,
getAction
}
from
"@/api/manageApi"
;
export
default
{
name
:
"Login"
,
data
()
{
return
{
user
:
{
account
:
""
,
password
:
""
,
yz
:
""
,
checkStatus
:
false
,
},
productName
:
""
,
rules
:
{
account
:
[{
required
:
true
,
message
:
"请填写帐号"
,
trigger
:
"blur"
}],
password
:
[{
required
:
true
,
message
:
"请填写密码"
,
trigger
:
"blur"
}],
},
};
},
created
()
{
this
.
verification
();
const
params
=
{};
const
queryOptions
=
{
conditionGroup
:
{
conditions
:
[
{
property
:
"code"
,
value
:
"BDCSBPT"
,
operator
:
"EQ"
,
},
],
queryRelation
:
"AND"
,
},
};
params
.
queryOptions
=
JSON
.
stringify
(
queryOptions
);
//根据子系统code获取子系统详细信息
getAction
(
api
.
subsystem
,
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
productName
=
res
.
content
[
0
].
name
;
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
import
{
loginIn
}
from
"@/api/login.js"
;
import
{
api
,
getAction
}
from
"@/api/manageApi"
;
export
default
{
name
:
"Login"
,
data
()
{
return
{
user
:
{
account
:
""
,
password
:
""
,
yz
:
""
,
checkStatus
:
false
,
},
productName
:
""
,
rules
:
{
account
:
[{
required
:
true
,
message
:
"请填写帐号"
,
trigger
:
"blur"
}],
password
:
[{
required
:
true
,
message
:
"请填写密码"
,
trigger
:
"blur"
}],
},
};
},
created
()
{
this
.
verification
();
const
params
=
{};
const
queryOptions
=
{
conditionGroup
:
{
conditions
:
[
{
property
:
"code"
,
value
:
"BDCSBPT"
,
operator
:
"EQ"
,
},
],
queryRelation
:
"AND"
,
},
};
params
.
queryOptions
=
JSON
.
stringify
(
queryOptions
);
//根据子系统code获取子系统详细信息
getAction
(
api
.
subsystem
,
params
).
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
productName
=
res
.
content
[
0
].
name
;
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
}
else
{
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
});
}
});
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
}
else
{
this
.
$message
.
error
({
message
:
res
.
message
,
showClose
:
true
});
}
});
},
mounted
()
{
// this.checkUserName();
},
methods
:
{
verification
()
{
let
str
=
'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'
,
code
=
''
,
i
=
0
;
for
(;
i
++
<
4
;)
code
+=
str
[
Math
.
floor
(
Math
.
random
()
*
(
str
.
length
-
0
)
+
0
)];
setTimeout
(()
=>
{
let
canvas
=
document
.
getElementById
(
"s-canvas"
),
ctx
=
canvas
.
getContext
(
"2d"
);
canvas
.
width
=
80
;
canvas
.
height
=
28
;
ctx
.
fillStyle
=
'#ffffff'
;
ctx
.
fillRect
(
0
,
0
,
80
,
28
);
for
(
i
=
0
;
i
<
code
.
length
;
i
++
)
{
this
.
drawText
(
ctx
,
code
[
i
],
i
);
}
},
0
);
},
mounted
()
{
// this.checkUserName();
drawText
(
ctx
,
txt
,
i
)
{
ctx
.
fillStyle
=
this
.
randomColor
(
50
,
160
);
ctx
.
font
=
"18px SimHei"
;
let
x
=
(
i
+
1
)
*
(
80
/
(
4
+
1
)),
y
=
this
.
randomNum
(
18
,
28
-
5
);
ctx
.
translate
(
x
,
y
);
ctx
.
fillText
(
txt
,
0
,
0
);
ctx
.
rotate
((
-
0
*
Math
.
PI
)
/
180
);
ctx
.
translate
(
-
x
,
-
y
);
},
methods
:
{
verification
()
{
let
str
=
'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'
,
code
=
''
,
i
=
0
;
for
(
;
i
++
<
4
;
)
code
+=
str
[
Math
.
floor
(
Math
.
random
()
*
(
str
.
length
-
0
)
+
0
)
];
setTimeout
(
()
=>
{
let
canvas
=
document
.
getElementById
(
"s-canvas"
),
ctx
=
canvas
.
getContext
(
"2d"
);
canvas
.
width
=
80
;
canvas
.
height
=
28
;
ctx
.
fillStyle
=
'#ffffff'
;
ctx
.
fillRect
(
0
,
0
,
80
,
28
);
for
(
i
=
0
;
i
<
code
.
length
;
i
++
)
{
this
.
drawText
(
ctx
,
code
[
i
],
i
);
}
},
0
);
},
drawText
(
ctx
,
txt
,
i
)
{
ctx
.
fillStyle
=
this
.
randomColor
(
50
,
160
);
ctx
.
font
=
"18px SimHei"
;
let
x
=
(
i
+
1
)
*
(
80
/
(
4
+
1
)),
y
=
this
.
randomNum
(
18
,
28
-
5
);
ctx
.
translate
(
x
,
y
);
ctx
.
fillText
(
txt
,
0
,
0
);
ctx
.
rotate
((
-
0
*
Math
.
PI
)
/
180
);
ctx
.
translate
(
-
x
,
-
y
);
},
randomColor
(
min
,
max
)
{
let
r
=
this
.
randomNum
(
min
,
max
);
let
g
=
this
.
randomNum
(
min
,
max
);
let
b
=
this
.
randomNum
(
min
,
max
);
return
"rgb("
+
r
+
","
+
g
+
","
+
b
+
")"
;
},
randomNum
(
min
,
max
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
)
+
min
);
},
//记住用户名
checkUserName
:
function
(
flag
)
{
this
.
user
.
checkStatus
=
flag
;
if
(
this
.
user
.
checkStatus
)
{
localStorage
.
setItem
(
"accountId"
,
this
.
user
.
account
);
let
name
=
localStorage
.
getItem
(
"accountId"
);
if
(
name
===
""
)
{
return
;
}
else
{
this
.
user
.
account
=
name
;
}
randomColor
(
min
,
max
)
{
let
r
=
this
.
randomNum
(
min
,
max
);
let
g
=
this
.
randomNum
(
min
,
max
);
let
b
=
this
.
randomNum
(
min
,
max
);
return
"rgb("
+
r
+
","
+
g
+
","
+
b
+
")"
;
},
randomNum
(
min
,
max
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
)
+
min
);
},
//记住用户名
checkUserName
:
function
(
flag
)
{
this
.
user
.
checkStatus
=
flag
;
if
(
this
.
user
.
checkStatus
)
{
localStorage
.
setItem
(
"accountId"
,
this
.
user
.
account
);
let
name
=
localStorage
.
getItem
(
"accountId"
);
if
(
name
===
""
)
{
return
;
}
else
{
this
.
user
.
account
=
localStorage
.
getItem
(
"accountId"
)
;
this
.
user
.
account
=
name
;
}
},
login
(
user
)
{
var
self
=
this
;
this
.
$refs
[
user
].
validate
((
valid
)
=>
{
if
(
valid
)
{
loginIn
(
self
.
user
.
account
,
self
.
user
.
password
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
$store
.
dispatch
(
'business/setInitRules'
,
"layout1"
)
//存储token
localStorage
.
setItem
(
"token"
,
`Bearer
${
res
.
content
}
`
);
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
//登录成功后需判断有无重定向,没有重定向则跳转首页
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
"/"
);
}
else
{
console
.
log
(
res
);
this
.
$message
.
error
({
message
:
res
.
message
})
}
})
.
catch
((
error
)
=>
{
// console.dir(error);
});
}
});
},
}
else
{
this
.
user
.
account
=
localStorage
.
getItem
(
"accountId"
);
}
},
login
(
user
)
{
var
self
=
this
;
this
.
$refs
[
user
].
validate
((
valid
)
=>
{
if
(
valid
)
{
loginIn
(
self
.
user
.
account
,
self
.
user
.
password
)
.
then
((
res
)
=>
{
if
(
res
.
status
===
1
)
{
this
.
$store
.
dispatch
(
'business/setInitRules'
,
"layout1"
)
//存储token
localStorage
.
setItem
(
"token"
,
`Bearer
${
res
.
content
}
`
);
this
.
$store
.
dispatch
(
"products/setData"
,
res
.
content
[
0
].
code
);
sessionStorage
.
setItem
(
"products"
,
res
.
content
[
0
].
code
)
//登录成功后需判断有无重定向,没有重定向则跳转首页
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
"/jsbwcx/index"
);
}
else
{
console
.
log
(
res
);
this
.
$message
.
error
({
message
:
res
.
message
})
}
})
.
catch
((
error
)
=>
{
// console.dir(error);
});
}
});
},
components
:
{},
};
},
components
:
{},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.username
,
.password
,
.yz
{
position
:
relative
;
&:before
{
content
:
""
;
display
:
block
;
width
:
16px
;
height
:
16px
;
position
:
absolute
;
left
:
10px
;
top
:
7px
;
background-size
:
100%
100%
;
}
/
deep
/
.el-input__inner
{
color
:
#000
!important
;
text-indent
:
24px
;
//
border
:
1px
solid
rgba
(
11
,
161
,
248
,
0.4
);
//
background-color
:
rgba
(
6
,
135
,
205
,
0.3
)
!important
;
}
}
.username
,
.password
,
.yz
{
position
:
relative
;
.flex-container
{
position
:
relative
;
display
:
-webkit-flex
;
display
:
flex
;
}
.flex-input
{
width
:
100%
;
}
.flex-line
{
position
:
absolute
;
width
:
1px
;
height
:
64%
;
margin
:
5px
;
right
:
36%
;
background-color
:
#CCCCCC
;
}
.flex-img
{
&:before
{
content
:
""
;
display
:
block
;
width
:
16px
;
height
:
16px
;
position
:
absolute
;
margin
:
2px
;
right
:
16%
;
}
.flex-renovate
{
position
:
absolute
;
margin
:
1px
;
right
:
3%
;
}
#renovate
{
color
:
#3F8FEA
;
font-size
:
16px
;
font-weight
:
700
;
cursor
:
pointer
;
left
:
10px
;
top
:
7px
;
background-size
:
100%
100%
;
}
.username
::before
{
background-image
:
url(../../image/userlogo.png)
;
/
deep
/
.el-input__inner
{
color
:
#000
!important
;
text-indent
:
24px
;
//
border
:
1px
solid
rgba
(
11
,
161
,
248
,
0.4
);
//
background-color
:
rgba
(
6
,
135
,
205
,
0.3
)
!important
;
}
}
.password
::before
{
background-image
:
url(../../image/passlogo.png)
;
}
.yz
::before
{
background-image
:
url(../../image/yzlogo.png)
;
}
.flex-container
{
position
:
relative
;
display
:
-webkit-flex
;
display
:
flex
;
}
.bg
{
width
:
100%
;
height
:
100%
;
min-width
:
1440px
;
min-height
:
560px
;
background
:
url(../../image/loginBoxsb.png)
no-repeat
;
background-size
:
100%
100%
;
overflow
:
hidden
;
position
:
relative
;
}
.title
{
width
:
24%
;
height
:
6%
;
top
:
20%
;
right
:
38%
;
.flex-input
{
width
:
100%
;
}
.flex-line
{
position
:
absolute
;
width
:
1px
;
height
:
64%
;
margin
:
5px
;
right
:
36%
;
background-color
:
#CCCCCC
;
}
.flex-img
{
position
:
absolute
;
margin
:
2px
;
right
:
16%
;
}
.flex-renovate
{
position
:
absolute
;
margin
:
1px
;
right
:
3%
;
}
#renovate
{
color
:
#3F8FEA
;
font-size
:
16px
;
font-weight
:
700
;
cursor
:
pointer
;
}
.username
::before
{
background-image
:
url(../../image/userlogo.png)
;
}
.password
::before
{
background-image
:
url(../../image/passlogo.png)
;
}
.yz
::before
{
background-image
:
url(../../image/yzlogo.png)
;
}
.bg
{
width
:
100%
;
height
:
100%
;
min-width
:
1440px
;
min-height
:
560px
;
background
:
url(../../image/loginBoxsb.png)
no-repeat
;
background-size
:
100%
100%
;
overflow
:
hidden
;
position
:
relative
;
}
.title
{
width
:
24%
;
height
:
6%
;
top
:
20%
;
right
:
38%
;
position
:
absolute
;
img
{
width
:
60px
;
height
:
60px
;
top
:
0%
;
left
:
2%
;
position
:
absolute
;
img
{
width
:
60px
;
height
:
60px
;
top
:
0%
;
left
:
2%
;
position
:
absolute
;
}
h2
{
top
:
25%
;
left
:
22%
;
position
:
absolute
;
width
:
383px
;
height
:
42px
;
font-size
:
28px
;
font-weight
:
600
;
color
:
#ffffff
;
text-shadow
:
0px
4px
4px
#002c95
;
}
}
.login-inner-bg
{
background
:
white
;
width
:
24.6%
;
height
:
47%
;
min-width
:
360px
;
min-height
:
380px
;
top
:
30%
;
right
:
38%
;
h2
{
top
:
25%
;
left
:
22%
;
position
:
absolute
;
background-size
:
100%
100%
;
box-sizing
:
border-box
;
padding
:
56px
;
width
:
383px
;
height
:
42px
;
font-size
:
28px
;
font-weight
:
600
;
color
:
#ffffff
;
text-shadow
:
0px
4px
4px
#002c95
;
}
}
.login
{
.user_style
{
h3
{
font-weight
:
normal
;
text-align
:
center
;
margin
:
-10px
auto
28px
;
font-weight
:
400
;
width
:
125px
;
height
:
29px
;
font-size
:
20px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
color
:
#333333
;
}
}
.login-inner-bg
{
background
:
white
;
width
:
24.6%
;
height
:
47%
;
min-width
:
360px
;
min-height
:
380px
;
top
:
30%
;
right
:
38%
;
position
:
absolute
;
background-size
:
100%
100%
;
box-sizing
:
border-box
;
padding
:
56px
;
}
.btn
{
width
:
100%
;
height
:
6vh
;
background-color
:
#00c2de
;
border-radius
:
5px
;
font-size
:
1.4vw
;
color
:
#000
;
.login
{
.user_style
{
h3
{
font-weight
:
normal
;
text-align
:
center
;
margin
:
-10px
auto
28px
;
font-weight
:
400
;
width
:
125px
;
height
:
29px
;
font-size
:
20px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
color
:
#333333
;
}
}
.btn
:hover
{
cursor
:
pointer
;
background-color
:
#2d8cf0
;
}
.btn
{
width
:
100%
;
height
:
6vh
;
background-color
:
#00c2de
;
border-radius
:
5px
;
font-size
:
1.4vw
;
color
:
#000
;
}
.login
#loginform
{
.el-form-item
{
margin-bottom
:
24px
!important
;
}
.btn
:hover
{
cursor
:
pointer
;
background-color
:
#2d8cf0
;
}
}
.login-btn
{
margin-top
:
30px
!important
;
}
.login
#loginform
{
.el-form-item
{
margin-bottom
:
24px
!important
;
}
.el-button
{
font-size
:
18px
;
border-radius
:
0
;
background
:
#4162d8
!important
;
color
:
#ffffff
!important
;
cursor
:
pointer
!important
;
}
.login-btn
{
margin-top
:
30px
!important
;
}
.el-input__inner
{
width
:
100%
!important
;
}
.el-button
{
font-size
:
18px
;
border-radius
:
0
;
background
:
#4162d8
!important
;
color
:
#ffffff
!important
;
cursor
:
pointer
!important
;
}
.el-checkbox__label
{
color
:
#fff
;
}
.el-input__inner
{
width
:
100%
!important
;
}
.inputUser
.ivu-input
{
padding
:
6px
24px
!important
;
border
:
1px
solid
#9f9f9f
!important
;
.el-checkbox__label
{
color
:
#fff
;
}
</
style
>
}
.inputUser
.ivu-input
{
padding
:
6px
24px
!important
;
border
:
1px
solid
#9f9f9f
!important
;
}
</
style
>
...
...
Please
register
or
sign in
to post a comment