From 4f347962c92d19450990eeb734a19a0c0e7961e9 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sun, 16 Jul 2023 19:27:19 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B7=BB=E5=8A=A0=E4=BA=86loadFontFace?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B=20-=20=E8=A1=A5=E5=85=85=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E6=A8=A1=E6=9D=BF=E7=9A=84=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=20-=20=E5=8E=BB=E6=8E=89=E4=BA=86css?= =?UTF-8?q?=E9=87=8C=E5=AD=97=E4=BD=93=E5=9B=BE=E6=A0=87=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=20-=20=E6=94=B9=E4=BA=86=E6=BB=9A=E5=8A=A8=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=9D=A1=E7=9A=84=E8=BF=94=E5=9B=9E=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CSS/background/background-image.uvue | 1 + pages/CSS/text/font-family.uvue | 2 +- pages/tabBar/API.uvue | 5 + pages/tabBar/CSS.uvue | 11 - pages/tabBar/template.uvue | 278 +++++++++--------- .../scroll-fold-nav/scroll-fold-nav.uvue | 23 +- 6 files changed, 168 insertions(+), 152 deletions(-) diff --git a/pages/CSS/background/background-image.uvue b/pages/CSS/background/background-image.uvue index a2304125..8758c5cf 100644 --- a/pages/CSS/background/background-image.uvue +++ b/pages/CSS/background/background-image.uvue @@ -1,6 +1,7 @@ diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index f5631220..78761ea2 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -301,6 +301,11 @@ name: "保存媒体到本地", url: "save-media", }, */ + { + name: "动态加载字体", + url: "load-font-face", + enable:false + }, ] as Page[], }, { diff --git a/pages/tabBar/CSS.uvue b/pages/tabBar/CSS.uvue index a66a52e9..bb7a6899 100644 --- a/pages/tabBar/CSS.uvue +++ b/pages/tabBar/CSS.uvue @@ -267,17 +267,6 @@ url: 'pages/CSS/transform/transform' } ] as Page[] - }, { - id: 'iconfont', - name: '字体图标', - open: false, - pages: [ - { - name: '字体图标', - enable: false, - url: 'pages/CSS/iconfont/iconfont' - }, - ] as Page[] } ] as ListItem[], arrowUpIcon: '/static/icons/arrow-up.png', diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 13e6eb0b..5a0dbdf8 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -1,144 +1,154 @@ \ No newline at end of file diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue index d19eb2ac..5a5f2781 100644 --- a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue +++ b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue @@ -5,7 +5,7 @@ - + content-{{item}} @@ -49,12 +49,23 @@ this.scrollTop = e.detail.scrollTop }, back(){ - // 暂不支持通过navigateBack api 返回 - // uni.navigateBack() + // uni.navigateBack() // 这么写用不了 + // 这么写可以用 + uni.navigateBack({ + success(result) { + console.log('navigateBack success', result.errMsg) + }, + fail(error) { + console.log('navigateBack fail', error.errMsg) + }, + complete(result) { + console.log('navigateBack complete', result.errMsg) + }, + }) - uni.switchTab({ - url:'/pages/tabBar/template' - }) + // uni.switchTab({ + // url:'/pages/tabBar/template' + // }) }, toSearchPage(){ -- GitLab