Authored by hf

Merge branch 'master' into beta

  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/index.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 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  51 + <div class="coupon-top">
  52 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/top-bg.png" alt="">
  53 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  54 + <a class="share-btn" href="javascript:;"></a>
  55 + </div>
  56 + <div class="coupon-bottom">
  57 + <div class="coupon-banner">
  58 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  59 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + </div>
  63 + <div class="bottom-btn">
  64 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  65 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  66 + </div>
  67 + </div>
  68 + <div class="coupon-ft">
  69 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/14.png">
  70 + </div>
  71 +</div>
  72 +<div class="modal"></div>
  73 +<div class="dialog-box geted">
  74 + <div class="dialog-inner">
  75 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/geted.png" alt=""/>
  76 + <span class="dialog-close"></span>
  77 + </div>
  78 +</div>
  79 +
  80 +<div class="dialog-box fail">
  81 + <div class="dialog-inner">
  82 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/fail.png" alt=""/>
  83 + <span class="refresh-btn"></span>
  84 + </div>
  85 +</div>
  86 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  87 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  88 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  90 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  91 +<script>
  92 + //提示分享
  93 + $(\'.share-btn\').click(function () {
  94 + $(\'.modal\').fadeIn();
  95 + });
  96 + //关闭提示分享
  97 + $(\'.modal\').click(function () {
  98 + $(this).fadeOut();
  99 + });
  100 +
  101 + //提示已领过券
  102 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  103 + $(\'.dialog-box.geted\').show();
  104 + }
  105 + //提示领券失败
  106 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  107 + $(\'.dialog-box.fail\').show();
  108 + }
  109 +
  110 + //关闭提示
  111 + $(\'.dialog-close\').click(function(){
  112 + $(this).parents(\'.dialog-box\').fadeOut();
  113 + });
  114 + //刷新页面
  115 + $(\'.refresh-btn\').click(function() {
  116 + location.reload();
  117 + });
  118 +</script>
  119 +'.((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>
  120 +<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>
  121 +' : '').''.'<!-- Google Tag Manager -->
  122 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  123 +<script>
  124 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  125 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  126 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  127 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  128 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  129 +</script>
  130 +<!-- End Google Tag Manager -->
  131 +<script type="text/javascript">
  132 + var _hmt = _hmt || [];
  133 + (function() {
  134 + var hm = document.createElement("script");
  135 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  136 + var s = document.getElementsByTagName("script")[0];
  137 + s.parentNode.insertBefore(hm, s);
  138 + })();
  139 +</script>
  140 +<script>
  141 + var _hmt = _hmt || [];
  142 + (function() {
  143 + var hm = document.createElement("script");
  144 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  145 + var s = document.getElementsByTagName("script")[0];
  146 + s.parentNode.insertBefore(hm, s);
  147 + })();
  148 +</script>
  149 +'.'</body>
  150 +</html><!DOCTYPE html>
  151 +<html>
  152 +<head>
  153 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  154 + <meta charset="utf-8">
  155 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  156 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  157 + <meta name="format-detection" content="telephone=no">
  158 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  159 + <meta name="apple-mobile-web-app-capable" content="yes">
  160 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  161 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/christmas/index4.css">
  162 + <script>
  163 + (function(doc, win) {
  164 + var docEl = doc.documentElement;
  165 + (function() {
  166 + var clientWidth = docEl.clientWidth;
  167 + if (!clientWidth) {
  168 + return;
  169 + }
  170 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  171 + }());
  172 + })(document, window);
  173 + </script>
  174 +</head>
  175 +<body class="keBody">
  176 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  177 + <div class="coupon-top">
  178 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/top-bg.png" alt="">
  179 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  180 + <a class="share-btn" href="javascript:;"></a>
  181 + </div>
  182 + <div class="coupon-bottom">
  183 + <div class="coupon-banner">
  184 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'">
  185 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/banner01.png" alt="">
  186 + </a>
  187 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'">
  188 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/banner02.png" alt="">
  189 + </a>
  190 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'">
  191 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/banner03.png" alt="">
  192 + </a>
  193 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'">
  194 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/banner04.png" alt="">
  195 + </a>
  196 + </div>
  197 + <div class="bottom-btn">
  198 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  199 + <a class="download-yoho" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&amp;g_f=995445"></a>
  200 + </div>
  201 +
  202 + </div>
  203 + <div class="coupon-ft">
  204 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/14.png">
  205 + </div>
  206 +</div>
  207 +<div class="modal"></div>
  208 +<div class="dialog-box geted">
  209 + <div class="dialog-inner">
  210 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/geted.png" alt=""/>
  211 + <span class="dialog-close"></span>
  212 + </div>
  213 +</div>
  214 +
  215 +<div class="dialog-box fail">
  216 + <div class="dialog-inner">
  217 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/fail.png" alt=""/>
  218 + <span class="refresh-btn"></span>
  219 + </div>
  220 +</div>
  221 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  222 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  223 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  224 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  225 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  226 +<script>
  227 + //提示分享
  228 + $(\'.share-btn\').click(function () {
  229 + $(\'.modal\').fadeIn();
  230 + });
  231 + //关闭提示分享
  232 + $(\'.modal\').click(function () {
  233 + $(this).fadeOut();
  234 + });
  235 +
  236 + //提示已领过券
  237 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  238 + $(\'.dialog-box.geted\').show();
  239 + }
  240 + //提示领券失败
  241 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  242 + $(\'.dialog-box.fail\').show();
  243 + }
  244 +
  245 + //关闭提示
  246 + $(\'.dialog-close\').click(function(){
  247 + $(this).parents(\'.dialog-box\').fadeOut();
  248 + });
  249 + //刷新页面
  250 + $(\'.refresh-btn\').click(function() {
  251 + location.reload();
  252 + });
  253 +</script>
  254 +'.((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>
  255 +<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>
  256 +' : '').''.'<!-- Google Tag Manager -->
  257 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  258 +<script>
  259 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  260 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  261 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  262 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  263 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  264 +</script>
  265 +<!-- End Google Tag Manager -->
  266 +<script type="text/javascript">
  267 + var _hmt = _hmt || [];
  268 + (function() {
  269 + var hm = document.createElement("script");
  270 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  271 + var s = document.getElementsByTagName("script")[0];
  272 + s.parentNode.insertBefore(hm, s);
  273 + })();
  274 +</script>
  275 +<script>
  276 + var _hmt = _hmt || [];
  277 + (function() {
  278 + var hm = document.createElement("script");
  279 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  280 + var s = document.getElementsByTagName("script")[0];
  281 + s.parentNode.insertBefore(hm, s);
  282 + })();
  283 +</script>
  284 +'.'</body>
  285 +</html>';
  286 +}
  287 +?>
  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 charset="UTF-8">
  28 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  29 + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  30 + <style>
  31 + *{margin: 0;padding: 0;}
  32 + #coupon-container {width: 100%;}
  33 + #coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;}
  34 + .img-box {width: 100%;position: relative;}
  35 + .img-box .href {width: 50%; height: 100%;position: absolute;top: 0;}
  36 + .img-box .href-left {left: 0}
  37 + .img-box .href-right {right: 0}
  38 + .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
  39 + .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
  40 + .yoho-tip {position: fixed;display: none;text-align: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;}
  41 + </style>
  42 + <link rel="dns-prefetch" href="//cdn.yoho.cn">
  43 + <link rel="dns-prefetch" href="//static.yohobuy.com">
  44 +</head>
  45 +<body>
  46 + <div 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').'">
  47 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/06.jpg">
  58 + <a class="href href-center" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_mycoupon')), ENT_QUOTES, 'UTF-8').'"></a>
  59 + </div>
  60 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/07.jpg">
  63 + <div class="img-box">
  64 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/08.jpg">
  65 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  66 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  67 + </div>
  68 + <div class="img-box">
  69 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/09.jpg">
  70 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17443"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17445"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  74 + <div class="img-box">
  75 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/10.jpg">
  76 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  77 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1')), ENT_QUOTES, 'UTF-8').'"></a>
  78 + </div>
  79 + <div class="img-box">
  80 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/11.jpg">
  81 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17463"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17451"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  85 + <div class="img-box">
  86 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/12.jpg">
  87 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_2')), ENT_QUOTES, 'UTF-8').'"></a>
  88 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_3')), ENT_QUOTES, 'UTF-8').'"></a>
  89 + </div>
  90 + <div class="img-box">
  91 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/13.jpg">
  92 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17461"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17459"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  96 + <div class="img-box">
  97 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/14.jpg">
  98 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a>
  99 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_5')), ENT_QUOTES, 'UTF-8').'"></a>
  100 + </div>
  101 + <div class="img-box">
  102 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/15.jpg">
  103 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17453"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17455"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  107 + <div class="img-box">
  108 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/16.jpg">
  109 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_6')), ENT_QUOTES, 'UTF-8').'"></a>
  110 + </div>
  111 + <div class="img-box">
  112 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/17.jpg">
  113 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17449"></span>
  114 + </div>
  115 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  116 +
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-1.jpg">
  118 + <div class="img-box">
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-2.jpg">
  120 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  121 + </div>
  122 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-3.jpg">
  123 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg">
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-1.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27.jpg">
  129 + </div>
  130 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  131 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  132 +</body>
  133 +</html>';
  134 +}
  135 +?>
  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 charset="UTF-8">
  28 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  29 + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  30 + <style>
  31 + *{margin: 0;padding: 0;}
  32 + #coupon-container {width: 100%;}
  33 + #coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;}
  34 + .img-box {width: 100%;position: relative;}
  35 + .img-box .href {width: 50%; height: 100%;position: absolute;top: 0;}
  36 + .img-box .href-left {left: 0}
  37 + .img-box .href-right {right: 0}
  38 + .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
  39 + .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
  40 + </style>
  41 + <link rel="dns-prefetch" href="//cdn.yoho.cn">
  42 + <link rel="dns-prefetch" href="//static.yohobuy.com">
  43 +</head>
  44 +<body>
  45 + <div 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').'">
  46 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/01.jpg">
  47 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/02.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/03.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/04.jpg">
  51 + <div class="img-box">
  52 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/05.jpg">
  53 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  54 + </div>
  55 + <div class="img-box">
  56 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/06.jpg">
  57 + <a class="href href-center" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_mycoupon')), ENT_QUOTES, 'UTF-8').'"></a>
  58 + </div>
  59 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg">
  60 +
  61 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/07.jpg">
  62 + <div class="img-box">
  63 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/08.jpg">
  64 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  65 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  66 + </div>
  67 + <div class="img-box">
  68 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/09.jpg">
  69 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17443"></span>
  70 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17445"></span>
  71 + </div>
  72 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  73 + <div class="img-box">
  74 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/10.jpg">
  75 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>
  76 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1')), ENT_QUOTES, 'UTF-8').'"></a>
  77 + </div>
  78 + <div class="img-box">
  79 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/11.jpg">
  80 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17463"></span>
  81 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17451"></span>
  82 + </div>
  83 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  84 + <div class="img-box">
  85 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/12.jpg">
  86 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_2')), ENT_QUOTES, 'UTF-8').'"></a>
  87 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_3')), ENT_QUOTES, 'UTF-8').'"></a>
  88 + </div>
  89 + <div class="img-box">
  90 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/13.jpg">
  91 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17461"></span>
  92 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17459"></span>
  93 + </div>
  94 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  95 + <div class="img-box">
  96 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/14.jpg">
  97 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a>
  98 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_5')), ENT_QUOTES, 'UTF-8').'"></a>
  99 + </div>
  100 + <div class="img-box">
  101 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/15.jpg">
  102 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17453"></span>
  103 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17455"></span>
  104 + </div>
  105 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  106 + <div class="img-box">
  107 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/16.jpg">
  108 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_6')), ENT_QUOTES, 'UTF-8').'"></a>
  109 + </div>
  110 + <div class="img-box">
  111 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/17.jpg">
  112 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17449"></span>
  113 + </div>
  114 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg">
  115 +
  116 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-1.jpg">
  117 + <div class="img-box">
  118 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-2.jpg">
  119 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  120 + </div>
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-3.jpg">
  122 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg">
  123 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-1.jpg">
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27.jpg">
  128 + </div>
  129 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  130 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  131 +</body>
  132 +</html>';
  133 +}
  134 +?>
