Commit 6da98198 authored by renjie's avatar renjie

扫脸跳转相册

parent fa63405e
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
}) })
}else if(res.data.isScanFace === 1) {//已扫脸 }else if(res.data.isScanFace === 1) {//已扫脸
uni.navigateTo({ uni.navigateTo({
url: './myPhotoAlbum/myPhotoAlbum' url: `./myPhotoAlbum/myPhotoAlbum?faceIds=${JSON.stringify(res.data.faceIds)}`
}) })
} }
}else{ }else{
......
...@@ -154,12 +154,12 @@ export default { ...@@ -154,12 +154,12 @@ export default {
this.$request('wechatUser/aliFace/faceSearch',data).then(res => {//创建任务 this.$request('wechatUser/aliFace/faceSearch',data).then(res => {//创建任务
uni.hideLoading() uni.hideLoading()
if (res.code === '00') { if (res.code === '00') {
if(res.data.length) { if(res.data.faceIds && res.data.faceIds.length) {
uni.setScreenBrightness({ uni.setScreenBrightness({
value: this.defaultBrightness, //屏幕亮度值,范围 0~1,0 最暗,1 最亮 value: this.defaultBrightness, //屏幕亮度值,范围 0~1,0 最暗,1 最亮
}) })
uni.navigateTo({ uni.navigateTo({
url: './myPhotoAlbum/myPhotoAlbum' url: `./myPhotoAlbum/myPhotoAlbum?faceIds=${JSON.stringify(res.data.faceIds)}`
}) })
}else { }else {
this.handleNotFound() this.handleNotFound()
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
} }
}) })
uni.setScreenBrightness({ uni.setScreenBrightness({
value: 1, //屏幕亮度值,范围 0~1,0 最暗,1 最亮 value: 0.8, //屏幕亮度值,范围 0~1,0 最暗,1 最亮
}) })
this.openCamera() this.openCamera()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment