diff --git a/pages.json b/pages.json index 12a7091a40307be97bffa521a9dc645bff2b01fe..7159ff349a27ee6e2364d4cf4bb5371230241194 100644 --- a/pages.json +++ b/pages.json @@ -256,12 +256,18 @@ "navigationBarTitleText": "新页面-1" } }, - { - "path": "pages/API/navigator/new-page/new-page-2", - "style": { - "navigationBarTitleText": "新页面-2", - "enablePullDownRefresh": true - } + { + "path": "pages/API/navigator/new-page/new-page-2", + "style": { + "navigationBarTitleText": "新页面-2", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/API/navigator/new-page/new-page-3", + "style": { + "navigationBarTitleText": "新页面-3" + } }, { "path": "pages/API/navigator/new-page/onLoad", diff --git a/pages/API/navigator/new-page/new-page-3.uvue b/pages/API/navigator/new-page/new-page-3.uvue new file mode 100644 index 0000000000000000000000000000000000000000..442607b609dc36e9fb6bbdf267910bfa77500cc8 --- /dev/null +++ b/pages/API/navigator/new-page/new-page-3.uvue @@ -0,0 +1,5 @@ + diff --git a/pages/API/navigator/new-page/onLoad.test.js b/pages/API/navigator/new-page/onLoad.test.js index 853d8d27c477067ef2ae115f9c2ba3b7e5a21efe..933193ac4e66d8256654faf0f219ef64fbb9dd38 100644 --- a/pages/API/navigator/new-page/onLoad.test.js +++ b/pages/API/navigator/new-page/onLoad.test.js @@ -1,7 +1,7 @@ jest.setTimeout(20000); const PAGE_PATH = "/pages/API/navigator/new-page/onLoad"; const INTERMEDIATE_PAGE_PATH = "/pages/API/navigator/new-page/new-page-1"; -const TARGET_PAGE_PATH = "/pages/API/navigator/new-page/new-page-2"; +const TARGET_PAGE_PATH = "/pages/API/navigator/new-page/new-page-3"; let page; describe("onLoad", () => { diff --git a/pages/API/navigator/new-page/onLoad.uvue b/pages/API/navigator/new-page/onLoad.uvue index bab65d35bae7338b9adedcc0342fab4756568452..083dfcca1e741c5e7022d72f61545cf959b3ab56 100644 --- a/pages/API/navigator/new-page/onLoad.uvue +++ b/pages/API/navigator/new-page/onLoad.uvue @@ -61,7 +61,7 @@ export default { }, navigateTo(){ uni.navigateTo({ - url: '/pages/API/navigator/new-page/new-page-2' + url: '/pages/API/navigator/new-page/new-page-3' }) }, navigateBack(){ @@ -69,12 +69,12 @@ export default { }, redirectTo(){ uni.redirectTo({ - url: '/pages/API/navigator/new-page/new-page-2' + url: '/pages/API/navigator/new-page/new-page-3' }) }, reLaunch(){ uni.reLaunch({ - url: '/pages/API/navigator/new-page/new-page-2' + url: '/pages/API/navigator/new-page/new-page-3' }) }, switchTab(){