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 1/2] =?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({ From 9d1af77a8ce9b186e8edbd54ddfde3e03c1b3246 Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Tue, 16 Apr 2024 17:31:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B5=B7=E6=8A=A5=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/invite/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/invite/index.vue b/pages/invite/index.vue index a24e881..58243ff 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -105,12 +105,13 @@ isPopup: false, info: {}, list: [], - devicePixelRatio: uni.getSystemInfoSync().devicePixelRatio + devicePixelRatio: 750/uni.getSystemInfoSync().windowHeight } }, onReady() { this.getList(); this.getCarousel() + console.log(uni.getSystemInfoSync().devicePixelRatio) }, onShow() { if (uni.getStorageSync("AccessToken")) {