浏览代码

fix photo

Sherry 1年前
父节点
当前提交
27df805df7
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. 10
    3
      src/fe/healthpassport/js/register.js

+ 10
- 3
src/fe/healthpassport/js/register.js 查看文件

84
 		$(".photo__img").append(`
84
 		$(".photo__img").append(`
85
 			<img src="${linePicUrl}"/>
85
 			<img src="${linePicUrl}"/>
86
 		`);
86
 		`);
87
+		
88
+		$(".photo .load-wrapp ").hide();
87
 
89
 
88
 		const imageURL = linePicUrl;
90
 		const imageURL = linePicUrl;
89
 		if(imageURL.trim() !== '') {
91
 		if(imageURL.trim() !== '') {
171
 					
173
 					
172
 
174
 
173
 				}else {
175
 				}else {
174
-					imagePreview.html("");
175
-					imagePreview.append(`<img src=${finalase64Data} />`);
176
-					$(".photo .load-wrapp ").hide();
176
+					if(fileInput.id == 'fileInput1') {
177
+						LinePicHandler(linePicUrl);
178
+					}
179
+					if(fileInput.id == 'fileInput2') {
180
+						imagePreview.html("");
181
+						imagePreview.append(`<img src=${finalase64Data} />`);
182
+						$(".photo .load-wrapp ").hide();
183
+					}
177
 				}
184
 				}
178
 
185
 
179
 			});
186
 			});