heyang %!s(int64=4) %!d(string=hai) anos
pai
achega
c3731d9637

+ 1 - 0
microserviceUserH5/vcloud/invite.html

@@ -111,6 +111,7 @@
 						// 选中文本
 						input.select();
 						// 执行浏览器复制命令
+						document.activeElement.blur();
 						document.execCommand("copy");
 						toastr.error('复制成功', 0)
 					})

+ 7 - 6
microserviceUserH5/vcloud/register.html

@@ -101,10 +101,10 @@
 		function getHead(fileId) {
 			$('.head img').attr('src', '../static/img/invite/header-img.png');
 			var timestamp = new Date().getTime()
-      var encrypts = encrypt(
-        'RuiChiSecurityGo' + timestamp,
-        'RuiChiSecurityGo'
-      )
+			var encrypts = encrypt(
+				'RuiChiSecurityGo' + timestamp,
+				'RuiChiSecurityGo'
+			)
 			var data = {
 				keyType: 2,
 				security: encrypts
@@ -116,10 +116,11 @@
 				xhrFields: { responseType: "blob" },
 				cache: false,
 				success: function (res) {
+					var xhr = new XMLHttpRequest();
 					var imageType = xhr.getResponseHeader("Content-Type");
-        	var blob = new Blob([res], { type: imageType });
+        	        var blob = new Blob([res], { type: imageType });
 					var imageUrl = (window.URL || window.webkitURL).createObjectURL(blob);
-        	$('.head img').attr('src', imageUrl);
+        	        $('.head img').attr('src', imageUrl);
 				}
 			})
 		}