diff --git a/pages/API/get-current-pages/get-current-pages.test.js b/pages/API/get-current-pages/get-current-pages.test.js
index 962be6d867f08ca7423378099f7037489c7be62f..5e749c422b1efe1f94497435c5ac0b4bc055f13b 100644
--- a/pages/API/get-current-pages/get-current-pages.test.js
+++ b/pages/API/get-current-pages/get-current-pages.test.js
@@ -26,6 +26,10 @@ describe('getCurrentPages', () => {
const data = await page.data()
expect(data.checked).toBe(true)
})
+
+ if (process.env.uniTestPlatformInfo.startsWith('mp')) {
+ return
+ }
it('page-style', async () => {
await page.callMethod('getPageStyle')
await page.waitFor(200)
diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue
index a81d30e19a9fbc2aaf6c5213421c434ba736ff60..da350afc0a5aee4ed245b298f3c9a78fbc8117f2 100644
--- a/pages/API/get-current-pages/get-current-pages.uvue
+++ b/pages/API/get-current-pages/get-current-pages.uvue
@@ -25,8 +25,8 @@
-
-
+
+
@@ -55,7 +55,8 @@
+
+
diff --git a/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js b/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js
index dbd15e354cb0f35deda9ec7f45491651bdc2bbee..c8c2714160746a9fd209f17925cd5ce528d37139 100644
--- a/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js
+++ b/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js
@@ -1,7 +1,10 @@
const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh'
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 () => {
expect(1).toBe(1)
})
diff --git a/pages/API/get-window-info/window-area.uvue b/pages/API/get-window-info/window-area.uvue
index 1be2b95f18f6c6cb676fa7da4f9c038102fae64f..9c206d5a504e6b2a7a0f475f78e008cd08ba8b95 100644
--- a/pages/API/get-window-info/window-area.uvue
+++ b/pages/API/get-window-info/window-area.uvue
@@ -105,8 +105,10 @@
onReady(() => {
const pages = getCurrentPages();
+ // #ifndef MP
isStatusBarShow.value = !(pages[pages.length - 1].getPageStyle()['hideStatusBar'] as boolean);
isBottomNavigationIndicatorShow.value = !(pages[pages.length - 1].getPageStyle()['hideBottomNavigationIndicator'] as boolean);
+ // #endif
getWindowInfo();
});