Commit d36597f1 authored by 邓晓峰's avatar 邓晓峰

'修复图片加载'

parent ea4f5471
Pipeline #22708 skipped with stages
...@@ -9,7 +9,7 @@ module.exports = { ...@@ -9,7 +9,7 @@ module.exports = {
// target: 'https://panda-water.com', // target: 'https://panda-water.com',
// target: 'http://192.168.10.150:8050', // target: 'http://192.168.10.150:8050',
// target: 'http://192.168.19.103:8112', // 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', // target: 'http://192.168.10.20:8888',
changeOrigin: true, changeOrigin: true,
headers: { headers: {
......
...@@ -6,12 +6,12 @@ import notificationService from './service/notification'; ...@@ -6,12 +6,12 @@ import notificationService from './service/notification';
// eslint-disable-next-line no-return-await // eslint-disable-next-line no-return-await
request.reportCodeError = true; request.reportCodeError = true;
request.setResponseHandler(response => { // request.setResponseHandler(response => {
if (response.code === 401) { // if (response.code === 401) {
return window.location.reload(); // return window.location.reload();
} // }
return response; // return response;
}); // });
request.setErrorHandler((resData, { config }) => { request.setErrorHandler((resData, { config }) => {
if (!config.noErrorTip) { if (!config.noErrorTip) {
......
...@@ -5,6 +5,6 @@ export const SERVICE_APP_LOGIN_MODE = { ...@@ -5,6 +5,6 @@ export const SERVICE_APP_LOGIN_MODE = {
dingding: 'dingding', dingding: 'dingding',
weixin: 'weixin', weixin: 'weixin',
phone: 'phone', phone: 'phone',
} };
export const SERVICE_APP_CLOSE_ALL_TABS = 'app.close.tabs'; export const SERVICE_APP_CLOSE_ALL_TABS = 'app.close.tabs';
...@@ -85,7 +85,7 @@ class ProjectBox extends React.Component { ...@@ -85,7 +85,7 @@ class ProjectBox extends React.Component {
return ( return (
<div <div
style={{ style={{
backgroundImage: `url(${require('../../assets/transitionalpage/' + background: `url(${require('../../assets/transitionalpage/' +
item + item +
'.png')})`, '.png')})`,
}} }}
...@@ -95,17 +95,14 @@ class ProjectBox extends React.Component { ...@@ -95,17 +95,14 @@ class ProjectBox extends React.Component {
type={item} type={item}
key={item} key={item}
onClick={event => callback(event, item)} onClick={event => callback(event, item)}
onMouseEnter={e => {
this.mouseOveHandle(item);
}}
onMouseLeave={e => {
this.mouseOutHandle(item);
}}
style={{ style={{
backgroundImage: `url(${require('../../assets/transitionalpage/' + background: `url(${require('../../assets/transitionalpage/'+item + '图.jpg')})`,
(!this.state[item] ? item + '图.jpg' : item + '图动.gif'))})`,
}} }}
> >
<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>{item}</div>
{/* <div className={styles.bootPageitemImgB}> {/* <div className={styles.bootPageitemImgB}>
</div> */} </div> */}
......
...@@ -122,11 +122,15 @@ ...@@ -122,11 +122,15 @@
padding: 6px; padding: 6px;
width: 316px; width: 316px;
height: 181px; height: 181px;
position: relative;
div { div {
width: 50%; //width: 50%;
text-align: left; //text-align: left;
flex: 1; //flex: 1;
padding-left: 13px; //padding-left: 13px;
position: absolute;
left: 26px;
} }
.bootPageitemImgB { .bootPageitemImgB {
width: 190px; width: 190px;
......
import BasicLayout from '../layouts/BasicLayout'; import BasicLayout from '../layouts/BasicLayout';
import UserLayout from '../layouts/UserLayout'; import UserLayout from '../layouts/UserLayout';
import BootPage from '../pages/bootpage'; // import BootPage from '../pages/bootpage';
// import BootPage from '../pages/transitionalpage'; import BootPage from '../pages/transitionalpage';
import NotFound from '../pages/exception/404'; import NotFound from '../pages/exception/404';
import ServiceFail from '../pages/exception/500'; import ServiceFail from '../pages/exception/500';
import Login from '../pages/user/login'; import Login from '../pages/user/login';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment