duanshenglang 7 ヶ月 前
コミット
21f3132dca
1 ファイル変更11 行追加4 行削除
  1. 11 4
      lottery/index.html

+ 11 - 4
lottery/index.html

@@ -752,9 +752,16 @@
 		margin-right: 35rem;
 	}
 	.upload-class {
-		min-width: 100rem;
+		min-width: 80rem;
 		height: 80rem;
 		line-height: 80rem;
+		font-size: 14px;
+		border: 1px solid #c1bfa9;
+		border-radius: 10rem;
+		text-align: center;
+		margin-top: 18rem;
+		margin-right: 35rem;
+		color: #999;
 	}
 </style>
 <body>
@@ -941,7 +948,7 @@
 					
 					const gallery = document.getElementById('imageGallery');  
 					const photoBtn = document.getElementById('photoBtn'); 
-					const upload = document.createElement('p');
+					const upload = document.createElement('div');
 					upload.className = 'upload-class';
 					upload.innerHTML = '上传中...'
 					gallery.insertBefore(upload,photoBtn);
@@ -1097,7 +1104,7 @@
 						mui.toast('发送成功');
 						document.getElementById('dialogText').style.display = 'none';
 						imgList = []
-						document.getElementById("textarea").innerHTML = "";
+						document.getElementById("textarea").value = "";
 						findCollectList()
 						const gallery = document.getElementById('imageGallery');
 						// 遍历gallery的所有子元素  
@@ -1198,7 +1205,7 @@
 			imgsToRemove.forEach(function(img) {  
 			    gallery.removeChild(img);  
 			});
-			document.getElementById("textarea").innerHTML = "";
+			document.getElementById("textarea").value = "";
 			onShowItem()
 		});
 		// 截取url中的数据