Authored by 周少峰

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/web-list

Showing 55 changed files with 2353 additions and 460 deletions
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted-2.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail-2.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  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-a.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-a.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-a.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-a.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2-a.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3-a.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26-a.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27-a.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 http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 + //提示已领过券
  103 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  104 + $(\'.dialog-box.geted\').show();
  105 + }
  106 + //提示领券失败
  107 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  108 + $(\'.dialog-box.fail\').show();
  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 + var _hmt = _hmt || [];
  125 + function async_load(){
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 + (function() {
  132 + var hm = document.createElement("script");
  133 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  134 + hm.async = 1;
  135 + var s = document.getElementsByTagName("script")[0];
  136 + s.parentNode.insertBefore(hm, s);
  137 + })();
  138 + (function() {
  139 + var hm = document.createElement("script");
  140 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  141 + hm.async = 1;
  142 + var s = document.getElementsByTagName("script")[0];
  143 + s.parentNode.insertBefore(hm, s);
  144 + })();
  145 + (function() {
  146 + var hm = document.createElement("script");
  147 + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  148 + var s = document.getElementsByTagName("script")[0];
  149 + s.parentNode.insertBefore(hm, s);
  150 + })();
  151 + }
  152 + window.addEventListener(\'load\', async_load, false);
  153 +</script>
  154 +'.'</body>
  155 +</html>';
  156 +}
  157 +?>
  1 +<?php return function ($in, $debugopt = 1) {
  2 + $cx = array(
  3 + 'flags' => array(
  4 + 'jstrue' => false,
  5 + 'jsobj' => false,
  6 + 'spvar' => true,
  7 + 'prop' => false,
  8 + 'method' => false,
  9 + 'mustlok' => true,
  10 + 'echo' => false,
  11 + 'debug' => $debugopt,
  12 + ),
  13 + 'constants' => array(),
  14 + 'helpers' => array(),
  15 + 'blockhelpers' => array(),
  16 + 'hbhelpers' => array(),
  17 + 'partials' => array(),
  18 + 'scopes' => array(),
  19 + 'sp_vars' => array('root' => $in),
  20 + 'lcrun' => 'Plugin\LCRun3',
  21 +
  22 + );
  23 +
  24 + return '<!DOCTYPE html>
  25 +<html>
  26 +<head>
  27 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28 + <meta charset="utf-8">
  29 + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title>
  30 + <meta name="apple-mobile-web-app-title" content="SUMMER SALE">
  31 + <meta name="format-detection" content="telephone=no">
  32 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
  33 + <meta name="apple-mobile-web-app-capable" content="yes">
  34 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  35 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  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-a.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-a.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-a.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-a.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2-a.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3-a.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26-a.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27-a.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 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/sale.css">
  36 + <script>
  37 + (function(doc, win) {
  38 + var docEl = doc.documentElement;
  39 + (function() {
  40 + var clientWidth = docEl.clientWidth;
  41 + if (!clientWidth) {
  42 + return;
  43 + }
  44 + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\';
  45 + }());
  46 + })(document, window);
  47 + </script>
  48 +</head>
  49 +<body class="keBody">
  50 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div>
  51 +' : '').'
  52 +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'">
  53 + <div class="coupon-top">
  54 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/top-bg.png" alt="">
  55 + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + <a class="share-btn" href="javascript:;"></a>
  57 + </div>
  58 + <div class="coupon-bottom">
  59 + <div class="coupon-banner">
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  64 + </div>
  65 + <div class="bottom-btn">
  66 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  67 + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/geted-2.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/fail-2.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
  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/newyear/index-2.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-container" 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/newyear/160105/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="app-btn app1" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + <a class="app-btn app2" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  56 + </div>
  57 + <div class="coupon-bottom">
  58 + <div class="coupon-banner">
  59 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a>
  60 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a>
  61 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a>
  62 + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a>
  63 + </div>
  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 + <div class="bottom-btn">
  66 + <a class="play-again" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('playAgain')), ENT_QUOTES, 'UTF-8').'"></a>
  67 + <a class="share-btn" href="javascript:;"></a>
  68 + </div>
  69 + </div>
  70 + <div class="coupon-ft">
  71 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/14.png">
  72 + </div>
  73 +</div>
  74 +<div class="modal"></div>
  75 +<div class="dialog-box geted">
  76 + <div class="dialog-inner">
  77 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/geted.png" alt=""/>
  78 + <span class="dialog-close"></span>
  79 + </div>
  80 +</div>
  81 +
  82 +<div class="dialog-box fail">
  83 + <div class="dialog-inner">
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/fail.png" alt=""/>
  85 + <span class="refresh-btn"></span>
  86 + </div>
  87 +</div>
  88 +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  89 +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  90 +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  91 +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  92 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  93 +<script>
  94 + //提示分享
  95 + $(\'.share-btn\').click(function () {
  96 + $(\'.modal\').fadeIn();
  97 + });
  98 + //关闭提示分享
  99 + $(\'.modal\').click(function () {
  100 + $(this).fadeOut();
  101 + });
  102 +
  103 + //提示已领过券
  104 + if ($(\'.coupon-container\').attr(\'show\') === \'1\') {
  105 + $(\'.dialog-box.geted\').show();
  106 + }
  107 + //提示领券失败
  108 + else if ($(\'.coupon-container\').attr(\'show\') === \'2\') {
  109 + $(\'.dialog-box.fail\').show();
  110 + }
  111 +
  112 + //关闭提示
  113 + $(\'.dialog-close\').click(function(){
  114 + $(this).parents(\'.dialog-box\').fadeOut();
  115 + });
  116 + //刷新页面
  117 + $(\'.refresh-btn\').click(function() {
  118 + location.reload();
  119 + });
  120 +</script>
  121 +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  122 +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script>
  123 +' : '').''.'<!-- Google Tag Manager -->
  124 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125 +<script>
  126 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
  127 + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
  128 + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
  129 + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
  130 + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\');
  131 +</script>
  132 +<!-- End Google Tag Manager -->
  133 +<script type="text/javascript">
  134 + var _hmt = _hmt || [];
  135 + (function() {
  136 + var hm = document.createElement("script");
  137 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  138 + var s = document.getElementsByTagName("script")[0];
  139 + s.parentNode.insertBefore(hm, s);
  140 + })();
  141 +</script>
  142 +<script>
  143 + var _hmt = _hmt || [];
  144 + (function() {
  145 + var hm = document.createElement("script");
  146 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  147 + var s = document.getElementsByTagName("script")[0];
  148 + s.parentNode.insertBefore(hm, s);
  149 + })();
  150 +</script>
  151 +'.'</body>
  152 +</html>';
  153 +}
  154 +?>
@@ -133,6 +133,7 @@ class SearchData extends \LibModels\Wap\Product\SearchData @@ -133,6 +133,7 @@ class SearchData extends \LibModels\Wap\Product\SearchData
133 133
134 return Yohobuy::get(self::getUrl('search'), $param, $cache); 134 return Yohobuy::get(self::getUrl('search'), $param, $cache);
135 } 135 }
  136 +
136 /** 137 /**
137 * 根据分类列表获取商品信息 138 * 根据分类列表获取商品信息
138 * 139 *
@@ -142,21 +143,64 @@ class SearchData extends \LibModels\Wap\Product\SearchData @@ -142,21 +143,64 @@ class SearchData extends \LibModels\Wap\Product\SearchData
142 */ 143 */
143 public static function getSearchDataBySort(array $params, array $sortList) 144 public static function getSearchDataBySort(array $params, array $sortList)
144 { 145 {
  146 +// $data = array();
  147 +// foreach ($sortList as $v) {
  148 +// if(empty($v['viewNum'])){
  149 +// continue;
  150 +// }
  151 +// $searchParams = array_merge($params, $v);
  152 +// $list = self::searchElasticByCondition($searchParams, true);
  153 +// $productList = empty($list['data']['product_list']) ? array() : $list['data']['product_list'];
  154 +// if(count($productList) < $v['viewNum']){
  155 +// continue;
  156 +// }
  157 +// $data = array_merge($data, $productList);
  158 +// }
  159 +// return $data;
  160 +
  161 + /* code review by fei.hong: 2016/01/26 优化合并misort参数, 减少调用搜索接口的次数 */
145 $data = array(); 162 $data = array();
146 - foreach ($sortList as $v) {  
147 - if(empty($v['viewNum'])){  
148 - continue;  
149 - }  
150 - $searchParams = array_merge($params, $v);  
151 - $list = self::searchElasticByCondition($searchParams, true);  
152 - $productList = empty($list['data']['product_list']) ? array() : $list['data']['product_list'];  
153 - if(count($productList) < $v['viewNum']){  
154 - continue; 163 +
  164 + // 按照时间降序排的参数
  165 + $params['order'] = 'shelve_time:desc';
  166 + // 获取新品的接口URL,以数组列表返回
  167 + $urlList = self::getNewArrivalUrl($sortList, $params);
  168 + // 并行调用搜索新品接口
  169 + $searchd = Yohobuy::getMulti($urlList);
  170 +
  171 + // 该变量用于记录数组最后一个值的索引
  172 + $lastIndex = 0;
  173 + // 业务逻辑:按照指定品类排序显示
  174 + foreach ($sortList as $key => $value) {
  175 + $lastIndex = $value['viewNum'] - 1;
  176 + // 业务逻辑:一个品类不满指定个数时,前台不显示
  177 + if (!empty($searchd[$key]) && isset($searchd[$key]['product_list'][$lastIndex])) {
  178 + $data = array_merge($data, $searchd[$key]['product_list']);
155 } 179 }
156 - $data = array_merge($data, $productList);  
157 } 180 }
  181 + // 用完清空不使用的变量
  182 + $searchd = array();
  183 +
158 return $data; 184 return $data;
159 } 185 }
  186 +
  187 + /**
  188 + * 获取推荐新品的接口URL列表
  189 + *
  190 + * @param array $sortList 分类列表
  191 + * @param array $params 附加参数
  192 + * @return arary
  193 + */
  194 + public static function getNewArrivalUrl($sortList, $params)
  195 + {
  196 + $urlList = array();
  197 + $option = array();
  198 + foreach ($sortList as $key => $value) {
  199 + $option = $params + $value;
  200 + $urlList[$key] = Yohobuy::httpBuildQuery(self::getUrl('search'), $option);
  201 + }
  202 + return $urlList;
  203 + }
160 204
161 /** 205 /**
162 * 根据查询条件查询品类列表 206 * 根据查询条件查询品类列表
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess; 3 namespace WebPlugin\DataProcess;
3 4
4 class Channel 5 class Channel
@@ -13,7 +14,7 @@ class Channel @@ -13,7 +14,7 @@ class Channel
13 14
14 public static function getFormat($channel, $data) 15 public static function getFormat($channel, $data)
15 { 16 {
16 - if(empty($data)) { 17 + if (empty($data)) {
17 return array(); 18 return array();
18 } 19 }
19 // 通用处理器 20 // 通用处理器
@@ -28,4 +29,5 @@ class Channel @@ -28,4 +29,5 @@ class Channel
28 ksort($result); 29 ksort($result);
29 return array_values($result); 30 return array_values($result);
30 } 31 }
  32 +
31 } 33 }
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess\Channel; 3 namespace WebPlugin\DataProcess\Channel;
  4 +
3 abstract class AbstractChannel 5 abstract class AbstractChannel
4 { 6 {
5 - /*** 7 + /* * *
6 * 处理数据 8 * 处理数据
7 * @param array $resource 9 * @param array $resource
8 * @return array[以key方式存储数据] 10 * @return array[以key方式存储数据]
9 */ 11 */
10 - public static function format($resource){}  
11 - 12 +
  13 + public static function format($resource)
  14 + {
  15 +
  16 + }
  17 +
