Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
21c6004d
Commit
21c6004d
authored
Sep 15, 2022
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:支持路径传图片
parent
6c0a598a
Pipeline
#60153
waiting for manual action with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
index.js
src/pages/user/login/template/energy_GZ/index.js
+6
-2
index.less
src/pages/user/login/template/energy_GZ/index.less
+2
-0
index.js
src/pages/user/login/template/energy_JS2/index.js
+5
-1
No files found.
src/pages/user/login/template/energy_GZ/index.js
View file @
21c6004d
...
...
@@ -17,6 +17,7 @@ import styles from './index.less';
import
{
defaultApp
}
from
'@/micro'
;
import
{
log
}
from
'kit_utils'
;
let
big
=
'广州大.png'
let
bigNew
=
''
class
HuaNongLogin
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -41,6 +42,9 @@ class HuaNongLogin extends Component {
if
(
item
[
0
]
==
'big'
){
big
=
item
[
1
]
}
if
(
item
[
0
]
==
'bigNew'
){
bigNew
=
item
[
1
]
}
}
})
}
...
...
@@ -203,7 +207,7 @@ _createGuid() {
.
toUpperCase
();
}
componentDidMount
()
{
console
.
log
(
this
.
props
,
this
.
props
.
global
.
logo
);
console
.
log
(
this
.
props
,
this
.
props
.
global
.
logo
,
this
.
props
.
global
.
transformDevAssetsBaseURL
(
'assets/images/广州/背景.png'
)
);
console
.
log
(
this
);
this
.
onActinoChange
(
this
.
state
.
action
);
this
.
getCurrentTime
(
this
.
showTime
);
...
...
@@ -228,7 +232,7 @@ _createGuid() {
return
(
<
HelmetProvider
>
<
div
className
=
{
styles
.
quota
}
style
=
{{
'background'
:
`url(
${
require
(
"@/assets/images/login/节水/"
+
big
)}
)
`
}}
>
<
div
className
=
{
styles
.
quota
}
style
=
{{
'background'
:
`url(
${
bigNew
?
this
.
props
.
global
.
transformDevAssetsBaseURL
(
bigNew
):
require
(
"@/assets/images/login/节水/"
+
big
)}
) no-repeat
`
}}
>
<
div
className
=
{
styles
.
head
}
>
<
div
className
=
{
styles
.
title
}
>
<
img
src
=
{
this
.
props
.
global
&&
this
.
props
.
global
.
transformDevAssetsBaseURL
&&
this
.
props
.
global
.
transformDevAssetsBaseURL
(
this
.
props
.
global
.
logo
)}
alt
=
""
/>
...
...
src/pages/user/login/template/energy_GZ/index.less
View file @
21c6004d
...
...
@@ -17,6 +17,8 @@
height: 100%;
// background: url('@/assets/images/login/节水/广州大.png') no-repeat;
background-size: cover;
background-size:100% 100%;
background-attachment:fixed;
.head {
position: absolute;
top: 0;
...
...
src/pages/user/login/template/energy_JS2/index.js
View file @
21c6004d
...
...
@@ -17,6 +17,7 @@ import styles from './index.less';
import
{
defaultApp
}
from
'@/micro'
;
import
{
log
}
from
'kit_utils'
;
let
smallBg
=
'建桥图片.jpg'
let
smallBgNew
=
''
class
HuaNongLogin
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -42,6 +43,9 @@ class HuaNongLogin extends Component {
if
(
item
[
0
]
==
'smallBg'
){
smallBg
=
item
[
1
]
}
if
(
item
[
0
]
==
'smallBgNew'
){
smallBgNew
=
item
[
1
]
}
}
})
...
...
@@ -229,7 +233,7 @@ _createGuid() {
<
/div
>
<
div
className
=
{
styles
.
wrap_content
}
>
<
div
>
<
img
className
=
{
styles
.
from_img
}
src
=
{
require
(
`@/assets/images/login/节水/
${
smallBg
}
`
)
}
alt
=
""
/>
<
img
className
=
{
styles
.
from_img
}
src
=
{
smallBgNew
?
this
.
props
.
global
.
transformDevAssetsBaseURL
(
smallBgNew
):
require
(
`@/assets/images/login/节水/
${
smallBg
}
`
)
}
alt
=
""
/>
<
div
className
=
{
styles
.
from
}
>
<
div
className
=
{
styles
.
slogan
}
>
<
div
className
=
{
styles
.
slogan_back
}
/
>
...
...
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