提交 4cd149d3 编写于 作者: 雪洛's avatar 雪洛

feat: setPageStyle、getPageStyle不支持微信小程序

上级 64b49c9d
...@@ -26,6 +26,10 @@ describe('getCurrentPages', () => { ...@@ -26,6 +26,10 @@ describe('getCurrentPages', () => {
const data = await page.data() const data = await page.data()
expect(data.checked).toBe(true) expect(data.checked).toBe(true)
}) })
if (process.env.uniTestPlatformInfo.startsWith('mp')) {
return
}
it('page-style', async () => { it('page-style', async () => {
await page.callMethod('getPageStyle') await page.callMethod('getPageStyle')
await page.waitFor(200) await page.waitFor(200)
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
<button class="uni-common-mt" @click="checkGetAndroidView"> <button class="uni-common-mt" @click="checkGetAndroidView">
check getAndroidView check getAndroidView
</button> </button>
</view> </view>
<!-- #ifndef MP -->
<page-head title="currentPageStyle"></page-head> <page-head title="currentPageStyle"></page-head>
<template v-for="(item, index) in PageStyleArray"> <template v-for="(item, index) in PageStyleArray">
<view class="page-style-item" v-if="currentPageStyle[item.key] != null" :key="index"> <view class="page-style-item" v-if="currentPageStyle[item.key] != null" :key="index">
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
</template> </template>
<button style="margin: 10px" @click="goSetDisablePullDownRefresh"> <button style="margin: 10px" @click="goSetDisablePullDownRefresh">
go set disable pullDownRefresh go set disable pullDownRefresh
</button> </button>
<!-- #endif -->
</view> </view>
<!-- #ifdef APP --> <!-- #ifdef APP -->
</scroll-view> </scroll-view>
......
const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh' const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh'
describe('getCurrentPages', () => { describe('getCurrentPages', () => {
if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { if (
process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios') ||
process.env.uniTestPlatformInfo.startsWith('mp')
) {
it('not-support', async () => { it('not-support', async () => {
expect(1).toBe(1) expect(1).toBe(1)
}) })
......
...@@ -105,8 +105,10 @@ ...@@ -105,8 +105,10 @@
onReady(() => { onReady(() => {
const pages = getCurrentPages(); const pages = getCurrentPages();
// #ifndef MP
isStatusBarShow.value = !(pages[pages.length - 1].getPageStyle()['hideStatusBar'] as boolean); isStatusBarShow.value = !(pages[pages.length - 1].getPageStyle()['hideStatusBar'] as boolean);
isBottomNavigationIndicatorShow.value = !(pages[pages.length - 1].getPageStyle()['hideBottomNavigationIndicator'] as boolean); isBottomNavigationIndicatorShow.value = !(pages[pages.length - 1].getPageStyle()['hideBottomNavigationIndicator'] as boolean);
// #endif
getWindowInfo(); getWindowInfo();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册