|
@@ -1513,11 +1513,33 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 人脸匹配
|
|
|
+ */
|
|
|
+ faceRecognition() {
|
|
|
+ return new Promise(resolve => {
|
|
|
+ let fileSystem = uni.getFileSystemManager();
|
|
|
+ fileSystem.readFile({
|
|
|
+ filePath: `${this.avatarUrl}`,
|
|
|
+ encoding: 'base64',
|
|
|
+ position: 0,
|
|
|
+ success:(res) => {
|
|
|
+ console.log(res)
|
|
|
+ let base64 = 'data:image/jpg;base64,' + res.data;
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.error(err,'err')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
async submit() {
|
|
|
if(this.uploadLock) {
|
|
|
return;
|
|
|
}
|
|
|
this.uploadLock = true;
|
|
|
+
|
|
|
const waitYS = await this.imageInfos();
|
|
|
this.postCoursePhotoRecord().then(res => {
|
|
|
this.photoHistoryList.push(this.photoIndex)
|