xiuli.gao 6 years ago
parent
commit
46c4e50fe0

+ 1 - 1
fund_h5_01/agreement.html

@@ -144,7 +144,7 @@
144 144
         <p>&emsp;&emsp;本协议包含了您使用“<span class='appName'>公积金查询</span>”需遵守的规范,本协议的生效、履行、解释及争议的解决均适用中华人民共和国法律。</p>
145 145
         <p>&emsp;&emsp;在不与国家法规相冲突的条件下,本协议条款的最终解释权在“<span class='appName'>公积金查询</span>”。</p>
146 146
     </div>
147
-    <script src="./js/common.js"></script>
147
+    <script src="./js/common.js?v=1"></script>
148 148
     <script src="./js/auto_size.js"></script>
149 149
     <script>
150 150
     document.getElementById('back').onclick = function() {

+ 1 - 1
fund_h5_01/choice_city.html

@@ -12,7 +12,7 @@
12 12
     <div style="display: none;">
13 13
     	<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
14 14
     </div>
15
-    <script src="./js/common.js?vv=1"></script>
15
+    <script src="./js/common.js?vv=2"></script>
16 16
 </head>
17 17
 
18 18
 <body>

+ 1 - 1
fund_h5_01/choose_city.html

@@ -16,7 +16,7 @@
16 16
 	<style type="text/css">
17 17
 		#allmap{position: absolute;left: -2000px;}
18 18
 	</style>
19
-	<script src="./js/common.js?vv=1"></script>
19
+	<script src="./js/common.js?vv=2"></script>
20 20
 
21 21
     
22 22
 </head>

+ 23 - 1
fund_h5_01/css/query-help.css

@@ -72,8 +72,30 @@ nav p {
72 72
 .ljqw{
73 73
 	font-size: 0.14rem;
74 74
 	line-height: 0.2rem;
75
-	color: #4B62FF;
75
+	color: #ccc;
76 76
 	padding: 0.16rem;
77 77
 	padding-bottom: 0;
78 78
 	text-align: right;
79 79
 }
80
+.ljqw span{
81
+	color: #4B62FF;
82
+}
83
+.alert-info {
84
+    position: absolute;
85
+    top: 1.74rem;
86
+    right: 0;
87
+    left: 0;
88
+    bottom: 0;
89
+    text-align: center;
90
+}
91
+
92
+.alert-info p {
93
+    display: inline-block;
94
+    height: 0.38rem;
95
+    color: #fff;
96
+    font-size: 0.14rem;
97
+    line-height: 0.38rem;
98
+    padding: 0 0.10rem;
99
+    background-color: rgba(0, 0, 0, 0.7);
100
+    border-radius: 5px;
101
+}

+ 10 - 2
fund_h5_01/fund_h5_api.html

@@ -12,7 +12,13 @@
12 12
     <div style="display: none;">
13 13
    	 <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
14 14
    	</div>
15
-   <script src="./js/common.js?vv=2"></script>
15
+   <script src="./js/common.js?vv=3"></script>
16
+   <style type="text/css">
17
+   		#copy_1,#copy_2{
18
+			position:absolute;
19
+			left:-3000px;
20
+		}
21
+   </style>
16 22
 </head>
17 23
 
18 24
 <body>
@@ -21,6 +27,8 @@
21 27
         <p><span>公积金查询</span><em></em></p>
22 28
         <span class="qiehuan"><a href="./choose_city.html">切换城市</a></span>
23 29
     </nav>
30
+	<input id="copy_1" type="text" readonly="true" value=""/>
31
+	<div id="copy_2"></div>
24 32
     <div class="container">
25 33
         <!--<div class="header-wrapper">-->
26 34
             <!--<div class="choose-city">--> 
@@ -90,7 +98,7 @@
90 98
     </div>
91 99
     <script src="./js/auto_size.js?vv=2"></script>
92 100
     <script src="./js/tips.js?vv=2"></script>
93
-    <script src="./js/fund_h5_api.js?vv=2"></script>
101
+    <script src="./js/fund_h5_api.js?vv=3"></script>
94 102
 </body>
95 103
 
96 104
 </html>

+ 1 - 1
fund_h5_01/iframeUrl.html

@@ -10,7 +10,7 @@
10 10
 	    <div style="display: none;">
11 11
 	    	<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
12 12
 	    </div>
13
-	    <script src="./js/common.js?vv=1"></script>
13
+	    <script src="./js/common.js?vv=2"></script>
14 14
 	    <style id="antiClickjack">body{display:none !important;}</style>
15 15
 		<script>
16 16
 			if (self === top) {

+ 38 - 0
fund_h5_01/js/common.js

@@ -11,3 +11,41 @@ function parseQueryString(url) {
11 11
     return urlObj;
12 12
 }
13 13
 
14
+//复制
15
+function goCopy (data) {
16
+//	var data = document.getElementById('copy').innerHTML;
17
+	copy_2.innerHTML = data;
18
+	copy_1.setAttribute('value',data)
19
+	if(Boolean(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i))){
20
+		//区分iPhone设备
21
+		window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
22
+		var Url2=document.getElementById("copy_2");//要复制的节点
23
+		var range = document.createRange();
24
+		//选中需要复制的节点
25
+		range.selectNode(Url2);
26
+		//执行选中元素
27
+		window.getSelection().addRange(range);
28
+		//执行copy操作
29
+		var successful = document.execCommand("copy");
30
+		//移除选中的元素
31
+		window.getSelection().removeAllRanges();
32
+	}else{
33
+		var Url2=document.getElementById("copy_1");//要复制的节点
34
+		Url2.select();//选择对象
35
+		document.execCommand("Copy");//执行浏览器复制命令
36
+	}
37
+	showMsg("复制成功,请到浏览器中打开链接")
38
+ }
39
+
40
+/**
41
+ * [showMsg 提示各种错误信息,3s后消失]
42
+ */
43
+function showMsg(msg) {
44
+    var msgBox = $('.alert-info');
45
+    msgBox.children('p').text(msg);
46
+    msgBox.show();
47
+
48
+    setTimeout(function() {
49
+        msgBox.hide();
50
+    }, 3000);
51
+}

+ 24 - 22
fund_h5_01/js/fund_h5_api.js

@@ -85,40 +85,42 @@ function showDialog(type) {
85 85
         })
