forked from jackIsZlg/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JanRunreports.html
374 lines (368 loc) · 15.3 KB
/
JanRunreports.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0, width=device-width">
<title>1月运营报告</title>
<link rel="stylesheet" type="text/css" href="../../../register/js/swiper.css"/>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font: 12px/1.5 "Microsoft Yahei", arial, tahoma, "Hiragino Sans GB";
color: #323232;
background: rgb(248,248,248);
}
body {
max-width: 750px;
margin: 0 auto;
}
* {
margin: 0;
padding: 0;
}
p {
font-size: 1rem;
}
a {
text-decoration: none;
}
[v-cloak] {
display:none;
}
@media only screen and (max-width: 359px) {
html {
font-size: 12px;
}
}
@media only screen and (min-width: 360px) and (max-width: 374px) {
html {
font-size: 13.5px;
}
}
@media only screen and (min-width: 375px) and (max-width: 399px) {
html {
font-size: 14.0625px;
}
}
@media only screen and (min-width: 400px) and (max-width: 479px) {
html {
font-size: 15px;
}
}
@media only screen and (min-width: 480px) and (max-width: 539px) {
html {
font-size: 18px;
}
}
@media only screen and (min-width: 540px) and (max-width: 639px) {
html {
font-size: 20.25px;
}
}
@media only screen and (min-width: 640px) and (max-width: 719px) {
html {
font-size: 24px;
}
}
@media only screen and (min-width: 720px) {
html {
font-size: 27px;
}
}
.body-hidden{
overflow: hidden;
}
#app{
width: 100%;
height: 100%;
background:#fff;
}
.common-head {
height: 3rem;
background: #FFFFFF;
color: #333333;
width: 100%;
max-width: 750px;
position: absolute;
border-bottom: 1px solid #e5e5e5;
top:0;
z-index: 9;
}
.common-head i{
z-index: 5;
width: 0.7rem;
height: 1.17rem;
display: block;
position: absolute;
background-image: url(../../../register/images/icon_left.png);
background-size: cover;
top: 50%;
left: 2rem;
transform: translate(0,-50%);
-webkit-transform: translate(0,-50%);
-o-transform: translate(0,-50%);
-moz-transform: translate(0,-50%);
}
.common-head span{
text-align: center;
font-size: 1.28rem;
line-height: 3rem;
position: absolute;
width: 100%;
background: #fff;
}
img{
width: 100%;
}
.swiper-slide{
width:100%;
height:100%;
}
.swiper-container {
width: 100%;
height: 100%;
background:#fff;
}
.swiper-slide{
width:100%;
height:100%;
background-color: #ffffff;
background-size:100% 100%;
color: #666666;
position: relative;
}
img{
display:block;
}
.swiper-pagination-bullet {
width: 6px;
height: 6px;
background: #fff;
opacity: .4;
}
.swiper-pagination-bullet-active {
opacity: 1;
}
#array{
position:fixed;
z-index:999;
-webkit-animation: start 1.5s infinite ease-in-out;
bottom: 1.3rem;
margin:0 auto;
left:0;
right:0;
width: 3rem;
}
@-webkit-keyframes start {
0%,30% {opacity: 0;-webkit-transform: translate(0,10px);}
60% {opacity: 1;-webkit-transform: translate(0,0);}
100% {opacity: 0;-webkit-transform: translate(0,-8px);}
}
@-moz-keyframes start {
0%,30% {opacity: 0;-moz-transform: translate(0,10px);}
60% {opacity: 1;-moz-transform: translate(0,0);}
100% {opacity: 0;-moz-transform: translate(0,-8px);}
}
@keyframes start {
0%,30% {opacity: 0;transform: translate(0,10px);}
60% {opacity: 1;transform: translate(0,0);}
100% {opacity: 0;transform: translate(0,-8px);}
}
</style>
<script type="text/javascript" src="../../../register/js/jweixin-1.0.0.js" ></script>
<script type="text/javascript" src="../../../register/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="../../../register/js/swiper.js"></script>
</head>
<body>
<div id="app" class="swiper-container" >
<div class="common-head">
<i onclick="back()"></i>
<span>1月运营月报</span>
</div>
<div class="swiper-wrapper">
<section class="swiper-slide swiper-slide1">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_01.png"/>
</section>
<section class="swiper-slide swiper-slide2">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_02.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_03.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_04.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_05.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_06.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_07.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_08.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_09.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_10.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_11.png"/>
</section>
<section class="swiper-slide swiper-slide3">
<img src="../../../images/activity/2018Activity/Feb/JanReport/janReport_12.png"/>
</section>
</div>
<img src="../../../images/activity/holiday/act_arrow.png" id="array" class="resize">
</div>
</body>
<script>
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
if(getQueryString('wap') != null && getQueryString('wap') != ''){
$('.common-head').show()
}else{
$('.common-head').hide()
}
function back() {
window.location.href = "/main/home"
}
var mySwiper = new Swiper ('.swiper-container', {
direction : 'vertical',
pagination: '.swiper-pagination',
//virtualTranslate : true,
mousewheelControl : true,
watchSlidesProgress: true,
onProgress: function(swiper){
// console.log(swiper.activeIndex)
for (var i = 0; i < swiper.slides.length; i++){
// console.log(i)
var slide = swiper.slides[i];
var progress = slide.progress;
var translate = progress*swiper.height/4;
scale = 1 - Math.min(Math.abs(progress * 0.5), 1);
var opacity = 1 - Math.min(Math.abs(progress/2),0.5);
slide.style.opacity = opacity;
es = slide.style;
es.webkitTransform = es.MsTransform = es.msTransform = es.MozTransform = es.OTransform = es.transform = 'translate3d(0,'+translate+'px,-'+translate+'px) scaleY(' + scale + ')';
}
},
onSetTransition: function(swiper, speed) {
for (var i = 0; i < swiper.slides.length; i++){
es = swiper.slides[i].style;
es.webkitTransitionDuration = es.MsTransitionDuration = es.msTransitionDuration = es.MozTransitionDuration = es.OTransitionDuration = es.transitionDuration = speed + 'ms';
}
},
on: {
slideChangeTransitionEnd: function(){
// alert(this.activeIndex);//切换结束时,告诉我现在是第几个slide
if(this.activeIndex == 11 ){
$('.resize').hide()
}else{
$('.resize').show()
}
},
// onSlideChangeStart: function(swiper){
// console.log(swiper.activeIndex)
// },
// onTransitionStart:function (swiper) {
// if(swiper.activeIndex == 11 ){
// $('.resize').hide()
// }else{
// $('.resize').show()
// }
}
})
var currUrl = window.location.href;
$.ajax({
url: '/product/signWeChat.dos',
type: 'post',
data: { url: currUrl, version: '2.0.0', channel: '3' },
success: function (data) {
if (data.success) {
wx.config({
debug: false,
appId: data.map.appid,
timestamp: data.map.timestamp,
nonceStr: data.map.noncestr,
signature: data.map.sign,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
});
wx.ready(function () {
wx.onMenuShareTimeline({
desc: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
title: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
link: 'https://m.congmingmoney.com/template/activity/2018Activity/janRunreports.html?wap=true', // 分享链接
imgUrl: 'https://m.congmingmoney.com/images/activity/2018Activity/Feb/JanReport/janReport_01.png', // 分享图标
success: function () {
alert('分享成功!');
},
cancel: function () {
alert('您取消了分享!');
}
});
wx.onMenuShareAppMessage({
title: '1月运营月报',
desc: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
link: 'https://m.congmingmoney.com/template/activity/2018Activity/janRunreports.html?wap=true', // 分享链接
imgUrl: 'https://m.congmingmoney.com/images/activity/2018Activity/Feb/JanReport/janReport_01.png', // 分享图标
success: function () {
alert('分享成功!');
},
cancel: function () {
alert('您取消了分享!');
}
});
wx.onMenuShareQQ({
title: '1月运营月报',
desc: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
link: 'https://m.congmingmoney.com/template/activity/2018Activity/janRunreports.html?wap=true', // 分享链接
imgUrl: 'https://m.congmingmoney.com/images/activity/2018Activity/Feb/JanReport/janReport_01.png', // 分享图标
success: function () {
alert('分享成功!');
},
cancel: function () {
alert('您取消了分享!');
}
});
wx.onMenuShareWeibo({
title: '1月运营月报',
desc: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
link: 'https://m.congmingmoney.com/template/activity/2018Activity/janRunreports.html?wap=true', // 分享链接
imgUrl: 'https://m.congmingmoney.com/images/activity/2018Activity/Feb/JanReport/janReport_01.png', // 分享图标
success: function () {
alert('分享成功!');
},
cancel: function () {
alert('您取消了分享!');
}
});
wx.onMenuShareQZone({
title: '1月运营月报',
desc: '一月聪明钱为您赚取了多少收益、一月产生了那些土豪、一月聪明钱多了多少新伙伴、聪明钱1月运营月报让你更了解聪明。',
link: 'https://m.congmingmoney.com/template/activity/2018Activity/janRunreports.html?wap=true', // 分享链接
imgUrl: 'https://m.congmingmoney.com/images/activity/2018Activity/Feb/JanReport/janReport_01.png', // 分享图标
success: function () {
alert('分享成功!');
},
cancel: function () {
alert('您取消了分享!');
}
});
})
};
}
});</script>
</html>