From 491f6f7a25e3a0ebfeb3d5dcb62cf919d1767078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com> Date: Fri, 25 Aug 2023 19:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BF=9D=E5=AD=98=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=88=B0=E7=9B=B8=E5=86=8C=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 12 + .../save-image-to-album.uvue | 43 +++ pages/component/picker-view/picker-view.uvue | 3 + pages/component/view/view-draw.uvue | 290 ++++++++++++++++++ pages/component/view/view.uvue | 16 +- pages/tabBar/API.uvue | 7 +- 6 files changed, 359 insertions(+), 12 deletions(-) create mode 100644 pages/API/save-image-to-album/save-image-to-album.uvue create mode 100644 pages/component/view/view-draw.uvue diff --git a/pages.json b/pages.json index b288610d..53bd822d 100644 --- a/pages.json +++ b/pages.json @@ -26,6 +26,12 @@ "navigationBarTitleText": "general-event" } }, + { + "path": "pages/component/view/view-draw", + "style": { + "navigationBarTitleText": "DrawableContext" + } + }, { "path": "pages/component/scroll-view/scroll-view", "style": { @@ -654,6 +660,12 @@ "navigationBarTitleText": "图片预览" } }, + { + "path": "pages/API/save-image-to-album/save-image-to-album", + "style": { + "navigationBarTitleText": "保存图片到相册" + } + }, { "path": "pages/component/scroll-view/scroll-view-refresher", "style": { diff --git a/pages/API/save-image-to-album/save-image-to-album.uvue b/pages/API/save-image-to-album/save-image-to-album.uvue new file mode 100644 index 00000000..170780ad --- /dev/null +++ b/pages/API/save-image-to-album/save-image-to-album.uvue @@ -0,0 +1,43 @@ + + + + + diff --git a/pages/component/picker-view/picker-view.uvue b/pages/component/picker-view/picker-view.uvue index 5730b34e..ac30977e 100644 --- a/pages/component/picker-view/picker-view.uvue +++ b/pages/component/picker-view/picker-view.uvue @@ -57,6 +57,9 @@ } }, methods: { + clickView() { + + }, bindChange(e : PickerViewChangeEvent) { const val = e.detail.value this.result = val diff --git a/pages/component/view/view-draw.uvue b/pages/component/view/view-draw.uvue new file mode 100644 index 00000000..32aeeacd --- /dev/null +++ b/pages/component/view/view-draw.uvue @@ -0,0 +1,290 @@ + + + + + \ No newline at end of file diff --git a/pages/component/view/view.uvue b/pages/component/view/view.uvue index cb9b98fa..3a7811d5 100644 --- a/pages/component/view/view.uvue +++ b/pages/component/view/view.uvue @@ -232,8 +232,9 @@ - - + + + @@ -243,16 +244,11 @@ diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index f140e7c4..8b34ef97 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -306,6 +306,10 @@ name: '图片选择和预览', url: 'preview-image', }, + { + name: "保存图片到相册", + url: 'save-image-to-album' + } /* { name: "图片选择和拍照", url: "image", @@ -510,6 +514,5 @@ .item { margin-bottom: 12px; - } - + } \ No newline at end of file -- GitLab