提交 1d5e94c5 编写于 作者: W wanganxp 提交者: 雪洛

屏蔽不支持转场动画的平台

上级 57deeb2f
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
<button @tap="navigateTo" class="uni-btn"> <button @tap="navigateTo" class="uni-btn">
跳转新页面,并传递数据 跳转新页面,并传递数据
</button> </button>
<button v-for="(item, _) in animationTypeList" @tap="navigateToAnimationType(item)" class="uni-btn">navigateTo({{item}})</button>
<button @tap="navigateBack" class="uni-btn">返回上一页</button> <button @tap="navigateBack" class="uni-btn">返回上一页</button>
<button @tap="redirectTo" class="uni-btn">在当前页面打开</button> <button @tap="redirectTo" class="uni-btn">在当前页面打开</button>
<button @tap="switchTab" class="uni-btn">切换到模板选项卡</button> <button @tap="switchTab" class="uni-btn">切换到模板选项卡</button>
...@@ -42,7 +41,8 @@ ...@@ -42,7 +41,8 @@
</button> </button>
<button @tap="navigateToErrorPage" class="uni-btn"> <button @tap="navigateToErrorPage" class="uni-btn">
打开不存在的页面 打开不存在的页面
</button> </button>
<button v-for="(item, _) in animationTypeList" @tap="navigateToAnimationType(item)" class="uni-btn">navigateTo动画({{item}})</button>
</view> </view>
</view> </view>
</view> </view>
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
onReadyTime: 0, onReadyTime: 0,
onHideTime: 0, onHideTime: 0,
animationTypeList: [ animationTypeList: [
// #ifdef APP-ANDROID
'slide-in-right', 'slide-in-right',
'slide-in-left', 'slide-in-left',
'slide-in-top', 'slide-in-top',
...@@ -70,7 +71,8 @@ ...@@ -70,7 +71,8 @@
'fade-in', 'fade-in',
'zoom-out', 'zoom-out',
'zoom-fade-out', 'zoom-fade-out',
'none', 'none'
// #endif
] ]
} }
}, },
...@@ -122,7 +124,6 @@ ...@@ -122,7 +124,6 @@
navigateTo() { navigateTo() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/API/navigator/new-page/new-page-1?data=Hello', url: '/pages/API/navigator/new-page/new-page-1?data=Hello',
animationType: 'fade-in',
success(result) { success(result) {
console.log('navigateTo success', result.errMsg) console.log('navigateTo success', result.errMsg)
// 自动化测试 // 自动化测试
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册