Authored by hf

do modify cuxiao coupon js warning message

<?php return function ($in, $debugopt = 1) {
$cx = array(
'flags' => array(
'jstrue' => false,
'jsobj' => false,
'spvar' => true,
'prop' => false,
'method' => false,
'mustlok' => true,
'echo' => false,
'debug' => $debugopt,
),
'constants' => array(),
'helpers' => array(),
'blockhelpers' => array(),
'hbhelpers' => array(),
'partials' => array(),
'scopes' => array(),
'sp_vars' => array('root' => $in),
'lcrun' => 'Plugin\LCRun3',
);
return '<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
<link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cssUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(function(doc, win) {
var docEl = doc.documentElement;
(function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) {
return;
}
docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
}());
})(document, window);
</script>
</head>
<body>
<div class="coupon-container" id="coupon-container" param="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" isLogged="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isLogged')), ENT_QUOTES, 'UTF-8').'">
<div class="coupon-hd hd3"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.7-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.7-12.10期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="floor-header best-choice"></div>
<div class="img-coupon clearfix">
<ul class="boy2-img-coupon01">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_114')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15715"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_847')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15719"></a>
</li>
</ul>
<ul class="boy2-img-coupon02">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_536')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15767"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_230')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15723"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="boy2-logo-coupon01">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_676')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15717"></a>
</li>
<li class="boy2-logo-coupon02">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_308')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15727"></a>
</li>
<li class="boy2-logo-coupon03">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_199')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15729"></a>
</li>
<li class="boy2-logo-coupon04">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_714')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15731"></a>
</li>
<li class="boy2-logo-coupon05">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_553')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15677"></a>
</li>
<li class="boy2-logo-coupon06">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_194')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15735"></a>
</li>
</ul>
</div>
<div class="floor-header top-recommend"></div>
<div class="img-coupon clearfix">
<ul class="boy2-img-coupon03">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_343')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15725"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_692')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15739"></a>
</li>
</ul>
<ul class="boy2-img-coupon04">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_870')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15743"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_444')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15721"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="boy2-logo-coupon07">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_462')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15737"></a>
</li>
<li class="boy2-logo-coupon08">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_136')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15741"></a>
</li>
<li class="boy2-logo-coupon09">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_641')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15745"></a>
</li>
<li class="boy2-logo-coupon10">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_832')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15747"></a>
</li>
<li class="boy2-logo-coupon11">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_940')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15749"></a>
</li>
<li class="boy2-logo-coupon12">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_719')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15753"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_girls')), ENT_QUOTES, 'UTF-8').'">女生</a>
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a>
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a>
</div>
</div>
</div>
<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
'.((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>
' : '').'<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
\'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
</script>
<!-- End Google Tag Manager -->
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
'.'
</body>
</html>';
}
?>
\ No newline at end of file
... ...
... ... @@ -227,7 +227,7 @@
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
'.((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>
' : '').'<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
... ...
<?php return function ($in, $debugopt = 1) {
$cx = array(
'flags' => array(
'jstrue' => false,
'jsobj' => false,
'spvar' => true,
'prop' => false,
'method' => false,
'mustlok' => true,
'echo' => false,
'debug' => $debugopt,
),
'constants' => array(),
'helpers' => array(),
'blockhelpers' => array(),
'hbhelpers' => array(),
'partials' => array(),
'scopes' => array(),
'sp_vars' => array('root' => $in),
'lcrun' => 'Plugin\LCRun3',
);
return '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
<link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cssUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(function(doc, win) {
var docEl = doc.documentElement;
(function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) {
return;
}
docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
}());
})(document, window);
</script>
</head>
<body>
<div class="coupon-container" id="coupon-container" param="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" isLogged="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isLogged')), ENT_QUOTES, 'UTF-8').'">
<div class="coupon-hd hd3"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.7-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.7-12.10期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="floor-header best-choice"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon01 girl2">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_481')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15757"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_450')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15759"></a>
</li>
</ul>
<ul class="img-coupon02 girl2">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_256')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15763"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_701')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15827"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon01 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_570')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15755"></a>
</li>
<li class="logo-coupon02 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_868')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15761"></a>
</li>
<li class="logo-coupon03 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_824')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15765"></a>
</li>
<li class="logo-coupon04 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1031')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15829"></a>
</li>
<li class="logo-coupon05 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_734')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15831"></a>
</li>
<li class="logo-coupon06 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_713')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15833"></a>
</li>
</ul>
</div>
<div class="floor-header top-recommend"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon03 girl2">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_947')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15837"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_760')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15839"></a>
</li>
</ul>
<ul class="img-coupon04 girl2">
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_738')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15843"></a>
</li>
<li>
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_778')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15853"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon07 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_380')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15835"></a>
</li>
<li class="logo-coupon08 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_909')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15841"></a>
</li>
<li class="logo-coupon09 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_524')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15845"></a>
</li>
<li class="logo-coupon10 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_968')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15847"></a>
</li>
<li class="logo-coupon11 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_517')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15849"></a>
</li>
<li class="logo-coupon12 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_419')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15697"></a>
</li>
<li class="logo-coupon13 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1026')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15811"></a>
</li>
<li class="logo-coupon14 girl2">
<a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1027')), ENT_QUOTES, 'UTF-8').'"></a>
<a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15813"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_boys')), ENT_QUOTES, 'UTF-8').'">男生</a>
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a>
<a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a>
</div>
</div>
</div>
<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
\'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
</script>
<!-- End Google Tag Manager -->
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
'.'</body>
</html>';
}
?>
\ No newline at end of file
... ...
... ... @@ -122,7 +122,7 @@
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
... ...
... ... @@ -142,7 +142,7 @@
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
... ...
... ... @@ -239,7 +239,7 @@
<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script>
'.'<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
... ...
var $tip, tipItime;
/* 领指定券 */
var activityId = $('#coupon-container').attr('param');
var userIsLogged = $('#coupon-container').attr('isLogged') === 'Y';
var isApp;
$('.get-coupon').click(function() {
var couponId = $(this).attr('param');
isApp = $(this).attr('href') !== 'javascript:;';
if (!isNaN(activityId) && !isNaN(couponId)) {
getNamedCoupon(activityId, couponId, isApp, userIsLogged);
}
});
/* 领所有券 */
$('#get-all-coupon').click(function() {
var isApp = $(this).attr('href') !== 'javascript:;';
getAllCoupon(activityId, isApp);
});
/* 检查是否有在领取中的券,有则直接领取 */
if (userIsLogged) {
var cookieCouponId = cookie('_Coupon' + activityId);
if (cookieCouponId && !isNaN(cookieCouponId)) {
getNamedCoupon(activityId, cookieCouponId, isApp, userIsLogged);
}
}
/**
* 微信分享
*/
(function($) {
if (typeof(wx) == "undefined") {
return;
}
var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage';
$.getJSON(_weChatInterface + '?pageurl=' +
encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) {
var _appId, _timestamp, _nonceStr, _signature;
if (json !== undefined && json !== '') {
_appId = json.appId.toString();
_timestamp = json.timestamp;
_nonceStr = json.nonceStr.toString();
_signature = json.signature.toString();
wx.config({
debug: false,
appId: _appId,
timestamp: _timestamp,
nonceStr: _nonceStr,
signature: _signature,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
}
});
wx.ready(function() {
var shareTitle = $('#shareTitle').val();
var shareImg = $('#shareImg').val();
var shareDesc = $('#shareDesc').val();
var shareLink = $('#shareLink').val();
var shareData = {
title: shareTitle,
desc: shareDesc,
imgUrl: shareImg,
link: shareLink
};
wx.onMenuShareAppMessage(shareData);
wx.onMenuShareTimeline(shareData);
wx.onMenuShareQQ(shareData);
wx.onMenuShareWeibo(shareData);
});
}(jQuery));
/**
* 初始化提示框
*/
(function() {
var tipHtml = '<div id="yoho-tip" class="yoho-tip"></div>';
//插入提示HTML
$('#coupon-container').append(tipHtml);
$tip = $('#yoho-tip');
$tip.on('touchend', function() {
$tip.hide();
//清除Timeout
clearTimeout(tipItime);
});
}());
function cookie(name) {
var cookies = document.cookie,
cookieVal,
offset;
if (document.cookie && document.cookie !== '') {
offset = cookies.indexOf(name + '=');
if (offset > -1) {
offset += name.length + 1;
cookieVal = decodeURIComponent($.trim(cookies.substring(offset, cookies.indexOf(';', offset))));
}
}
return cookieVal;
}
function setCookie(name, value, options) {
var expires = '',
path,
domain,
secure,
date;
if (typeof value !== 'undefined') {
options = options || {};
if (value === null) {
value = '';
options.expires = -1;
}
if (options.expires &&
(typeof options.expires === 'number' || options.expires.toUTCString)) {
if (typeof options.expires === 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString();
}
path = options.path ? '; path=' + options.path : '';
domain = options.domain ? '; domain=' + options.domain : '';
secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
}
}
/**
* 显示提示
*/
function showTip(con, dur) {
var content, duration;
if (typeof con === 'undefined') {
return;
}
content = con.toString();
duration = (dur && dur > 0) ? dur : 3000;
$tip.html(content).show();
tipItime = setTimeout(function() {
if ($tip.css('display') === 'block') {
$tip.hide();
}
}, duration);
}
/**
* 获取活动的指定优惠券
*/
function getNamedCoupon(activityId, couponId, isApp, userIsLogged)
{
$.ajax({
type: 'POST',
url: '/cuxiao/coupon/getnamed',
data: 'activityId=' + activityId + '&couponId=' + couponId,
success: function(data) {
setCookie('_Coupon' + activityId, null, {
expires: -2,
domain: '.m.yohobuy.com'
});
if (isApp && !userIsLogged) {
return;
}
if (data.code == 200) {
showTip('恭喜你成功领取优惠券!<br><br>稍后即会到账,请耐心等待。');
}
else if (data.code == 201) {
showTip('你已领取过品牌优惠券<br><br>快去选购心仪的商品吧!');
}
else if (data.code == 400) {
setCookie('_Coupon' + activityId, couponId, {
expires: 1,
domain: '.m.yohobuy.com'
});
if (isApp) {
//showTip('请先登录!');
} else {
location.href = decodeURIComponent(data.data);
}
}
else if (data.message) {
//showTip(data.message);
showTip('领取失败<br><br>请稍候再试');
setCookie('_Coupon' + activityId, null);
}
},
error: function() {
showTip('网络断开连接啦~');
}
});
}
/**
* 获取活动所有的优惠券
*/
function getAllCoupon(activityId, isApp)
{
$.ajax({
type: 'POST',
url: '/cuxiao/coupon/getall',
data: 'activityId=' + activityId,
dataType: 'json',
success: function(data) {
if (data.code == 200) {
showTip('恭喜您,成功领取');
}
else if (data.code == 201) {
showTip('对不起,您已经领取过');
}
else if (data.code == 400) {
if (isApp) {
showTip('请先登录!');
} else {
location.href = decodeURIComponent(data.data);
}
}
else if (data.message) {
//showTip(data.message);
showTip('系统繁忙,请稍候再试!');
}
},
error: function() {
showTip('网络断开连接啦~');
}
});
}
\ No newline at end of file
... ...
... ... @@ -166,7 +166,7 @@
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
{{/if}}
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
... ...
... ... @@ -206,7 +206,7 @@
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
{{/if}}
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
... ...
... ... @@ -172,7 +172,7 @@
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -216,7 +216,7 @@
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -99,7 +99,7 @@
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -119,7 +119,7 @@
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script>
{{> layout/analysis}}
</body>
</html>
\ No newline at end of file
... ...