订阅 通知保存修改
This commit is contained in:
@@ -42,7 +42,6 @@ onShow(() => {
|
|||||||
|
|
||||||
const saveImage = () => {
|
const saveImage = () => {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
saveQrcodeImg()
|
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: vdata.QrcodeUrl,
|
url: vdata.QrcodeUrl,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
@@ -92,16 +91,7 @@ function downloadQR() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//#endif
|
//#endif
|
||||||
const saveQrcodeImg = () => {
|
|
||||||
saveHeadImgFile(vdata.QrcodeUrl, 80)
|
|
||||||
.then((success) => {
|
|
||||||
infoBox.showSuccessToast('保存成功')
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
console.log(err)
|
|
||||||
infoBox.showErrorToast('保存失败')
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const saveWxQrcodeImg = (data) => {
|
const saveWxQrcodeImg = (data) => {
|
||||||
const fileManager = wx.getFileSystemManager()
|
const fileManager = wx.getFileSystemManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user