From 14d50ff308bfa008ae7d45e8b62439ebb39e3428 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Mon, 11 Sep 2023 05:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hybrid/html/local.html | 1 + manifest.json | 9 ++++----- pages/component/image/image-path.uvue | 8 ++++---- pages/component/slider-100/slider-100.uvue | 2 +- pages/component/web-view-local/web-view-local.uvue | 6 +++++- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/hybrid/html/local.html b/hybrid/html/local.html index ad35c4b6..1eb65ac1 100644 --- a/hybrid/html/local.html +++ b/hybrid/html/local.html @@ -51,6 +51,7 @@ var target = evt.target; if (target.tagName === 'BUTTON') { var action = target.getAttribute('data-action'); + console.log(action); switch (action) { case 'switchTab': uni.switchTab({ diff --git a/manifest.json b/manifest.json index c1090bcb..e309c620 100644 --- a/manifest.json +++ b/manifest.json @@ -1,11 +1,10 @@ { "name" : "hello-uniapp x", - "appid" : "__UNI__4517034", + "appid" : "__UNI__3584C99", "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "uni-app-x" : { - }, + "versionName" : "1.0.5", + "versionCode" : 105, + "uni-app-x" : {}, /* 快应用特有相关 */ "quickapp" : {}, /* 小程序特有相关 */ diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue index 98005cfb..0d561e8d 100644 --- a/pages/component/image/image-path.uvue +++ b/pages/component/image/image-path.uvue @@ -36,13 +36,13 @@ }, { src: logo, - description: '非static目录' + description: '非static目录(需import才能访问)' }, { // #ifdef APP-ANDROID - src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__4517034/www/static/test-image/logo.png', + src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__3584C99/www/static/test-image/logo.png', // #endif - // TODO iOS还需再补路径 + // TODO iOS发版时还需再补路径 description: '本地绝对路径file:///方式。需注意打包后包名appid匹配' }, { @@ -100,4 +100,4 @@ margin: 40rpx auto; width: 200rpx; } - \ No newline at end of file + diff --git a/pages/component/slider-100/slider-100.uvue b/pages/component/slider-100/slider-100.uvue index 551a7993..76594510 100644 --- a/pages/component/slider-100/slider-100.uvue +++ b/pages/component/slider-100/slider-100.uvue @@ -44,7 +44,7 @@ updateSliderValue(value : Number) { // this.sliderValue = value - // TODO 跳过vue框架,直接修改原生组件 + // 跳过vue框架,直接修改原生组件 (this.$refs["slider1"]! as ComponentPublicInstance[]).forEach((item) => { item.$data["$sliderValue"] = value item.$callMethod("_onRender") diff --git a/pages/component/web-view-local/web-view-local.uvue b/pages/component/web-view-local/web-view-local.uvue index ea78e511..684353ff 100644 --- a/pages/component/web-view-local/web-view-local.uvue +++ b/pages/component/web-view-local/web-view-local.uvue @@ -15,6 +15,10 @@ methods: { message(event : WebViewMessageEvent) { console.log(JSON.stringify(event.detail)); + uni.showModal({ + content: JSON.stringify(event.detail), + showCancel: false + }); }, error(event : WebViewErrorEvent) { console.log(JSON.stringify(event.detail)); @@ -31,4 +35,4 @@ \ No newline at end of file + -- GitLab