code review by fei.hong: do modify final sale huodong background images
Showing
1 changed file
with
154 additions
and
0 deletions
1 | +<?php return function ($in, $debugopt = 1) { | ||
2 | + $cx = array( | ||
3 | + 'flags' => array( | ||
4 | + 'jstrue' => false, | ||
5 | + 'jsobj' => false, | ||
6 | + 'spvar' => true, | ||
7 | + 'prop' => false, | ||
8 | + 'method' => false, | ||
9 | + 'mustlok' => true, | ||
10 | + 'echo' => false, | ||
11 | + 'debug' => $debugopt, | ||
12 | + ), | ||
13 | + 'constants' => array(), | ||
14 | + 'helpers' => array(), | ||
15 | + 'blockhelpers' => array(), | ||
16 | + 'hbhelpers' => array(), | ||
17 | + 'partials' => array(), | ||
18 | + 'scopes' => array(), | ||
19 | + 'sp_vars' => array('root' => $in), | ||
20 | + 'lcrun' => 'Plugin\LCRun3', | ||
21 | + | ||
22 | + ); | ||
23 | + | ||
24 | + return '<!DOCTYPE html> | ||
25 | +<html> | ||
26 | +<head> | ||
27 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
-
Please register or login to post a comment