Parcourir la Source

Merge branch 'master' of http://git.quyaqu.com/xiuli.gao/qianduo

xiuli.gao il y a 6 ans
Parent
commit
2b708dac7a

+ 192 - 0
share/Invitation.html

@@ -0,0 +1,192 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+<meta charset="UTF-8">
5
+<meta content="yes" name="apple-mobile-web-app-capable">
6
+<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
7
+<title>分享领红包</title>
8
+<link rel="stylesheet" type="text/css" href="public/public_css.css"/>
9
+<style type="text/css">
10
+	body,html{font-size: 0.16rem;height: 100vh;}
11
+	body, div, button, h3, h6, span, ul, li, p, a,input{font-family: -apple-system,SF UI Text,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); padding: 0; margin: 0; box-sizing: inherit; font-weight: normal;}
12
+	.success{margin: auto;text-align: center;border-bottom:0.005rem solid #707070;}
13
+	.success p:nth-child(1){font-size: 0.18rem;color: #FB3D38;padding-top: 0.86rem;padding-bottom: 0.145rem;}
14
+	.success p:nth-child(2){font-size: 0.12rem;color: #FB3D38;padding-bottom: 0.655rem;}
15
+	.success p:nth-child(4){font-size: 0.14rem;color: #666666;padding-top: 0.215rem;padding-bottom: 0.595rem;}	
16
+	#share{width: 0.94rem;height: 0.26rem;margin:auto;color:#FFF;font-size:0.15rem;line-height: 0.26rem;text-align:center;background:#FB3D38;border-radius:0.075rem;box-shadow:0.02rem 0.045rem 0.05rem rgba(143,141,141,0.22);}
17
+	.download{}
18
+	.download .tit{color:#3333333;font-size:0.18rem;text-align: center;padding-top: 0.62rem;padding-bottom: 0.455rem;}
19
+	.download .leidou{padding-left: 0.16rem;padding-right: 0.15rem;}
20
+	.download .leidou .liedouImg{width: 0.525rem;float: left;}
21
+	.download .leidou .introduce{float: left;padding-left: 0.055rem;}
22
+	.download .leidou .introduce span{width:1.36rem;font-size: 0.13rem;color: #333333;}
23
+	.download .leidou .introduce img{width: 0.8rem;height: 0.195rem;padding-top: 0.06rem;padding-bottom: 0.1rem;}
24
+	.download .leidou .down{float: right;width: 0.755rem;height: 0.23rem;color: #fff;font-size: 0.13rem;line-height: 0.24rem;margin-top: 0.28rem;text-align: center;background: #FB3D38;border-radius: 0.075rem;box-shadow: 0.02rem 0.045rem 0.05rem rgba(143,141,141,0.22);} 
25
+	.btom{clear: both;width: 100%;margin:auto;color:#FB3D38;font-size:0.14rem;text-align:center;padding-top: 0.5rem;padding-bottom: 0.56rem;}
26
+	.shareMask{display: none;width: 100%;height: 100%;background: rgba(0,0,0,0.5036);position: absolute;top: 0;left: 0;}
27
+	button{
28
+		outline: none;
29
+	}
30
+	a, a:visited{
31
+		text-decoration: none;
32
+	}
33
+	body{
34
+		width: 100%;
35
+		height: 100%;
36
+	}
37
+	.shareMask{
38
+		display: none;
39
+		width: 100%;
40
+		height: 100%;
41
+		background: rgba(0,0,0,0.5036);
42
+		position: absolute;
43
+		top: 0;
44
+		left: 0;
45
+	}
46
+	.weixin{
47
+		position: fixed;
48
+		bottom: 0;
49
+		background: #ffffff;
50
+		width: 100%;
51
+	}
52
+	.weixins{
53
+		background: rgba(216,216,216,0.2);
54
+		width: 100%;
55
+		display: -webkit-flex;
56
+	    display: -webkit-box;
57
+	    display: -moz-box;
58
+	    display: -ms-flexbox;
59
+	    display: flex;
60
+		justify-content: space-around;
61
+	}
62
+	.weixins div{
63
+		text-align: center;
64
+	}
65
+	.weixins div img{
66
+		display: block;
67
+		width: 0.44rem;
68
+		height: 0.44rem;
69
+		margin: auto;
70
+		margin-top: 0.22rem;
71
+		margin-bottom: 0.12rem;
72
+	}
73
+	.weixins div span{
74
+		font-size: 0.12rem;
75
+		line-height: 0.17rem;
76
+		color: #555555;
77
+		margin-bottom: 0.16rem;
78
+		display: inline-block;
79
+	}
80
+	.cancel{
81
+		line-height: 0.4rem;
82
+		font-size: 0.15rem;
83
+		color: #555555;
84
+		text-align: center;
85
+	}
86
+</style>
87
+	<script type="text/javascript">
88
+		document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
89
+		window.onresize = function(){
90
+			document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
91
+		}
92
+	</script>
93
+</head>
94
+<body>
95
+	<div class="success">
96
+		<p>恭喜你,已复制淘口令</p>
97
+		<p>请前往淘宝领取红包</p>
98
+		<p id="share">分享</p>
99
+		<p>分享给朋友,有奖一起分</p>
100
+	</div>
101
+	<div class="download">
102
+		<p class="tit">获取更多大额红包,下载猎豆优选</p>
103
+		<div class="leidou">
104
+			<img src="images/liedou.png" class="liedouImg"/>
105
+			<p class="introduce"><img src="images/logo.png" alt="" /><span>购物先领券,下单赚佣</span></p>
106
+			<a class="down" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.kuxuan.coupon_liedou">下载APP</a>
107
+		</div>
108
+	</div>
109
+	<div class="btom">在淘宝/天猫购物之前,先来“猎豆优选App”</div>
110
+	
111
+	<div class="shareMask">
112
+		<div class="weixin">
113
+			<div class="weixins">
114
+				<div class="weixinShare" onclick="shareWeixin()">
115
+					<img src="../H5/weixin.png" />
116
+					<span>微信</span>
117
+				</div>
118
+				<div class="pengyouquan" onclick="sharePengyouquan()">
119
+					<img src="../H5/weixinQuan.png"/>
120
+					<span>朋友圈</span>
121
+				</div>
122
+			</div>
123
+			<div class="cancel">取消分享</div>
124
+		</div>
125
+	</div>
126
+</body>
127
+</html>
128
+<script type="text/javascript" src="public/jquery-2.1.0.js"></script>
129
+<script type="text/javascript">
130
+	
131
+	var userId = null;
132
+	var activity_id = null;
133
+	var share_code = null;
134
+	var str=location.href;  //取得整个地址栏
135
+    var num=str.indexOf("?"); 
136
+    str=str.substr(num+1); //str得到?之后的字符串
137
+    var brr=str.split("&");
138
+	for(var i = 0 ; i<brr.length; i++){
139
+    	if(brr[i].indexOf('userId') != -1){
140
+    		userId = brr[i].split('=')[1];//用户id
141
+    		localStorage.setItem('userId', userId);
142
+    	}
143
+    	if(brr[i].indexOf('activity_id') != -1){
144
+    		activity_id = brr[i].split('=')[1];//活动id
145
+    		localStorage.setItem('activity_id', activity_id);
146
+    	}
147
+    	if(brr[i].indexOf('share_code') != -1){
148
+    		share_code = brr[i].split('=')[1];
149
+    	}
150
+    }
151
+	
152
+	
153
+	$(".shareMask").click(function(e){
154
+		$(".shareMask").css('display','none')
155
+	})
156
+	
157
+	$(".weixins").click(function(e){
158
+		e.preventDefault();
159
+		return false
160
+	})
161
+	
162
+	
163
+	var jsons = {
164
+				title:'@你,快来瓜分10000个红包!',
165
+				desc:'福利放送!淘宝无门槛购物红包天天领!来看看你的手气~',
166
+				url:'http://mzb.quyaqu.com/share/index.html?userId=' + userId
167
+	};
168
+	jsons = JSON.stringify(jsons);
169
+	function shareWeixin () {
170
+		if(navigator.userAgent.indexOf('Android') != -1){
171
+			messageHandlers.shareWithWechatSession(jsons)
172
+		}else{
173
+			window.webkit.messageHandlers.shareWithWechatSession.postMessage(jsons)
174
+		}
175
+	}
176
+	
177
+	function sharePengyouquan () {
178
+		if(navigator.userAgent.indexOf('Android') != -1){
179
+			messageHandlers.shareWithWechatTimeline(jsons)
180
+		}else{
181
+			window.webkit.messageHandlers.shareWithWechatTimeline.postMessage(jsons)
182
+		}
183
+	}
184
+	
185
+	$("#share").click(function () {
186
+		$(".shareMask").css('display','block')
187
+	})
188
+	$(".cancel").click(function () {
189
+		$(".shareMask").css('display','none')
190
+	})
191
+
192
+</script>

BIN
share/hongbao.png


BIN
share/images/001.png


BIN
share/images/add.png


BIN
share/images/back.png


BIN
share/images/banner.png


BIN
share/images/jinniu.png


BIN
share/images/liedou.png


BIN
share/images/logo.png


BIN
share/images/logo@3x.png


BIN
share/images/taobao.png


BIN
share/images/加@3x.png


BIN
share/images/淘宝@3x.png


BIN
share/images/猎豆优选@3x.png


BIN
share/images/红包@3x.png


BIN
share/images/返回-4@3x.png


BIN
share/images/金牛@3x.png


+ 130 - 0
share/index.html

@@ -0,0 +1,130 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+	<meta charset="UTF-8">
5
+	<meta content="yes" name="apple-mobile-web-app-capable">
6
+	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
7
+	<title>分享领红包</title>
8
+	<link rel="stylesheet" type="text/css" href="public/public_css.css"/>
9
+	<style type="text/css">
10
+		body{    min-height:100vh;}
11
+		.banner{width: 3.025rem;height: 1.15rem;margin: auto;padding-top: 0.11rem;}
12
+		.banner img{width: 100%;}
13
+		.red_packet{/*width: 2.49rem;*/width: 2.52rem;margin: auto;}
14
+		.red_packet .click{font-size:0.18rem;color:#FB3D38;text-align: center;padding-top: 0.2rem;padding-bottom: 0.2rem;}
15
+		.red_packet .copy{width:0.94rem;height:0.26rem;margin:auto;color:#FFF;font-size:0.15rem;line-height: 0.26rem;text-align:center;background:#FB3D38;border-radius:0.075rem;box-shadow:0.02rem 0.045rem 0.05rem rgba(143,141,141,0.22);}
16
+		.red_packet .con{width: 100%;font-size:0.14rem;color:#666666;padding-top: 0.2rem;padding-bottom: 0.345rem;}
17
+		.already{height: 2rem;padding-left: 0.16rem;padding-right: 0.15rem;}
18
+		.already .num{font-size:0.15rem;color:#FB3D38;padding-bottom: 0.175rem;}
19
+		.already ul{height: 1.305rem;overflow-y: scroll;}
20
+		.already ul li{float: left;padding-bottom: 0.08rem;color: #666666;line-height: 0.355rem;}
21
+		.already ul li img{float: left;display: block;width: 0.355rem;}
22
+		.already ul li .username{padding-left: 0.075rem;padding-right: 0.55rem;	}
23
+		.already ul li .ed{padding-right: 0.48rem;}
24
+		.already ul li .username,.already ul li .ed{font-size: 0.14rem;}
25
+		.already ul li .day,.already ul li .time{font-size: 0.12rem;}
26
+		.already ul li .day{padding-right:0.08rem ;}
27
+		.cooperation{width:2.54rem;height: 0.46rem;margin: auto;background: url(images/add.png) no-repeat 0.6rem 0.125rem,url(images/add.png) no-repeat 1.65rem 0.125rem; background-size:0.22rem 0.22rem ;}
28
+		.cooperation img{float:left;width: 0.46rem;margin-right: 0.57rem;}
29
+		.cooperation img:nth-child(3){margin-right: 0rem;}
30
+		.bottom{margin: auto;color: #FB3D38;text-align: center;font-size: 0.14rem;}
31
+		.bottom p:nth-child(1){padding-top: 0.185rem;padding-bottom: 0.205rem;font-size: 0.15rem;} 
32
+		#copy_1,#copy_2,#taokouling{position: absolute;left: -1000rem;}
33
+			.alert-info {
34
+			    position: absolute;
35
+			    top: 1.74rem;
36
+			    right: 0;
37
+			    left: 0;
38
+			    bottom: 0;
39
+			    text-align: center;
40
+			}
41
+			.alert-info p {
42
+			    display: inline-block;
43
+			    /*height: 0.38rem;*/
44
+			    color: #fff;
45
+			    font-size: 0.14rem;
46
+			    line-height: 0.38rem;
47
+			    padding: 0 0.10rem;
48
+			    background-color: rgba(0, 0, 0, 0.7);
49
+			    border-radius: 5px;
50
+			}
51
+	</style>
52
+	<script type="text/javascript">
53
+		document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
54
+		window.onresize = function(){
55
+			document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
56
+		}
57
+	</script>
58
+</head>
59
+<body>
60
+	<div class="banner">
61
+		<img src="images/banner.png"/>
62
+	</div>
63
+	<div class="red_packet">
64
+		<p class="click">点我领红包</p>
65
+		<p class="copy" onclick="copyPassword()">领取红包</p>
66
+		<p class="con">自动生成淘口令,打开手机淘宝领取红包</p>
67
+	</div>
68
+	<div class="already">
69
+		<p class="num">已有999位用户领取红包</p>
70
+		<ul>
71
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
72
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
73
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
74
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
75
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
76
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
77
+			<li><img src="images/001.png" /><span class="username">小豆***</span><span class="ed">领取了红包</span><span class="day">05-30</span><span class="time">14:36</span></li>
78
+		</ul>
79
+	</div>
80
+	<div class="cooperation">
81
+		<img src="images/jinniu.png" alt="" />
82
+		<img src="images/taobao.png" alt="" />
83
+		<img src="images/liedou.png" alt="" />
84
+	</div>
85
+	<div class="bottom">
86
+		<p>联合送礼</p>
87
+		<p>下载猎豆优选,大额红包拿到手软</p>
88
+	</div>
89
+	
90
+	
91
+	<input id="copy_1" type="text" readOnly="true" value=""/>
92
+	    <div id="copy_2"></div>
93
+		<text id="taokouling">€WVXSb1pT51S€</text>
94
+		
95
+		<div class="alert-info" style="display: none;">
96
+            <!-- tip提示,3s后消失 -->
97
+            <p></p>
98
+        </div>
99
+</body>
100
+</html>
101
+<script type="text/javascript" src="public/jquery-2.1.0.js"></script>
102
+<script type="text/javascript">
103
+	
104
+	
105
+	function copyPassword() {
106
+		var data=document.getElementById("taokouling").innerHTML;
107
+		copy_2.innerHTML = data;
108
+	    copy_1.value = data;
109
+	    if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
110
+	        //区分iPhone设备
111
+	        window.getSelection().removeAllRanges();//这段代码必须放在前面否则无效
112
+	        var Url2=document.getElementById("copy_2");//要复制文字的节点
113
+	        var range = document.createRange();
114
+	        // 选中需要复制的节点
115
+	        range.selectNode(Url2);
116
+	        // 执行选中元素
117
+	        window.getSelection().addRange(range);
118
+	        // 执行 copy 操作
119
+	        var successful = document.execCommand('copy');
120
+	
121
+	        // 移除选中的元素
122
+	        window.getSelection().removeAllRanges();
123
+	    }else{
124
+	        var Url2=document.getElementById("copy_1");//要复制文字的节点
125
+	        Url2.select(); // 选择对象
126
+	        document.execCommand("Copy"); // 执行浏览器复制命令
127
+	    }
128
+	    window.location.href="Invitation.html"
129
+	}
130
+</script>

Fichier diff supprimé car celui-ci est trop grand
+ 9111 - 0
share/public/jquery-2.1.0.js


+ 5 - 0
share/public/public.js

@@ -0,0 +1,5 @@
1
+
2
+document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
3
+	window.onresize = function(){
4
+		document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
5
+} 

+ 32 - 0
share/public/public_css.css

@@ -0,0 +1,32 @@
1
+body{
2
+	font-size: 0.16rem;
3
+}
4
+body, div, button, h3, h6, span, ul, li, p, a,input{
5
+	font-family: -apple-system,SF UI Text,Helvetica Neue,Helvetica,Arial,sans-serif;
6
+	-webkit-tap-highlight-color: rgba(0, 0, 0, 0); 
7
+	padding: 0; 
8
+	margin: 0; 
9
+	box-sizing: inherit; 
10
+	font-weight: normal;
11
+}
12
+button{
13
+	outline: none;
14
+	border:0px;
15
+	background-color:transparent;
16
+}
17
+a, a:visited{
18
+	text-decoration: none;
19
+}
20
+body{
21
+	width: 100%;
22
+	background: #FFFFFF;
23
+}
24
+img{
25
+	display: block;
26
+}
27
+ul,ol,menu,li{list-style:none}
28
+input::input-placeholder{color:rgba(153,153,153,0.4972)!important;} 
29
+input::-webkit-input-placeholder{color:rgba(153,153,153,0.4972)!important;} 
30
+input:-moz-placeholder{color:rgba(153,153,153,0.4972)!important;} 
31
+input::-moz-placeholder{color:rgba(153,153,153,0.4972)!important;} 
32
+input:-ms-input-placeholder{color:rgba(153,153,153,0.4972)!important;}