do add cuxiao christmas page
Showing
17 changed files
with
112 additions
and
5 deletions

20.1 KB

1.42 KB

5.16 KB

60.8 KB

9.65 KB

9.16 KB

2.72 KB

12.2 KB

55.9 KB

25.9 KB

237 KB
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | +<meta charset="utf-8"> | ||
6 | +<title>{{staticTitle}}</title> | ||
7 | +<meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
8 | +<meta name="format-detection" content="telephone=no"> | ||
9 | +<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
10 | +<meta name="apple-mobile-web-app-capable" content="yes"> | ||
11 | +<meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
12 | +<link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/christmas/index2.css"> | ||
13 | +<link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
14 | +<script> | ||
15 | + (function(doc, win) { | ||
16 | + var docEl = doc.documentElement; | ||
17 | + (function() { | ||
18 | + var clientWidth = docEl.clientWidth; | ||
19 | + if (!clientWidth) { | ||
20 | + return; | ||
21 | + } | ||
22 | + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; | ||
23 | + }()); | ||
24 | + })(document, window); | ||
25 | +</script> | ||
26 | +</head> | ||
27 | +<body class="keBody"> | ||
28 | +<div class="coupon-christmas" show="{{showPopupFlag}}"> | ||
29 | + <div class="coupon-top"> | ||
30 | + <img src="{{imgUrl}}/cuxiao/img/christmas/02/top-bg.png" alt=""> | ||
31 | + <img class="wyf" src="{{imgUrl}}/cuxiao/img/christmas/02/wyf.gif" alt=""> | ||
32 | + <a class="go-check" href="{{myCouponUrl}}"></a> | ||
33 | + <a class="share-btn" href="javascript:;"></a> | ||
34 | + </div> | ||
35 | + <div class="coupon-bottom"> | ||
36 | + <div class="coupon-banner"> | ||
37 | + <div class="banner-btn"> | ||
38 | + <a class="boy" href="{{bannerUrl_1}}"></a> | ||
39 | + <a class="girl" href="{{bannerUrl_2}}"></a> | ||
40 | + <a class="life" href="{{bannerUrl_3}}"></a> | ||
41 | + <a class="kid" href="{{bannerUrl_4}}"></a> | ||
42 | + </div> | ||
43 | + </div> | ||
44 | + <div class="bottom-btn"> | ||
45 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
46 | + <a class="download-yoho" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445"></a> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="coupon-ft"> | ||
50 | + <img src="{{imgUrl}}/cuxiao/img/christmas/02/14.png"> | ||
51 | + </div> | ||
52 | +</div> | ||
53 | +<div class="modal"></div> | ||
54 | +<div class="dialog-box geted"> | ||
55 | + <div class="dialog-inner"> | ||
56 | + <img src="{{imgUrl}}/cuxiao/img/christmas/geted.png" alt=""/> | ||
57 | + <span class="dialog-close"></span> | ||
58 | + </div> | ||
59 | +</div> | ||
60 | +<div class="dialog-box fail"> | ||
61 | + <div class="dialog-inner"> | ||
62 | + <img src="{{imgUrl}}/cuxiao/img/christmas/fail.png" alt=""/> | ||
63 | + <span class="refresh-btn"></span> | ||
64 | + </div> | ||
65 | +</div> | ||
66 | +<input id="shareLink" type="hidden" value="{{shareLink}}"> | ||
67 | +<input id="shareImg" type="hidden" value="{{shareImg}}"> | ||
68 | +<input id="shareTitle" type="hidden" value="{{shareTitle}}"> | ||
69 | +<input id="shareDesc" type="hidden" value="{{shareDesc}}"> | ||
70 | +<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script> | ||
71 | +<script> | ||
72 | + //提示分享 | ||
73 | + $('.share-btn').click(function () { | ||
74 | + $('.modal').fadeIn(); | ||
75 | + }); | ||
76 | + //关闭提示分享 | ||
77 | + $('.modal').click(function () { | ||
78 | + $(this).fadeOut(); | ||
79 | + }); | ||
80 | + | ||
81 | + //提示已领过券 | ||
82 | + if ($('.coupon-christmas').attr('show') === '1') { | ||
83 | + $('.dialog-box.geted').show(); | ||
84 | + } | ||
85 | + //提示领券失败 | ||
86 | + else if ($('.coupon-christmas').attr('show') === '2') { | ||
87 | + $('.dialog-box.fail').show(); | ||
88 | + } | ||
89 | + | ||
90 | + //关闭提示 | ||
91 | + $('.dialog-close').click(function(){ | ||
92 | + $(this).parents('.dialog-box').fadeOut(); | ||
93 | + }); | ||
94 | + //刷新页面 | ||
95 | + $('.refresh-btn').click(function() { | ||
96 | + location.reload(); | ||
97 | + }); | ||
98 | +</script> | ||
99 | +{{#if weixinShare}} | ||
100 | +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
101 | +<script type="text/javascript" charset="utf-8" src="{{jsUrl}}/cuxiao/js/share.weixin.js"></script> | ||
102 | +{{/if}} | ||
103 | +{{> layout/analysis}} | ||
104 | +</body> | ||
105 | +</html> |
@@ -95,7 +95,7 @@ class ChristmasController extends HuodongAction | @@ -95,7 +95,7 @@ class ChristmasController extends HuodongAction | ||
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | - $this->_view->display('index', array( | 98 | + $this->_view->display('index-2', array( |
99 | 'staticTitle' => '潮集圣诞', | 99 | 'staticTitle' => '潮集圣诞', |
100 | 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享 | 100 | 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享 |
101 | 'shareLink' => 'http://feature.yohobuy.com/0/0/701/index.html', | 101 | 'shareLink' => 'http://feature.yohobuy.com/0/0/701/index.html', |
@@ -106,6 +106,8 @@ class ChristmasController extends HuodongAction | @@ -106,6 +106,8 @@ class ChristmasController extends HuodongAction | ||
106 | 'myCouponUrl' => $myCouponUrl, | 106 | 'myCouponUrl' => $myCouponUrl, |
107 | 'bannerUrl_1' => 'http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"454"},"param":{"share_id":"454"}}}', | 107 | 'bannerUrl_1' => 'http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"454"},"param":{"share_id":"454"}}}', |
108 | 'bannerUrl_2' => 'http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"456"},"param":{"share_id":"456"}}}', | 108 | 'bannerUrl_2' => 'http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"456"},"param":{"share_id":"456"}}}', |
109 | + 'bannerUrl_3' => 'http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"454"},"param":{"share_id":"454"}}}', | ||
110 | + 'bannerUrl_4' => 'http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"456"},"param":{"share_id":"456"}}}', | ||
109 | )); | 111 | )); |
110 | } | 112 | } |
111 | 113 |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "1.0.1" | 53 | +application.version = "1.0.2" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "1.0.1" | 53 | +application.version = "1.0.2" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "1.0.1" | 53 | +application.version = "1.0.2" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "1.0.1" | 53 | +application.version = "1.0.2" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
-
Please register or login to post a comment