Parcourir la source

[动画][修改]:[心跳时间修改]

tags/jenkins-front-end-screenad-91-v65^0
meo il y a 6 ans
Parent
révision
03de37170f
1 fichiers modifiés avec 11 ajouts et 8 suppressions
  1. +11
    -8
      App.js

+ 11
- 8
App.js Voir le fichier

@@ -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]
}) })


Chargement…
Annuler
Enregistrer