forked from angelo/web-retail-h5
fix(share): 修复浏览器端不展示合成图的bug
This commit is contained in:
parent
eae0ce5f65
commit
75388af820
|
@ -21,10 +21,7 @@
|
|||
/>
|
||||
|
||||
<!-- 微信环境全屏图片显示 -->
|
||||
<view
|
||||
class="wechat-fullscreen-overlay"
|
||||
v-show="(isWechat || userInfo.sharePosterImage) && generatedImageUrl"
|
||||
>
|
||||
<view class="wechat-fullscreen-overlay" v-show="generatedImageUrl">
|
||||
<img class="fullscreen-image" :src="generatedImageUrl" @click.stop="" />
|
||||
</view>
|
||||
</view>
|
||||
|
@ -139,16 +136,7 @@ export default {
|
|||
})
|
||||
uni.hideLoading()
|
||||
|
||||
if (this.isWechat) {
|
||||
// 微信环境:设置图片供长按保存
|
||||
this.generatedImageUrl = dataUrl
|
||||
} else {
|
||||
// 普通浏览器环境
|
||||
if (this.isSpecialScene) {
|
||||
// 特殊场景:设置图片供长按保存(没有下载按钮)
|
||||
this.generatedImageUrl = dataUrl
|
||||
}
|
||||
}
|
||||
this.generatedImageUrl = dataUrl
|
||||
},
|
||||
|
||||
// 下载图片
|
||||
|
|
Loading…
Reference in New Issue