chenxiong 3 年 前
コミット
46b8f28a2c

+ 1 - 1
components/course/courseSection.vue

@@ -212,7 +212,7 @@ export default {
 			// 		return;
 			// 	}
 			// }
-			if(this.learningOrder == 2 && !this.isRebuild) { //要按从头到尾顺序学习, 且不是重修课程
+			if(this.learningOrder == 2 && !this.menuItem.isRebuild) { //要按从头到尾顺序学习, 且不是重修课程
 				if(this.preItem) {
 					let rows = await this.studyRecordMenuAllList();
 					let newRows = [];

+ 1 - 1
pages2/bank/question_detail.vue

@@ -553,7 +553,7 @@ page {
 				display: flex;
 				align-items: center;
 
-				font-size: 26rpx;
+				font-size: 28rpx;
 				color: #666666;
 				border-bottom: 1rpx solid #eeeeee;
 				display: flex;

+ 22 - 0
pages3/polyv/detail.vue

@@ -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)