|
@@ -496,5 +496,22 @@ Page({
|
|
|
fail: function (res) {}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ shar() {
|
|
|
+ wx.downloadFile({
|
|
|
+ url: this.data.saveimage, //图片服务器地址
|
|
|
+ success: (res) => {
|
|
|
+ wx.showShareImageMenu({
|
|
|
+ path: res.tempFilePath, //转为本地地址showShareImageMenu进行分享
|
|
|
+ success: (res) => {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.modalShare = null;
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.modalShare = null;
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
})
|