Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
renewal-interest-data-board
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fbb4fb30
authored
Jul 06, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_v3.13_0' into 'scrmv3.13.0'
更新冒烟代码 See merge request
!11
2 parents
c0da700f
22457473
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
19 deletions
src/components/ViewTitle.vue
src/views/login/index.vue
src/components/ViewTitle.vue
View file @
fbb4fb3
...
...
@@ -29,17 +29,17 @@ export default {
return
{
yesterday
:
''
,
now
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
merchantNum
:
{
totalNum
:
'--'
,
increLastMonthNum
:
'--'
,
increThisMonthNum
:
'--'
}
//
merchantNum: {
//
totalNum: '--',
//
increLastMonthNum: '--',
//
increThisMonthNum: '--'
//
}
}
},
mounted
()
{
this
.
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
1
)).
format
(
'yyyy-MM-dd'
)
this
.
timer
()
this
.
getMerchantNum
()
//
this.getMerchantNum()
},
methods
:
{
timer
()
{
...
...
@@ -47,16 +47,13 @@ export default {
this
.
now
=
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
)
},
1
e3
)
},
getMerchantNum
()
{
this
.
api
.
overview
.
getMerchantNum
({}).
then
(
res
=>
{
if
(
res
.
code
===
'0'
)
{
this
.
merchantNum
=
res
.
data
.
dataList
[
0
]
}
})
// this.api.renewal.getRanking({}).then(res =>{
// console.log(res)
// })
}
// getMerchantNum() {
// this.api.overview.getMerchantNum({}).then(res => {
// if (res.code === '0') {
// this.merchantNum = res.data.dataList[0]
// }
// })
// }
}
}
</
script
>
...
...
src/views/login/index.vue
View file @
fbb4fb3
...
...
@@ -8,11 +8,11 @@
<div
class=
'authorization-wrap'
>
<div
class=
'username-wrap flex'
>
<img
class=
'user-icon'
src=
'../../../src/assets/images/login/login-user-icon.png'
>
<el-input
placeholder=
'请输入用户名'
v-model=
'userName'
></el-input>
<el-input
class=
'user-input'
placeholder=
'请输入用户名'
v-model=
'userName'
></el-input>
</div>
<div
class=
'password-wrap flex'
>
<img
class=
'user-icon'
src=
'../../../src/assets/images/login/login-psw-icon.png'
>
<el-input
placeholder=
'请输入密码'
v-model=
'passWord'
show-password
></el-input>
<el-input
class=
'user-input'
placeholder=
'请输入密码'
v-model=
'passWord'
show-password
></el-input>
</div>
...
...
@@ -48,7 +48,7 @@ export default {
let
pwd
=
this
.
passWord
if
(
!
user
||
!
pwd
)
{
this
.
$message
.
error
(
'请输入账号密码'
)
}
else
{
}
else
{
if
(
Object
.
keys
(
this
.
accountPassword
).
includes
(
user
))
{
if
(
pwd
==
this
.
accountPassword
[
user
])
{
this
.
$router
.
push
(
'./home'
)
...
...
@@ -65,7 +65,18 @@ export default {
}
</
script
>
<
style
lang=
'scss'
>
.authorization-wrap
{
/deep/
.el-input_inner
{
background
:
linear-gradient
(
269deg
,
#ff660000
0%
,
#fb6900
c7
51%
,
#FA6A00
98%
);
border
:
none
;
opacity
:
0.67
;
color
:
#fff
}
}
</
style
>
<
style
lang=
'scss'
scoped
>
.user-icon
{
width
:
80px
;
height
:
80px
;
...
...
@@ -115,6 +126,21 @@ export default {
justify-content
:
center
;
align-items
:
center
;
.authorization-wrap
{
.user-input{
/deep/
.el-input__inner
{
background
:
linear-gradient
(
269deg
,
#ff660000
0%
,
#fb6900
c7
51%
,
#FA6A00
98%
);
border
:
none
;
//
opacity
:
0.67
;
color
:
#FFFFFF
;
}
/
deep
/
.el-input__inner
::placeholder
{
color
:
#FFFFFF
;
}
}
}
.login-btn
{
background-image
:
url('./../../assets/images/login/login-bottom.png')
;
background-repeat
:
no-repeat
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment