Commit 2a628e96 by zhangquan

设置相册权限优化

1 parent 254f942d
...@@ -205,12 +205,12 @@ Page({ ...@@ -205,12 +205,12 @@ Page({
if(res.confirm){ if(res.confirm){
wx.getSetting({ wx.getSetting({
success: (res)=> { success: (res)=> {
if(res.authSetting['scope.writePhotosAlbum']){ if(res.authSetting['scope.writePhotosAlbum']===false){
this.createImg()
}else{
this.setData({ this.setData({
showAuth: true showAuth: true
}) })
}else{
this.createImg()
} }
} }
}) })
......
...@@ -130,12 +130,12 @@ Component({ ...@@ -130,12 +130,12 @@ Component({
}) })
wx.getSetting({ wx.getSetting({
success: (res)=> { success: (res)=> {
if(res.authSetting['scope.writePhotosAlbum']){ if(res.authSetting['scope.writePhotosAlbum'] === false){
this.toDown()
}else{
this.setData({ this.setData({
showAuth: true 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!