index.html
4.89 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
<meta content="telephone=no" name="format-detection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>【有货UFO】年中大促!UFO日670元优惠券限量领!</title>
<link rel="stylesheet" href="css/main.css">
<script>
window.shareC = {
eventName: 'cfs2',
shareUrl: document.location.href.split('?')[0]
};
(function (win) {
var doc = win.document;
var docEl = doc.documentElement;
var tid;
function refreshRem() {
var width = docEl.getBoundingClientRect().width;
if (width > 750) {
docEl.style.fontSize = '40px';
} else {
var rem = 40 * width / 750;
docEl.style.fontSize = rem + 'px';
}
}
win.addEventListener('resize', function () {
clearTimeout(tid);
tid = setTimeout(refreshRem, 300);
}, false);
win.addEventListener('pageshow', function (e) {
if (e.persisted) {
clearTimeout(tid);
tid = setTimeout(refreshRem, 300);
}
}, false);
refreshRem();
})(window);
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?d219c673993469aaaf220606d8826957";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript" charset="utf-8" src="//res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script type="text/javascript" charset="utf-8" src="//cdn.yoho.cn/yoho-activity-sdk/1.1.3/sdk.js"></script>
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/product.js"></script>
<script type="text/javascript" src="js/main.min.js?code=101"></script>
</head>
<body>
<div class="wrapper">
<div class="container">
<!--<a href="javascript:void(0)" @click="refresh">刷新</a>-->
<div class="main" id="mainContainer">
<ul class="bg">
<li v-for="">
<img src="images/title.jpg">
</li>
<li>
<img src="images/coupons.jpg">
</li>
<li>
<div class="button-container">
<div class="hand"></div>
<a class="coupon-button auth" @click="goLogin" v-if="!uid || uid === '0'"></a>
<a class="coupon-button" href="javascript:void(0)" @click="checkShared" v-else></a>
<p class="coupon-desc">点击领券按钮并分享后即可领取所有优惠券</p>
</div>
<img src="images/rules.jpg">
</li>
<li>
<div>
<img src="images/product_title.jpg">
</div>
</li>
<li class="repeat-bg">
<!--ufo商品推荐-->
<ul class="products-list">
<li v-for="item in productData">
<a class="left-item" :data-url=`https://2.yohobuy.com/html/h5Share/goodsDetail.html?id=${item.data[0]}&openby:yohobuy={"action":"go.ufo","params":{"pagename":"productDetail","from_page_name":"${fromPage}","productId":"${item.data[0]}"}}` href="javascript:void(0)"></a>
<a class="right-item" :data-url=`https://2.yohobuy.com/html/h5Share/goodsDetail.html?id=${item.data[1]}&openby:yohobuy={"action":"go.ufo","params":{"pagename":"productDetail","from_page_name":"${fromPage}","productId":"${item.data[1]}"}}` href="javascript:void(0)"></a>
<img :src="item.bg">
</li>
</ul>
</li>
<li>
<img src="images/bottom.jpg">
</li>
</ul>
<!--提示信息-->
<div v-if="isShowTips" class="tips-wrapper">
<div class="tips-container">
<div class="tips">
<p id="txt_tips">{{tipsMessage}}</p>
<a id="btn_tips_submit" @click="closeTips">确 定</a>
</div>
</div>
</div>
<div v-if="isShowShare" class="share-wrapper" @click="hideShare">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/wxshare.js?a=10001"></script>
</body>
</html>