@@ -147,7 +147,7 @@ class DetailData @@ -147,7 +147,7 @@ class DetailData
147 public static function product($productSkn) 147 public static function product($productSkn)
148 { 148 {
149 $param = Yohobuy::param(); 149 $param = Yohobuy::param();
150 - $param['method'] = 'app.product.intro'; 150 + $param['method'] = 'app.product.data';
151 $param['product_skn'] = $productSkn; 151 $param['product_skn'] = $productSkn;
152 $param['client_secret'] = Sign::getSign($param); 152 $param['client_secret'] = Sign::getSign($param);
153 153
@@ -10,6 +10,7 @@ use Hood\Core\Security\AuthCode; @@ -10,6 +10,7 @@ use Hood\Core\Security\AuthCode;
10 use Api\Yohobuy; 10 use Api\Yohobuy;
11 use LibModels\Wap\Home\OrderData; 11 use LibModels\Wap\Home\OrderData;
12 use LibModels\Wap\Product\SearchData; 12 use LibModels\Wap\Product\SearchData;
  13 +use LibModels\Wap\Product\DetailData;
13 14
14 class UnionTrans 15 class UnionTrans
15 { 16 {
@@ -344,7 +345,7 @@ class UnionTrans @@ -344,7 +345,7 @@ class UnionTrans
344 345
345 foreach ($orderDetail['order_goods'] as $val) { 346 foreach ($orderDetail['order_goods'] as $val) {
346 $goodsName .= str_replace(array("&", "<", ">", "'", '"', " ", "|"), array("&amp;", "&lt;", "&gt;", "&quot;", "&apos;", "%20", "%20"), $val['product_name']) . '|'; 347 $goodsName .= str_replace(array("&", "<", ">", "'", '"', " ", "|"), array("&amp;", "&lt;", "&gt;", "&quot;", "&apos;", "%20", "%20"), $val['product_name']) . '|';
347 - $goodsIds .= self::getGoodsId($val['product_skn'], $val['color_name'], $val['product_sku']) . '|'; 348 + $goodsIds .= self::getGoodsId($val['product_skn'], $val['color_name'], $val['product_sku'], $val['goods_image']) . '|';
348 $goodsPrice .= $val['goods_price'] . '|'; 349 $goodsPrice .= $val['goods_price'] . '|';
349 $goodsTotalPrice .= $val['goods_amount'] . '|'; 350 $goodsTotalPrice .= $val['goods_amount'] . '|';
350 $goodsNum .= $val['buy_number'] . '|'; 351 $goodsNum .= $val['buy_number'] . '|';
@@ -432,26 +433,65 @@ class UnionTrans @@ -432,26 +433,65 @@ class UnionTrans
432 * @param int $skn 商品SKN 433 * @param int $skn 商品SKN
433 * @param string $color 颜色名称 434 * @param string $color 颜色名称
434 * @param int $sku 商品尺码唯一标识 435 * @param int $sku 商品尺码唯一标识
  436 + * @param string $image 商品图片地址
435 * @return int 437 * @return int
436 */ 438 */
437 - public static function getGoodsId($skn, $color, $sku) 439 + public static function getGoodsId($skn, $color, $sku, $image)
438 { 440 {
439 $goodsId = $sku; 441 $goodsId = $sku;
440 442
441 - $productData = SearchData::searchElasticByCondition(array('query' => $skn) );  
442 - if (!empty($productData['data']['product_list'])) {  
443 - foreach ($productData['data']['product_list'] as $value) {  
444 - if (empty($value['goods_list'])) {  
445 - continue;  
446 - }  
447 - foreach ($value['goods_list'] as $goods) {  
448 - if ($goods['color_name'] === $color) {  
449 - $goodsId = $goods['goods_id']; 443 +// $productData = SearchData::searchElasticByCondition(array('query' => $skn) );
  444 +// if (!empty($productData['data']['product_list'])) {
  445 +// foreach ($productData['data']['product_list'] as $value) {
  446 +// if (empty($value['goods_list'])) {
  447 +// continue;
  448 +// }
  449 +// foreach ($value['goods_list'] as $goods) {
  450 +// // 通过颜色找商品ID
  451 +// if ($goods['color_name'] === $color) {
  452 +// $goodsId = $goods['goods_id'];
  453 +// // 判断缩略图是否一致 (没办法!没有提供专用的接口返回,没有SKC)
  454 +// if (strpos($image, $goods['images_url']) !== false) {
  455 +// break;
  456 +// }
  457 +// }
  458 +// }
  459 +// }
  460 +// }
  461 +// $productData = array();
  462 +
  463 +// $productData = DetailData::product($skn);
  464 +// if (!empty($productData['data']['goods_list'])) {
  465 +// foreach ($productData['data']['goods_list'] as $value) {
  466 +// // 通过颜色判断
  467 +// if ($value['color_name'] === $color && !empty($value['size_list'])) {
  468 +// foreach ($value['size_list'] as $size) {
  469 +// // 通过尺码SKU判断
  470 +// if ($sku == $size['product_sku']) {
  471 +// $goodsId = $value['goods_id'];
  472 +// break;
  473 +// }
  474 +// }
  475 +// }
  476 +// }
  477 +// }
  478 +// $productData = array();
  479 +
  480 + $productData = DetailData::baseInfo(null, 0, $skn);
  481 + if (!empty($productData['goodsList'])) {
  482 + foreach ($productData['goodsList'] as $value) {
  483 + // 通过颜色判断
  484 + if ($value['colorName'] === $color && !empty($value['goodsSizeBoList'])) {
  485 + foreach ($value['goodsSizeBoList'] as $size) {
  486 + // 通过尺码SKU判断
  487 + if ($sku == $size['goodsSizeSkuId']) {
  488 + $goodsId = $size['goodsId'];
450 break; 489 break;
451 } 490 }
452 } 491 }
453 } 492 }
454 } 493 }
  494 + }
455 $productData = array(); 495 $productData = array();
456 496
457 return $goodsId; 497 return $goodsId;
  1 +* {
  2 + margin: 0;
  3 + padding: 0;
  4 +}
  5 +.coupon-christmas img {
  6 + display: block;
  7 + max-width: 100%;
  8 +}
  9 +
  10 +.coupon-top {
  11 + position: relative;
  12 +}
  13 +.coupon-top .go-check {
  14 + position: absolute;
  15 + top: 5.375rem;
  16 + width: 100%;
  17 + height: 6.85rem;
  18 +}
  19 +.coupon-top .share-btn {
  20 + position: absolute;
  21 + width: 14.1rem;
  22 + height: 2.25rem;
  23 + bottom: 0.65rem;
  24 + left: 50%;
  25 + margin: 0 0 0 -6.875rem;
  26 + background-size: 100%;
  27 +
  28 +}
  29 +
  30 +.coupon-bottom {
  31 + height: 10.2rem;
  32 + background: url(../../img/newyear/bottom-bg.png) no-repeat bottom center;
  33 + background-size: 100% 100%;
  34 +}
  35 +
  36 +.coupon-banner {
  37 + text-align: center;
  38 + font-size: 0;
  39 +}
  40 +.coupon-banner a {
  41 + display: inline-block;
  42 + width: 6.825rem;
  43 + height: 3.55rem;
  44 + margin: 0 0.175rem 0.4rem;
  45 +}
  46 +.coupon-banner img {
  47 + display: block;
  48 + width: 100%;
  49 + height: 100%;
  50 +}
  51 +.bottom-btn {
  52 + position: relative;
  53 + margin: 0.1rem auto 0;
  54 + width: 14.05rem;
  55 + height: 1.575rem;
  56 + font-size: 0;
  57 +}
  58 +.bottom-btn a{
  59 + position: absolute;
  60 + top: 0;
  61 + width: 8.525rem;
  62 + height: 100%;
  63 +}
  64 +.bottom-btn a.follow-yoho {
  65 + width: 5.275rem;
  66 + left: 0;
  67 +}
  68 +.bottom-btn a.download-yoho {
  69 + right: 0;
  70 +}
  71 +.modal {
  72 + position: fixed;
  73 + top: 0;
  74 + right: 0;
  75 + bottom: 0;
  76 + left: 0;
  77 + background: url(../../img/newyear/share.png) center top no-repeat;
  78 + -webkit-background-size: 100%;
  79 + -moz-background-size: 100%;
  80 + background-size: 100%;
  81 + display: none;
  82 +}
  83 +
  84 +.has-done {
  85 + position: fixed;
  86 + top: 0;
  87 + right: 0;
  88 + bottom: 0;
  89 + left: 0;
  90 + background: rgba(0,0,0,0.4) url(../../img/newyear/11.png);
  91 + background-repeat: no-repeat;
  92 + background-size: 80% auto;
  93 + background-position: center center;
  94 + overflow: hidden;
  95 + display: none;
  96 +}
  97 +
  98 +.dialog-box {
  99 + display: none;
  100 + position: fixed;
  101 + top: 0;
  102 + right: 0;
  103 + bottom: 0;
  104 + left: 0;
  105 + background: rgba(0,0,0,0.4);
  106 + z-index: 999;
  107 +}
  108 +
  109 +.dialog-inner {
  110 + position: absolute;
  111 + width: 13.375rem;
  112 + height: 9.625rem;
  113 + top: 50%;
  114 + left: 50%;
  115 + margin: -4.8125rem 0 0 -6.6875rem;
  116 +}
  117 +
  118 +.dialog-inner img {
  119 + max-width: 100%;
  120 +}
  121 +
  122 +.dialog-inner span {
  123 + position: absolute;
  124 + width: 8.225rem;
  125 + height: 1.85rem;
  126 + bottom: 1.475rem;
  127 + left: 50%;
  128 + margin: 0 0 0 -4.1125rem;
  129 + cursor: pointer;
  130 +}
  1 +* {
  2 + margin: 0;
  3 + padding: 0;
  4 +}
  5 +.coupon-christmas img {
  6 + display: block;
  7 + max-width: 100%;
  8 +}
  9 +
  10 +.coupon-top {
  11 + position: relative;
  12 +}
  13 +.coupon-top .go-check {
  14 + position: absolute;
  15 + top: 8.75rem;
  16 + width: 100%;
  17 + height: 6.05rem;
  18 +}
  19 +.coupon-top .share-btn {
  20 + position: absolute;
  21 + width: 14.075rem;
  22 + height: 2.275rem;
  23 + bottom: 0.9rem;
  24 + left: 50%;
  25 + margin: 0 0 0 -7.0375rem;
  26 + background-size: 100%;
  27 +
  28 +}
  29 +
  30 +.coupon-bottom {
  31 + height: 10.825rem;
  32 + background: url(../images/bottom-bg.png) no-repeat bottom center;
  33 + background-size: 100% 100%;
  34 +}
  35 +
  36 +.coupon-banner {
  37 + text-align: center;
  38 + font-size: 0;
  39 +}
  40 +.coupon-banner a {
  41 + display: inline-block;
  42 + width: 6.85rem;
  43 + height: 3.85rem;
  44 + margin: 0 0.175rem 0.1rem;
  45 +}
  46 +.coupon-banner img {
  47 + display: block;
  48 + width: 100%;
  49 + height: 100%;
  50 +}
  51 +.bottom-btn {
  52 + position: relative;
  53 + margin: 0.375rem auto 0;
  54 + width: 14.05rem;
  55 + height: 1.775rem;
  56 + font-size: 0;
  57 +}
  58 +.bottom-btn a{
  59 + position: absolute;
  60 + top: 0;
  61 + width: 7.65rem;
  62 + height: 100%;
  63 +}
  64 +.bottom-btn a.follow-yoho {
  65 + width: 6.0rem;
  66 + left: 0;
  67 +}
  68 +.bottom-btn a.download-yoho {
  69 + right: 0;
  70 +}
  71 +.modal {
  72 + position: fixed;
  73 + top: 0;
  74 + right: 0;
  75 + bottom: 0;
  76 + left: 0;
  77 + background: url(../images/share.png) center top no-repeat;
  78 + -webkit-background-size: 100%;
  79 + -moz-background-size: 100%;
  80 + background-size: 100%;
  81 + display: none;
  82 +}
  83 +
  84 +.has-done {
  85 + position: fixed;
  86 + top: 0;
  87 + right: 0;
  88 + bottom: 0;
  89 + left: 0;
  90 + background: rgba(0,0,0,0.4) url(../images/11.png);
  91 + background-repeat: no-repeat;
  92 + background-size: 80% auto;
  93 + background-position: center center;
  94 + overflow: hidden;
  95 + display: none;
  96 +}
  97 +
  98 +.dialog-box {
  99 + display: none;
  100 + position: fixed;
  101 + top: 0;
  102 + right: 0;
  103 + bottom: 0;
  104 + left: 0;
  105 + background: rgba(0,0,0,0.4);
  106 + z-index: 999;
  107 +}
  108 +
  109 +.dialog-inner {
  110 + position: absolute;
  111 + width: 13.425rem;
  112 + height: 8.9rem;
  113 + top: 50%;
  114 + left: 50%;
  115 + margin: -4.45rem 0 0 -6.7125rem;
  116 +}
  117 +
  118 +.dialog-inner img {
  119 + max-width: 100%;
  120 +}
  121 +
  122 +.dialog-inner span {
  123 + position: absolute;
  124 + width: 6.85rem;
  125 + height: 1.45rem;
  126 + bottom: 0.9rem;
  127 + left: 50%;
  128 + margin: 0 0 0 -3.425rem;
  129 + cursor: pointer;
  130 +}
  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/final/index.css">
  13 + <script>
  14 + (function(doc, win) {
  15 + var docEl = doc.documentElement;
  16 + (function() {
  17 + var clientWidth = docEl.clientWidth;
  18 + if (!clientWidth) {
  19 + return;
  20 + }
  21 + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
  22 + }());
  23 + })(document, window);
  24 + </script>
  25 +</head>
  26 +<body class="keBody">
  27 +<div class="coupon-christmas" show="{{showPopupFlag}}">
  28 + <div class="coupon-top">
  29 + <img src="{{imgUrl}}/cuxiao/img/final/top-bg.png" alt="">
  30 + <a class="go-check" href="{{myCouponUrl}}"></a>
  31 + <a class="share-btn" href="javascript:;"></a>
  32 + </div>
  33 + <div class="coupon-bottom">
  34 + <div class="coupon-banner">
  35 + <a href="{{bannerUrl_1}}"></a>
  36 + <a href="{{bannerUrl_2}}"></a>
  37 + <a href="{{bannerUrl_3}}"></a>
  38 + <a href="{{bannerUrl_4}}"></a>
  39 + </div>
  40 + <div class="bottom-btn">
  41 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  42 + <a class="download-yoho" href="{{downAppUrl}}"></a>
  43 + </div>
  44 + </div>
  45 + <div class="coupon-ft">
  46 + <img src="{{imgUrl}}/cuxiao/img/final/14.png">
  47 + </div>
  48 +</div>
  49 +<div class="modal"></div>
  50 +<div class="dialog-box geted">
  51 + <div class="dialog-inner">
  52 + <img src="{{imgUrl}}/cuxiao/img/final/geted.png" alt=""/>
  53 + <span class="dialog-close"></span>
  54 + </div>
  55 +</div>
  56 +
  57 +<div class="dialog-box fail">
  58 + <div class="dialog-inner">
  59 + <img src="{{imgUrl}}/cuxiao/img/final/fail.png" alt=""/>
  60 + <span class="refresh-btn"></span>
  61 + </div>
  62 +</div>
  63 +<input id="shareLink" type="hidden" value="{{shareLink}}">
  64 +<input id="shareImg" type="hidden" value="{{shareImg}}">
  65 +<input id="shareTitle" type="hidden" value="{{shareTitle}}">
  66 +<input id="shareDesc" type="hidden" value="{{shareDesc}}">
  67 +<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script>
  68 +<script>
  69 + //提示分享
  70 + $('.share-btn').click(function () {
  71 + $('.modal').fadeIn();
  72 + });
  73 + //关闭提示分享
  74 + $('.modal').click(function () {
  75 + $(this).fadeOut();
  76 + });
  77 +
  78 + //提示已领过券
  79 + if ($('.coupon-christmas').attr('show') === '1') {
  80 + $('.dialog-box.geted').show();
  81 + }
  82 + //提示领券失败
  83 + else if ($('.coupon-christmas').attr('show') === '2') {
  84 + $('.dialog-box.fail').show();
  85 + }
  86 +
  87 + //关闭提示
  88 + $('.dialog-close').click(function(){
  89 + $(this).parents('.dialog-box').fadeOut();
  90 + });
  91 + //刷新页面
  92 + $('.refresh-btn').click(function() {
  93 + location.reload();
  94 + });
  95 +</script>
  96 +{{#if weixinShare}}
  97 +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  98 +<script type="text/javascript" charset="utf-8" src="{{jsUrl}}/cuxiao/js/share.weixin.js"></script>
  99 +{{/if}}
  100 +{{> layout/analysis}}
  101 +</body>
  102 +</html><!DOCTYPE html>
  103 +<html>
  104 +<head>
  105 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  106 + <meta charset="utf-8">
  107 + <title>{{staticTitle}}</title>
  108 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  109 + <meta name="format-detection" content="telephone=no">
  110 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  111 + <meta name="apple-mobile-web-app-capable" content="yes">
  112 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  113 + <link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/christmas/index4.css">
  114 + <script>
  115 + (function(doc, win) {
  116 + var docEl = doc.documentElement;
  117 + (function() {
  118 + var clientWidth = docEl.clientWidth;
  119 + if (!clientWidth) {
  120 + return;
  121 + }
  122 + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
  123 + }());
  124 + })(document, window);
  125 + </script>
  126 +</head>
  127 +<body class="keBody">
  128 +<div class="coupon-christmas" show="{{showPopupFlag}}">
  129 + <div class="coupon-top">
  130 + <img src="{{imgUrl}}/cuxiao/img/final/top-bg.png" alt="">
  131 + <a class="go-check" href="{{myCouponUrl}}"></a>
  132 + <a class="share-btn" href="javascript:;"></a>
  133 + </div>
  134 + <div class="coupon-bottom">
  135 + <div class="coupon-banner">
  136 + <a href="{{bannerUrl_1}}">
  137 + <img src="{{imgUrl}}/cuxiao/img/final/banner01.png" alt="">
  138 + </a>
  139 + <a href="{{bannerUrl_2}}">
  140 + <img src="{{imgUrl}}/cuxiao/img/final/banner02.png" alt="">
  141 + </a>
  142 + <a href="{{bannerUrl_3}}">
  143 + <img src="{{imgUrl}}/cuxiao/img/final/banner03.png" alt="">
  144 + </a>
  145 + <a href="{{bannerUrl_4}}">
  146 + <img src="{{imgUrl}}/cuxiao/img/final/banner04.png" alt="">
  147 + </a>
  148 + </div>
  149 + <div class="bottom-btn">
  150 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  151 + <a class="download-yoho" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&amp;g_f=995445"></a>
  152 + </div>
  153 +
  154 + </div>
  155 + <div class="coupon-ft">
  156 + <img src="{{imgUrl}}/cuxiao/img/final/14.png">
  157 + </div>
  158 +</div>
  159 +<div class="modal"></div>
  160 +<div class="dialog-box geted">
  161 + <div class="dialog-inner">
  162 + <img src="{{imgUrl}}/cuxiao/img/final/geted.png" alt=""/>
  163 + <span class="dialog-close"></span>
  164 + </div>
  165 +</div>
  166 +
  167 +<div class="dialog-box fail">
  168 + <div class="dialog-inner">
  169 + <img src="{{imgUrl}}/cuxiao/img/final/fail.png" alt=""/>
  170 + <span class="refresh-btn"></span>
  171 + </div>
  172 +</div>
  173 +<input id="shareLink" type="hidden" value="{{shareLink}}">
  174 +<input id="shareImg" type="hidden" value="{{shareImg}}">
  175 +<input id="shareTitle" type="hidden" value="{{shareTitle}}">
  176 +<input id="shareDesc" type="hidden" value="{{shareDesc}}">
  177 +<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script>
  178 +<script>
  179 + //提示分享
  180 + $('.share-btn').click(function () {
  181 + $('.modal').fadeIn();
  182 + });
  183 + //关闭提示分享
  184 + $('.modal').click(function () {
  185 + $(this).fadeOut();
  186 + });
  187 +
  188 + //提示已领过券
  189 + if ($('.coupon-christmas').attr('show') === '1') {
  190 + $('.dialog-box.geted').show();
  191 + }
  192 + //提示领券失败
  193 + else if ($('.coupon-christmas').attr('show') === '2') {
  194 + $('.dialog-box.fail').show();
  195 + }
  196 +
  197 + //关闭提示
  198 + $('.dialog-close').click(function(){
  199 + $(this).parents('.dialog-box').fadeOut();
  200 + });
  201 + //刷新页面
  202 + $('.refresh-btn').click(function() {
  203 + location.reload();
  204 + });
  205 +</script>
  206 +{{#if weixinShare}}
  207 +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  208 +<script type="text/javascript" charset="utf-8" src="{{jsUrl}}/cuxiao/js/share.weixin.js"></script>
  209 +{{/if}}
  210 +{{> layout/analysis}}
  211 +</body>
  212 +</html>
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
14 .img-box .href-right {right: 0} 14 .img-box .href-right {right: 0}
15 .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;} 15 .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
16 .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;} 16 .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
  17 + .yoho-tip {position: fixed;display: none;text-align: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;}
17 </style> 18 </style>
18 <link rel="dns-prefetch" href="//cdn.yoho.cn"> 19 <link rel="dns-prefetch" href="//cdn.yoho.cn">
19 <link rel="dns-prefetch" href="//static.yohobuy.com"> 20 <link rel="dns-prefetch" href="//static.yohobuy.com">
@@ -552,8 +552,8 @@ class CouponController extends HuodongAction @@ -552,8 +552,8 @@ class CouponController extends HuodongAction
552 } 552 }
553 $url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}'; 553 $url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
554 554
555 - $this->_view->display('newuser3-test', array(  
556 - 'activityId' => 94, // 472活动ID 555 + $this->_view->display('newuser3', array(
  556 + 'activityId' => 472, // 94活动ID
557 'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题 557 'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
558 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}', 558 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
559 'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录 559 'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
@@ -621,6 +621,59 @@ class CouponController extends HuodongAction @@ -621,6 +621,59 @@ class CouponController extends HuodongAction
621 } 621 }
622 622
623 /** 623 /**
  624 + * Final Sale 领券活动
  625 + *
  626 + * 上线时间2016/01/12
  627 + */
  628 + public function finalAction()
  629 + {
  630 + //获取登录者ID,未登录返回false
  631 + $uid = $this->getLoggedUid();
  632 + if (!$uid || !is_numeric($uid)) {
  633 + //未登录的用户访问,跳转到登录页面。并且在登陆后跳转回本页面
  634 + $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/coupon/final')), 'default'));
  635 + }
  636 +
  637 + // 该变量用来控制和显示页面的弹出提示
  638 + $showPopupFlag = '0';
  639 +
  640 + //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
  641 + $myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
  642 + $activityId = $this->getActivityId();
  643 + $result = ActivityData::getCouponAll($uid, $activityId);
  644 + if (isset($result['code'])) {
  645 + switch (intval($result['code'])) {
  646 + case 200: // 领取成功, 发送站内信消息
  647 + $showPopupFlag = '0';
  648 + $this->sendMessage($uid, '【优惠券】您获得350元套券', '尊敬的客户:恭喜您成功获得350元套券!您可以在个人中心查看优惠券信息。');
  649 + break;
  650 + case 201: // 已领取过, 提示重复领券
  651 + $showPopupFlag = '1';
  652 + break;
  653 + default: // 领取失败, 提示领券失败
  654 + $showPopupFlag = '2';
  655 + break;
  656 + }
  657 + }
  658 +
  659 + $this->_view->display('final', array(
  660 + 'staticTitle' => 'YOHO!BUY有货【Final Sale】',
  661 + 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
  662 + 'shareLink' => 'http://feature.yohobuy.com/0/0/767/index.html',
  663 + 'shareTitle' => 'YOHO!BUY有货【Final Sale】年终热促,重磅升级!全场3折起,折上最高直减¥1000!',
  664 + 'shareDesc' => '350元优惠券限时派送~购物满额即赠价值千元的有货限量猴年利是封!',
  665 + 'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png',
  666 + 'showPopupFlag' => $showPopupFlag,
  667 + 'myCouponUrl' => $myCouponUrl,
  668 + 'bannerUrl_1' => 'http://feature.yoho.cn/0112/0112APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE重磅升级","url":"http://feature.yoho.cn/0112/0112APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"536"},"param":{"share_id":"536"}}',
  669 + 'bannerUrl_2' => 'http://feature.yoho.cn/0112/0112APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE重磅升级","url":"http://feature.yoho.cn/0112/0112APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"534"},"param":{"share_id":"534"}}}',
  670 + 'bannerUrl_3' => 'http://feature.yoho.cn/0112/0112APPHOMEKIDS/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE重磅升级","url":"http://feature.yoho.cn/0112/0112APPHOMEKIDS/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"532"},"param":{"share_id":"532"}}}',
  671 + 'bannerUrl_4' => 'http://feature.yoho.cn/0112/0112APPHOMELIFE/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE重磅升级","url":"http://feature.yoho.cn/0112/0112APPHOMELIFE/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"530"},"param":{"share_id":"530"}}}',
  672 + 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr',
  673 + ));
  674 + }
  675 +
  676 + /**
624 * 领取指定的优惠券 677 * 领取指定的优惠券
625 * 678 *
626 * @param int activityId 活动ID 679 * @param int activityId 活动ID
@@ -732,4 +785,56 @@ class CouponController extends HuodongAction @@ -732,4 +785,56 @@ class CouponController extends HuodongAction
732 return false; 785 return false;
733 } 786 }
734 787
  788 + /**
  789 + * 检测登录状态
  790 + *
  791 + * @return int
  792 + */
  793 + private function getLoggedUid()
  794 + {
  795 + // 判断是否是应用访问, 拼接APP需要的URL参数
  796 + $this->_isApp = (null !== $this->get('app_version') || null !== $this->get('uid'));
  797 + $uid = false;
  798 + if ($this->_isApp) {
  799 + $uid = $this->get('uid');
  800 + } else {
  801 + $uid = $this->getUid();
  802 + }
  803 +
  804 + return $uid;
  805 + }
  806 +
  807 + /**
  808 + * 发送站内信
  809 + *
  810 + * @param int $uid 用户ID
  811 + */
  812 + private function sendMessage($uid, $title, $content)
  813 + {
  814 + try {
  815 + ActivityData::message($uid, $title, $content);
  816 + } catch (Exception $e) {
  817 + // do nothing
  818 + }
  819 + }
  820 +
  821 + /**
  822 + * 根据环境来获取活动ID
  823 + *
  824 + * @return int
  825 + */
  826 + private function getActivityId()
  827 + {
  828 + // 设置环境变量
  829 + switch (APPLICATION_ENV) {
  830 + case 'production': // 生产
  831 + return 466;
  832 + case 'preview': // 预览
  833 + case 'testing': // 测试
  834 + case 'develop': // 开发
  835 + default:
  836 + return 89;
  837 + }
  838 + }
  839 +
735 } 840 }
@@ -120,7 +120,6 @@ class BindController extends AbstractAction @@ -120,7 +120,6 @@ class BindController extends AbstractAction
120 $sourceType = $this->post('sourceType'); 120 $sourceType = $this->post('sourceType');
121 $nickname = $this->post('nickname'); 121 $nickname = $this->post('nickname');
122 122
123 -  
124 if (!is_numeric($phoneNum) || !$openId || !$areaCode || !$sourceType) { 123 if (!is_numeric($phoneNum) || !$openId || !$areaCode || !$sourceType) {
125 break; 124 break;
126 } 125 }
@@ -225,7 +224,8 @@ class BindController extends AbstractAction @@ -225,7 +224,8 @@ class BindController extends AbstractAction
225 $areaCode = $this->post('areaCode', '86'); 224 $areaCode = $this->post('areaCode', '86');
226 $sourceType = $this->post('sourceType'); 225 $sourceType = $this->post('sourceType');
227 // $nickname = $this->post('nickname');//nickname不同步信息 226 // $nickname = $this->post('nickname');//nickname不同步信息
228 - $password = !empty($this->post('password')) ? $this->post('password') : ''; 227 + $password = $this->post('password');
  228 + $password = !empty($password) ? $password : '';
229 229
230 if (!is_numeric($phoneNum) || !$openId || !$sourceType || !$areaCode) { 230 if (!is_numeric($phoneNum) || !$openId || !$sourceType || !$areaCode) {
231 break; 231 break;
@@ -246,8 +246,9 @@ class BindController extends AbstractAction @@ -246,8 +246,9 @@ class BindController extends AbstractAction
246 246
247 if (isset($res['code']) && $res['code'] == 200 && !empty($res['data']['uid'])) { 247 if (isset($res['code']) && $res['code'] == 200 && !empty($res['data']['uid'])) {
248 $token = Helpers::makeToken($res['data']['uid']); 248 $token = Helpers::makeToken($res['data']['uid']);
249 - $this->setCookie('_TOKEN', $token);  
250 $this->setSession('_TOKEN', $token); 249 $this->setSession('_TOKEN', $token);
  250 + $this->setSession('_LOGIN_UID', $res['data']['uid']);
  251 + $this->setCookie('_TOKEN', $token);
251 $refer = Helpers::syncUserSession($res['data']['uid'], $refer); 252 $refer = Helpers::syncUserSession($res['data']['uid'], $refer);
252 $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer)); 253 $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer));
253 } else { 254 } else {