12 /** 18 /**
13 * 获取格式化最新上架数据 19 * 获取格式化最新上架数据
14 * 20 *
@@ -18,20 +24,16 @@ abstract class AbstractChannel @@ -18,20 +24,16 @@ abstract class AbstractChannel
18 public static function getFormatNewArrivals(&$resource) 24 public static function getFormatNewArrivals(&$resource)
19 { 25 {
20 $result = array(); 26 $result = array();
21 - foreach($resource as $key => $val)  
22 - {  
23 - if(isset($resource[$key]) && isset($resource[$key + 2]))  
24 - { 27 + foreach ($resource as $key => $val) {
  28 + if (isset($resource[$key]) && isset($resource[$key + 2])) {
25 $temp = array('newArrivls' => array('name' => '', 'navs' => array()), 'href' => ''); 29 $temp = array('newArrivls' => array('name' => '', 'navs' => array()), 'href' => '');
26 //newArrivals 30 //newArrivals
27 - if($resource[$key]['template_name'] == 'text' && $resource[$key + 1]['template_name'] == 'textNav')  
28 - { 31 + if ($resource[$key]['template_name'] == 'text' && $resource[$key + 1]['template_name'] == 'textNav') {
29 //text模版 32 //text模版
30 $temp['newArrivls']['name'] = $resource[$key]['data']['text']; 33 $temp['newArrivls']['name'] = $resource[$key]['data']['text'];
31 //textNav模版 34 //textNav模版
32 - foreach($resource[$key + 1]['data'] as $val)  
33 - {  
34 - $temp['newArrivls']['navs'][] = array('href' => $val['url'],'name' => $val['name']); 35 + foreach ($resource[$key + 1]['data'] as $val) {
  36 + $temp['newArrivls']['navs'][] = array('href' => $val['url'], 'name' => $val['name']);
35 } 37 }
36 //link模版 38 //link模版
37 $temp['href'] = $resource[$key + 2]['data'][0]['url']; 39 $temp['href'] = $resource[$key + 2]['data'][0]['url'];
@@ -42,4 +44,5 @@ abstract class AbstractChannel @@ -42,4 +44,5 @@ abstract class AbstractChannel
42 } 44 }
43 return $result; 45 return $result;
44 } 46 }
45 -}  
  47 +
  48 +}
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess\Channel; 3 namespace WebPlugin\DataProcess\Channel;
  4 +
3 class Boys extends AbstractChannel 5 class Boys extends AbstractChannel
4 { 6 {
  7 +
5 /** 8 /**
6 * 格式化数据 9 * 格式化数据
7 * 10 *
@@ -13,4 +16,5 @@ class Boys extends AbstractChannel @@ -13,4 +16,5 @@ class Boys extends AbstractChannel
13 $result = self::getFormatNewArrivals($resource); 16 $result = self::getFormatNewArrivals($resource);
14 return $result; 17 return $result;
15 } 18 }
16 -}  
  19 +
  20 +}
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess\Channel; 3 namespace WebPlugin\DataProcess\Channel;
  4 +
3 class Girls extends AbstractChannel 5 class Girls extends AbstractChannel
4 { 6 {
  7 +
5 public static function format($resource) 8 public static function format($resource)
6 { 9 {
7 $result = array(); 10 $result = array();
8 $result += self::getFormatNewArrivals($resource); 11 $result += self::getFormatNewArrivals($resource);
9 - foreach($resource as $key => $val)//老版是title模版  
10 - {  
11 - if(isset($resource[$key]) && isset($resource[$key + 2]))  
12 - { 12 + foreach ($resource as $key => $val) {//老版是title模版
  13 + if (isset($resource[$key]) && isset($resource[$key + 2])) {
13 $temp = array('newArrivls' => array('name' => '', 'navs' => array(), 'href' => '')); 14 $temp = array('newArrivls' => array('name' => '', 'navs' => array(), 'href' => ''));
14 - if($resource[$key]['template_name'] == 'text' &&  
15 - $resource[$key + 1]['template_name'] == 'title' && //老版是title模版  
16 - $resource[$key + 2]['template_name'] == 'link'  
17 - )  
18 - { 15 + if ($resource[$key]['template_name'] == 'text' &&
  16 + $resource[$key + 1]['template_name'] == 'title' && //老版是title模版
  17 + $resource[$key + 2]['template_name'] == 'link'
  18 + ) {
19 //text模版 19 //text模版
20 $temp['newArrivls']['name'] = $resource[$key]['data']['text']; 20 $temp['newArrivls']['name'] = $resource[$key]['data']['text'];
21 //title模版 21 //title模版
22 - foreach($resource[$key + 1]['data']['nav'] as $val)  
23 - {  
24 - $temp['newArrivls']['navs'][] = array('href' => $val['url'],'name' => $val['name']); 22 + foreach ($resource[$key + 1]['data']['nav'] as $val) {
  23 + $temp['newArrivls']['navs'][] = array('href' => $val['url'], 'name' => $val['name']);
25 } 24 }
26 $link = $resource[$key + 2]['data'][0]; 25 $link = $resource[$key + 2]['data'][0];
27 - $temp['newArrivls']['href'] = $link['url']; 26 + $temp['newArrivls']['href'] = $link['url'];
28 unset($resource[$key], $resource[$key + 1]); 27 unset($resource[$key], $resource[$key + 1]);
29 $result[$key] = $temp; 28 $result[$key] = $temp;
30 } 29 }
@@ -32,4 +31,5 @@ class Girls extends AbstractChannel @@ -32,4 +31,5 @@ class Girls extends AbstractChannel
32 } 31 }
33 return $result; 32 return $result;
34 } 33 }
  34 +
35 } 35 }
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess\Channel; 3 namespace WebPlugin\DataProcess\Channel;
  4 +
3 class Kids extends AbstractChannel 5 class Kids extends AbstractChannel
4 { 6 {
  7 +
5 /** 8 /**
6 * 格式化数据 9 * 格式化数据
7 * 10 *
@@ -12,20 +15,16 @@ class Kids extends AbstractChannel @@ -12,20 +15,16 @@ class Kids extends AbstractChannel
12 { 15 {
13 $result = array(); 16 $result = array();
14 $result += self::getFormatNewArrivals($resource); 17 $result += self::getFormatNewArrivals($resource);
15 - foreach($resource as $key => $val)//老版处理  
16 - {  
17 - if(isset($resource[$key]) && isset($resource[$key + 1]))  
18 - { 18 + foreach ($resource as $key => $val) {//老版处理
  19 + if (isset($resource[$key]) && isset($resource[$key + 1])) {
19 $temp = array('newArrivls' => array('name' => '', 'navs' => array())); 20 $temp = array('newArrivls' => array('name' => '', 'navs' => array()));
20 //newArrivals 21 //newArrivals
21 - if($resource[$key]['template_name'] == 'text' && $resource[$key + 1]['template_name'] == 'textNav')  
22 - { 22 + if ($resource[$key]['template_name'] == 'text' && $resource[$key + 1]['template_name'] == 'textNav') {
23 //text模版 23 //text模版
24 $temp['newArrivls']['name'] = $resource[$key]['data']['text']; 24 $temp['newArrivls']['name'] = $resource[$key]['data']['text'];
25 //textNav模版 25 //textNav模版
26 - foreach($resource[$key + 1]['data'] as $val)  
27 - {  
28 - $temp['newArrivls']['navs'][] = array('href' => $val['url'],'name' => $val['name']); 26 + foreach ($resource[$key + 1]['data'] as $val) {
  27 + $temp['newArrivls']['navs'][] = array('href' => $val['url'], 'name' => $val['name']);
29 } 28 }
30 unset($resource[$key], $resource[$key + 1]); 29 unset($resource[$key], $resource[$key + 1]);
31 $result[$key] = $temp; 30 $result[$key] = $temp;
@@ -35,5 +34,4 @@ class Kids extends AbstractChannel @@ -35,5 +34,4 @@ class Kids extends AbstractChannel
35 return $result; 34 return $result;
36 } 35 }
37 36
38 -  
39 -}  
  37 +}
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess\Channel; 3 namespace WebPlugin\DataProcess\Channel;
  4 +
3 class Lifestyle extends AbstractChannel 5 class Lifestyle extends AbstractChannel
4 { 6 {
  7 +
5 /** 8 /**
6 * 格式化数据 9 * 格式化数据
7 * 10 *
@@ -12,20 +15,16 @@ class Lifestyle extends AbstractChannel @@ -12,20 +15,16 @@ class Lifestyle extends AbstractChannel
12 { 15 {
13 $result = array(); 16 $result = array();
14 $result += self::getFormatNewArrivals($resource); 17 $result += self::getFormatNewArrivals($resource);
15 - foreach($resource as $key => $val)//老版处理  
16 - {  
17 - if(isset($resource[$key]) && isset($resource[$key + 1]))  
18 - { 18 + foreach ($resource as $key => $val) {//老版处理
  19 + if (isset($resource[$key]) && isset($resource[$key + 1])) {
19 $temp = array('newArrivls' => array('name' => '', 'navs' => array())); 20 $temp = array('newArrivls' => array('name' => '', 'navs' => array()));
20 //newArrivals 21 //newArrivals
21 - if($resource[$key]['template_name'] == 'textNav' && $resource[$key + 1]['template_name'] == 'link')  
22 - { 22 + if ($resource[$key]['template_name'] == 'textNav' && $resource[$key + 1]['template_name'] == 'link') {
23 //text模版 23 //text模版
24 $temp['newArrivls']['name'] = '最新上架 NEW ARRIVALS'; 24 $temp['newArrivls']['name'] = '最新上架 NEW ARRIVALS';
25 //textNav模版 25 //textNav模版
26 - foreach($resource[$key]['data'] as $val)  
27 - {  
28 - $temp['newArrivls']['navs'][] = array('href' => $val['url'],'name' => $val['name']); 26 + foreach ($resource[$key]['data'] as $val) {
  27 + $temp['newArrivls']['navs'][] = array('href' => $val['url'], 'name' => $val['name']);
29 } 28 }
30 unset($resource[$key], $resource[$key + 1]); 29 unset($resource[$key], $resource[$key + 1]);
31 $result[$key] = $temp; 30 $result[$key] = $temp;
@@ -34,4 +33,5 @@ class Lifestyle extends AbstractChannel @@ -34,4 +33,5 @@ class Lifestyle extends AbstractChannel
34 } 33 }
35 return $result; 34 return $result;
36 } 35 }
37 -}  
  36 +
  37 +}
1 <?php 1 <?php
  2 +
2 namespace WebPlugin\DataProcess; 3 namespace WebPlugin\DataProcess;
3 4
4 use WebPlugin\Images; 5 use WebPlugin\Images;
@@ -12,6 +13,7 @@ use LibModels\Web\Product\SearchData; @@ -12,6 +13,7 @@ use LibModels\Web\Product\SearchData;
12 */ 13 */
13 class Process 14 class Process
14 { 15 {
  16 +
15 /** 17 /**
16 * 18 *
17 * @param array $data 19 * @param array $data
@@ -21,15 +23,16 @@ class Process @@ -21,15 +23,16 @@ class Process
21 { 23 {
22 // 组合处理数据 24 // 组合处理数据
23 $result = self::mergeProcess($data, $type); 25 $result = self::mergeProcess($data, $type);
  26 + $build = array();
24 foreach ($data as $key => $val) { 27 foreach ($data as $key => $val) {
25 $fun = $val['template_name']; 28 $fun = $val['template_name'];
26 - if (empty($val['data']) || ! is_callable("self::$fun")) { 29 + if (empty($val['data']) || !is_callable("self::$fun")) {
27 continue; 30 continue;
28 } 31 }
29 - 32 +
30 // 单个处理数据 33 // 单个处理数据
31 $build = self::$fun($val, $type); 34 $build = self::$fun($val, $type);
32 - if (! empty($build)) { 35 + if (!empty($build)) {
33 $result[$key] = $build; 36 $result[$key] = $build;
34 unset($data[$key]); 37 unset($data[$key]);
35 } 38 }
@@ -62,7 +65,7 @@ class Process @@ -62,7 +65,7 @@ class Process
62 } 65 }
63 $len = count($data['menuNav']['blocks']); 66 $len = count($data['menuNav']['blocks']);
64 foreach ($data['menuNav']['blocks'] as $key => $val) { 67 foreach ($data['menuNav']['blocks'] as $key => $val) {
65 - if($len <= 2 && $key == 0) { 68 + if ($len <= 2 && $key == 0) {
66 $val['img'] = Images::getImageUrl($val['img'], 185, 152, 1); 69 $val['img'] = Images::getImageUrl($val['img'], 185, 152, 1);
67 } 70 }
68 $val['img'] = Images::getImageUrl($val['img'], 185, 76, 1); 71 $val['img'] = Images::getImageUrl($val['img'], 185, 76, 1);
@@ -73,7 +76,7 @@ class Process @@ -73,7 +76,7 @@ class Process
73 'img' => $val['img'] 76 'img' => $val['img']
74 ); 77 );
75 } 78 }
76 - 79 +
77 foreach ($data['menuNav']['list'] as $val) { 80 foreach ($data['menuNav']['list'] as $val) {
78 if (empty($val['name']) && empty($val['url'])) { 81 if (empty($val['name']) && empty($val['url'])) {
79 continue; 82 continue;
@@ -84,7 +87,7 @@ class Process @@ -84,7 +87,7 @@ class Process
84 'href' => $val['url'] 87 'href' => $val['url']
85 ); 88 );
86 } 89 }
87 - 90 +
88 foreach ($data['imgs'] as $key => $val) { 91 foreach ($data['imgs'] as $key => $val) {
89 $val['url'] = Helpers::transUrl($val['url'], $type); 92 $val['url'] = Helpers::transUrl($val['url'], $type);
90 if ($key == 0) { 93 if ($key == 0) {
@@ -118,19 +121,16 @@ class Process @@ -118,19 +121,16 @@ class Process
118 { 121 {
119 $result = array(); 122 $result = array();
120 $temp = array(); 123 $temp = array();
121 - $width = 1150;  
122 - $height = 450;  
123 if ($data['focus_type'] == 1) { 124 if ($data['focus_type'] == 1) {
124 foreach ($data['data'] as $val) { 125 foreach ($data['data'] as $val) {
125 - $ret = array();  
126 - $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1); 126 + $val['src'] = Images::getImageUrl($val['src'], 1150, 450, 1);
127 $val['url'] = Helpers::transUrl($val['url'], $type); 127 $val['url'] = Helpers::transUrl($val['url'], $type);
128 - $ret = array ( 128 + $ret = array(
129 'href' => $val['url'], 129 'href' => $val['url'],
130 'img' => $val['src'], 130 'img' => $val['src'],
131 ); 131 );
132 - if(!empty($val['bgColor'])) {  
133 - $ret['bgColor'] = $val['bgColor']; 132 + if (!empty($val['bgColor'])) {
  133 + $ret['bgColor'] = $val['bgColor'];
134 } 134 }
135 $temp[] = $ret; 135 $temp[] = $ret;
136 } 136 }
@@ -152,21 +152,17 @@ class Process @@ -152,21 +152,17 @@ class Process
152 $temp = array(); 152 $temp = array();
153 if ($data['template_name'] == 'recommend_content_three') { 153 if ($data['template_name'] == 'recommend_content_three') {
154 foreach ($data['data']['big_image'] as $val) { 154 foreach ($data['data']['big_image'] as $val) {
155 - $width = 1150;  
156 - $height = 450;  
157 - $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1); 155 + $val['src'] = Images::getImageUrl($val['src'], 1150, 450, 1);
158 $val['url'] = Helpers::transUrl($val['url'], $type); 156 $val['url'] = Helpers::transUrl($val['url'], $type);
159 $temp['list'][] = array( 157 $temp['list'][] = array(
160 'href' => $val['url'], 158 'href' => $val['url'],
161 'img' => $val['src'], 159 'img' => $val['src'],
162 - // 'bgColor'=> $val[] 160 + // 'bgColor'=> $val[]
163 ); 161 );
164 } 162 }
165 - 163 +
166 foreach ($data['data']['list'] as $val) { 164 foreach ($data['data']['list'] as $val) {
167 - $width = 138;  
168 - $height = 54;  
169 - $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1); 165 + $val['src'] = Images::getImageUrl($val['src'], 138, 54, 1);
170 $val['url'] = Helpers::transUrl($val['url'], $type); 166 $val['url'] = Helpers::transUrl($val['url'], $type);
171 $temp['pagination'][] = array( 167 $temp['pagination'][] = array(
172 'href' => $val['url'], 168 'href' => $val['url'],
@@ -270,11 +266,12 @@ class Process @@ -270,11 +266,12 @@ class Process
270 'mergeGirlkidsData', 266 'mergeGirlkidsData',
271 'mergeHotBrandsData' 267 'mergeHotBrandsData'
272 ); 268 );
  269 + $temp = array();
273 foreach ($data as $key => $val) { 270 foreach ($data as $key => $val) {
274 foreach ($mergeProcessList as $merge) { 271 foreach ($mergeProcessList as $merge) {
275 if (isset($data[$key])) { 272 if (isset($data[$key])) {
276 $temp = self::$merge($key, $data, $type); 273 $temp = self::$merge($key, $data, $type);
277 - if (! empty($temp)) { 274 + if (!empty($temp)) {
278 $result[$key] = $temp; 275 $result[$key] = $temp;
279 } 276 }
280 } 277 }
@@ -298,43 +295,35 @@ class Process @@ -298,43 +295,35 @@ class Process
298 public static function mergeSinglehotData($key, array &$data, $type) 295 public static function mergeSinglehotData($key, array &$data, $type)
299 { 296 {
300 $result = array(); 297 $result = array();
301 - if ((isset($data[$key]) && isset($data[$key + 2])) || (isset($data[$key]) && isset($data[$key + 3])))  
302 - { 298 + if ((isset($data[$key]) && isset($data[$key + 2])) || (isset($data[$key]) && isset($data[$key + 3]))) {
303 $title = ''; 299 $title = '';
304 $source = $goods = $floor = array(); 300 $source = $goods = $floor = array();
305 - if ($data[$key]['template_name'] == 'textNav' && $data[$key + 1]['template_name'] == 'goods'  
306 - && $data[$key + 2]['template_name'] == 'floor')  
307 - { 301 + if ($data[$key]['template_name'] == 'textNav' && $data[$key + 1]['template_name'] == 'goods' && $data[$key + 2]['template_name'] == 'floor') {
308 $title = '人气单品 TOP100'; 302 $title = '人气单品 TOP100';
309 $source = $data[$key]; 303 $source = $data[$key];
310 $goods = $data[$key + 1]; 304 $goods = $data[$key + 1];
311 $floor = $data[$key + 2]; 305 $floor = $data[$key + 2];
312 unset($data[$key], $data[$key + 1], $data[$key + 2]); 306 unset($data[$key], $data[$key + 1], $data[$key + 2]);
313 - } else if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav'  
314 - && $data[$key + 2]['template_name'] == 'goods' && $data[$key + 3]['template_name'] == 'floor')  
315 - { 307 + } else if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav' && $data[$key + 2]['template_name'] == 'goods' && $data[$key + 3]['template_name'] == 'floor') {
316 $title = $data[$key]['data']['text']; 308 $title = $data[$key]['data']['text'];
317 $source = $data[$key + 1]; 309 $source = $data[$key + 1];
318 $goods = $data[$key + 2]; 310 $goods = $data[$key + 2];
319 $floor = $data[$key + 3]; 311 $floor = $data[$key + 3];
320 unset($data[$key], $data[$key + 1], $data[$key + 2], $data[$key + 3]); 312 unset($data[$key], $data[$key + 1], $data[$key + 2], $data[$key + 3]);
321 - } else if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav'  
322 - && $data[$key + 2]['template_name'] == 'goods' && $data[$key + 3]['template_name'] == 'app_icon_list')  
323 - { 313 + } else if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav' && $data[$key + 2]['template_name'] == 'goods' && $data[$key + 3]['template_name'] == 'app_icon_list') {
324 $title = $data[$key]['data']['text']; 314 $title = $data[$key]['data']['text'];
325 $source = $data[$key + 1]; 315 $source = $data[$key + 1];
326 $goods = $data[$key + 2]; 316 $goods = $data[$key + 2];
327 $floor = $data[$key + 3]; 317 $floor = $data[$key + 3];
328 unset($data[$key], $data[$key + 1], $data[$key + 2], $data[$key + 3]); 318 unset($data[$key], $data[$key + 1], $data[$key + 2], $data[$key + 3]);
329 } 319 }
330 - if (! empty($source) && ! empty($floor))  
331 - { 320 + if (!empty($source) && !empty($floor)) {
332 $result = array( 321 $result = array(
333 'singlehot' => array( 322 'singlehot' => array(
334 'name' => '', 323 'name' => '',
335 'imgHot' => array(), 324 'imgHot' => array(),
336 'brands' => array(), 325 'brands' => array(),
337 - 'navs'=> array(), 326 + 'navs' => array(),
338 ) 327 )
339 ); 328 );
340 // text模版 329 // text模版
@@ -367,9 +356,7 @@ class Process @@ -367,9 +356,7 @@ class Process
367 { 356 {
368 $result = array(); 357 $result = array();
369 if (isset($data[$key]) && isset($data[$key + 2])) { 358 if (isset($data[$key]) && isset($data[$key + 2])) {
370 - if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'small_pic'  
371 - && $data[$key + 2]['template_name'] == 'floor')  
372 - { 359 + if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'small_pic' && $data[$key + 2]['template_name'] == 'floor') {
373 $result = array( 360 $result = array(
374 'singlehot' => array( 361 'singlehot' => array(
375 'name' => '', 362 'name' => '',
@@ -379,40 +366,27 @@ class Process @@ -379,40 +366,27 @@ class Process
379 // text 366 // text
380 $result['singlehot']['name'] = $data[$key]['data']['text']; 367 $result['singlehot']['name'] = $data[$key]['data']['text'];
381 $len = 10; 368 $len = 10;
382 - $list = array();  
383 // small_pic 369 // small_pic
384 foreach ($data[$key + 1]['data'] as &$val) { 370 foreach ($data[$key + 1]['data'] as &$val) {
385 - $w = 378;  
386 - $h = 248;  
387 - $val['src'] = Images::getImageUrl($val['src'], $w, $h, 1); 371 + $val['src'] = Images::getImageUrl($val['src'], 378, 248, 1);
388 } 372 }
389 //floor 373 //floor
390 - foreach ($data[$key + 2]['data'] as &$val)  
391 - {  
392 - $w = 185;  
393 - $h = 248;  
394 - $val['src'] = Images::getImageUrl($val['src'], $w, $h, 1); 374 + foreach ($data[$key + 2]['data'] as &$val) {
  375 + $val['src'] = Images::getImageUrl($val['src'], 185, 248, 1);
395 } 376 }
396 - for ($i = 0; $i < $len; $i ++)  
397 - { 377 + for ($i = 0; $i < $len; $i ++) {
398 $pos = $i; 378 $pos = $i;
399 - if ($i == 1)  
400 - { 379 + if ($i == 1) {
401 $val = $data[$key + 1]['data'][0]; // 第二个是大图 380 $val = $data[$key + 1]['data'][0]; // 第二个是大图
402 - }  
403 - else if ($i == $len - 1)  
404 - { 381 + } else if ($i == $len - 1) {
405 $val = $data[$key + 1]['data'][1]; // 最后一个是大图 382 $val = $data[$key + 1]['data'][1]; // 最后一个是大图
406 - }  
407 - else  
408 - {  
409 - if ($pos > 1) // 小图  
410 - { 383 + } else {
  384 + if ($pos > 1) { // 小图
411 $pos = $pos - 1; 385 $pos = $pos - 1;
412 } 386 }
413 $val = $data[$key + 2]['data'][$pos]; 387 $val = $data[$key + 2]['data'][$pos];
414 } 388 }
415 - 389 +
416 $result['singlehot']['imgHot'][] = array( 390 $result['singlehot']['imgHot'][] = array(
417 'href' => $val['url'], 391 'href' => $val['url'],
418 'img' => $val['src'], 392 'img' => $val['src'],
@@ -437,16 +411,14 @@ class Process @@ -437,16 +411,14 @@ class Process
437 { 411 {
438 $result = array(); 412 $result = array();
439 if (isset($data[$key]) && isset($data[$key + 2])) { 413 if (isset($data[$key]) && isset($data[$key + 2])) {
440 - if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'focus'  
441 - && ($data[$key + 2]['template_name'] == 'floor' ||  
442 - $data[$key + 2]['template_name'] == 'app_icon_list'))  
443 - { 414 + if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'focus' && ($data[$key + 2]['template_name'] == 'floor' ||
  415 + $data[$key + 2]['template_name'] == 'app_icon_list')) {
444 //slider颜色 416 //slider颜色
445 - $sliderColor = array('girls' => '#8ae6e0','kids'=>'#7AD3F8','lifestyle'=>'#4e433d', 'boys'=>''); 417 + $sliderColor = array('girls' => '#8ae6e0', 'kids' => '#7AD3F8', 'lifestyle' => '#4e433d', 'boys' => '');
446 $result = array( 418 $result = array(
447 'preferenceBrands' => array( 419 'preferenceBrands' => array(
448 'name' => '', 420 'name' => '',
449 - 'sliderColor'=> $sliderColor[$type], 421 + 'sliderColor' => $sliderColor[$type],
450 'imgBrand' => array(), 422 'imgBrand' => array(),
451 'brandUrl' => '' 423 'brandUrl' => ''
452 ) 424 )
@@ -454,11 +426,15 @@ class Process @@ -454,11 +426,15 @@ class Process
454 // text模版 426 // text模版
455 $result['preferenceBrands']['name'] = $data[$key]['data']['text']; 427 $result['preferenceBrands']['name'] = $data[$key]['data']['text'];
456 // focus模版 428 // focus模版
  429 + $width = 0;
  430 + $height = 0;
457 foreach ($data[$key + 1]['data'] as $val) { 431 foreach ($data[$key + 1]['data'] as $val) {
458 - if($type == 'boys') {  
459 - $width = 378; $height = 175;  
460 - } else{  
461 - $width = 320;$height = 430; 432 + if ($type == 'boys') {
  433 + $width = 378;
  434 + $height = 175;
  435 + } else {
  436 + $width = 320;
  437 + $height = 430;
462 } 438 }
463 $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1); 439 $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1);
464 $val['url'] = Helpers::transUrl($val['url'], $type); 440 $val['url'] = Helpers::transUrl($val['url'], $type);
@@ -487,10 +463,10 @@ class Process @@ -487,10 +463,10 @@ class Process
487 $floor['moreBrand'] = $data[$key + 3]['data'][0]['url']; 463 $floor['moreBrand'] = $data[$key + 3]['data'][0]['url'];
488 unset($data[$key + 3]); 464 unset($data[$key + 3]);
489 } 465 }
490 - $type_key = sprintf("%s_%s", $type, $key + 2);  
491 - $cacheKey = sprintf("%s_%s", WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA, $type_key); 466 + $typeKey = sprintf("%s_%s", $type, $key + 2);
  467 + $cacheKey = sprintf("%s_%s", WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA, $typeKey);
492 Cache::set($cacheKey, $floor, 86400); 468 Cache::set($cacheKey, $floor, 86400);
493 - $result['preferenceBrands']['brandUrl'] = '/common/getIndexResourceBrand?type=' . $type_key; 469 + $result['preferenceBrands']['brandUrl'] = Helpers::url('/common/getIndexResourceBrand', array('type' => $typeKey));
494 unset($data[$key], $data[$key + 1], $data[$key + 2]); 470 unset($data[$key], $data[$key + 1], $data[$key + 2]);
495 } 471 }
496 } 472 }
@@ -508,10 +484,8 @@ class Process @@ -508,10 +484,8 @@ class Process
508 public static function mergeGirlkidsData($key, array &$data, $type) 484 public static function mergeGirlkidsData($key, array &$data, $type)
509 { 485 {
510 $result = array(); 486 $result = array();
511 - if (isset($data[$key]) && isset($data[$key + 2]))  
512 - {  
513 - if ($data[$key]['template_name'] == 'text' && $data[$key + 2]['template_name'] == 'goods')  
514 - { 487 + if (isset($data[$key]) && isset($data[$key + 2])) {
  488 + if ($data[$key]['template_name'] == 'text' && $data[$key + 2]['template_name'] == 'goods') {
515 $result = array( 489 $result = array(
516 'girlkids' => array( 490 'girlkids' => array(
517 'name' => '', 491 'name' => '',
@@ -520,13 +494,13 @@ class Process @@ -520,13 +494,13 @@ class Process
520 ); 494 );
521 // text 495 // text
522 $result['girlkids']['name'] = $data[$key]['data']['text']; 496 $result['girlkids']['name'] = $data[$key]['data']['text'];
523 - 497 +
524 // goods 498 // goods
525 $result['girlkids']['imgHot'] = self::mergeGoodsProcess($data[$key + 2], $type); 499 $result['girlkids']['imgHot'] = self::mergeGoodsProcess($data[$key + 2], $type);
526 unset($data[$key], $data[$key + 1], $data[$key + 2]); 500 unset($data[$key], $data[$key + 1], $data[$key + 2]);
527 } 501 }
528 } 502 }
529 - 503 +
530 return $result; 504 return $result;
531 } 505 }
532 506
@@ -541,11 +515,8 @@ class Process @@ -541,11 +515,8 @@ class Process
541 public static function mergeAccordionData($key, array &$data, $type) 515 public static function mergeAccordionData($key, array &$data, $type)
542 { 516 {
543 $result = array(); 517 $result = array();
544 - if (isset($data[$key]) && isset($data[$key + 2]))  
545 - {  
546 - if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav'  
547 - && $data[$key + 2]['template_name'] == 'focus')  
548 - { 518 + if (isset($data[$key]) && isset($data[$key + 2])) {
  519 + if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav' && $data[$key + 2]['template_name'] == 'focus') {
549 $result = array( 520 $result = array(
550 'accordion' => array( 521 'accordion' => array(
551 'name' => '', 522 'name' => '',
@@ -554,12 +525,12 @@ class Process @@ -554,12 +525,12 @@ class Process
554 ) 525 )
555 ); 526 );
556 $result['accordion']['name'] = $data[$key]['data']['text']; 527 $result['accordion']['name'] = $data[$key]['data']['text'];
557 - 528 +
558 // textNav模版 529 // textNav模版
559 - if (! empty($data[$key + 1]['data'])) { 530 + if (!empty($data[$key + 1]['data'])) {
560 $result['accordion']['navs'] = self::mergeNavProcess($data[$key + 1], $type); 531 $result['accordion']['navs'] = self::mergeNavProcess($data[$key + 1], $type);
561 } 532 }
562 - 533 +
563 // focus模版 534 // focus模版
564 foreach ($data[$key + 2]['data'] as $val) { 535 foreach ($data[$key + 2]['data'] as $val) {
565 $val['src'] = Images::getImageUrl($val['src'], 650, 400, 1); 536 $val['src'] = Images::getImageUrl($val['src'], 650, 400, 1);
@@ -572,7 +543,7 @@ class Process @@ -572,7 +543,7 @@ class Process
572 unset($data[$key], $data[$key + 1], $data[$key + 2]); 543 unset($data[$key], $data[$key + 1], $data[$key + 2]);
573 } 544 }
574 } 545 }
575 - 546 +
576 return $result; 547 return $result;
577 } 548 }
578 549
@@ -587,12 +558,9 @@ class Process @@ -587,12 +558,9 @@ class Process
587 public static function mergeNewReportData($key, array &$data, $type) 558 public static function mergeNewReportData($key, array &$data, $type)
588 { 559 {
589 $result = array(); 560 $result = array();
590 - if (isset($data[$key]) && isset($data[$key + 3]))  
591 - {  
592 - if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'single_image'  
593 - && $data[$key + 2]['template_name'] == 'floor' &&  
594 - $data[$key + 3]['template_name'] == 'single_image')  
595 - { 561 + if (isset($data[$key]) && isset($data[$key + 3])) {
  562 + if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'single_image' && $data[$key + 2]['template_name'] == 'floor' &&
  563 + $data[$key + 3]['template_name'] == 'single_image') {
596 $result = array( 564 $result = array(
597 'newReport' => array( 565 'newReport' => array(
598 'name' => '', 566 'name' => '',
@@ -604,18 +572,14 @@ class Process @@ -604,18 +572,14 @@ class Process
604 // single_image & floor & single_image 572 // single_image & floor & single_image
605 $list = array_merge($data[$key + 1]['data'], array_slice($data[$key + 2]['data'], 0, 6), $data[$key + 3]['data']); 573 $list = array_merge($data[$key + 1]['data'], array_slice($data[$key + 2]['data'], 0, 6), $data[$key + 3]['data']);
606 foreach ($list as $listKey => $val) { 574 foreach ($list as $listKey => $val) {
607 - $width = 185;  
608 - $height = 248;  
609 - $w = 377;  
610 - $h = 504;  
611 if ($listKey == 0 || $listKey == 7) { 575 if ($listKey == 0 || $listKey == 7) {
612 - $val['src'] = Images::getImageUrl($val['src'], $w, $h, 1); 576 + $val['src'] = Images::getImageUrl($val['src'], 377, 504, 1);
613 $result['newReport']['list'][] = array( 577 $result['newReport']['list'][] = array(
614 'href' => $val['url'], 578 'href' => $val['url'],
615 'img' => $val['src'] 579 'img' => $val['src']
616 ); 580 );
617 } else { 581 } else {
618 - $val['src'] = Images::getImageUrl($val['src'], $width, $height, 1); 582 + $val['src'] = Images::getImageUrl($val['src'], 185, 248, 1);
619 $result['newReport']['list'][] = array( 583 $result['newReport']['list'][] = array(
620 'href' => $val['url'], 584 'href' => $val['url'],
621 'img' => $val['src'] 585 'img' => $val['src']
@@ -639,8 +603,7 @@ class Process @@ -639,8 +603,7 @@ class Process
639 { 603 {
640 $result = array(); 604 $result = array();
641 if (isset($data[$key]) && isset($data[$key + 2])) { 605 if (isset($data[$key]) && isset($data[$key + 2])) {
642 - if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav'  
643 - && $data[$key + 2]['template_name'] == 'floor') { 606 + if ($data[$key]['template_name'] == 'text' && $data[$key + 1]['template_name'] == 'textNav' && $data[$key + 2]['template_name'] == 'floor') {
644 $result = array( 607 $result = array(
645 'category' => array( 608 'category' => array(
646 'name' => '', 609 'name' => '',
@@ -650,16 +613,20 @@ class Process @@ -650,16 +613,20 @@ class Process
650 ); 613 );
651 // text模版 614 // text模版
652 $result['category']['name'] = $data[$key]['data']['text']; 615 $result['category']['name'] = $data[$key]['data']['text'];
653 - 616 +
654 // textNav模版 617 // textNav模版
655 - if (! empty($data[$key + 1]['data'])) { 618 + if (!empty($data[$key + 1]['data'])) {
656 $result['category']['navs'] = self::mergeNavProcess($data[$key + 1], $type); 619 $result['category']['navs'] = self::mergeNavProcess($data[$key + 1], $type);
657 } 620 }
658 // floor模版 621 // floor模版
  622 + $width = 0;
  623 + $height = 0;
659 foreach ($data[$key + 2]['data'] as $pos => $val) { 624 foreach ($data[$key + 2]['data'] as $pos => $val) {
660 - $width = 185; $height = 510;  
661 - if($pos == 1) {  
662 - $width = 377; $height = 504; 625 + $width = 185;
  626 + $height = 510;
  627 + if ($pos == 1) {
  628 + $width = 377;
  629 + $height = 504;
663 } 630 }
664 $val['src'] = Images::getImageUrl($val['src'], $width, $height, 2); 631 $val['src'] = Images::getImageUrl($val['src'], $width, $height, 2);
665 $val['url'] = Helpers::transUrl($val['url'], $type); 632 $val['url'] = Helpers::transUrl($val['url'], $type);
@@ -672,7 +639,7 @@ class Process @@ -672,7 +639,7 @@ class Process
672 unset($data[$key], $data[$key + 1], $data[$key + 2]); 639 unset($data[$key], $data[$key + 1], $data[$key + 2]);
673 } 640 }
674 } 641 }
675 - 642 +
676 return $result; 643 return $result;
677 } 644 }
678 645
@@ -687,10 +654,8 @@ class Process @@ -687,10 +654,8 @@ class Process
687 public static function mergeHotCategoryData($key, &$data, $type) 654 public static function mergeHotCategoryData($key, &$data, $type)
688 { 655 {
689 $result = array(); 656 $result = array();
690 - if (isset($data[$key]) && isset($data[$key + 1]))  
691 - {  
692 - if ($data[$key]['template_name'] == 'hotCategory' && $data[$key + 1]['template_name'] == 'floor')  
693 - { 657 + if (isset($data[$key]) && isset($data[$key + 1])) {
  658 + if ($data[$key]['template_name'] == 'hotCategory' && $data[$key + 1]['template_name'] == 'floor') {
694 $result = array( 659 $result = array(
695 'name' => '', 660 'name' => '',
696 'navs' => array(), 661 'navs' => array(),
@@ -709,11 +674,9 @@ class Process @@ -709,11 +674,9 @@ class Process
709 $result['navs'] = $temp['navs']; 674 $result['navs'] = $temp['navs'];
710 $result['tplrecommend']['keyword'] = $temp['tplrecommend']['keyword']; 675 $result['tplrecommend']['keyword'] = $temp['tplrecommend']['keyword'];
711 $result['tplrecommend']['category'] = $temp['tplrecommend']['category']; 676 $result['tplrecommend']['category'] = $temp['tplrecommend']['category'];
712 - foreach ($data[$key]['data']['imgs'] as $key2 => $val)  
713 - { 677 + foreach ($data[$key]['data']['imgs'] as $key2 => $val) {
714 $val['url'] = Helpers::transUrl($val['url'], $type); 678 $val['url'] = Helpers::transUrl($val['url'], $type);
715 - if ($key2 == 0 || $key2 == 4) // 两个大图  
716 - { 679 + if ($key2 == 0 || $key2 == 4) { // 两个大图
717 $val['img'] = Images::getImageUrl($val['img'], 378, 248, 1); // 大图 680 $val['img'] = Images::getImageUrl($val['img'], 378, 248, 1); // 大图
718 $result['tplrecommend']['brands'][] = array( 681 $result['tplrecommend']['brands'][] = array(
719 'href' => $val['url'], 682 'href' => $val['url'],
@@ -729,10 +692,9 @@ class Process @@ -729,10 +692,9 @@ class Process
729 ); 692 );
730 } 693 }
731 } 694 }
732 - 695 +
733 // floor模版 696 // floor模版
734 - foreach ($data[$key + 1]['data'] as $val)  
735 - { 697 + foreach ($data[$key + 1]['data'] as $val) {
736 $val['src'] = Images::getImageUrl($val['src'], 222, 298, 1); // 小图 698 $val['src'] = Images::getImageUrl($val['src'], 222, 298, 1); // 小图
737 $result['tplrecommend']['products'][] = array( 699 $result['tplrecommend']['products'][] = array(
738 'href' => $val['url'], 700 'href' => $val['url'],
@@ -746,7 +708,7 @@ class Process @@ -746,7 +708,7 @@ class Process
746 ); 708 );
747 } 709 }
748 } 710 }
749 - 711 +
750 return $result; 712 return $result;
751 } 713 }
752 714
@@ -761,8 +723,9 @@ class Process @@ -761,8 +723,9 @@ class Process
761 { 723 {
762 $result = array(); 724 $result = array();
763 foreach ($data['data'] as $val) { 725 foreach ($data['data'] as $val) {
764 - if (empty($val)) 726 + if (empty($val)) {
765 continue; 727 continue;
  728 + }
766 $result[] = array( 729 $result[] = array(
767 'href' => $val['url'], 730 'href' => $val['url'],
768 'name' => $val['name'] 731 'name' => $val['name']
@@ -784,16 +747,17 @@ class Process @@ -784,16 +747,17 @@ class Process
784 $skns = ''; 747 $skns = '';
785 foreach ($data['data'] as $val) { 748 foreach ($data['data'] as $val) {
786 $skns .= $val['id'] . ' '; 749 $skns .= $val['id'] . ' ';
787 - } 750 + }
788 $params = array( 751 $params = array(
789 'query' => rtrim($skns), 752 'query' => rtrim($skns),
790 'client_type' => 'web' 753 'client_type' => 'web'
791 ); 754 );
792 $goodsList = SearchData::searchElasticByCondition($params, false); 755 $goodsList = SearchData::searchElasticByCondition($params, false);
793 - $goodsList = $goodsList['data']['product_list']; 756 + $goodsList = empty($goodsList) ? array() : $goodsList['data']['product_list'];
794 $pos = 0; 757 $pos = 0;
795 - foreach ($goodsList as $goods)  
796 - { 758 + $url = '';
  759 + $oneGoods = array();
  760 + foreach ($goodsList as $goods) {
797 $oneGoods = array(); 761 $oneGoods = array();
798 $pos ++; 762 $pos ++;
799 if ($pos > 12) { 763 if ($pos > 12) {
@@ -802,14 +766,14 @@ class Process @@ -802,14 +766,14 @@ class Process
802 if (empty($goods)) { 766 if (empty($goods)) {
803 continue; 767 continue;
804 } 768 }
  769 + $url = Helpers::getUrlBySkc($goods['product_id'], $goods['goods_list'][0]['goods_id'], $goods['cn_alphabet']);
805 $oneGoods['img'] = Images::getImageUrl($goods['goods_list'][0]['images_url'], 280, 373, 1); 770 $oneGoods['img'] = Images::getImageUrl($goods['goods_list'][0]['images_url'], 280, 373, 1);
806 $oneGoods['name'] = $goods['product_name']; 771 $oneGoods['name'] = $goods['product_name'];
807 $oneGoods['price'] = $goods['sales_price']; 772 $oneGoods['price'] = $goods['sales_price'];
808 - $url = Helpers::getUrlBySkc($goods['product_id'], $goods['goods_list'][0]['goods_id'], $goods['cn_alphabet']);  
809 $oneGoods['href'] = Helpers::transUrl($url, $type); 773 $oneGoods['href'] = Helpers::transUrl($url, $type);
810 $result[$goods['product_skn']] = $oneGoods; 774 $result[$goods['product_skn']] = $oneGoods;
811 } 775 }
812 - 776 +
813 // 排序 777 // 排序
814 uksort($result, function ($a, $b) use($skns) { 778 uksort($result, function ($a, $b) use($skns) {
815 $skn_arr = explode(' ', $skns); 779 $skn_arr = explode(' ', $skns);
@@ -817,30 +781,27 @@ class Process @@ -817,30 +781,27 @@ class Process
817 }); 781 });
818 $pos = 1; 782 $pos = 1;
819 //添加TOP标示 783 //添加TOP标示
820 - foreach($result as &$val) {  
821 - if($pos < 4) {  
822 - $val['tip'] = 'TOP'.$pos;  
823 - }  
824 - else {  
825 - break;  
826 - }  
827 - $pos ++; 784 + foreach ($result as &$val) {
  785 + if ($pos < 4) {
  786 + $val['tip'] = 'TOP' . $pos;
  787 + } else {
  788 + break;
  789 + }
  790 + $pos ++;
828 } 791 }
829 return $result; 792 return $result;
830 } 793 }
831 - 794 +
832 /** 795 /**
833 * 热门品牌数据处理 796 * 热门品牌数据处理
834 * 797 *
835 * @param array $data 798 * @param array $data
836 * @param string $type 799 * @param string $type
837 */ 800 */
838 - public static function mergeHotBrandsData($key,array &$data,$type) 801 + public static function mergeHotBrandsData($key, array &$data, $type)
839 { 802 {
840 $result = array(); 803 $result = array();
841 - $temp = array();  
842 - if ($data[$key]['template_name'] == 'custom_brands')  
843 - { 804 + if ($data[$key]['template_name'] == 'custom_brands') {
844 $result = array( 805 $result = array(
845 'hotBrands' => array( 806 'hotBrands' => array(
846 'name' => '', 807 'name' => '',
@@ -854,26 +815,23 @@ class Process @@ -854,26 +815,23 @@ class Process
854 'logoBrand' => '', 815 'logoBrand' => '',
855 'moreBrand' => '' 816 'moreBrand' => ''
856 ); 817 );
857 - 818 +
858 $brands = $data[$key]['data']['list']; 819 $brands = $data[$key]['data']['list'];
859 - foreach ($brands as $val)  
860 - {  
861 - $width = 185;  
862 - $height = 86;  
863 - $val['src'] = Images::getImageUrl($val['src'], $width, $height, 2);  
864 - $val['url'] = Helpers::transUrl($val['url'], $type);  
865 - $floor['logoBrand'][] = array(  
866 - 'href' => $val['url'],  
867 - 'img' => $val['src']  
868 - );  
869 - }  
870 - $floor['moreBrand'] = 'http://yohobuy.com/brands';  
871 - $type_key = sprintf("%s_%s", $type, $key);  
872 - $cacheKey = sprintf("%s_%s", WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA, $type_key); 820 + foreach ($brands as $val) {
  821 + $val['src'] = Images::getImageUrl($val['src'], 185, 86, 2);
  822 + $val['url'] = Helpers::transUrl($val['url'], $type);
  823 + $floor['logoBrand'][] = array(
  824 + 'href' => $val['url'],
  825 + 'img' => $val['src']
  826 + );
  827 + }
  828 + $floor['moreBrand'] = Helpers::url('/brands');
  829 + $typeKey = sprintf("%s_%s", $type, $key);
  830 + $cacheKey = sprintf("%s_%s", WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA, $typeKey);
873 Cache::set($cacheKey, $floor, 86400); 831 Cache::set($cacheKey, $floor, 86400);
874 - $result['hotBrands']['brandUrl'] = '/common/getIndexResourceBrand?type=' . $type_key; 832 + $result['hotBrands']['brandUrl'] = Helpers::url('/common/getIndexResourceBrand', array('type' => $typeKey));
875 } 833 }
876 return $result; 834 return $result;
877 } 835 }
878 -  
879 -}  
  836 +
  837 +}
@@ -24,7 +24,7 @@ class Helpers @@ -24,7 +24,7 @@ class Helpers
24 24
25 switch ($module) { 25 switch ($module) {
26 case 'default': 26 case 'default':
27 - $url = 'http://m.yohobuy.com'; 27 + $url = 'http://www.yohobuy.com';
28 break; 28 break;
29 case 'guang': // 逛 29 case 'guang': // 逛
30 $url = 'http://guang' . SUB_DOMAIN; 30 $url = 'http://guang' . SUB_DOMAIN;
@@ -226,6 +226,7 @@ class Helpers @@ -226,6 +226,7 @@ class Helpers
226 if ($oneGoods['is_default'] === 'Y') { 226 if ($oneGoods['is_default'] === 'Y') {
227 $productData['default_images'] = self::procProductImg($oneGoods); 227 $productData['default_images'] = self::procProductImg($oneGoods);
228 $flag = true; 228 $flag = true;
  229 + break;
229 } 230 }
230 } 231 }
231 // 如果还未赋值,则取第一个skc产品的默认图片 232 // 如果还未赋值,则取第一个skc产品的默认图片
@@ -247,7 +248,7 @@ class Helpers @@ -247,7 +248,7 @@ class Helpers
247 $result['is_soon_sold_out'] = ($productData['is_soon_sold_out'] === 'Y'); 248 $result['is_soon_sold_out'] = ($productData['is_soon_sold_out'] === 'Y');
248 $result['url'] = self::url('/product/pro_' . $productData['product_id'] . '_' 249 $result['url'] = self::url('/product/pro_' . $productData['product_id'] . '_'
249 . $productData['goods_list'][0]['goods_id'] 250 . $productData['goods_list'][0]['goods_id']
250 - . '/' . $productData['cn_alphabet'] . '.html', 'item'); 251 + . '/' . $productData['cn_alphabet'] . '.html', array(), 'item');
251 // APP访问需要加附加的参数 252 // APP访问需要加附加的参数
252 // 备注:如果以后APP的接口太多,可以把这边参数提取出来,变成一个公共的方法来生成,便于以后管理维护 253 // 备注:如果以后APP的接口太多,可以把这边参数提取出来,变成一个公共的方法来生成,便于以后管理维护
253 if ($isApp) { 254 if ($isApp) {
  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: 6.95rem;
  16 + width: 100%;
  17 + height: 11.65rem;
  18 +}
  19 +.coupon-top .share-btn {
  20 + position: absolute;
  21 + width: 14.075rem;
  22 + height: 2.275rem;
  23 + bottom: 0.875rem;
  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(../../img/final/160125/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(../../img/final/160125/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/final/160125/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/sale2.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 +{{#if weixinShare}}
  28 +<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>
  29 +{{/if}}
  30 +
  31 +<div class="coupon-christmas" show="{{showPopupFlag}}">
  32 + <div class="coupon-top">
  33 + <img src="{{imgUrl}}/cuxiao/img/final/160125/top-bg.png" alt="">
  34 + <a class="go-check" href="{{myCouponUrl}}"></a>
  35 + <a class="share-btn" href="javascript:;"></a>
  36 + </div>
  37 + <div class="coupon-bottom">
  38 + <div class="coupon-banner">
  39 + <a href="{{bannerUrl_1}}"></a>
  40 + <a href="{{bannerUrl_2}}"></a>
  41 + <a href="{{bannerUrl_3}}"></a>
  42 + <a href="{{bannerUrl_4}}"></a>
  43 + </div>
  44 + <div class="bottom-btn">
  45 + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
  46 + <a class="download-yoho" href="{{downAppUrl}}"></a>
  47 + </div>
  48 + </div>
  49 + <div class="coupon-ft">
  50 + <img src="{{imgUrl}}/cuxiao/img/final/160125/14.png">
  51 + </div>
  52 +</div>
  53 +<div class="modal"></div>
  54 +<div class="dialog-box geted">
  55 + <div class="dialog-inner">
  56 + <img src="{{imgUrl}}/cuxiao/img/final/160125/geted.png" alt=""/>
  57 + <span class="dialog-close"></span>
  58 + </div>
  59 +</div>
  60 +
  61 +<div class="dialog-box fail">
  62 + <div class="dialog-inner">
  63 + <img src="{{imgUrl}}/cuxiao/img/final/160125/fail.png" alt=""/>
  64 + <span class="refresh-btn"></span>
  65 + </div>
  66 +</div>
  67 +<input id="shareLink" type="hidden" value="{{shareLink}}">
  68 +<input id="shareImg" type="hidden" value="{{shareImg}}">
  69 +<input id="shareTitle" type="hidden" value="{{shareTitle}}">
  70 +<input id="shareDesc" type="hidden" value="{{shareDesc}}">
  71 +<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script>
  72 +<script>
  73 + //提示分享
  74 + $('.share-btn').click(function () {
  75 + $('.modal').fadeIn();
  76 + });
  77 + //关闭提示分享
  78 + $('.modal').click(function () {
  79 + $(this).fadeOut();
  80 + });
  81 + //提示已领过券
  82 + if ($('.coupon-christmas').attr('show') === '1') {
  83 + $('.dialog-box.geted').show();
  84 + }
  85 + //提示领券失败
  86 + else if ($('.coupon-christmas').attr('show') === '2') {
  87 + $('.dialog-box.fail').show();
  88 + }
  89 + //关闭提示
  90 + $('.dialog-close').click(function(){
  91 + $(this).parents('.dialog-box').fadeOut();
  92 + });
  93 + //刷新页面
  94 + $('.refresh-btn').click(function() {
  95 + location.reload();
  96 + });
  97 +</script>
  98 +{{#if weixinShare}}
  99 +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  100 +<script type="text/javascript" charset="utf-8" src="{{jsUrl}}/cuxiao/js/share.weixin.js"></script>
  101 +{{/if}}
  102 +{{> layout/analysis}}
  103 +</body>
  104 +</html>
1 <!-- Google Tag Manager --> 1 <!-- Google Tag Manager -->
2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3 <script> 3 <script>
4 - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':  
5 - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],  
6 - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=  
7 - '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);  
8 - })(window,document,'script','dataLayer','GTM-W958MG');  
9 -</script>  
10 -<!-- End Google Tag Manager -->  
11 -<script type="text/javascript">  
12 - var _hmt = _hmt || [];  
13 - (function() {  
14 - var hm = document.createElement("script");  
15 - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";  
16 - var s = document.getElementsByTagName("script")[0];  
17 - s.parentNode.insertBefore(hm, s);  
18 - })();  
19 -</script>  
20 -<script>  
21 var _hmt = _hmt || []; 4 var _hmt = _hmt || [];
22 - (function() {  
23 - var hm = document.createElement("script");  
24 - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";  
25 - var s = document.getElementsByTagName("script")[0];  
26 - s.parentNode.insertBefore(hm, s);  
27 - })(); 5 + function async_load(){
  6 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  7 + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  8 + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  9 + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  10 + })(window,document,'script','dataLayer','GTM-W958MG');
  11 + (function() {
  12 + var hm = document.createElement("script");
  13 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  14 + hm.async = 1;
  15 + var s = document.getElementsByTagName("script")[0];
  16 + s.parentNode.insertBefore(hm, s);
  17 + })();
  18 + (function() {
  19 + var hm = document.createElement("script");
  20 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  21 + hm.async = 1;
  22 + var s = document.getElementsByTagName("script")[0];
  23 + s.parentNode.insertBefore(hm, s);
  24 + })();
  25 + (function() {
  26 + var hm = document.createElement("script");
  27 + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  28 + var s = document.getElementsByTagName("script")[0];
  29 + s.parentNode.insertBefore(hm, s);
  30 + })();
  31 + }
  32 + window.addEventListener('load', async_load, false);
28 </script> 33 </script>
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 </div> 19 </div>
20 <div class="item-content"> 20 <div class="item-content">
21 <h2>{{title}}</h2> 21 <h2>{{title}}</h2>
22 - <p>¥{{# price}}<span>{{.}}</span>{{/ price}{{sPrice}}</p> 22 + <p>{{# price}}<span>¥{{.}}</span>{{/ price}{{sPrice}}</p>
23 </div> 23 </div>
24 </li> 24 </li>
25 {{/ list}} 25 {{/ list}}
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 - <head>  
4 - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />  
5 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
6 - <meta http-equiv="Cache-Control" content="no-siteapp" />  
7 - <meta name="renderer" content="webkit">  
8 - <link rel="shortcut icon" href="http://www.yohobuy.com/favicon.ico" type="image/x-icon" />  
9 - <meta name="keywords" content="{{keywords}}">  
10 - <meta name="description" content="{{description}}">  
11 - <title>{{title}}</title>  
12 - {{#if rlsEnv}}  
13 - <link rel="stylesheet" href="http://cdn.yoho.cn/yohobuy/{{version}}/index.css">  
14 - {{/if}}  
15 - {{#if preEnv}}  
16 - <link rel="stylesheet" href="http://cdn.yoho.cn/yohobuy/{{version}}/index.css">  
17 - {{/if}}  
18 - {{#if testEnv}}  
19 - <link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/index.css">  
20 - {{/if}}  
21 - {{#if devEnv}}  
22 - <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">  
23 - {{/if}}  
24 - </head>  
25 - <body>  
26 - {{> layout/page-header}}  
27 - {{> layout/simple-header}}  
  3 +<head>
  4 + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6 + <meta http-equiv="Cache-Control" content="no-siteapp" />
  7 + <meta name="renderer" content="webkit">
  8 + <meta name="keywords" content="{{keywords}}">
  9 + <meta name="description" content="{{description}}">
  10 + <title>{{title}}</title>
  11 + <link rel="dns-prefetch" href="//cdn.yoho.cn">
  12 + <link rel="dns-prefetch" href="//static.yohobuy.com">
  13 + <link rel="dns-prefetch" href="//img12.static.yhbimg.com">
  14 + <link rel="dns-prefetch" href="//img13.static.yhbimg.com">
  15 +{{#if rlsEnv}}
  16 + <link rel="stylesheet" href="http://cdn.yoho.cn/yohobuy/{{version}}/index.css">
  17 +{{/if}}
  18 +{{#if preEnv}}
  19 + <link rel="stylesheet" href="http://cdn.yoho.cn/yohobuy/{{version}}/index.css">
  20 +{{/if}}
  21 +{{#if testEnv}}
  22 + <link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/index.css">
  23 +{{/if}}
  24 +{{#if devEnv}}
  25 + <link rel="stylesheet" href="http://webstatic.dev.yohobuy.com/css/index.css">
  26 +{{/if}}
  27 +</head>
  28 +<body>
  29 + {{> layout/page-header}}
  30 + {{> layout/simple-header}}
@@ -310,7 +310,7 @@ @@ -310,7 +310,7 @@
310 VIP: 310 VIP:
311 <span class="leveldetail">\{\{vip.curVipInfo.title\}\}</span> 311 <span class="leveldetail">\{\{vip.curVipInfo.title\}\}</span>
312 </h3> 312 </h3>
313 - \{\{#equallevelthree vip.curVipInfo.curLevel\}\} 313 + \{\{#unless vip3 \}\}
314 <div class="levelinfo"> 314 <div class="levelinfo">
315 <div class="levelwrapper float-left"> 315 <div class="levelwrapper float-left">
316 <div class="levelspan"> 316 <div class="levelspan">
@@ -321,7 +321,7 @@ @@ -321,7 +321,7 @@
321 </div> 321 </div>
322 <span class="cardcate float-left">\{\{vip.nextVipInfo.title\}\}</span> 322 <span class="cardcate float-left">\{\{vip.nextVipInfo.title\}\}</span>
323 </div> 323 </div>
324 - \{\{/equallevelthree\}\} 324 + \{\{/unless\}\}
325 </div> 325 </div>
326 <ul class="myyoho-info-content"> 326 <ul class="myyoho-info-content">
327 <li class="item"> 327 <li class="item">
@@ -51,6 +51,8 @@ @@ -51,6 +51,8 @@
51 {{/ newMain}} 51 {{/ newMain}}
52 52
53 {{> product/standard-content}} 53 {{> product/standard-content}}
  54 +
  55 + {{> product/latest-walk}}
54 </div> 56 </div>
55 </div> 57 </div>
56 {{/ newSale}} 58 {{/ newSale}}
@@ -3532,7 +3532,7 @@ slide = new Slide({ @@ -3532,7 +3532,7 @@ slide = new Slide({
3532 loop: false, 3532 loop: false,
3533 auto: false, 3533 auto: false,
3534 timeout: 2, 3534 timeout: 2,
3535 - index: 1 3535 + index: 0
3536 }); 3536 });
3537 3537
3538 slide.on('change', function(data) { 3538 slide.on('change', function(data) {
@@ -4931,10 +4931,20 @@ exports.init = function(page) { @@ -4931,10 +4931,20 @@ exports.init = function(page) {
4931 $('#agree-terms').click(function() { 4931 $('#agree-terms').click(function() {
4932 if ($(this).attr('notchecked')) { 4932 if ($(this).attr('notchecked')) {
4933 $(this).removeAttr('notchecked'); 4933 $(this).removeAttr('notchecked');
  4934 + $registerBtn.addClass('disable').attr('disabled', 'true');
4934 } else { 4935 } else {
4935 $(this).attr('notchecked', 'true'); 4936 $(this).attr('notchecked', 'true');
  4937 + $registerBtn.removeClass('disable').removeAttr('disabled');
4936 } 4938 }
  4939 + });
  4940 +
  4941 + // 按回车键提交
  4942 + $registerPage.on('keydown', function(e) {
  4943 + var key = e.which;
4937 4944
  4945 + if (key === 13) {
  4946 + $registerBtn.click();
  4947 + }
4938 }); 4948 });
4939 4949
4940 $registerPage.find('.va').keyup(function() { 4950 $registerPage.find('.va').keyup(function() {
@@ -5041,7 +5051,6 @@ exports.init = function(page) { @@ -5041,7 +5051,6 @@ exports.init = function(page) {
5041 5051
5042 //ajax表单提交 5052 //ajax表单提交
5043 $registerBtn.click(function() { 5053 $registerBtn.click(function() {
5044 -  
5045 var url; 5054 var url;
5046 5055
5047 if (page === 'reg') { 5056 if (page === 'reg') {
@@ -5111,7 +5120,8 @@ exports.init = function(page) { @@ -5111,7 +5120,8 @@ exports.init = function(page) {
5111 5120
5112 $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime()); 5121 $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime());
5113 }); 5122 });
5114 -}; 5123 +};
  5124 +
5115 }); 5125 });
5116 define("js/passport/mail-phone-regx", [], function(require, exports, module){ 5126 define("js/passport/mail-phone-regx", [], function(require, exports, module){
5117 /** 5127 /**
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
@@ -1424,6 +1424,10 @@ function actionVipInfo(_data) { @@ -1424,6 +1424,10 @@ function actionVipInfo(_data) {
1424 if (typeof vipInfo === undefined || vipInfo.length < 1) { 1424 if (typeof vipInfo === undefined || vipInfo.length < 1) {
1425 return false; 1425 return false;
1426 } 1426 }
  1427 + if (vipInfo.vip.curVipInfo.curLevel === '3') {
  1428 + vipInfo.vip3 = true;
  1429 + }
  1430 +
1427 $('#myYohoBox').mouseenter(function() { 1431 $('#myYohoBox').mouseenter(function() {
1428 $(this).addClass('acttags'); 1432 $(this).addClass('acttags');
1429 $('#myYohoBox .myyoho-info').show().html(vipInfoCombine(vipInfo)); 1433 $('#myYohoBox .myyoho-info').show().html(vipInfoCombine(vipInfo));
@@ -422,10 +422,20 @@ exports.init = function(page) { @@ -422,10 +422,20 @@ exports.init = function(page) {
422 $('#agree-terms').click(function() { 422 $('#agree-terms').click(function() {
423 if ($(this).attr('notchecked')) { 423 if ($(this).attr('notchecked')) {
424 $(this).removeAttr('notchecked'); 424 $(this).removeAttr('notchecked');
  425 + $registerBtn.addClass('disable').attr('disabled', 'true');
425 } else { 426 } else {
426 $(this).attr('notchecked', 'true'); 427 $(this).attr('notchecked', 'true');
  428 + $registerBtn.removeClass('disable').removeAttr('disabled');
427 } 429 }
  430 + });
  431 +
  432 + // 按回车键提交
  433 + $registerPage.on('keydown', function(e) {
  434 + var key = e.which;
428 435
  436 + if (key === 13) {
  437 + $registerBtn.click();
  438 + }
429 }); 439 });
430 440
431 $registerPage.find('.va').keyup(function() { 441 $registerPage.find('.va').keyup(function() {
@@ -532,7 +542,6 @@ exports.init = function(page) { @@ -532,7 +542,6 @@ exports.init = function(page) {
532 542
533 //ajax表单提交 543 //ajax表单提交
534 $registerBtn.click(function() { 544 $registerBtn.click(function() {
535 -  
536 var url; 545 var url;
537 546
538 if (page === 'reg') { 547 if (page === 'reg') {
@@ -602,4 +611,4 @@ exports.init = function(page) { @@ -602,4 +611,4 @@ exports.init = function(page) {
602 611
603 $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime()); 612 $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime());
604 }); 613 });
605 -};  
  614 +};
@@ -382,16 +382,16 @@ @@ -382,16 +382,16 @@
382 } 382 }
383 } 383 }
384 .gobuyboys { 384 .gobuyboys {
385 - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0M1MUU5Nzc5NEUwMTFFNThDRDY4NERDMEY4MjRFMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0M1MUU5Nzg5NEUwMTFFNThDRDY4NERDMEY4MjRFMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQzUxRTk3NTk0RTAxMUU1OENENjg0REMwRjgyNEUyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQzUxRTk3Njk0RTAxMUU1OENENjg0REMwRjgyNEUyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Po+gT6YAAAG8SURBVHjatJY9S8NAGMdzF5u7hCR9gVJRhw4u4gdQ4lTERTfBUR1d/Sq6iN/AvYPg4ujipA6CL1EKpVVpEvqSxJrEiLW9NElL7eW/hMsd9+Pu+T/3PGBNUTyPCWsxmys+ao1XhpKgFzNhWGaZoSiIWbYbCfq0l6iCLMfh/C/I8/wtOdF13BmaoP5mMuY33k2z9jf+udJ5UTyb+iQA1CrN5iFQFIX87zEJyIcxMHA8CN0kQK7v6wBIRpzKJKQAKIeF9SQgYBhEM0FJpVj4BUM2hIC6IbIIX4dAEocqtEEywqUQKIv5LdrxedAaVgj0rGt3VF+EXsrAqEmWYpwyGN3EgsQU90YNhPhSLCjH83u0QH589FiQqusXVPKHeNJg3CIWTB+nNEL3Y0Fzong8ra0/THO5Px4qEyEV0+mDySGgqhp6ObLwxenFME5/H1ysdl0nkxfEbT/XLsk1C5J0olnWrn9V59VWaycSPu5EvcLluUSvRHZIBUG4qnc6qwM7o7pu27Mjy8SowkVKs8y+K/3yvxJoamy7MLYeTWDbpzh3AgCYf4MkjtPIMlJrtzcH8ZH3ybV+Q3MUtce3AAMAyqGI3gJgP0oAAAAASUVORK5CYII=') !important; 385 + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MUFFQTNDNEExRjA1MTFFNUIwODc4NTUzNUJFODJCMjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MUFFQTNDNEIxRjA1MTFFNUIwODc4NTUzNUJFODJCMjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxQUVBM0M0ODFGMDUxMUU1QjA4Nzg1NTM1QkU4MkIyNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxQUVBM0M0OTFGMDUxMUU1QjA4Nzg1NTM1QkU4MkIyNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pj44ndIAAAF7SURBVHjavJa7SsRAFEBn11gpov8gCCIKIijYrVjZCYmNFjYidn6BrSCWFoKdjQTsLKw0bHwh2gi+BTu30TWFK+j6OgMTiEOM0Z3shUPmzoQ5ZF6ZnG3ba0KIMfE9zqAH3sQv4bquSBN5GI2p74RuYTCkaAa24Fxr6zctWoEhGNfaBkyKcsxRWG6AMrSo/AaGDThemMeSFal4Bx9GVN4Otya+xnGchbxWVxTZxGy9RA+66AgqGYg8XSQ36F49RFkN306cyDMsuYfTONGhXPsGRUX20Wec6BUODIr88AgSGQ+flyTyDUkCOEkS7UPVgGiX+flIEj2rRWFk2JJEpuZpO41oCa5qkKwybMdhYiW8WIIOaP2HpIqkov9h06ycQN0jBtVmDusCOpTPJihAm8x1SVqRjEW5gmBDnYVW5KfWxeMC1uGSvPDTnSFNTEXKfdAbySegWZUbYbIWUVnLH7VDM+ndP4mm4Q6eYA6uI23LsKk2uDwj5+M6+BJgAFPmZONXOE3uAAAAAElFTkSuQmCC') !important;
386 } 386 }
387 .gobuygirls { 387 .gobuygirls {
388 - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTQ0MEE0NEI5NEUwMTFFNUJCM0NDNjJEQzcwRjYzRjUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTQ0MEE0NEM5NEUwMTFFNUJCM0NDNjJEQzcwRjYzRjUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBNDQwQTQ0OTk0RTAxMUU1QkIzQ0M2MkRDNzBGNjNGNSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBNDQwQTQ0QTk0RTAxMUU1QkIzQ0M2MkRDNzBGNjNGNSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsQbj+AAAAJiSURBVHjaYrxSPf2hNq+4HAMSePHz88/D7x4KhErq/GCgEmDS4BGVQxeUYOdl52JiDWKgImA69O7Borvf3r1/+fPLT2QJHhY2X6pa5CisFK/MJSR05sPTJGQJIVZOU2paxAJjfPv3e833v7+XcDKzMoKDj4NXbuOLazaUWvCP4f+XQAntC4z/O9bBBW9+efNSnUdEjIHK4PSHJ6eYkAXe/Pp6hoEGwIhf2gzFog9/fqynhUVf//76h2LRN2Ac/fz3h+oWPf7+4QmKRaAM+vj7x7fUtujNr29HmdAFX/36eoHaFn3683MVhkUffn9fR01Lvvz59e/Hvz+bmDAj7vei3///US9+fnx4AYySfxgWAQW/PPn+8QMV4+cUuAjCJgksvS9Sy6KPv3+swGkRUHILNSwBZpf/3//9WYvTos9/fy34S4V4AmaV18Co+IPTIqDkG6CiT5Ra9PrX11PwagKXImD9dJlSi4BZZSVBi579/JTz6ueXX+RacvnTi3s+4hpLMOojdACqQ4AU+7rnV+VJteQvw//vwOB/hbXiwwWCJLUfguhtr26mMzMySQKLk0lAQ94hq9nw4poxNzNb+Le/v7b4S2gdwmYOSsWHp+I6YyogYwxNSV9PfHgsAmshbX55I8BNVGUdOxMLIyil7np9p8RTTK0Xo81ATFDo8UkYwdiynPzcwBZSJKLFxFMBsgTEBvqYQYaDLxtr44TIjPcXmf/n/78nMPavf3/fIMv9+v/3E9kWnfrwpAlYWvwFVor/j79/tN9fQnM3UjZIv/31zRtQsD38/uHLo+8fErCZARBgABfzGasBpkfVAAAAAElFTkSuQmCC') !important; 388 + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABfklEQVRIx73Vv0vDQBTA8e9F3UR09j8QUSiC4Cg4ud3iJOIi4uZ2m+uBODq46uJipg5ONbRWiyiC4G/BTZdaHfxBrRiHpJLG2NTm4pvevXe5Dxy5O+FqexOYojHOgGGh5AeGwgJkRH0AGDKF1KEFIAech3qjJiFRT1xtZ4CjQG9dKDmTBtQBVIAev3QDTBgwqkLJexGsuNrOApMmt8yPZStUyKeAACz+F/QQhg6BlxQgpwHyD+he6pAfaWzfbhTkGEbKwGkUdABUDUJ5oaT7AxJKvgMlg1ABvLsuKhyDkNMMKhhCnoCTZtA+UDMAFYWSn79CQslXvJ8iaTj1xGplUoLYaQVaBa4SIBtCye/3TcTNdrXd2wZSE0o23JmxUAAcA/qAnFDyLdTrx3v6j4WSt1HfW/EEuNpeAYpAFsi72u4M9AaBC2ALuHS1Pd42BMwF8hEgExhPA91+3gXMJoEqofFjIC/HzP0TNA/cAc/AklDyOtBbA7bxDngJ0FELfAHxEGiu2DHs/wAAAABJRU5ErkJggg==') !important;
389 } 389 }
390 .gobuykids { 390 .gobuykids {
391 - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REI3NTMxRkQ5NEUwMTFFNTkxQkFFMTBBNDAzMTQ3NDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REI3NTMxRkU5NEUwMTFFNTkxQkFFMTBBNDAzMTQ3NDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEQjc1MzFGQjk0RTAxMUU1OTFCQUUxMEE0MDMxNDc0OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEQjc1MzFGQzk0RTAxMUU1OTFCQUUxMEE0MDMxNDc0OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pme87CMAAAGmSURBVHjaYqy+/PM/Axbw6eB6az77wGMMVAJMuCTYtcz2MlARMP3/+werBJuwBAdVLWJkZmEE0ow/Xz/9gSzByMRMTXsYWGCMn1dOmLI7Bl9Glvx259JDSi34//PHO25tM0NGYGJAEWegEUBNDP9pZg+qRb/ev/5NF4t+XD7qQBeLqJlBUWLk318sGZYG8fTzxaMvGBb9/vTuD7Ut+nXttCyGRd8vHg2ltkV8LmEfMCzis/PbQN0I+o+nUKViPP18/eQ7Tov+fP30j2oWXTmlidOi75eP1VAtfpyCH+K0iNfSs52a8YO34qNGPP16+/wnQYu+Xjt9gVKL2ESkODDqI3QAqkNA9Jez+5aQHGK/ft3ntfSoxVrx4QI8xk4x4BLjw5vfTOyczN/OHyzmtfLqR/H99TNXOZV1tH48vvOES1lHlqTGCbojWQVEWJg5uRmBlvQBW0hW8BL/2f3P3JomWkxsHAxAS2T+fPn4lxKLUACHjuV+OFtSgQcliHj4mahm0d/PHz5SrV2HYvD3L/+Rkz2ngoYYjPv59J4ZKPF19RTW1AoQYAC04pbZt5WEpAAAAABJRU5ErkJggg==') !important; 391 + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABgUlEQVRIx73Vvy8EQRTA8e8eMo0Itf9ADMlFIlFKVDqNSkQjolNvoZpEIkqFlkaju0J1NneOixCJjd8SHc05Cj8yTlDsnuytdXvcrFe9eW92PslkZ8ayXb0OjFMbJ0C/kuINQ5ECxiLqPUCfKaQKzQJZ4DTUGzQJWdXEdnUaOAj0VpUUk0lALUAZ6PBLV8CIAUMrKW6tYMV2dQYYNbllfiymQoVcAgjA3H9Bd2FoH3hKAHJqIP+A7iQO+ZHE9m1HQY5hpAQcR0F7gDYI5ZQUH98gJcUrUDQI5cG766LCMQg59aC8IeQBOKoH7QIVA1BBSfH+I6SkeMb7KZoNp5qkGpnURGw1Ai0DF00ga0qKr/fNipttu7rzD0hFSVFzZ8ZCAXAI6AKySoqXUK8b7+k/VFJcR32fiifAdvUSUAAyQM52dWug1wucARvAue3q4T9DwHQgHwDSgfEE0O7nbcBUM1A5NL4P5KWYub+CZoAb4BGYV1JcBnorwCbeAS8CC1ELfAIRimiKicNJAQAAAABJRU5ErkJggg==') !important;
392 } 392 }
393 .gobuylifestyle { 393 .gobuylifestyle {
394 - background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkMyMjYwQzA5NEUwMTFFNUJBMTVFMTIwRDMwMTg0RUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkMyMjYwQzE5NEUwMTFFNUJBMTVFMTIwRDMwMTg0RUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQzIyNjBCRTk0RTAxMUU1QkExNUUxMjBEMzAxODRFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCQzIyNjBCRjk0RTAxMUU1QkExNUUxMjBEMzAxODRFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnnVB6UAAAInSURBVHjaYswKcP395fd3FgYkwMLIzKAkqCB4693dDwxUAkzoloDAn/9/Gf78/dXCQEXAJMUtepeDme0/yBfI4PufH75UtejZ19cqP/7+YpLjk5qKLPH19zdJaloEDzYWZrYKRgaG7P9wi76zqgjIZ1FsAyPj2zvvH6xkjPO2gYtxsbD//fbnJxMDlYEwB/9XFEN52XjeMtAAvP3xkRvFIi5Wru20sIgRCFEsYmVmy6eFRdysHH9QLAJlUE4W9v/UtggYJU8xIp6Hles9tS3iZOFczoTpTe7d1I4fFmbWWgyLgIJUjSdQlgFGyR8Mi+68v/8SVCRRMX5egYsgbJI8bFwfqeYjVs5VOC0CxtMR6sQPpGjDaREwPxVTJ7Wx/wPGzw+cFgHj6RY7M+t/KsTPa3g1gVMRK/dnyuOHaz1BiwQ4BdKYGckvyPnYuH/f//g4E6M+wgy+ByuB1EpVQUUrUi0BhvkHYPBfw1rx4QK3398/BqIV+GWW/Pv3T4adlSP59rt7d5HVqAgqxPz88yOXjZl9yd0PDyfjrWHxASFgxfXg4xMuEJuNieWOmpAyvIWkxC/Xfvf9gwpoyjGT55N2ffjpqR9Gm4EYi97/+MgFY//694fh959fvTD+x58fc5CT57vv7z2xNk6Iq/ZRlTEyMd2CBwkTyzeUIGJi/k22RTI8EvuYGBnBOV2UU/D9vQ8PO+Gpi53PC5QxocH6X5hLOBGbGQABBgAqqasbPnFSMAAAAABJRU5ErkJggg==') !important; 394 + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABf0lEQVRIx73VPUvDQBjA8X+ibiI6+w1EFIogSCbBKZuLkxEXETc/gasgjg6u5+Li1gOnGtqrFlEEwXfBTZdaHXyhVtQhqaQxNrW5+EzPPc/lfnDk7gzHtjaBKRrjFBgWUr2jKUxgMqI+AAzpQurQApADzkK9UZ2QUU8c28oAh4GeEFLNpAF1ABWgxy9dAxMajKqQ6s4IVhzbygK2zi3zY8UMFfIpIACL/wXdh6ED4DkFyG2A/AO6mzrkRxrbp6IgVzNSBk6ioH2gqhHKC6k+f0BCqjegpBEqgHfXRYWrEXKbQQVNyCNw3AzaA2oaoKKQ6uNXSEj1gvdTJA23npitTEoQO61Aa8BlAmRDSPX9vhlxsx3b6m0DqQmpGu7MWCgAjgF9QE5I9Rrq9eM9/UdCqpuo7814AhzbWgWKQBbIO7bVGegNAufAFnDh2NZ42xAwF8hHgExgPA10+3kXMJsEqoTGD4G8HDP3T9A8cAs8AUtCqqtAbx3YxjvgJWA5aoEvXQ1rTnQJKpQAAAAASUVORK5CYII=') !important;
395 } 395 }
396 .searchcatelifestyle { 396 .searchcatelifestyle {
397 .searchinput { 397 .searchinput {
@@ -761,8 +761,8 @@ @@ -761,8 +761,8 @@
761 margin-left: 23px; 761 margin-left: 23px;
762 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABc0lEQVRIx73VvS9DURjH8W+LTYTZfyBCIhLJM0pMNotJxCJi8xdYJWI0WFkstg6mumn1pxEikXiX2Fgog5dUBUNv5fa62tJzPdNznufc80lO7jknYWbrwDjVcQz0S3rDUSSBsYh6D9DnCqlAs0AaOAn1hlxCiUpiZgPAfqC3KmkyDqgFKAAdfukSGHFgFCXdJIIVM0sBoy63zI/FZKiQiQEBmPsv6C4M7QFPMUBeFeQfUMUO+RHH9m1HQZ5j5BY4ioJ2gaJDKCPp4xsk6RXIO4SyUL7rosJzCHm1oKwj5AE4rAXtACUHUE7S+4+QpGfKP0Wz4VWSZCOTmoitRqBl4LwJZE3S1/uWqDfbzDr/gJQkVd2ZdaEAaEAXkJb0Eup1U376DyRdRX2frE+AmS0BOSAFZMysNdDrBU6BDeDMzIb/DAHTgXwQGAiMJ4B2P28DppqBCqHxfSC/rTP3V9AMcA08AvOSLgK9FWCT8gHPAwtRC3wCDWxrvGA4PUcAAAAASUVORK5CYII=); 762 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABc0lEQVRIx73VvS9DURjH8W+LTYTZfyBCIhLJM0pMNotJxCJi8xdYJWI0WFkstg6mumn1pxEikXiX2Fgog5dUBUNv5fa62tJzPdNznufc80lO7jknYWbrwDjVcQz0S3rDUSSBsYh6D9DnCqlAs0AaOAn1hlxCiUpiZgPAfqC3KmkyDqgFKAAdfukSGHFgFCXdJIIVM0sBoy63zI/FZKiQiQEBmPsv6C4M7QFPMUBeFeQfUMUO+RHH9m1HQZ5j5BY4ioJ2gaJDKCPp4xsk6RXIO4SyUL7rosJzCHm1oKwj5AE4rAXtACUHUE7S+4+QpGfKP0Wz4VWSZCOTmoitRqBl4LwJZE3S1/uWqDfbzDr/gJQkVd2ZdaEAaEAXkJb0Eup1U376DyRdRX2frE+AmS0BOSAFZMysNdDrBU6BDeDMzIb/DAHTgXwQGAiMJ4B2P28DppqBCqHxfSC/rTP3V9AMcA08AvOSLgK9FWCT8gHPAwtRC3wCDWxrvGA4PUcAAAAASUVORK5CYII=);
763 background-repeat: no-repeat; 763 background-repeat: no-repeat;
764 - width: 26px;  
765 - height: 26px; 764 + width: 30px;
  765 + height: 30px;
766 position: relative; 766 position: relative;
767 cursor: pointer; 767 cursor: pointer;
768 } 768 }
@@ -479,6 +479,9 @@ @@ -479,6 +479,9 @@
479 } 479 }
480 } 480 }
481 } 481 }
  482 + .tpl-brands{
  483 + margin-top:-8px!important;
  484 + }
482 } 485 }
483 .boys,.lifestyle{ 486 .boys,.lifestyle{
484 .goods-container{ 487 .goods-container{
@@ -71,6 +71,7 @@ @@ -71,6 +71,7 @@
71 display: block; 71 display: block;
72 width: 16px; 72 width: 16px;
73 height: 16px; 73 height: 16px;
  74 + background-position: center !important;
74 } 75 }
75 } 76 }
76 77
@@ -383,7 +384,7 @@ @@ -383,7 +384,7 @@
383 384
384 .multi .checkbox { 385 .multi .checkbox {
385 display: block; 386 display: block;
386 - color: #ccc; 387 + color: #444;
387 font-size: 12px; 388 font-size: 12px;
388 margin-right: 3px; 389 margin-right: 3px;
389 } 390 }
@@ -51,7 +51,8 @@ @@ -51,7 +51,8 @@
51 } 51 }
52 52
53 /*990px*/ 53 /*990px*/
54 -.min-screen .product-list-page, .new-sale-page { 54 +.min-screen .product-list-page,
  55 +.min-screen .new-sale-page {
55 56
56 .list-right { 57 .list-right {
57 width: 810px; 58 width: 810px;
@@ -202,10 +202,8 @@ @@ -202,10 +202,8 @@
202 float: left; 202 float: left;
203 display: block; 203 display: block;
204 width: 110px; 204 width: 110px;
205 - height: 14px;  
206 - line-height: 14px; 205 + line-height: 20px;
207 font-size: 12px; 206 font-size: 12px;
208 - margin-bottom: 5px;  
209 color: #069; 207 color: #069;
210 text-decoration: underline; 208 text-decoration: underline;
211 } 209 }
@@ -672,6 +672,60 @@ class CouponController extends HuodongAction @@ -672,6 +672,60 @@ class CouponController extends HuodongAction
672 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr', 672 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr',
673 )); 673 ));
674 } 674 }
  675 +
  676 + /**
  677 + * Final Sale 领券活动第二波
  678 + *
  679 + * 上线时间2016/01/25
  680 + */
  681 + public function final2Action()
  682 + {
  683 + //获取登录者ID,未登录返回false
  684 + $uid = $this->getLoggedUid();
  685 + if (!$uid || !is_numeric($uid)) {
  686 + //未登录的用户访问,跳转到登录页面。并且在登陆后跳转回本页面
  687 + $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/coupon/final2')), 'default'));
  688 + }
  689 +
  690 + // 该变量用来控制和显示页面的弹出提示
  691 + $showPopupFlag = '0';
  692 +
  693 + //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
  694 + $myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
  695 + $activityId = $this->getActivityId2();
  696 + $result = ActivityData::getCouponAll($uid, $activityId);
  697 + if (isset($result['code'])) {
  698 + switch (intval($result['code'])) {
  699 + case 200: // 领取成功, 发送站内信消息
  700 + $showPopupFlag = '0';
  701 + $this->sendMessage($uid, '【优惠券】您获得618元套券', '尊敬的客户:恭喜您成功获得618元套券!您可以在个人中心查看优惠券信息。');
  702 + break;
  703 + case 201: // 已领取过, 提示重复领券
  704 + $showPopupFlag = '1';
  705 + break;
  706 + default: // 领取失败, 提示领券失败
  707 + $showPopupFlag = '2';
  708 + break;
  709 + }
  710 + }
  711 +
  712 + $this->_view->display('final-2', array(
  713 + 'staticTitle' => 'YOHO!BUY有货【Final Sale】年终热促',
  714 + 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
  715 + 'shareLink' => 'http://feature.yohobuy.com/0/0/775/index.html',
  716 + 'shareTitle' => 'YOHO!BUY有货【FINAL SALE】年终热促,新年特辑全开启!618元优惠券限时领取中!',
  717 + 'shareDesc' => '800+潮牌限时5折封顶,折上最高直减¥1000!更有新年超值礼包299元起!',
  718 + 'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png',
  719 + 'showPopupFlag' => $showPopupFlag,
  720 + 'myCouponUrl' => $myCouponUrl,
  721 + '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"}}}',
  722 + 'bannerUrl_2' => 'http://feature.yoho.cn/0125/0125APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"372"},"param":{"share_id":"372"}}}',
  723 + 'bannerUrl_3' => 'http://feature.yoho.cn/0125/0125APPHOMEKIDS/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEKIDS/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"370"},"param":{"share_id":"370"}}}',
  724 + 'bannerUrl_4' => 'http://feature.yoho.cn/0125/0125APPHOMELIFE/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMELIFE/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"368"},"param":{"share_id":"368"}}}',
  725 + 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr',
  726 + ));
  727 + }
  728 +
675 729
676 /** 730 /**
677 * 领取指定的优惠券 731 * 领取指定的优惠券
@@ -836,5 +890,25 @@ class CouponController extends HuodongAction @@ -836,5 +890,25 @@ class CouponController extends HuodongAction
836 return 89; 890 return 89;
837 } 891 }
838 } 892 }
  893 +
  894 + /**
  895 + * 根据环境来获取活动ID
  896 + *
  897 + * @return int
  898 + */
  899 + private function getActivityId2()
  900 + {
  901 + // 设置环境变量
  902 + switch (APPLICATION_ENV) {
  903 + case 'production': // 生产
  904 + return 468;
  905 + case 'preview': // 预览
  906 + return 468;
  907 + case 'testing': // 测试
  908 + case 'develop': // 开发
  909 + default:
  910 + return 483;
  911 + }
  912 + }
839 913
840 } 914 }
@@ -39,13 +39,14 @@ class ClassModel @@ -39,13 +39,14 @@ class ClassModel
39 39
40 do { 40 do {
41 $data = ClassData::getClassesData(); 41 $data = ClassData::getClassesData();
42 - if (empty($data['data'])) { 42 + if (empty($data['data']) || $data['code'] != 200) {
43 break; 43 break;
44 } 44 }
45 45
46 $genderArr = array('boy' => '1,3', 'girl' => '2,3', 'kids' => '1,2,3', 'lifestyle' => '1,2,3'); 46 $genderArr = array('boy' => '1,3', 'girl' => '2,3', 'kids' => '1,2,3', 'lifestyle' => '1,2,3');
47 $oneClass = array(); 47 $oneClass = array();
48 $item = array(); 48 $item = array();
  49 + $subitem = array();
49 foreach ($data['data'] as $k => $v) { 50 foreach ($data['data'] as $k => $v) {
50 $oneClass = array('name' => ucfirst(rtrim($k, 's')), 'ca' => array()); 51 $oneClass = array('name' => ucfirst(rtrim($k, 's')), 'ca' => array());
51 52
@@ -82,18 +83,18 @@ class ClassModel @@ -82,18 +83,18 @@ class ClassModel
82 83
83 $result[] = $oneClass; 84 $result[] = $oneClass;
84 } 85 }
  86 + } while (false);
85 87
86 - if (USE_CACHE) {  
87 - // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.  
88 - if (empty($result)) {  
89 - $result = Cache::get($key, 'slave');  
90 - }  
91 - // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存  
92 - else {  
93 - Cache::set($key, $result);  
94 - } 88 + if (USE_CACHE) {
  89 + // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
  90 + if (empty($result)) {
  91 + $result = Cache::get($key, 'slave');
95 } 92 }
96 - } while (false); 93 + // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
  94 + else {
  95 + Cache::set($key, $result);
  96 + }
  97 + }
97 98
98 return $result; 99 return $result;
99 } 100 }
@@ -51,25 +51,22 @@ class PlusstarModel @@ -51,25 +51,22 @@ class PlusstarModel
51 } 51 }
52 52
53 $result = array(); 53 $result = array();
  54 +
54 $brandList = PlusstarData::firstBrandList($gender, $channel); 55 $brandList = PlusstarData::firstBrandList($gender, $channel);
55 - if (!empty($brandList['recom']['data']['list'][0]['data'])) {  
56 - $result['ps']['star'] = self::formatData($brandList['recom']['data']['list'][0]['data'], $gender, true);  
57 - //$result['ps']['sName'] = isset($brandList['recom']['data']['brand_type_name']) ? $brandList['recom']['data']['brand_type_name'] : '';  
58 - }  
59 - if (!empty($brandList['all']['data']['list'][0]['data'])) {  
60 - $result['ps']['plus'] = self::formatData($brandList['all']['data']['list'][0]['data'], $gender, true);  
61 - //$result['ps']['pName'] = isset($brandList['all']['data']['brand_type_name']) ? $brandList['all']['data']['brand_type_name'] : ''; 56 + // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
  57 + if (empty($brandList['recom']['data']['list'][0]['data']) || empty($brandList['all']['data']['list'][0]['data'])) {
  58 + if (USE_CACHE) {
  59 + $result = Cache::get($key, 'slave');
  60 + }
  61 + return $result;
62 } 62 }
  63 +
  64 + $result['ps']['star'] = self::formatData($brandList['recom']['data']['list'][0]['data'], $gender, true);
  65 + $result['ps']['plus'] = self::formatData($brandList['all']['data']['list'][0]['data'], $gender, true);
63 66
  67 + // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
64 if (USE_CACHE) { 68 if (USE_CACHE) {
65 - // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.  
66 - if (empty($result)) {  
67 - $result = Cache::get($key, 'slave');  
68 - }  
69 - // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存  
70 - else {  
71 - Cache::set($key, $result);  
72 - } 69 + Cache::set($key, $result);
73 } 70 }
74 71
75 return $result; 72 return $result;
@@ -464,36 +464,37 @@ class UserModel @@ -464,36 +464,37 @@ class UserModel
464 public static function getCouponData($uid, $status, $page) 464 public static function getCouponData($uid, $status, $page)
465 { 465 {
466 $result = array(); 466 $result = array();
467 -  
468 - // 调用接口获取优惠券数据  
469 - $coupons = UserData::couponData($uid, $status, $page);  
470 -  
471 - // 没有获取到优惠券时  
472 - if (!$coupons) {  
473 - $result['noRecord'] = true;  
474 -  
475 - return $result;  
476 - }  
477 -  
478 - // 处理优惠券数据  
479 - if (isset($coupons['data'])) {  
480 -  
481 - // 不能再查到结果了  
482 - if ($page == 1 && $coupons['data']['total'] === 0) { 467 +
  468 + do {
  469 + // 调用接口获取优惠券数据
  470 + $coupons = UserData::couponData($uid, $status, $page);
  471 +
  472 + // 没有获取到优惠券时
  473 + if (empty($coupons)) {
483 $result['noRecord'] = true; 474 $result['noRecord'] = true;
484 - } else {  
485 - $couponArr = array();  
486 - isset($coupons['data']['info']) && $couponArr = $coupons['data']['info']; 475 + break;
  476 + }
487 477
488 - foreach ($couponArr as &$val) {  
489 - // 处理已使用的优惠券  
490 - if ($status == 1) {  
491 - $val['used'] = true;  
492 - } 478 + if ($page == 1 && isset($coupons['data']['total']) && $coupons['data']['total'] === 0) {
  479 + $result['noRecord'] = true;
  480 + break;
  481 + }
  482 +
  483 + // 判断是否有优惠券
  484 + if (empty($coupons['data']['info'])) {
  485 + break;
  486 + }
  487 +
  488 + // 处理已使用的优惠券
  489 + if ($status == 1) {
  490 + foreach ($coupons['data']['info'] as &$value) {
  491 + $value['used'] = true;
493 } 492 }
494 - !empty($couponArr) && $result['coupons'] = $couponArr;  
495 } 493 }
  494 +
  495 + $result['coupons'] = $coupons['data']['info'];
496 } 496 }
  497 + while (false);
497 498
498 return $result; 499 return $result;
499 } 500 }
@@ -51,7 +51,7 @@ class BackController extends AbstractAction @@ -51,7 +51,7 @@ class BackController extends AbstractAction
51 // 发送邮箱验证码 51 // 发送邮箱验证码
52 $result = BackData::sendCodeToEmail($email); 52 $result = BackData::sendCodeToEmail($email);
53 if ($result['code'] === 200) { 53 if ($result['code'] === 200) {
54 - $result['data'] = Helpers::url('/passport/back/resendemail', array( 54 + $result['data'] = Helpers::url('/passport/back/success', array(
55 'email' => $email, 55 'email' => $email,
56 )); 56 ));
57 } 57 }
1 <?php 1 <?php
2 use Action\WebAction; 2 use Action\WebAction;
3 use Index\HomeModel; 3 use Index\HomeModel;
  4 +use Configs\WebCacheConfig;
4 use LibModels\Web\Home\IndexData; 5 use LibModels\Web\Home\IndexData;
5 use WebPlugin\Cache; 6 use WebPlugin\Cache;
6 -use Configs\WebCacheConfig;  
7 -use Api\Yohobuy;  
8 use WebPlugin\Images; 7 use WebPlugin\Images;
9 use WebPlugin\Helpers; 8 use WebPlugin\Helpers;
10 9
@@ -16,15 +15,26 @@ class CommonController extends WebAction @@ -16,15 +15,26 @@ class CommonController extends WebAction
16 */ 15 */
17 public function getIndexResourceBrandAction() 16 public function getIndexResourceBrandAction()
18 { 17 {
19 - // 首页资源品牌,采用内存存储  
20 - $type = $this->get('type');  
21 $data = array(); 18 $data = array();
22 - if (! empty($type)) { 19 +
  20 + do {
  21 + if (!$this->isAjax()) {
  22 + break;
  23 + }
  24 +
  25 + $type = $this->get('type');
  26 + if (empty($type)) {
  27 + break;
  28 + }
  29 +
  30 + // 首页资源品牌,采用内存存储
23 $key = WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA . '_' . $type; 31 $key = WebCacheConfig::KEY_WEB_INDEX_BRANDS_LIST_DATA . '_' . $type;
24 // array('logoBrand'=>'','moreBrand'=>'') 32 // array('logoBrand'=>'','moreBrand'=>'')
25 $data = Cache::get($key); 33 $data = Cache::get($key);
26 - }  
27 - echo $this->echoJson($data); 34 + }
  35 + while (false);
  36 +
  37 + $this->echoJson($data);
28 } 38 }
29 39
30 /** 40 /**
@@ -36,7 +46,7 @@ class CommonController extends WebAction @@ -36,7 +46,7 @@ class CommonController extends WebAction
36 */ 46 */
37 public function getNewArrivalAction() 47 public function getNewArrivalAction()
38 { 48 {
39 - $result = $data = array(); 49 + $result = array();
40 do { 50 do {
41 /* 判断是不是AJAX请求 */ 51 /* 判断是不是AJAX请求 */
42 if (! $this->isAjax()) { 52 if (! $this->isAjax()) {
@@ -49,27 +59,33 @@ class CommonController extends WebAction @@ -49,27 +59,33 @@ class CommonController extends WebAction
49 HomeModel::COOKIE_NAME_LIFESTYLE 59 HomeModel::COOKIE_NAME_LIFESTYLE
50 ); 60 );
51 $channel = $this->post('type', ''); 61 $channel = $this->post('type', '');
52 - $pageIndex = intval($this->post('pageIndex', 0));  
53 - $pageCount = intval($this->post('pageCount', 8)); 62 + $pageIndex = (int) $this->post('pageIndex', 0);
  63 + $pageCount = (int) $this->post('pageCount', 8);
54 if (! in_array($channel, $channels)) { 64 if (! in_array($channel, $channels)) {
55 break; 65 break;
56 - } else {  
57 - $data = HomeModel::getNewArrival($channel);  
58 } 66 }
59 - if($pageIndex < 0) { 67 +
  68 + $data = HomeModel::getNewArrival($channel);
  69 + if (empty($data)) {
  70 + break;
  71 + }
  72 +
  73 + if ($pageIndex < 0) {
60 $pageIndex = 0; 74 $pageIndex = 0;
61 } 75 }
62 - if($pageCount < 0 || $pageCount > 50) { 76 + if ($pageCount < 0 || $pageCount > 50) {
63 $pageCount = 20; 77 $pageCount = 20;
64 } 78 }
65 - $result = array_slice($data, $pageIndex, $pageCount);  
66 - if (empty($result)) { 79 + $data = array_slice($data, $pageIndex, $pageCount);
  80 + if (empty($data)) {
67 break; 81 break;
68 } 82 }
69 $result = array( 83 $result = array(
70 'code' => 200, 84 'code' => 200,
71 - 'goods' => $result 85 + 'goods' => $data
72 ); 86 );
  87 + $data = array();
  88 +
73 } while (false); 89 } while (false);
74 90
75 $this->echoJson($result); 91 $this->echoJson($result);
@@ -70,6 +70,11 @@ class ToolsController extends WebAction @@ -70,6 +70,11 @@ class ToolsController extends WebAction
70 } 70 }
71 } 71 }
72 } 72 }
  73 +
  74 + public function logAction()
  75 + {
  76 + print_r($_SERVER);
  77 + }
73 } 78 }
74 79
75 ?> 80 ?>
@@ -247,14 +247,13 @@ class HomeModel @@ -247,14 +247,13 @@ class HomeModel
247 */ 247 */
248 public static function getNewArrival($channel) 248 public static function getNewArrival($channel)
249 { 249 {
250 - $result = array();  
251 - $key = sprintf(WebCacheConfig::KEY_WEB_HOME_CHANNEL_NEWARRIVAL_DATA.'_'.$channel); 250 + $key = WebCacheConfig::KEY_WEB_HOME_CHANNEL_NEWARRIVAL_DATA . '_' . $channel;
252 //缓存数据 251 //缓存数据
253 $result = Cache::get($key); 252 $result = Cache::get($key);
254 - if(empty($result)) { 253 + if (empty($result)) {
255 $params = array( 254 $params = array(
256 - 'order' => 's_t_desc',  
257 - 'shelve_time' => strtotime("-60 days") . ',' . time() 255 + 'order' => 's_t_desc',
  256 + 'shelve_time' => strtotime("-60 days") . ',' . time()
258 ); 257 );
259 //男首频道最新上架参数是gender=1,3 258 //男首频道最新上架参数是gender=1,3
260 if($channel == self::COOKIE_NAME_BOYS) { 259 if($channel == self::COOKIE_NAME_BOYS) {
@@ -270,9 +269,13 @@ class HomeModel @@ -270,9 +269,13 @@ class HomeModel
270 // 获取分类列表获取商品信息 269 // 获取分类列表获取商品信息
271 $goodsList = SearchData::getSearchDataBySort($params, $sortList); 270 $goodsList = SearchData::getSearchDataBySort($params, $sortList);
272 $pos = 1; 271 $pos = 1;
  272 + $val = array();
273 foreach ($goodsList as $goods) { 273 foreach ($goodsList as $goods) {
274 // 格式化数据 274 // 格式化数据
275 $val = Helpers::formatProduct($goods, true, true, true, 280, 373); 275 $val = Helpers::formatProduct($goods, true, true, true, 280, 373);
  276 + if (!$val) {
  277 + continue;
  278 + }
276 if ($val['price'] == false) { 279 if ($val['price'] == false) {
277 $val['price'] = $val['salePrice']; 280 $val['price'] = $val['salePrice'];
278 } 281 }
@@ -287,13 +290,16 @@ class HomeModel @@ -287,13 +290,16 @@ class HomeModel
287 $val['tags']['isReNew'] = false;//$val['tags']['is_advance'];暂时不显示 290 $val['tags']['isReNew'] = false;//$val['tags']['is_advance'];暂时不显示
288 unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'], 291 unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'],
289 $val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']); 292 $val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']);
290 - if (! empty($val)) {  
291 - $result[] = $val;  
292 - } 293 + $result[] = $val;
293 } 294 }
294 } 295 }
295 Cache::set($key, $result, 3600); 296 Cache::set($key, $result, 3600);
296 } 297 }
  298 + // 当一级缓存失效,并且接口异常时, 尝试从二级缓存获取数据
  299 + if (empty($result)) {
  300 + $result = Cache::get($key, 'slave');
  301 + }
  302 +
297 return $result; 303 return $result;
298 } 304 }
299 } 305 }
@@ -104,24 +104,25 @@ class HotrankModel @@ -104,24 +104,25 @@ class HotrankModel
104 $sort = $info['data']['category_id']; 104 $sort = $info['data']['category_id'];
105 } 105 }
106 } 106 }
107 - //一周热卖  
108 $config = array( 107 $config = array(
109 'sort' => $sort, 108 'sort' => $sort,
110 'gender' => $data['gender'], 109 'gender' => $data['gender'],
111 'road' => $data['road']); 110 'road' => $data['road']);
112 $list = self::getSearchData($config, $page, 1); 111 $list = self::getSearchData($config, $page, 1);
113 - $lister = $list['hotWeek']['list'];  
114 - $lister = array_values($lister);  
115 - if ($sid == 1 && $page == 1) {  
116 - $lister = array_slice($lister, 10, 50);  
117 - }  
118 - else {  
119 - $lister = array_slice($lister, 0, 50); 112 + if (!empty($list)) {
  113 + $lister = $list['hotWeek']['list'];
  114 + $lister = array_values($lister);
  115 + if ($sid == 1 && $page == 1) {
  116 + $lister = array_slice($lister, 10, 50); //排除十个“人气单品”的商品
  117 + }
  118 + else {
  119 + $lister = array_slice($lister, 0, 50);
  120 + }
  121 + $data = array(
  122 + 'code' => 200,
  123 + 'data' => $lister,);
  124 + return $data;
120 } 125 }
121 - $data = array(  
122 - 'code' => 200,  
123 - 'data' => $lister,);  
124 - return $data;  
125 } 126 }
126 127
127 /** 128 /**
@@ -147,10 +148,9 @@ class HotrankModel @@ -147,10 +148,9 @@ class HotrankModel
147 public static function getSearchData($config, $page, $ajax) 148 public static function getSearchData($config, $page, $ajax)
148 { 149 {
149 //配置查询商品参数 150 //配置查询商品参数
150 - $viewNum = 60;  
151 $param = array( 151 $param = array(
152 'order' => 's_n_desc', 152 'order' => 's_n_desc',
153 - 'viewNum' => $viewNum, 153 + 'viewNum' => 60,
154 'page' => $page, 154 'page' => $page,
155 'stocknumber' => 1, 155 'stocknumber' => 1,
156 'status' => 1, 156 'status' => 1,
@@ -171,6 +171,7 @@ class HotrankModel @@ -171,6 +171,7 @@ class HotrankModel
171 } 171 }
172 //根据给定查询数据搜索数据列表 172 //根据给定查询数据搜索数据列表
173 $result = SearchData::searchElasticByCondition($param); 173 $result = SearchData::searchElasticByCondition($param);
  174 + //人气单品,一周热卖数据处理
174 $data = self::getProductList($result, $page, $ajax); 175 $data = self::getProductList($result, $page, $ajax);
175 return $data; 176 return $data;
176 } 177 }
@@ -203,60 +204,59 @@ class HotrankModel @@ -203,60 +204,59 @@ class HotrankModel
203 public static function getProductList($result, $page, $ajax = 0) 204 public static function getProductList($result, $page, $ajax = 0)
204 { 205 {
205 $product = array(); 206 $product = array();
206 - $url = Helpers::url('/product/pro', '', 'item');  
207 - if (empty($result) || empty($result['data']) || empty($result['data']['product_list'])) {  
208 - return $product;  
209 - }  
210 - $data = $result['data']['product_list'];  
211 - $popular = array();  
212 - $hotWeek = array();  
213 - foreach ($data as $key => $val) {  
214 - if (empty($val['goods_list'])) {  
215 - continue;  
216 - }  
217 - //$defaultGoodsId = 0;  
218 - foreach ($val['goods_list'] as $v) {  
219 - if ($v['is_default'] == 'Y') {  
220 - $defaultGoodsId = empty($v['goods_id']) ? $val['goods_list'][0]['goods_id'] : $v['goods_id']; 207 + if (isset($result) && isset($result['data']) && isset($result['data']['product_list'])) {
  208 + $data = array(
  209 + 'popular' => array(
  210 + 'name' => '人气单品',
  211 + 'list' => array(),
  212 + ),
  213 + 'hotWeek' => array(
  214 + 'name' => '一周热卖',
  215 + 'list' => array(),
  216 + )
  217 + );
  218 + $url = Helpers::url('/product/pro', '', 'item');
  219 + foreach ($result['data']['product_list'] as $key => $val) {
  220 + if (empty($val['goods_list'])) {
  221 + continue;
221 } 222 }
222 - }  
223 - $product_id = empty($val['product_id']) ? '' : $val['product_id'];  
224 - if ($key <= 9 && $page == 1 && $ajax == 0) {  
225 - //人气单品  
226 - $product['rank'] = $key + 1;  
227 - $product['title'] = $val['product_name'];  
228 - $product['href'] = $url . '_' . $product_id . '_' . $defaultGoodsId . '.html';  
229 - $product['price'] = (int) $val['market_price'] == (int) $val['sales_price'] ? '' : $val['market_price'];  
230 - $product['sPrice'] = empty($val['sales_price']) ? '' : $val['sales_price'];  
231 - if ($key <= 5) {  
232 - //6张大图  
233 - $product['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 378, 504, 2);  
234 - $popular['list'][] = $product; 223 + //配置商品图片超链接路径
  224 + $defaultGoodsId = 0;
  225 + foreach ($val['goods_list'] as $v) {
  226 + if ($v['is_default'] == 'Y') {
  227 + $defaultGoodsId = empty($v['goods_id']) ? $val['goods_list'][0]['goods_id'] : $v['goods_id'];
  228 + }
  229 + }
  230 + $product_id = empty($val['product_id']) ? '' : $val['product_id'];
  231 + if ($key <= 9 && $page == 1 && $ajax == 0) {
  232 + //人气单品
  233 + $product['rank'] = $key + 1;
  234 + $product['title'] = $val['product_name'];
  235 + $product['href'] = $url . '_' . $product_id . '_' . $defaultGoodsId . '.html';
  236 + $product['price'] = (int) $val['market_price'] == (int) $val['sales_price'] ? false : $val['market_price'];
  237 + $product['sPrice'] = empty($val['sales_price']) ? false : $val['sales_price'];
  238 + if ($key <= 5) {
  239 + //6张大图
  240 + $product['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 378, 504, 2);
  241 + $data['popular']['list'][] = $product;
  242 + }
  243 + else {
  244 + //4张小图
  245 + $product['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2);
  246 + $data['popular']['list'][] = $product;
  247 + }
235 } 248 }
236 else { 249 else {
237 - //4张小图  
238 - $product['img'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2);  
239 - $popular['list'][] = $product; 250 + //一周热卖
  251 + $product['name'] = $val['product_name'];
  252 + $product['url'] = $url . '_' . $product_id . '_' . $defaultGoodsId . '.html';
  253 + $product['marketPrice'] = (int) $val['market_price'] == (int) $val['sales_price'] ? false : $val['market_price'];
  254 + $product['salePrice'] = empty($val['sales_price']) ? false : $val['sales_price'];
  255 + $product['thumb'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2);
  256 + $data['hotWeek']['list'][] = $product;
240 } 257 }
241 } 258 }
242 - else {  
243 - //一周热卖  
244 - $product['name'] = $val['product_name'];  
245 - $product['url'] = $url . '_' . $product_id . '_' . $defaultGoodsId . '.html';  
246 - $product['marketPrice'] = (int) $val['market_price'] == (int) $val['sales_price'] ? '' : $val['market_price'];  
247 - $product['salePrice'] = empty($val['sales_price']) ? '' : $val['sales_price'];  
248 - $product['rank'] = '';  
249 - $product['thumb'] = empty($val['default_images']) ? '' : Images::getImageUrl($val['default_images'], 280, 373, 2);  
250 - $hot[] = $product;  
251 - }  
252 } 259 }
253 - $popular['name'] = '人气单品';  
254 - $hotWeek = array(  
255 - 'name' => '一周热卖',  
256 - 'list' => $hot,  
257 - );  
258 - $data['popular'] = $popular;  
259 - $data['hotWeek'] = $hotWeek;  
260 return $data; 260 return $data;
261 } 261 }
262 262
@@ -21,7 +21,7 @@ class NewModel @@ -21,7 +21,7 @@ class NewModel
21 // 组合搜索商品url 21 // 组合搜索商品url
22 $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); 22 $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']);
23 // 组合搜索分类url 23 // 组合搜索分类url
24 - $urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); 24 + $urlList['sort'] = SearchData::getClassesUrl();
25 // 组合搜索最新上架url 25 // 组合搜索最新上架url
26 $urlList['recent'] = SearchData::getRecentShelveUrl($searchCondition['condition']); 26 $urlList['recent'] = SearchData::getRecentShelveUrl($searchCondition['condition']);
27 27
@@ -148,6 +148,7 @@ class IndexController extends WebAction @@ -148,6 +148,7 @@ class IndexController extends WebAction
148 //获取频道 148 //获取频道
149 $channel = HotrankModel::getChannelResource(); 149 $channel = HotrankModel::getChannelResource();
150 $this->setWebNavHeader($channel['channel']); 150 $this->setWebNavHeader($channel['channel']);
  151 + $this->setTitle('热销排行|YOHO!BUY有货');
151 $page = $this->get('page', 1); 152 $page = $this->get('page', 1);
152 $sort = $this->get('sid', 1); 153 $sort = $this->get('sid', 1);
153 $data = array('hotrankPage' => true, 154 $data = array('hotrankPage' => true,
1 -;woman首页  
2 -routes.girlindex.type = "rewrite"  
3 -routes.girlindex.match = "/woman"  
4 -routes.girlindex.route.module = Index  
5 -routes.girlindex.route.controller = Girls  
6 -routes.girlindex.route.action = index  
7 -  
8 -;验证码  
9 -routes.passportimage.type = "rewrite"  
10 -routes.passportimage.match = "/passport/images"  
11 -routes.passportimage.route.module = Passport  
12 -routes.passportimage.route.controller = Images  
13 -routes.passportimage.route.action = index  
14 -  
15 -; 登录页  
16 -routes.login.type = "rewrite"  
17 -routes.login.match = "/signin.html"  
18 -routes.login.route.module = Passport  
19 -routes.login.route.controller = Login  
20 -routes.login.route.action = Index  
21 -  
22 -; 登录退出页  
23 -routes.logout.type = "rewrite"  
24 -routes.logout.match = "/logout.html"  
25 -routes.logout.route.module = Passport  
26 -routes.logout.route.controller = Login  
27 -routes.logout.route.action = Out  
28 -  
29 -; 注册页  
30 -routes.reg.type = "rewrite"  
31 -routes.reg.match = "/reg.html"  
32 -routes.reg.route.module = Passport  
33 -routes.reg.route.controller = Register 1 +;默认首页
  2 +routes.index.type = "rewrite"
  3 +routes.index.match = "/index.html"
  4 +routes.index.route.module = Index
  5 +routes.index.route.controller = Index
  6 +routes.index.route.action = Index
  7 +
  8 +;woman首页
  9 +routes.girlindex.type = "rewrite"
  10 +routes.girlindex.match = "/woman"
  11 +routes.girlindex.route.module = Index
  12 +routes.girlindex.route.controller = Girls
  13 +routes.girlindex.route.action = index
  14 +
  15 +;验证码
  16 +routes.passportimage.type = "rewrite"
  17 +routes.passportimage.match = "/passport/images"
  18 +routes.passportimage.route.module = Passport
  19 +routes.passportimage.route.controller = Images
  20 +routes.passportimage.route.action = index
  21 +
  22 +; 登录页
  23 +routes.login.type = "rewrite"
  24 +routes.login.match = "/signin.html"
  25 +routes.login.route.module = Passport
  26 +routes.login.route.controller = Login
  27 +routes.login.route.action = Index
  28 +
  29 +; 登录退出页
  30 +routes.logout.type = "rewrite"
  31 +routes.logout.match = "/logout.html"
  32 +routes.logout.route.module = Passport
  33 +routes.logout.route.controller = Login
  34 +routes.logout.route.action = Out
  35 +
  36 +; 注册页
  37 +routes.reg.type = "rewrite"
  38 +routes.reg.match = "/reg.html"
  39 +routes.reg.route.module = Passport
  40 +routes.reg.route.controller = Register
34 routes.reg.route.action = Index 41 routes.reg.route.action = Index