ソースを参照

取消人脸检测功能

MS-CIAZDCOIXVRW\Administrator 3 年 前
コミット
4c26ae9c83
2 ファイル変更12 行追加8 行削除
  1. 4 1
      pagesClockIn/home/home.vue
  2. 8 7
      pagesClockIn/location/location.vue

+ 4 - 1
pagesClockIn/home/home.vue

@@ -419,8 +419,11 @@
 					}
 					// 如果只需要人脸识别
 					else if (this.faceRecognition) {
+						// uni.navigateTo({
+						// 	url: `/pagesClockIn/authentication/authentication?id=${this.contrastObj.id}&address=${this.address}&latitude=${this.myLat}&longitude=${this.myLng}&flag=1`
+						// })
 						uni.navigateTo({
-							url: `/pagesClockIn/authentication/authentication?id=${this.contrastObj.id}&address=${this.address}&latitude=${this.myLat}&longitude=${this.myLng}&flag=1`
+							url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
 						})
 					}
 				}

+ 8 - 7
pagesClockIn/location/location.vue

@@ -164,13 +164,14 @@
 									success: (uploadFileRes) => {
 										let imgUrl = JSON.parse(uploadFileRes.data)
 											.data
-										if (this.flag == 1) {
-											this.handleUploading(imgUrl)
-										} else {
-											uni.redirectTo({
-												url: `/pagesClockIn/authentication/authentication?imgUrl=${imgUrl}&id=${this.id}&address=${this.address}&latitude=${this.latitude}&longitude=${this.longitude}`
-											})
-										}
+										// if (this.flag == 1) {
+										// 	this.handleUploading(imgUrl)
+										// } else {
+										// 	uni.redirectTo({
+										// 		url: `/pagesClockIn/authentication/authentication?imgUrl=${imgUrl}&id=${this.id}&address=${this.address}&latitude=${this.latitude}&longitude=${this.longitude}`
+										// 	})
+										// }
+										this.handleUploading(imgUrl)
 									},
 									fail: () => {
 										uni.showToast({