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
d36597f1
Commit
d36597f1
authored
Jan 20, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修复图片加载'
parent
ea4f5471
Pipeline
#22708
skipped with stages
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
23 deletions
+24
-23
proxy.js
config/proxy.js
+1
-1
index.js
src/api/index.js
+6
-6
constants.js
src/constants.js
+1
-1
index.js
src/pages/transitionalpage/index.js
+6
-9
index.less
src/pages/transitionalpage/index.less
+8
-4
config.js
src/routes/config.js
+2
-2
No files found.
config/proxy.js
View file @
d36597f1
...
...
@@ -9,7 +9,7 @@ module.exports = {
// target: 'https://panda-water.com',
// target: 'http://192.168.10.150:8050',
// target: 'http://192.168.19.103:8112',
target
:
'http://192.168.12.8:8098'
,
//
target: 'http://192.168.12.8:8098',
// target: 'http://192.168.10.20:8888',
changeOrigin
:
true
,
headers
:
{
...
...
src/api/index.js
View file @
d36597f1
...
...
@@ -6,12 +6,12 @@ import notificationService from './service/notification';
// eslint-disable-next-line no-return-await
request
.
reportCodeError
=
true
;
request
.
setResponseHandler
(
response
=>
{
if
(
response
.
code
===
401
)
{
return
window
.
location
.
reload
();
}
return
response
;
});
//
request.setResponseHandler(response => {
//
if (response.code === 401) {
//
return window.location.reload();
//
}
//
return response;
//
});
request
.
setErrorHandler
((
resData
,
{
config
})
=>
{
if
(
!
config
.
noErrorTip
)
{
...
...
src/constants.js
View file @
d36597f1
...
...
@@ -5,6 +5,6 @@ export const SERVICE_APP_LOGIN_MODE = {
dingding
:
'dingding'
,
weixin
:
'weixin'
,
phone
:
'phone'
,
}
}
;
export
const
SERVICE_APP_CLOSE_ALL_TABS
=
'app.close.tabs'
;
src/pages/transitionalpage/index.js
View file @
d36597f1
...
...
@@ -85,7 +85,7 @@ class ProjectBox extends React.Component {
return
(
<
div
style
=
{{
background
Image
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'.png'
)}
)`
,
}}
...
...
@@ -95,17 +95,14 @@ class ProjectBox extends React.Component {
type
=
{
item
}
key
=
{
item
}
onClick
=
{
event
=>
callback
(
event
,
item
)}
onMouseEnter
=
{
e
=>
{
this
.
mouseOveHandle
(
item
);
}}
onMouseLeave
=
{
e
=>
{
this
.
mouseOutHandle
(
item
);
}}
style
=
{{
backgroundImage
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
(
!
this
.
state
[
item
]
?
item
+
'图.jpg'
:
item
+
'图动.gif'
))}
)`
,
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'图.jpg'
)}
)`
,
}}
>
<
img
src
=
{
this
.
state
[
item
]
?
require
(
`../../assets/transitionalpage/
${
item
}
图动.gif`
):
require
(
`../../assets/transitionalpage/
${
item
}
图.jpg`
)
}
onMouseEnter
=
{
e
=>
this
.
mouseOveHandle
(
item
)}
onMouseLeave
=
{
e
=>
this
.
mouseOutHandle
(
item
)}
/
>
<
div
>
{
item
}
<
/div
>
{
/* <div className={styles.bootPageitemImgB}>
</div> */
}
...
...
src/pages/transitionalpage/index.less
View file @
d36597f1
...
...
@@ -122,11 +122,15 @@
padding: 6px;
width: 316px;
height: 181px;
position: relative;
div {
width: 50%;
text-align: left;
flex: 1;
padding-left: 13px;
//width: 50%;
//text-align: left;
//flex: 1;
//padding-left: 13px;
position: absolute;
left: 26px;
}
.bootPageitemImgB {
width: 190px;
...
...
src/routes/config.js
View file @
d36597f1
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
UserLayout
from
'../layouts/UserLayout'
;
import
BootPage
from
'../pages/bootpage'
;
//
import BootPage from '../pages/transitionalpage';
//
import BootPage from '../pages/bootpage';
import
BootPage
from
'../pages/transitionalpage'
;
import
NotFound
from
'../pages/exception/404'
;
import
ServiceFail
from
'../pages/exception/500'
;
import
Login
from
'../pages/user/login'
;
...
...
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