/*
* 保存到手机相册
*/
savePosterPath: function () {
var that = this;
wx.getSetting({
success(res) {
if (!res.authSetting['scope.writePhotosAlbum']) {
wx.authorize({
scope: 'scope.writePhotosAlbum',
success() {
wx.saveImageToPhotosAlbum({
filePath: that.data.posterImage,
success: function (res) {
that.posterImageClose();
app.Tips({ title: '保存成功', icon: 'success' });
},
fail: function (res) {
app.Tips({ title: '保存失败' });
}
})
}
})
} else {
wx.saveImageToPhotosAlbum({
filePath: that.data.posterImage,
success: function (res) {
that.posterImageClose();
app.Tips({ title: '保存成功', icon: 'success' });
},
fail: function (res) {
app.Tips({ title: '保存失败' });
},
})
}
}
})
},