diff --git a/pages/invite/index.vue b/pages/invite/index.vue index 895fd25..58243ff 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -5,7 +5,7 @@ - + @@ -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")) { @@ -154,17 +155,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 +230,7 @@ if(type == 1){ return ; }else{ - + this.createImge(); } return ; uni.showLoading({