86 86
     } else if (type === 'forget') {
87 87
     	var html = '如果您忘记密码,需前往' + qs.name+ '公积金官网<br>重置密码';
88
-    	$('.dialog-wrapper input').val('我知道了')
88
+    	$('.dialog-wrapper input').val('复制链接')
89 89
         $('.dialog-forget').show();
90 90
         tips.find(function(item, index) {
91 91
 				if(item.region == cityInfo.region){
92 92
 					if(item.forget_pwd){
93 93
 						html = item.forget_pwd[0].content;
94
-//						if(item.forget_pwd[0].btnContent == "立即前往"){
95
-//							$('.dialog-wrapper input').val('立即前往')
96
-//						}else if(item.forget_pwd[0].btnContent == "我知道了"){
97
-//							$('.dialog-wrapper input').val('我知道了')
98
-//						}
94
+						if(item.forget_pwd[0].btnContent == "立即前往"){
95
+							$('.dialog-wrapper input').val('复制链接')
96
+						}else if(item.forget_pwd[0].btnContent == "我知道了"){
97
+							$('.dialog-wrapper input').val('我知道了')
98
+						}
99 99
 					}
100 100
 				
101 101
 				}
102 102
 			})
103 103
         $('.dialog-forget').find('p').html(html)
104
-//      $('.dialog-wrapper input').click(function() {
105
-//			tips.find(function(item, index) {
106
-//				if(item.region == cityInfo.region){
107
-//						if($('.dialog-wrapper input').val() == "立即前往"){
108
-//							if(item.URL.password){
109
-//								console.log("liji")
110
-//								retrievePwd = item.URL.password;
104
+        $('.dialog-wrapper input').click(function() {
105
+			tips.find(function(item, index) {
106
+				if(item.region == cityInfo.region){
107
+						if($('.dialog-wrapper input').val() == "复制链接"){
108
+							if(item.URL.password){
109
+								console.log("liji")
110
+								retrievePwd = item.URL.password;
111
+								goCopy(retrievePwd);
111 112
 //								window.location.href="iframeUrl.html?url=" + retrievePwd;
112
-////		    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
113
-//							}else if(item.URL.web){
114
-//								retrievePwd = item.URL.web;
113
+//		    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
114
+							}else if(item.URL.web){
115
+								retrievePwd = item.URL.web;
116
+								goCopy(retrievePwd);
115 117
 //								window.location.href="iframeUrl.html?url=" + retrievePwd;
116
-////		    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
117
-//							}
118
-//						}
119
-//				}
120
-//			})
121
-//      })
118
+//		    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
119
+							}
120
+						}
121
+				}
122
+			})
123
+        })
122 124
     }
123 125
 }
124 126
 

+ 17 - 15
fund_h5_01/js/queryHelp.js

@@ -36,23 +36,25 @@ function goBack () {
36 36
 }
37 37
 
38 38
 //各城市对应注册地址
