Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
0160cf26
Commit
0160cf26
authored
Dec 14, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推修改门户的登录页背景图通过接口获取
parent
169b88ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
portal-manager-ui/admin/.env.development
portal-manager-ui/admin/.env.development
+3
-3
portal-manager-ui/admin/src/api/user.js
portal-manager-ui/admin/src/api/user.js
+1
-1
portal-manager-ui/admin/src/views/signIn/signIn.vue
portal-manager-ui/admin/src/views/signIn/signIn.vue
+17
-3
portal-manager-ui/admin/vue.config.js
portal-manager-ui/admin/vue.config.js
+4
-0
No files found.
portal-manager-ui/admin/.env.development
View file @
0160cf26
# 开发环境配置
NODE_ENV = development
# VUE_APP_API_BASE_URL=http://8.136.255.30:11078
VUE_APP_API_BASE_URL=http://192.168.0.
124
:11078
VUE_APP_API_BASE_URL=http://192.168.0.
98
:11078
#图片显示拼接
# VUE_APP_API_IMG_URL=http://8.136.255.30:11078/
VUE_APP_API_IMG_URL=http://192.168.0.
124
:11078/
VUE_APP_API_IMG_URL=http://192.168.0.
98
:11078/
#余林
# VUE_APP_API_PHP_URL=http://8.136.255.30:8090
VUE_APP_API_PHP_URL=http://192.168.0.
124
:8090
VUE_APP_API_PHP_URL=http://192.168.0.
98
:8090
#宜宾
#VUE_APP_API_BASE_URL=http://10.12.185.213:11072
portal-manager-ui/admin/src/api/user.js
View file @
0160cf26
...
...
@@ -18,7 +18,7 @@ export function changePassword(params) {
}
// 1.2.5. 查询门户口号
export
function
getSlogan
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/base/param/key?key=
title
`
);
return
http
.
post
(
`
${
baseURL
}
/base/param/key?key=
${
params
}
`
);
}
// 管理员修改密码
export
function
editPassword
(
params
)
{
...
...
portal-manager-ui/admin/src/views/signIn/signIn.vue
View file @
0160cf26
<
template
>
<div
class=
"login h-full w-full"
>
<div
class=
"login h-full w-full"
:style=
"
{ backgroundImage: `url(${imgUrl})` }"
>
<div
class=
"main h-full w-full flex items-center justify-between"
>
<div
class=
"slogan"
>
<p
class=
"slogan-text slogan-text-1 mb-12"
>
{{
sloganTitle
}}
</p>
...
...
@@ -312,6 +315,7 @@ export default {
{
required
:
true
,
validator
:
changePwdAgain
,
trigger
:
"
blur
"
},
],
},
imgUrl
:
""
,
};
},
computed
:
{
...
...
@@ -330,7 +334,17 @@ export default {
methods
:
{
...
mapMutations
(
"
user
"
,
[
"
set_token
"
,
"
SET_USERDATA
"
,
"
set_siteList
"
]),
getTitle
()
{
getSlogan
().
then
((
res
)
=>
{
getSlogan
(
"
signImg
"
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
res
.
data
?
(
this
.
imgUrl
=
res
.
data
)
:
(
this
.
imgUrl
=
require
(
"
@/assets/images/login_bg.jpg
"
));
// res.data
// ? (this.imgUrl = require("@/assets/images/login_bg.jpg"))
// : (this.imgUrl = res.data);
}
});
getSlogan
(
"
title
"
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
sloganTitle
=
res
.
data
;
localStorage
.
setItem
(
"
sloganTitle
"
,
res
.
data
);
...
...
@@ -492,7 +506,7 @@ export default {
--input-height: 50px;
--input-border-color: rgba(238, 238, 238, 1);
--time: 1.5s;
background: url("@/assets/images/login_bg.jpg");
//
background: url("@/assets/images/login_bg.jpg");
background-size: 100% auto;
animation: bg-roll 150s cubic-bezier(0.21, 0.07, 0.88, 1.02) infinite;
.main {
...
...
portal-manager-ui/admin/vue.config.js
View file @
0160cf26
...
...
@@ -16,6 +16,10 @@ module.exports = defineConfig({
"
^/api
"
:
""
,
},
},
"
/file
"
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
changeOrigin
:
true
,
},
},
},
...
...
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