Commit 379c51ed by wangshuo

返场

parent a59be2b7
...@@ -64,7 +64,7 @@ class Banner extends Component { ...@@ -64,7 +64,7 @@ class Banner extends Component {
// } else { // } else {
// !nav.classList.contains('fixed') && nav.classList.add('fixed') // !nav.classList.contains('fixed') && nav.classList.add('fixed')
// } // }
// if (swipeDirection === 'up') { // if (swipeDirection === 'up') {
// if (y + 30 + 30 >= top) { // if (y + 30 + 30 >= top) {
// this.setState({ // this.setState({
...@@ -80,7 +80,7 @@ class Banner extends Component { ...@@ -80,7 +80,7 @@ class Banner extends Component {
// } // }
// this.prevY = y // this.prevY = y
// } // }
// } // }
// toSection = (i, e) => { // toSection = (i, e) => {
...@@ -97,10 +97,10 @@ class Banner extends Component { ...@@ -97,10 +97,10 @@ class Banner extends Component {
render() { render() {
const { toSection, navs, index, isFormal } = this.props; const { toSection, navs, index, isFormal, onlyShow } = this.props;
return ( return (
<div id={'main-banner'}> <div id={'main-banner'}>
<div className={`banner ${isFormal ? 'formal_banner' : ''}`}></div> <div className={`banner ${isFormal ? 'formal_banner' : ''} ${onlyShow ? 'fc_banner' : ''}`}></div>
<nav id={'main-nav'}> <nav id={'main-nav'}>
<ul> <ul>
{ {
......
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