| @@ -55,16 +55,16 @@ var animationThemes = [ | |||||
| second:"slideInLeft", | second:"slideInLeft", | ||||
| third:"slideInRight" | third:"slideInRight" | ||||
| }, | }, | ||||
| { | |||||
| first:"fadeIn", | |||||
| second:"fadeIn", | |||||
| third:"fadeIn" | |||||
| }, | |||||
| { | { | ||||
| first:"zoomInDown", | first:"zoomInDown", | ||||
| second:"zoomInLeft", | second:"zoomInLeft", | ||||
| third:"zoomInRight" | third:"zoomInRight" | ||||
| }, | }, | ||||
| { | |||||
| first:"fadeIn", | |||||
| second:"fadeIn", | |||||
| third:"fadeIn" | |||||
| }, | |||||
| { | { | ||||
| first:"bounceInDown", | first:"bounceInDown", | ||||
| second:"bounceInLeft", | second:"bounceInLeft", | ||||
| @@ -83,7 +83,8 @@ export default class MyPage extends Component { | |||||
| contentItem2:null, | contentItem2:null, | ||||
| animationTheme:{}, | animationTheme:{}, | ||||
| heartConfig:{ | heartConfig:{ | ||||
| heartbeatInterval:1000*5*60, | |||||
| heartbeatInterval:1000*5, | |||||
| // heartbeatInterval:1000*5*60, | |||||
| dataRefreshInterval:1000*60*60, | dataRefreshInterval:1000*60*60, | ||||
| pageChangeInterval:1000*10, | pageChangeInterval:1000*10, | ||||
| }, | }, | ||||
| @@ -168,21 +169,23 @@ codePushStatusDidChange(syncStatus) { | |||||
| pageChangeInterval:config.pageChangeInterval | pageChangeInterval:config.pageChangeInterval | ||||
| } | } | ||||
| }) | }) | ||||
| // 动画 | |||||
| // 动画划入 | |||||
| if(config.animationTheme == 0){ | if(config.animationTheme == 0){ | ||||
| this.setState({ | this.setState({ | ||||
| animationTheme:animationThemes[0] | animationTheme:animationThemes[0] | ||||
| }) | }) | ||||
| }else if(config.animationTheme == 1){ | }else if(config.animationTheme == 1){ | ||||
| // 放大 | |||||
| this.setState({ | this.setState({ | ||||
| animationTheme:animationThemes[1] | animationTheme:animationThemes[1] | ||||
| }) | }) | ||||
| }else if(config.animationTheme == 2){ | }else if(config.animationTheme == 2){ | ||||
| // 淡入 | |||||
| this.setState({ | this.setState({ | ||||
| animationTheme:animationThemes[2] | animationTheme:animationThemes[2] | ||||
| }) | }) | ||||
| }else if(config.animationTheme == 3){ | }else if(config.animationTheme == 3){ | ||||
| // 弹入 | |||||
| this.setState({ | this.setState({ | ||||
| animationTheme:animationThemes[3] | animationTheme:animationThemes[3] | ||||
| }) | }) | ||||