瀏覽代碼

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

tags/jenkins-front-end-screenad-91-v65^0
meo 6 年之前
父節點
當前提交
03de37170f
共有 1 個檔案被更改,包括 11 行新增8 行删除
  1. +11
    -8
      App.js

+ 11
- 8
App.js 查看文件

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


Loading…
取消
儲存