在看官网的时候发现H5是不能图片保存到相册的
首先 html 绑定 @longtap
长按事件
<image :src="qrcodeImg" @longtap="shareImg(qrcodeImg)"></image>
js
shareImg(dataurl) {
let _this = this
// APP 保存图片
// #ifdef APP-PLUS
let ws = this.$mp.page.$getAppWebview();
let bitmap = new plus.nativeObj.Bitmap();
this.$nextTick(function(){
setTimeout(()