diff --git a/compile/huodong.m.yohobuy.com/1.0.3/6ff39c2ff390a0bbf6467ce2113de0fe.php b/compile/huodong.m.yohobuy.com/1.0.3/6ff39c2ff390a0bbf6467ce2113de0fe.php new file mode 100644 index 0000000..4ab224b --- /dev/null +++ b/compile/huodong.m.yohobuy.com/1.0.3/6ff39c2ff390a0bbf6467ce2113de0fe.php @@ -0,0 +1,154 @@ +<?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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <meta charset="utf-8"> + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> + <meta name="format-detection" content="telephone=no"> + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> + <script> + (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 class="keBody"> +'.((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> +' : '').' +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> + <div class="coupon-top"> + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> + <a class="share-btn" href="javascript:;"></a> + </div> + <div class="coupon-bottom"> + <div class="coupon-banner"> + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> + </div> + <div class="bottom-btn"> + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> + </div> + </div> + <div class="coupon-ft"> + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> + </div> +</div> +<div class="modal"></div> +<div class="dialog-box geted"> + <div class="dialog-inner"> + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> + <span class="dialog-close"></span> + </div> +</div> + +<div class="dialog-box fail"> + <div class="dialog-inner"> + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> + <span class="refresh-btn"></span> + </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" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> +<script> + //提示分享 + $(\'.share-btn\').click(function () { + $(\'.modal\').fadeIn(); + }); + //关闭提示分享 + $(\'.modal\').click(function () { + $(this).fadeOut(); + }); + + //提示已领过券 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { + $(\'.dialog-box.geted\').show(); + } + //提示领券失败 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { + $(\'.dialog-box.fail\').show(); + } + + //关闭提示 + $(\'.dialog-close\').click(function(){ + $(this).parents(\'.dialog-box\').fadeOut(); + }); + //刷新页面 + $(\'.refresh-btn\').click(function() { + location.reload(); + }); +</script> +'.((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" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.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 diff --git a/template/huodong.m.yohobuy.com/actions/cuxiao/coupon/final-2.phtml b/template/huodong.m.yohobuy.com/actions/cuxiao/coupon/final-2.phtml index fe7ee5d..aaace20 100644 --- a/template/huodong.m.yohobuy.com/actions/cuxiao/coupon/final-2.phtml +++ b/template/huodong.m.yohobuy.com/actions/cuxiao/coupon/final-2.phtml @@ -25,7 +25,7 @@ </head> <body class="keBody"> {{#if weixinShare}} -<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div> +<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> {{/if}} <div class="coupon-christmas" show="{{showPopupFlag}}"> diff --git a/yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php b/yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php index 1eb555a..d7ce83d 100644 --- a/yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php +++ b/yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Coupon.php @@ -713,9 +713,9 @@ class CouponController extends HuodongAction 'staticTitle' => 'YOHO!BUY有货【Final Sale】年终热促', 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享 'shareLink' => 'http://feature.yohobuy.com/0/0/775/index.html', - 'shareTitle' => 'YOHO!BUY有货【Final Sale】年终热促,新年特辑开启!全场2折起,折上最高直减¥1000!', - 'shareDesc' => '618元优惠券限时派送~购物满额即赠价值千元的有货限量猴年利是封!', - 'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png',//@todo + 'shareTitle' => 'YOHO!BUY有货【FINAL SALE】年终热促,新年特辑全开启!618元优惠券限时领取中!', + 'shareDesc' => '800+潮牌限时5折封顶,折上最高直减¥1000!更有新年超值礼包299元起!', + 'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png', 'showPopupFlag' => $showPopupFlag, 'myCouponUrl' => $myCouponUrl, 'bannerUrl_1' => 'http://feature.yoho.cn/0125/0125APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"374"},"param":{"share_id":"374"}}}',