From f63de31031642ebc289dfbec53f214a1fcb98e83 Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Tue, 16 Apr 2024 17:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E6=8A=A5=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/invite/index.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pages/invite/index.vue b/pages/invite/index.vue index 895fd25..a24e881 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -5,7 +5,7 @@ - + @@ -154,17 +154,17 @@ success: function(res) { // 在H5平台下,tempFilePath 为 base64 console.log(res.tempFilePath) - // uni.saveImageToPhotosAlbum({ - // filePath: res.tempFilePath, - // success(data) { - // that.$success('保存成功') - // }, - // fail(err) { - // if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') { - // that.$toast('请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', 3000) - // } - // } - // }) + uni.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success(data) { + that.$success('保存成功') + }, + fail(err) { + if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') { + that.$toast('请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', 3000) + } + } + }) } }) @@ -229,7 +229,7 @@ if(type == 1){ return ; }else{ - + this.createImge(); } return ; uni.showLoading({