Browse Source

提交样式

release_0.0.4
wangyue 2 years ago
parent
commit
c6a3b352d6
  1. 58
      web/client/src/sections/quanju/containers/example.js
  2. 4
      web/client/src/sections/quanju/containers/footer/leadership/right/hudong.js
  3. 10
      web/client/src/sections/quanju/containers/footer/leadership/right/left.less

58
web/client/src/sections/quanju/containers/example.js

@ -24,44 +24,44 @@ const Example = (props) => {
} }
useEffect(() => { // useEffect(() => {
const map = new AMap.Map(MAPID, { // const map = new AMap.Map(MAPID, {
//resizeEnable: true, // //resizeEnable: true,
center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块 // center: [115.912663, 28.543149],//地图中心点,初始定位加载显示楼块
// center: [115.857952, 28.683003],//地图中心点 // // center: [115.857952, 28.683003],//地图中心点
zoom: 13,//地图显示的缩放级别 // zoom: 13,//地图显示的缩放级别
zooms: [8, 18], // zooms: [8, 18],
pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度 // pitch: 65, // 地图俯仰角度,有效范围 0 度- 83 度
viewMode: '3D', // 地图模式 // viewMode: '3D', // 地图模式
// rotation: 60 // // rotation: 60
// showLabel: false // // showLabel: false
}); // });
let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc'; // let styleName = 'amap://styles/fb26776387242721c2fc32e2cb1daccc';
map.setMapStyle(styleName); // map.setMapStyle(styleName);
let mapComplete = false; // let mapComplete = false;
let windowOnload = false; // let windowOnload = false;
window.onload = function () { // window.onload = function () {
windowOnload = true; // windowOnload = true;
} // }
//主题样式 // //主题样式
return () => { // return () => {
const amapKeys = Object.keys(localStorage).filter(key => key.match(/^_AMap_/)) // 销毁地图 // const amapKeys = Object.keys(localStorage).filter(key => key.match(/^_AMap_/)) // 销毁地图
amapKeys.forEach(key => { // amapKeys.forEach(key => {
localStorage.removeItem(key) // localStorage.removeItem(key)
}) // })
map.clearMap(); // map.clearMap();
if (map) map.destroy(); // if (map) map.destroy();
} // }
}, []) // }, [])
return ( return (

4
web/client/src/sections/quanju/containers/footer/leadership/right/hudong.js

@ -96,7 +96,7 @@ class ReactCarousel extends Component {
} }
</ul> */} </ul> */}
<div className="control" style={{ width: "100%", height: "10%", backgroundColor: "red" }}> <div className="control" style={{ width: "100%", height: "10%" }}>
<span className="left" onClick={(e) => { this.previous(e) }}></span> <span className="left" onClick={(e) => { this.previous(e) }}></span>
<span className="right" onClick={(e) => { this.next(e) }}></span> <span className="right" onClick={(e) => { this.next(e) }}></span>
</div> </div>
@ -119,7 +119,7 @@ class ReactCarousel extends Component {
let { timer } = this.state; let { timer } = this.state;
timer = setInterval(() => { timer = setInterval(() => {
this.next(); this.next();
}, 2000); }, 300000);
this.setState({ this.setState({
timer timer
}) })

10
web/client/src/sections/quanju/containers/footer/leadership/right/left.less

@ -9,22 +9,22 @@ li{
font-family: PingFangSC-Regular, PingFang SC !important; font-family: PingFangSC-Regular, PingFang SC !important;
height: 25px !important; height: 25px !important;
// line-height: 25px !important; // line-height: 25px !important;
} }.ant-select-selection-item{
}
.ant-select-selection-item{
line-height: 25px !important; line-height: 25px !important;
} }
.anticon{ .anticon{
color: #fff !important; color: #fff !important;
} }
}
.contain { .contain {
position: relative; position: relative;
top: 5%; top: 5%;
left: 45%; left: 45%;
width: 100%; width: 100%;
height: 100%; height: 100%;
transition: all 2s; transition: all 30s;
transform: translateX(-50%); transform: translateX(-50%);
color: #fff; color: #fff;
overflow: hidden; overflow: hidden;

Loading…
Cancel
Save