39
-//function goZhuce () {
40
-//	tips.find(function(item,index) {
41
-//		if(item.region == city_name){
42
-//			if(item.URL.register){
43
-//				goUrl=item.URL.register;
39
+function goZhuce () {
40
+	tips.find(function(item,index) {
41
+		if(item.region == city_name){
42
+			if(item.URL.register){
43
+				goUrl=item.URL.register;
44
+				goCopy(goUrl)
44 45
 //				window.location.href = "iframeUrl.html?url=" + goUrl;
45
-////  			window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
46
-//			}else if(item.URL.web){
47
-//				goUrl=item.URL.web;
46
+//  			window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
47
+			}else if(item.URL.web){
48
+				goUrl=item.URL.web;
49
+				goCopy(goUrl)
48 50
 //				window.location.href = "iframeUrl.html?url=" + goUrl;
49
-////				window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
50
-//			}else{
51
-//				$(".tips .ljqw").html("")
52
-//			}
53
-//		}
54
-//	})
55
-//}
51
+//				window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
52
+			}else{
53
+				$(".tips .ljqw").html("")
54
+			}
55
+		}
56
+	})
57
+}
56 58
 
57 59
 /**
58 60
  * [renderTips 渲染常见问题]

+ 1 - 1
fund_h5_01/no_open_city.html

@@ -10,7 +10,7 @@
10 10
 	    <div style="display: none;">
11 11
 	    	<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
12 12
 	    </div>
13
-	    <script src="./js/common.js?vv=1"></script>
13
+	    <script src="./js/common.js?vv=2"></script>
14 14
 	    <style type="text/css">
15 15
 	    	
16 16
 	    </style>

+ 18 - 6
fund_h5_01/queryHelp.html

@@ -5,18 +5,26 @@
5 5
 	    <title>查询帮助</title>
6 6
 	    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
7 7
 	    <link rel="stylesheet" href="./css/reset.css?vv=1">
8
-	    <link rel="stylesheet" href="./css/query-help.css?vv=1">
8
+	    <link rel="stylesheet" href="./css/query-help.css?vv=2">
9 9
 	    <script src="./js/jquery.min.js"></script>
10 10
 	    <div style="display: none;">
11 11
 	    	<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
12 12
 	    </div>
13
-	    <script src="./js/common.js?vv=1"></script>
13
+	    <script src="./js/common.js?vv=2"></script>
14
+	    <style type="text/css">
15
+	    	#copy_1,#copy_2{
16
+				position:absolute;
17
+				left:-3000px;
18
+			}
19
+	    </style>
14 20
 	</head>
15 21
 	<body>
16 22
 		<nav>
17 23
 	        <i id='back'></i>
18 24
 	        <p>查询帮助</p>
19 25
 	    </nav>
26
+	    <input id="copy_1" type="text" readonly="true" value=""/>
27
+		<div id="copy_2"></div>
20 28
 	    <!--<div class="content">
21 29
 	    	<h3 class="title">如何获取查询密码/公积金帐号</h3>
22 30
 	    	<p class="goOfficialNetwork">如果您还未在最新版,<i>北京</i>公积金官网主注册并设置相关信息;<span onclick="goZhuce()">立即前往 >></span></p>
@@ -25,12 +33,16 @@
25 33
 	    <div class="tips">
26 34
             <!-- 常见问题 -->
27 35
             <div class="con"></div>
28
-            <!--<div class="ljqw"  onclick="goZhuce()">
29
-            	立即前往 >>
30
-            </div>-->
36
+            <div class="ljqw">
37
+            	去官网注册<span  onclick="goZhuce()">复制链接</span>
38
+            </div>
39
+        </div>
40
+        <div class="alert-info" style="display: none;">
41
+            <!-- tip提示,3s后消失 -->
42
+            <p></p>
31 43
         </div>
32 44
 	</body>
33 45
 </html>
34 46
 <script src="./js/auto_size.js?vv=1"></script>
35 47
 <script src="./js/tips.js?vv=1"></script>
36
-<script type="text/javascript" src="js/queryHelp.js?vv=1"></script>
48
+<script type="text/javascript" src="js/queryHelp.js?vv=2"></script>

+ 1 - 1
fund_h5_01/typeChoice.html

@@ -11,7 +11,7 @@
11 11
 	    <div style="display: none;">
12 12
 	    	<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1274146775'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1274146775' type='text/javascript'%3E%3C/script%3E"));</script>
13 13
 	    </div>
14
-	    <script src="./js/common.js?vv=1"></script>
14
+	    <script src="./js/common.js?vv=2"></script>
15 15
 	</head>
16 16
 	<body>
17 17
 		<nav>