Commit 2a628e96 by zhangquan

设置相册权限优化

1 parent 254f942d
......@@ -205,12 +205,12 @@ Page({
if(res.confirm){
wx.getSetting({
success: (res)=> {
if(res.authSetting['scope.writePhotosAlbum']){
this.createImg()
}else{
if(res.authSetting['scope.writePhotosAlbum']===false){
this.setData({
showAuth: true
})
}else{
this.createImg()
}
}
})
......
......@@ -130,12 +130,12 @@ Component({
})
wx.getSetting({
success: (res)=> {
if(res.authSetting['scope.writePhotosAlbum']){
this.toDown()
}else{
if(res.authSetting['scope.writePhotosAlbum'] === false){
this.setData({
showAuth: true
})
}else{
this.toDown()
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!