heyang %!s(int64=3) %!d(string=hai) anos
pai
achega
25bf3076e5

+ 2 - 1
microserviceUserH5/static/css/changePhoneActivity.css

@@ -246,6 +246,7 @@ ul, li {
   height: 13.34rem;
   height: 13.34rem;
   margin: 0 auto;
   margin: 0 auto;
   position: relative;
   position: relative;
+  top: -0.02rem;
 }
 }
 .middle_bg_img{
 .middle_bg_img{
   width: 100%;
   width: 100%;
@@ -299,7 +300,7 @@ ul, li {
   height: 9.83rem;
   height: 9.83rem;
   margin: 0 auto;
   margin: 0 auto;
   position: relative;
   position: relative;
-  top: -0.02rem;
+  top: -0.05rem;
 }
 }
 .footer_bg_img{
 .footer_bg_img{
   width: 100%;
   width: 100%;

BIN=BIN
microserviceUserH5/static/img/changePhoneActivity/time.png


+ 30 - 31
microserviceUserH5/vcloud/invite.html

@@ -148,38 +148,37 @@
 			if(!id){
 			if(!id){
 				copyUrl();
 				copyUrl();
 			} else if (isiOS) {
 			} else if (isiOS) {
-				var u = navigator.userAgent;
-				if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){
-					$.ajax({
-						url: baseUrl + '/api/user/v1/promote',
-						type: 'get',
-						headers: {
-							'Authorization': id  //id
-						},
-						contentType: "application/json",
-						dataType: 'json',
-						cache: false,
-						success: function (res) {
-							var jsonStr = JSON.stringify(res.data)
-							var jsonObj = JSON.parse(jsonStr)
-							// WKWebView使用
-							// 使用下方方法,会报错,为使界面执行逻辑通畅,因此使用try-catch
-							try {
-								getMessage(jsonObj);
-							} catch (error) {
-								console.log(error)
-							}
-							try {
-								window.webkit.messageHandlers.getMessage.postMessage(jsonObj)
-							} catch (error) {
-								console.log(error)
-							}
-						}
-					})
-				}else{
-				   copyUrl();
+				alert(window.webkit.messageHandlers.getMessage.postMessage);
+				if(!window.webkit.messageHandlers.getMessage.postMessage){
+					copyUrl();
+					return
 				}
 				}
-				
+				$.ajax({
+					url: baseUrl + '/api/user/v1/promote',
+					type: 'get',
+					headers: {
+						'Authorization': id  //id
+					},
+					contentType: "application/json",
+					dataType: 'json',
+					cache: false,
+					success: function (res) {
+						var jsonStr = JSON.stringify(res.data)
+						var jsonObj = JSON.parse(jsonStr)
+						// WKWebView使用
+						// 使用下方方法,会报错,为使界面执行逻辑通畅,因此使用try-catch
+						try {
+							getMessage(jsonObj);
+						} catch (error) {
+							console.log(error)
+						}
+						try {
+							window.webkit.messageHandlers.getMessage.postMessage(jsonObj)
+						} catch (error) {
+							console.log(error)
+						}
+					}
+				})
 			} else if (isAndroid) {
 			} else if (isAndroid) {
 				if(window.native){
 				if(window.native){
 					window.native.onClikWebView()
 					window.native.onClikWebView()