Authored by hf

Merge branch 'develop/wap' into beta/wap

Showing 51 changed files with 2373 additions and 25 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 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/160219/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/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/160219/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="12311"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12312"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/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/160219/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="12313"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12314"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/12.jpg">
  87 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1')), ENT_QUOTES, 'UTF-8').'"></a>
  88 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_2')), 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/160219/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="12315"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12316"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/14.jpg">
  98 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_3')), ENT_QUOTES, 'UTF-8').'"></a>
  99 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), 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/160219/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="12317"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12318"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/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/160219/16.jpg">
  109 + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_5')), ENT_QUOTES, 'UTF-8').'"></a>
  110 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_6')), ENT_QUOTES, 'UTF-8').'"></a>
  111 + </div>
  112 + <div class="img-box">
  113 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/17.jpg">
  114 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12319"></span>
  115 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="12320"></span>
  116 + </div>
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/line-1.jpg">
  118 +
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/24-1.jpg">
  120 + <div class="img-box">
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/24-2.jpg">
  122 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  123 + </div>
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/24-3.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/line-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/25-1.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/25-2.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/25-3.jpg">
  129 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/26.jpg">
  130 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160219/27.jpg">
  131 + </div>
  132 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  133 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  134 +</body>
  135 +</html>';
  136 +}
  137 +?>
  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/160301/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18881"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18883"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18885"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18887"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18895"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18889"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18893"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18891"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_7')), ENT_QUOTES, 'UTF-8').'"></a>
  111 + </div>
  112 + <div class="img-box">
  113 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/17.jpg">
  114 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18897"></span>
  115 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18899"></span>
  116 + </div>
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  118 +
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-1.jpg">
  120 + <div class="img-box">
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-2.jpg">
  122 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  123 + </div>
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-3.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-1.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-2.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-3.jpg">
  129 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/26.jpg">
  130 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/27.jpg">
  131 + </div>
  132 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  133 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  134 +</body>
  135 +</html>';
  136 +}
  137 +?>
  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/160301/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18881"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18883"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18885"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18887"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18895"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18889"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18893"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18891"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_7')), ENT_QUOTES, 'UTF-8').'"></a>
  111 + </div>
  112 + <div class="img-box">
  113 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/17.jpg">
  114 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18897"></span>
  115 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18899"></span>
  116 + </div>
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  118 +
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-1.jpg">
  120 + <div class="img-box">
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-2.jpg">
  122 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  123 + </div>
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-3.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-1.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-2.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-3.jpg">
  129 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/26.jpg">
  130 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/27.jpg">
  131 + </div>
  132 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  133 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  134 +</body>
  135 +</html>';
  136 +}
  137 +?>
  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/160301/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18881"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18883"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18885"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18887"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18895"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18889"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18893"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18891"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_7')), ENT_QUOTES, 'UTF-8').'"></a>
  111 + </div>
  112 + <div class="img-box">
  113 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/17.jpg">
  114 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18897"></span>
  115 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18899"></span>
  116 + </div>
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  118 +
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-1.jpg">
  120 + <div class="img-box">
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-2.jpg">
  122 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  123 + </div>
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-3.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-1.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-2.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-3.jpg">
  129 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/26.jpg">
  130 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/27.jpg">
  131 + </div>
  132 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  133 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  134 +</body>
  135 +</html>';
  136 +}
  137 +?>
  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/160301/01.jpg">
  48 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/02.jpg">
  49 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/03.jpg">
  50 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  51 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/04.jpg">
  52 + <div class="img-box">
  53 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/05.jpg">
  54 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>
  55 + </div>
  56 + <div class="img-box">
  57 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/line-2.jpg">
  61 +
  62 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18881"></span>
  71 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18883"></span>
  72 + </div>
  73 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18885"></span>
  82 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18887"></span>
  83 + </div>
  84 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18895"></span>
  93 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18889"></span>
  94 + </div>
  95 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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/160301/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="18893"></span>
  104 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18891"></span>
  105 + </div>
  106 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/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/160301/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 + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_7')), ENT_QUOTES, 'UTF-8').'"></a>
  111 + </div>
  112 + <div class="img-box">
  113 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/17.jpg">
  114 + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18897"></span>
  115 + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="18899"></span>
  116 + </div>
  117 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-1.jpg">
  118 +
  119 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-1.jpg">
  120 + <div class="img-box">
  121 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-2.jpg">
  122 + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>
  123 + </div>
  124 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/24-3.jpg">
  125 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/line-2.jpg">
  126 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-1.jpg">
  127 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-2.jpg">
  128 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/25-3.jpg">
  129 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/26.jpg">
  130 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160301/27.jpg">
  131 + </div>
  132 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>
  133 + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>
  134 +</body>
  135 +</html>';
  136 +}
  137 +?>
  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="format-detection" content="telephone=no">
  31 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
  32 + <meta name="apple-mobile-web-app-capable" content="yes">
  33 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  34 + <script type="text/javascript">
  35 + (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
  36 + </script>
  37 + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/css/style.css">
  38 +</head>
  39 +<body>
  40 +'.' <div class="main-wrap home">
  41 + <div class="header"></div>
  42 + <a class="coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('couponUrl')), ENT_QUOTES, 'UTF-8').'"></a>
  43 + <div class="share">
  44 + 快去分享给小伙伴吧 <span class="arrow"></span>
  45 + </div>
  46 + <a class="banner" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','url')), ENT_QUOTES, 'UTF-8').'">
  47 + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','img')), ENT_QUOTES, 'UTF-8').'">
  48 + </a>
  49 + <div class="download">
  50 + <a class="weixin" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('weixinUrl')), ENT_QUOTES, 'UTF-8').'">
  51 + 关注有货微信 <span class="arrow"></span>
  52 + </a>
  53 + <a class="app" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl')), ENT_QUOTES, 'UTF-8').'">
  54 + 下载YOHO!BUY有货APP <span class="arrow"></span>
  55 + </a>
  56 + </div>
  57 + <div class="footer">
  58 + </div>
  59 + </div>
  60 + <div class="mask hide">
  61 + <div class="pengyouquan">
  62 + </div>
  63 + <div class="arrow">
  64 + </div>
  65 + <p>
  66 + 点击右上角<br>
  67 + 微信分享至朋友圈
  68 + </p>
  69 + </div>
  70 + <div class="tip-wrap hide">
  71 + <div class="tip hide fail">
  72 + <div class="title">
  73 + 领取失败<br>
  74 + 请刷新重新领取
  75 + </div>
  76 + <div class="desc">
  77 + 如多次领取失败,请联系客服人员<br>
  78 + 带来不便敬请谅解
  79 + </div>
  80 + <a class="button" href="">
  81 + 刷新
  82 + </a>
  83 + </div>
  84 + </div>
  85 +
  86 + <div class="tip-wrap hide">
  87 + <div class="tip hide geted">
  88 + <div class="title">
  89 + 你已领取过优惠券
  90 + </div>
  91 + <div class="sub-title">
  92 + 快去分享给更多<br>
  93 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  94 + </div>
  95 + <a class="button close" href="">
  96 + 返回
  97 + </a>
  98 + </div>
  99 + </div>
  100 +
  101 +'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">
  102 +';}).''.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">
  103 +<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">
  104 +<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">
  105 +<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">
  106 +<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
  107 +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/libs.js"></script>
  108 +'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>
  109 +';}).'</body>
  110 +'.'';
  111 +}
  112 +?>
  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>'.Plugin\LCRun3::debug('[staticTitle]', 'encq', $cx, Plugin\LCRun3::debug('[staticTitle]', 'v', $cx, $in, array('staticTitle'))).'</title>
  30 + <link rel="stylesheet" href="'.Plugin\LCRun3::debug('[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('[staticFile]', 'v', $cx, $in, array('staticFile'))).'/css/style.css">
  31 +</head>
  32 +<body>
  33 + <div class="main-wrap home">
  34 + <div class="header"></div>
  35 + <div class="coupon">
  36 + </div>
  37 + <a class="go" href="'.Plugin\LCRun3::debug('[couponUrl]', 'encq', $cx, Plugin\LCRun3::debug('[couponUrl]', 'v', $cx, $in, array('couponUrl'))).'">
  38 + 去看看 <span class="arrow"></span>
  39 + </a>
  40 + <div class="share">
  41 + </div>
  42 + <a class="banner" href="'.Plugin\LCRun3::debug('[banner].[url]', 'encq', $cx, Plugin\LCRun3::debug('[banner].[url]', 'v', $cx, $in, array('banner','url'))).'">
  43 + <img src="'.Plugin\LCRun3::debug('[banner].[img]', 'encq', $cx, Plugin\LCRun3::debug('[banner].[img]', 'v', $cx, $in, array('banner','img'))).'">
  44 + </a>
  45 + <div class="footer">
  46 + </div>
  47 + </div>
  48 + <div class="tip hide fail">
  49 + <div class="title">
  50 + 领取失败<br>
  51 + 请刷新重新领取
  52 + </div>
  53 + <div class="desc">
  54 + 如多次领取失败,请联系客服人员<br>
  55 + 带来不便敬请谅解
  56 + </div>
  57 + <a class="button" href="">
  58 + 刷新
  59 + </a>
  60 + </div>
  61 + <div class="tip hide geted">
  62 + <div class="title">
  63 + 你已领取过优惠券
  64 + </div>
  65 + <div class="sub-title">
  66 + 快去分享给更多<br>
  67 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  68 + </div>
  69 + <a class="button close" href="">
  70 + 返回
  71 + </a>
  72 + </div>
  73 +<script type="text/javascript" src="'.Plugin\LCRun3::debug('[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('[staticFile]', 'v', $cx, $in, array('staticFile'))).'/js/libs.js"></script>
  74 +'.Plugin\LCRun3::debug('[staticJS]', 'sec', $cx, Plugin\LCRun3::debug('[staticJS]', 'v', $cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.Plugin\LCRun3::debug('../[staticFile]', 'encq', $cx, Plugin\LCRun3::debug('../[staticFile]', 'v', $cx, $cx['scopes'][count($cx['scopes'])-1], array('staticFile'))).'/js/'.Plugin\LCRun3::debug('this', 'encq', $cx, $in).'"></script>
  75 +';}).'</body>
  76 +';
  77 +}
  78 +?>
  1 +<?php
  2 +
  3 +/**
  4 + * 所有Controller控制器的基类
  5 + *
  6 + * @name HuodongAction
  7 + * @package library
  8 + * @copyright yoho.inc
  9 + * @version 1.0 (2015-11-27 14:40:21)
  10 + * @author fei.hong <fei.hong@yoho.cn>
  11 + */
  12 +
  13 +namespace Action;
  14 +
  15 +use Yaf\Controller_Abstract;
  16 +use Yaf\Dispatcher;
  17 +use Yaf\Application;
  18 +use Plugin\Cache;
  19 +use Hood\Session;
  20 +use WebPlugin\Mobile;
  21 +
  22 +class HuodongWebAction extends Controller_Abstract
  23 +{
  24 +
  25 + /**
  26 + * HTTP请求对象
  27 + *
  28 + * @var object
  29 + */
  30 + protected $_request;
  31 +
  32 + /**
  33 + * 用户相关信息
  34 + */
  35 + protected $_uid = 0;
  36 + protected $_uname = '';
  37 +
  38 + /**
  39 + * 存放模板数据
  40 + *
  41 + * @var array
  42 + */
  43 + protected $_data;
  44 +
  45 + /**
  46 + * 是否是APP访问
  47 + *
  48 + * @var bool
  49 + */
  50 + protected $_isApp;
  51 +
  52 + /**
  53 + * 初始化
  54 + */
  55 + public function init()
  56 + {
  57 + if (!$this->isAjax() && Mobile::isMobile()) {
  58 + header("HTTP/1.1 301 Moved Permanently");
  59 + header('Location:http://huodong.m.yohobuy.com'.$_SERVER['REQUEST_URI']);
  60 + exit();
  61 + }
  62 +
  63 + $this->_request = $this->getRequest();
  64 +
  65 + $config = Application::app()->getConfig()->get('application');
  66 + if (isset($config->js->url)) {
  67 + $this->_view->assign('jsUrl', $config->js->url);
  68 + }
  69 + if (isset($config->css->url)) {
  70 + $this->_view->assign('cssUrl', $config->css->url);
  71 + }
  72 + if (isset($config->css->url)) {
  73 + $this->_view->assign('imgUrl', $config->img->url);
  74 + }
  75 +
  76 + $this->_isApp = (null !== $this->get('app_version') || null !== $this->get('uid'));
  77 + }
  78 +
  79 + /**
  80 + * 封装一下获取get参数
  81 + *
  82 + * @param String $key
  83 + * @param mixed $default
  84 + * @return mixed
  85 + */
  86 + protected function get($key = null, $default = null)
  87 + {
  88 + if (null === $key) {
  89 + return $_GET;
  90 + }
  91 + return $this->_request->getQuery($key, $default);
  92 + }
  93 +
  94 + /**
  95 + * 封装一下获取post参数
  96 + *
  97 + * @param String $key
  98 + * @param mixed $default
  99 + * @return mixed
  100 + */
  101 + protected function post($key = null, $default = null)
  102 + {
  103 + if (null === $key) {
  104 + return $_POST;
  105 + }
  106 + return $this->_request->getPost($key, $default);
  107 + }
  108 +
  109 + /**
  110 + * 封装一下获取YAF内部的参数
  111 + *
  112 + * @param String $key
  113 + * @param mixed $default
  114 + * @return mixed
  115 + */
  116 + protected function param($key, $default = null)
  117 + {
  118 + return $this->_request->getParam($key, $default);
  119 + }
  120 +
  121 + /**
  122 + * 封装一下获取服务器的参数
  123 + *
  124 + * @param String $key
  125 + * @param mixed $default
  126 + * @return mixed
  127 + */
  128 + protected function server($key, $default = null)
  129 + {
  130 + return $this->_request->getServer($key, $default);
  131 + }
  132 +
  133 + /**
  134 + * 关闭模板自动渲染
  135 + *
  136 + * @return void
  137 + */
  138 + protected function disableView()
  139 + {
  140 + Dispatcher::getInstance()->autoRender(false);
  141 + }
  142 +
  143 + /**
  144 + * 输出JSON数据到浏览器
  145 + *
  146 + * @return void
  147 + */
  148 + protected function echoJson($json)
  149 + {
  150 + headers_sent() || header('Content-Type: application/json; charset=utf-8;');
  151 +
  152 + if (is_array($json)) {
  153 + $json = json_encode($json);
  154 + }
  155 +
  156 + echo $json;
  157 + }
  158 +
  159 + /**
  160 + * 返回JSON数据
  161 + *
  162 + * @param int $code 状态编码
  163 + * @param string $message 提示信息
  164 + * @param mixed $data 数据内容
  165 + * @return json
  166 + */
  167 + protected function returnJson($code, $message, $data)
  168 + {
  169 + return json_encode(array(
  170 + 'code' => $code,
  171 + 'message' => $message,
  172 + 'data' => $data,
  173 + ));
  174 + }
  175 +
  176 + /**
  177 + * 判断是不是AJAX请求
  178 + *
  179 + * @return bool
  180 + */
  181 + protected function isAjax()
  182 + {
  183 + return $this->_request->isXmlHttpRequest();
  184 + }
  185 +
  186 + /**
  187 + * 跳转到错误页面
  188 + */
  189 + protected function error()
  190 + {
  191 + headers_sent() || header('Location: /error.html');
  192 +
  193 + exit();
  194 + }
  195 +
  196 + /**
  197 + * 跳转到指定的URL
  198 + *
  199 + * @param string $url 链接地址
  200 + * @return void
  201 + */
  202 + protected function go($url)
  203 + {
  204 + headers_sent() || header('Location: ' . $url);
  205 +
  206 + exit();
  207 + }
  208 +
  209 + /**
  210 + * 设置Cookie
  211 + *
  212 + * @param string $name cookie的名字
  213 + * @param string $value cookie的值
  214 + * @param integer $expire cookie过期时间
  215 + * @param integer $path cookie可用的路径
  216 + * @param string $domain cookie可用域名
  217 + */
  218 + protected function setCookie($name, $value, $expire = 0, $path = '/', $domain = '.yohobuy.com')
  219 + {
  220 + setcookie($name, $value, $expire, $path, $domain);
  221 + }
  222 +
  223 + /**
  224 + * 返回Cookie变量
  225 + *
  226 + * @param string $name cookie名称
  227 + * @param string $default 未获取到返回的默认值
  228 + * @return string 获取到的cookie值
  229 + */
  230 + protected function getCookie($name, $default = '')
  231 + {
  232 + return $this->_request->getCookie($name, $default);
  233 + }
  234 +
  235 + /**
  236 + * 设置缓存
  237 + *
  238 + * @param string $key 键名
  239 + * @param mixed $value 需要缓存的数据
  240 + * @param int $expire 缓存有效期(单位秒, 0表示永久)
  241 + * @return void
  242 + */
  243 + protected function setCache($key, $value, $expire)
  244 + {
  245 + Cache::set($key, $value, $expire);
  246 + }
  247 +
  248 + /**
  249 + * 获取缓存
  250 + *
  251 + * @param string $key 键名
  252 + * @param bool $isMaster 控制是到主服务器取,还是到从服务器取缓存
  253 + * @return mixed
  254 + */
  255 + protected function getCache($key, $isMaster = true)
  256 + {
  257 + if ($isMaster) {
  258 + return Cache::get($key, 'master');
  259 + } else {
  260 + return Cache::get($key, 'slave');
  261 + }
  262 + }
  263 +
  264 + /**
  265 + * 设置Session
  266 + *
  267 + * @param string $name 名称
  268 + * @param mixed $value 值
  269 + * @return void
  270 + */
  271 + public function setSession($name, $value)
  272 + {
  273 + Session::start('yohobuy_session', null, 'yohobuy.com')->__set($name, $value);
  274 + }
  275 +
  276 + /**
  277 + * 获取Session
  278 + *
  279 + * @param string $name 名称
  280 + */
  281 + public function getSession($name)
  282 + {
  283 + return Session::start('yohobuy_session', null, 'yohobuy.com')->__get($name);
  284 + }
  285 +
  286 + /**
  287 + * 获取当前登录的用户ID
  288 + *
  289 + * @return int
  290 + * @todo
  291 + */
  292 + protected function getUid()
  293 + {
  294 + if (!$this->_uid) {
  295 + $cookie = $this->getCookie('_UID');
  296 + if (!empty($cookie)) {
  297 + $cookieList = explode('::', $cookie);
  298 + if (isset($cookieList[1]) && is_numeric($cookieList[1])) {
  299 + $this->_uid = $cookieList[1];
  300 + $this->_uname = $cookieList[0];
  301 + }
  302 + }
  303 + }
  304 + return $this->_uid;
  305 + }
  306 +
  307 + /**
  308 + * 获取客户端唯一标识
  309 + *
  310 + * @return string
  311 + */
  312 + protected function getUdid()
  313 + {
  314 + $udid = '';
  315 +
  316 + $realIP = $this->_request->getServer('HTTP_X_REAL_IP');
  317 + if ($realIP) {
  318 + $udid = md5($realIP);
  319 + } else {
  320 + $realIP = $this->_request->getServer('REMOTE_ADDR', '');
  321 + $udid = md5($realIP);
  322 + }
  323 +
  324 + return $udid;
  325 + }
  326 +
  327 + /*
  328 + * 设置网站SEO的标题
  329 + *
  330 + * @param string $title 标题
  331 + * @param string $sign 连接的字符串
  332 + * @param bool $showMore 是否显示更多内容
  333 + * @return void
  334 + */
  335 + protected function setTitle($title, $showMore = true, $sign = ' | ')
  336 + {
  337 + $this->_view->assign('title_more', $showMore);
  338 + $this->_view->assign('title', $title . $sign);
  339 + }
  340 +
  341 + /**
  342 + * 设置网站SEO的关键词
  343 + *
  344 + * @param string $keywords 关键词,多个之间用","逗号分隔
  345 + * @return void
  346 + */
  347 + protected function setKeywords($keywords)
  348 + {
  349 + $this->_view->assign('keywords', rtrim($keywords, ',') . ',');
  350 + }
  351 +
  352 + /**
  353 + * 设置网站SEO的描述内容
  354 + *
  355 + * @param string $description 描述内容
  356 + * @param string $sign 连接的字符串
  357 + * @param bool $showMore 是否显示更多内容
  358 + * @return void
  359 + */
  360 + protected function setDescription($description, $showMore = true, $sign = ' ')
  361 + {
  362 + $this->_view->assign('description_more', $showMore);
  363 + $this->_view->assign('description', $description . $sign);
  364 + }
  365 +
  366 + /**
  367 + * 设置最后修改时间
  368 + *
  369 + * @param string $modifiedTime 修改时间戳
  370 + * @param type $notModifiedExit 是否在没有修改时返回304状态
  371 + * @return void
  372 + */
  373 + public static function setLastModified($modifiedTime, $notModifiedExit = true)
  374 + {
  375 + $modifiedTime = date('D, d M Y H:i:s ', $modifiedTime) . 'GMT';
  376 + if ($notModifiedExit && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $modifiedTime == $_SERVER['HTTP_IF_MODIFIED_SINCE']) {
  377 + header('HTTP/1.1 304 Not Modified');
  378 + exit();
  379 + }
  380 + header('Last-Modified: ' . $modifiedTime);
  381 + }
  382 +
  383 + /**
  384 + * 设置浏览器的缓存
  385 + *
  386 + * @param int $seconds 单位是秒
  387 + * @return void
  388 + */
  389 + public static function setExpires($seconds = 180)
  390 + {
  391 + $time = date('D, d M Y H:i:s ', time() + $seconds) . 'GMT';
  392 +
  393 + header('Expires: ' . $time);
  394 + }
  395 +
  396 +}
@@ -30,6 +30,7 @@ class SearchData @@ -30,6 +30,7 @@ class SearchData
30 switch (APPLICATION_ENV) { 30 switch (APPLICATION_ENV) {
31 case 'production': 31 case 'production':
32 case 'release': 32 case 'release':
  33 + //return 'http://search.yoho.cn/yohosearch/search.json';
33 return 'http://101.201.178.220/yohosearch/search.json'; //return 'http://100.98.132.63/yohosearch/search.json'; 34 return 'http://101.201.178.220/yohosearch/search.json'; //return 'http://100.98.132.63/yohosearch/search.json';
34 case 'preview': 35 case 'preview':
35 return 'http://101.200.31.165/yohosearch/search.json'; 36 return 'http://101.200.31.165/yohosearch/search.json';
@@ -203,3 +203,42 @@ server @@ -203,3 +203,42 @@ server
203 } 203 }
204 } 204 }
205 205
  206 +server
  207 +{
  208 + listen 80;
  209 + server_name huodong.yohobuy.com;
  210 + root /Data/PE/yohobuy_PC/yohobuy/huodong.yohobuy.com/public;
  211 +
  212 + location ^~ /cuxiao {
  213 + proxy_redirect off;
  214 + proxy_pass http://yohobuy-pc;
  215 + proxy_set_header Host $host;
  216 + proxy_set_header X-Real-IP $remote_addr;
  217 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  218 + proxy_set_header Accept-Encoding "gzip";
  219 + }
  220 +
  221 + location / {
  222 + proxy_redirect off;
  223 + proxy_pass http://yohobuy-old-huodong;
  224 + proxy_set_header Host $host;
  225 + proxy_set_header X-Real-IP $remote_addr;
  226 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  227 + proxy_set_header Accept-Encoding "gzip";
  228 + }
  229 +
  230 +
  231 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  232 + expires 30d;
  233 + }
  234 + location =/crossdomain.xml {
  235 + expires 30d;
  236 + }
  237 + location =/sitemap.xml {
  238 + expires 1d;
  239 + }
  240 + location =/robots.txt {
  241 + expires 1d;
  242 + }
  243 +}
  244 +
  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 + <link rel="stylesheet" href="{{staticFile}}/css/style.css">
  8 +</head>
  9 +<body>
  10 + <div class="main-wrap home">
  11 + <div class="header"></div>
  12 + <div class="coupon">
  13 + </div>
  14 + <a class="go" href="{{couponUrl}}">
  15 + 去看看 <span class="arrow"></span>
  16 + </a>
  17 + <div class="share">
  18 + </div>
  19 + <a class="banner" href="{{banner.url}}">
  20 + <img src="{{banner.img}}">
  21 + </a>
  22 + <div class="footer">
  23 + </div>
  24 + </div>
  25 + <div class="tip hide fail">
  26 + <div class="title">
  27 + 领取失败<br>
  28 + 请刷新重新领取
  29 + </div>
  30 + <div class="desc">
  31 + 如多次领取失败,请联系客服人员<br>
  32 + 带来不便敬请谅解
  33 + </div>
  34 + <a class="button" href="">
  35 + 刷新
  36 + </a>
  37 + </div>
  38 + <div class="tip hide geted">
  39 + <div class="title">
  40 + 你已领取过优惠券
  41 + </div>
  42 + <div class="sub-title">
  43 + 快去分享给更多<br>
  44 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  45 + </div>
  46 + <a class="button close" href="">
  47 + 返回
  48 + </a>
  49 + </div>
  50 +<script type="text/javascript" src="{{staticFile}}/js/libs.js"></script>
  51 +{{# staticJS}}
  52 +<script type="text/javascript" src="{{../staticFile}}/js/{{.}}"></script>
  53 +{{/ staticJS}}
  54 +</body>
  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 + <link rel="stylesheet" href="{{staticFile}}/css/style.css">
  8 +</head>
  9 +<body>
  10 + <div class="main-wrap home">
  11 + <div class="header"></div>
  12 + <div class="coupon">
  13 + </div>
  14 + <a class="go" href="{{couponUrl}}">
  15 + 去看看 <span class="arrow"></span>
  16 + </a>
  17 + <div class="share">
  18 + </div>
  19 + <a class="banner" href="{{banner.url}}">
  20 + <img src="{{banner.img}}">
  21 + </a>
  22 + <div class="footer">
  23 + </div>
  24 + </div>
  25 + <div class="tip hide fail">
  26 + <div class="title">
  27 + 领取失败<br>
  28 + 请刷新重新领取
  29 + </div>
  30 + <div class="desc">
  31 + 如多次领取失败,请联系客服人员<br>
  32 + 带来不便敬请谅解
  33 + </div>
  34 + <a class="button" href="">
  35 + 刷新
  36 + </a>
  37 + </div>
  38 + <div class="tip hide geted">
  39 + <div class="title">
  40 + 你已领取过优惠券
  41 + </div>
  42 + <div class="sub-title">
  43 + 快去分享给更多<br>
  44 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  45 + </div>
  46 + <a class="button close" href="">
  47 + 返回
  48 + </a>
  49 + </div>
  50 +<script type="text/javascript" src="{{staticFile}}/js/libs.js"></script>
  51 +{{# staticJS}}
  52 +<script type="text/javascript" src="{{../staticFile}}/js/{{.}}"></script>
  53 +{{/ staticJS}}
  54 +</body>
  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>
  3 +<script>
  4 + var _hmt = _hmt || [];
  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);
  33 +</script>
@@ -11,7 +11,7 @@ use LibModels\Wap\Cuxiao\ActivityData; @@ -11,7 +11,7 @@ use LibModels\Wap\Cuxiao\ActivityData;
11 class ChristmasController extends HuodongAction 11 class ChristmasController extends HuodongAction
12 { 12 {
13 13
14 -// private $_isApp = false; 14 + protected $_isApp = false;
15 15
16 /** 16 /**
17 * 备注:2015年12月11号上线 17 * 备注:2015年12月11号上线
@@ -552,8 +552,8 @@ class CouponController extends HuodongAction @@ -552,8 +552,8 @@ class CouponController extends HuodongAction
552 } 552 }
553 $url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}'; 553 $url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
554 554
555 - $this->_view->display('newuser3-test', array(  
556 - 'activityId' => 489, //508, //498, //492, // 94活动ID 555 + $this->_view->display('newuser3', array(
  556 + 'activityId' => 508, //498, //492, // 94活动ID
557 'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题 557 'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
558 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}', 558 'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
559 'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录 559 'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
@@ -15,7 +15,7 @@ use Plugin\Helpers; @@ -15,7 +15,7 @@ use Plugin\Helpers;
15 class GirldayController extends HuodongAction 15 class GirldayController extends HuodongAction
16 { 16 {
17 // const STATIC_VERSION = 'http://localhost:2222/1.0.1'; 17 // const STATIC_VERSION = 'http://localhost:2222/1.0.1';
18 - const STATIC_VERSION = 'http://cdn.yoho.cn/huodong/2016xinshili-web/1.0.6'; 18 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili-web/1.0.6';
19 19
20 /** 20 /**
21 * 检测登录状态 21 * 检测登录状态
@@ -61,7 +61,7 @@ class GirldayController extends HuodongAction @@ -61,7 +61,7 @@ class GirldayController extends HuodongAction
61 61
62 $this->_view->display('index', array( 62 $this->_view->display('index', array(
63 'staticTitle' => 'YOHO!BUY有货【春潮新势力】', 63 'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
64 - 'staticFile' => self::STATIC_VERSION, 64 + 'staticFile' => self::STATIC_FILE,
65 'staticJS' => array( 65 'staticJS' => array(
66 'home.js' 66 'home.js'
67 ), 67 ),
@@ -111,7 +111,7 @@ class XinshiliController extends HuodongAction @@ -111,7 +111,7 @@ class XinshiliController extends HuodongAction
111 case 'testing': // 测试 111 case 'testing': // 测试
112 case 'develop': // 开发 112 case 'develop': // 开发
113 default: 113 default:
114 - return 488; 114 + return 506;
115 } 115 }
116 } 116 }
117 117
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
  1 +<?php
  2 +
  3 +/**
  4 + * 启动运行
  5 + *
  6 + * @name Bootstrap
  7 + * @author fei.hong
  8 + * @desc 所有在Bootstrap类中, 以_init开头的方法, 都会被Yaf调用,
  9 + * @see http://www.php.net/manual/en/class.yaf-bootstrap-abstract.php
  10 + * 这些方法, 都接受一个参数:Yaf_Dispatcher $dispatcher
  11 + * 调用的次序, 和申明的次序相同
  12 + */
  13 +use Yaf\Bootstrap_Abstract;
  14 +use Yaf\Dispatcher;
  15 +use Yaf\Application;
  16 +use Yaf\Registry;
  17 +use Yaf\Loader;
  18 +use Yaf\Config;
  19 +use WebPlugin\TemplateLayout;
  20 +
  21 +class Bootstrap extends Bootstrap_Abstract
  22 +{
  23 +
  24 + private $_config;
  25 +
  26 + /**
  27 + * 初始化配置
  28 + * @param Yaf_Dispatcher $dispatcher
  29 + */
  30 + public function _initConfig(Dispatcher $dispatcher)
  31 + {
  32 + define('REQUEST_METHOD', strtoupper($dispatcher->getRequest()->getMethod()));
  33 + $this->_config = Application::app()->getConfig();
  34 + Registry::set('appConfig', $this->_config);
  35 + }
  36 +
  37 + /**
  38 + * 初始化应用
  39 + * @param Yaf_Dispatcher $dispatcher
  40 + */
  41 + public function _initApplication(Dispatcher $dispatcher)
  42 + {
  43 + defined('APPLICATION_SYSTEM_CONFIG') || define('APPLICATION_SYSTEM_CONFIG', $this->_config->application->servers->config);
  44 + if (APPLICATION_ENV !== 'production') {
  45 + error_reporting(E_ALL);
  46 + ini_set('display_startup_errors', 1);
  47 + ini_set('display_errors', 1);
  48 + }
  49 + Loader::getInstance()->registerLocalNameSpace(explode(',', $this->_config->application->namespaces));
  50 + }
  51 +
  52 +// /**
  53 +// * 初始化插件
  54 +// * @param Yaf_Dispatcher $dispatcher
  55 +// */
  56 +// public function _initPlugin(Dispatcher $dispatcher)
  57 +// {
  58 +//
  59 +// }
  60 +
  61 + /**
  62 + * 初始化路由
  63 + * @param Yaf_Dispatcher $dispatcher
  64 + */
  65 + public function _initRoute(Dispatcher $dispatcher)
  66 + {
  67 + /* 根据对应模块的配置,添加相应的路由规则 */
  68 + $iniFile = APPLICATION_PATH . '/configs/routes.index.ini';
  69 + if (file_exists($iniFile)) {
  70 + $config = new Config\Ini($iniFile);
  71 + if (isset($config->routes)) {
  72 + $dispatcher->getRouter()->addConfig($config->routes);
  73 + }
  74 + }
  75 + }
  76 +
  77 + /**
  78 + * 初始化Layout
  79 + * @param Yaf_Dispatcher $dispatcher
  80 + */
  81 + public function _initLayout(Dispatcher $dispatcher)
  82 + {
  83 + // 关闭自动渲染模板
  84 + $dispatcher->autoRender(false);
  85 +
  86 + // 判断到不是AJAX请求时, 使用自定义的模板渲染 (Mustache or Handlebars)
  87 + //if (!$dispatcher->getRequest()->isXmlHttpRequest()) {
  88 + $layout = new TemplateLayout();
  89 + $layout->setScriptPath($this->_config->application->template->path);
  90 + $dispatcher->setView($layout);
  91 + //}
  92 + }
  93 +
  94 +// /**
  95 +// * 初始化第三方包
  96 +// * @param Dispatcher $dispatcher
  97 +// */
  98 +// public function _initPackage(Dispatcher $dispatcher)
  99 +// {
  100 +// if ($this->_config->composer->autoload == 1) {
  101 +// require $this->_config->composer->path . '/vendor/autoload.php';
  102 +// }
  103 +// }
  104 +}
  1 +<?php
  2 +
  3 +/**
  4 + * 错误错误控制器
  5 + *
  6 + * @name ErrorController
  7 + * @desc 错误控制器, 在发生未捕获的异常时刻被调用
  8 + * @see http://www.php.net/manual/en/yaf-dispatcher.catchexception.php
  9 + */
  10 +use Action\AbstractAction;
  11 +
  12 +class ErrorController extends AbstractAction
  13 +{
  14 +
  15 + public function indexAction()
  16 + {
  17 + header('HTTP/1.1 404 Not Found');
  18 + header('Status: 404 Not Found');
  19 + exit();
  20 + }
  21 +
  22 + public function errorAction($exception)
  23 + {
  24 + header('HTTP/1.1 404 Not Found');
  25 + header('Status: 404 Not Found');
  26 +
  27 + exit();
  28 + }
  29 +
  30 +}
  1 +<?php
  2 +
  3 +use Action\AbstractAction;
  4 +
  5 +/**
  6 + * 跳转
  7 + */
  8 +class GoController extends AbstractAction
  9 +{
  10 +
  11 + /**
  12 + * 跳转PC或WAP
  13 + */
  14 + public function indexAction()
  15 + {
  16 + $pc = $this->get('pc', 'http://www.yohobuy.com');
  17 + $wap = $this->get('wap', 'http://m.yohobuy.com');
  18 +
  19 + $pc = rawurldecode($pc);
  20 + $wap = rawurldecode($wap);
  21 +
  22 + // 苹果设备
  23 + if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) {
  24 + $this->go($wap);
  25 + }
  26 + // 苹果IPAD
  27 + elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
  28 + $this->go($pc);
  29 + }
  30 + // 安卓设备
  31 + elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'Android')) {
  32 + $this->go($wap);
  33 + }
  34 + // 其它
  35 + else {
  36 + $this->go($pc);
  37 + }
  38 + }
  39 +
  40 +}
  1 +<?php
  2 +
  3 +use Action\AbstractAction;
  4 +use Plugin\Helpers;
  5 +
  6 +/**
  7 + * 默认
  8 + */
  9 +class IndexController extends AbstractAction
  10 +{
  11 +
  12 + /**
  13 + * 首页
  14 + */
  15 + public function indexAction()
  16 + {
  17 + exit();
  18 + }
  19 +
  20 +}
  1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: Administrator
  5 + * Date: 2016/3/2
  6 + * Time: 10:53
  7 + */
  8 +namespace Cuxiao;
  9 +use LibModels\Wap\Cuxiao\ActivityData;
  10 +
  11 +
  12 +class GirldayModel
  13 +{
  14 + /**
  15 + * 获取领券活动结果
  16 + *
  17 + * @param int $uid 用户id
  18 + * @param int $actId 活动id
  19 + * @return array
  20 + */
  21 + public static function getGirldayCoupon($uid, $actId)
  22 + {
  23 + $result = array('code' => 201);
  24 +
  25 + do {
  26 + if (empty($uid) || empty($actId)) {
  27 + break;
  28 + }
  29 +
  30 + $result = ActivityData::getCouponAll($uid, $actId);
  31 + if (!$result) {
  32 + $result = array('code' => 201);
  33 + break;
  34 + }
  35 +
  36 + if (intval($result['code']) === 200) {
  37 + self::sendMessage($uid, '【优惠券】您有4张春潮新势力优惠券', '尊敬的客户:恭喜您成功获得4张春潮新势力优惠券 !您可以在个人中心查看优惠券详情。');
  38 + }
  39 + } while (false);
  40 +
  41 + return $result;
  42 + }
  43 +
  44 + /**
  45 + * 发送站内信
  46 + *
  47 + * @param int $uid 用户ID
  48 + * @param string $title 站内信标题
  49 + * @param string $content 站内信内容
  50 + */
  51 + private static function sendMessage($uid, $title, $content)
  52 + {
  53 + try {
  54 + ActivityData::message($uid, $title, $content);
  55 + } catch (Exception $e) {
  56 + // do nothing
  57 + }
  58 + }
  59 +}
  1 +<?php
  2 +
  3 +namespace Cuxiao;
  4 +use LibModels\Wap\Cuxiao\ActivityData;
  5 +
  6 +/**
  7 + * Created by PhpStorm.
  8 + * User: DELL
  9 + * Date: 2016/2/25
  10 + * Time: 15:29
  11 + *
  12 + * @name XinshiliModel
  13 + * @package models/Cuxiao
  14 + * @author Gtskk(tttt6399998@126.com)
  15 + */
  16 +
  17 +
  18 +class XinshiliModel
  19 +{
  20 + /**
  21 + * 获取领券活动结果
  22 + *
  23 + * @param int $uid 用户id
  24 + * @param int $actId 活动id
  25 + * @return array
  26 + */
  27 + public static function getXinshiliCoupon($uid, $actId)
  28 + {
  29 + $result = array('code' => 201);
  30 +
  31 + do {
  32 + if (empty($uid) || empty($actId)) {
  33 + break;
  34 + }
  35 +
  36 + $result = ActivityData::getCouponAll($uid, $actId);
  37 + if (!$result) {
  38 + $result = array('code' => 201);
  39 + break;
  40 + }
  41 +
  42 + if (intval($result['code']) === 200) {
  43 + self::sendMessage($uid, '【优惠券】您有4张春潮新势力优惠券', '尊敬的客户:恭喜您成功获得4张春潮新势力优惠券 !您可以在个人中心查看优惠券详情。');
  44 + }
  45 + } while (false);
  46 +
  47 + return $result;
  48 + }
  49 +
  50 + /**
  51 + * 发送站内信
  52 + *
  53 + * @param int $uid 用户ID
  54 + * @param string $title 站内信标题
  55 + * @param string $content 站内信内容
  56 + */
  57 + private static function sendMessage($uid, $title, $content)
  58 + {
  59 + try {
  60 + ActivityData::message($uid, $title, $content);
  61 + } catch (Exception $e) {
  62 + // do nothing
  63 + }
  64 + }
  65 +}
  1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: Administrator
  5 + * Date: 2016/3/2
  6 + * Time: 10:48
  7 + */
  8 +use Action\HuodongAction;
  9 +use Cuxiao\GirldayModel;
  10 +use WebPlugin\Helpers;
  11 +/**
  12 + * 女生节活动领券-第二波
  13 + * @author Administrator
  14 + */
  15 +class GirldayController extends HuodongAction
  16 +{
  17 + // const STATIC_FILE = 'http://localhost:2222/1.0.0';
  18 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili-2-web/1.0.0';
  19 + /**
  20 + * 检测登录状态
  21 + *
  22 + * @return int
  23 + */
  24 + private function getLoggedUid()
  25 + {
  26 + if ($this->_isApp) {
  27 + $uid = $this->get('uid');
  28 + } else {
  29 + $uid = $this->getUid();
  30 + }
  31 + return $uid;
  32 + }
  33 +
  34 + /**
  35 + * 判断是否登录
  36 + */
  37 + private function checkLogin()
  38 + {
  39 + $url = Helpers::url('/cuxiao/girlday/index');
  40 + $uid = $this->getLoggedUid();
  41 + if (!$uid) {
  42 + $this->go(Helpers::url('/signin.html', array('refer' => $url), 'default'));
  43 + }
  44 + }
  45 +
  46 +
  47 + /**
  48 + * 根据环境来获取活动ID
  49 + *
  50 + * @return int
  51 + */
  52 + private function getActivityId()
  53 + {
  54 + // 设置环境变量
  55 + switch (APPLICATION_ENV) {
  56 + case 'production': // 生产
  57 + return 528;
  58 + case 'preview': // 预览
  59 + case 'testing': // 测试
  60 + case 'develop': // 开发
  61 + default:
  62 + return 90;
  63 + }
  64 + }
  65 +
  66 +
  67 + /**
  68 + * 领券接口
  69 + */
  70 + public function sendCouponAction()
  71 + {
  72 + $result = array('code' => 201);
  73 +
  74 + do {
  75 + if (!$this->isAjax()) {
  76 + break;
  77 + }
  78 +
  79 + $activityId = $this->getActivityId();
  80 + $uid = $this->getLoggedUid();
  81 + $result = GirldayModel::getGirldayCoupon($uid, $activityId);
  82 + } while (false);
  83 +
  84 + $this->echoJson($result);
  85 + }
  86 +
  87 + public function indexAction()
  88 + {
  89 +
  90 + $this->checkLogin();
  91 + //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
  92 + $myCouponUrl = Helpers::url('/home/coupons', null, 'default');
  93 +
  94 + $this->_view->display('index', array(
  95 + 'staticTitle' => 'YOHO!BUY有货【春潮新势力】', // 标题
  96 + 'staticFile' => self::STATIC_FILE,
  97 + 'staticJS' => array(
  98 + 'home.js'
  99 + ),
  100 + 'couponUrl' => $myCouponUrl, // 个人中心优惠券地址
  101 + 'banner' => array(
  102 + 'img' => '',
  103 + 'url' => 'http://www.yohobuy.com/special_14548_0310PCHOME.html',
  104 + ),
  105 + 'selectUrl' => 'http://www.yohobuy.com/home/coupons',
  106 + ));
  107 + }
  108 +}
  1 +<?php
  2 +
  3 +use Action\HuodongWebAction;
  4 +use Cuxiao\XinshiliModel;
  5 +use WebPlugin\Helpers;
  6 +
  7 +/**
  8 + * 新势力领券活动
  9 + */
  10 +class XinshiliController extends HuodongWebAction
  11 +{
  12 + // const STATIC_FILE = 'http://localhost:2222/1.0.6';
  13 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili-web/1.0.6';
  14 +
  15 +
  16 + /**
  17 + * 检测登录状态
  18 + *
  19 + * @return int
  20 + */
  21 + private function getLoggedUid()
  22 + {
  23 + if ($this->_isApp) {
  24 + $uid = $this->get('uid');
  25 + } else {
  26 + $uid = $this->getUid();
  27 + }
  28 +
  29 + return $uid;
  30 + }
  31 +
  32 + /**
  33 + * 判断是否登录
  34 + */
  35 + private function checkLogin()
  36 + {
  37 + $playUrl = Helpers::url('/cuxiao/xinshili/index');
  38 +
  39 + $uid = $this->getLoggedUid();
  40 + if (!$uid) {
  41 + $this->go(Helpers::url('/signin.html', array('refer' => $playUrl), 'default'));
  42 + }
  43 + }
  44 +
  45 + /**
  46 + * 领券活动页面控制器
  47 + */
  48 + public function indexAction()
  49 + {
  50 + $this->checkLogin();
  51 +
  52 + //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
  53 + $myCouponUrl = Helpers::url('/home/coupons', null, 'default');
  54 +
  55 + $this->_view->display('index', array(
  56 + 'staticTitle' => 'YOHO!BUY有货【春潮新势力】',
  57 + 'staticFile' => self::STATIC_FILE,
  58 + 'staticJS' => array(
  59 + 'home.js'
  60 + ),
  61 + 'couponUrl' => $myCouponUrl, // 个人中心优惠券地址
  62 + 'banner' => array(
  63 + 'img' => 'http://img02.yohoboys.com/staticimg/2016/03/04/09/021a94b08418c4416785d37a47088aac58.jpg',
  64 + 'url' => 'http://www.yohobuy.com/special_14444_0302PCHOME.html'
  65 + )
  66 + ));
  67 + }
  68 +
  69 + /**
  70 + * 领券接口
  71 + */
  72 + public function sendCouponAction()
  73 + {
  74 + $result = array('code' => 201);
  75 +
  76 + do {
  77 + if (!$this->isAjax()) {
  78 + break;
  79 + }
  80 +
  81 + $activityId = $this->getActivityId();
  82 + $uid = $this->getLoggedUid();
  83 + $result = XinshiliModel::getXinshiliCoupon($uid, $activityId);
  84 + } while (false);
  85 +
  86 + $this->echoJson($result);
  87 + }
  88 +
  89 + /**
  90 + * 根据环境来获取活动ID
  91 + *
  92 + * @return int
  93 + */
  94 + private function getActivityId()
  95 + {
  96 + // 设置环境变量
  97 + switch (APPLICATION_ENV) {
  98 + case 'production': // 生产
  99 + return 506;
  100 + case 'preview': // 预览
  101 + case 'testing': // 测试
  102 + case 'develop': // 开发
  103 + default:
  104 + return 506;
  105 + }
  106 + }
  107 +}
  1 +[common]
  2 +;;默认项目
  3 +application.directory = APPLICATION_PATH "/application"
  4 +;;website library
  5 +application.library = ROOT_PATH "/library"
  6 +;;模块配置
  7 +application.modules = "Index,Cuxiao"
  8 +;;加载
  9 +application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
  10 +;;view文件的扩展名
  11 +application.view.ext = "phtml"
  12 +;;默认layouts
  13 +application.layout.path = APPLICATION_PATH "/application/layouts"
  14 +;;layouts 默认文件
  15 +application.layout.default = "default"
  16 +;;默认Controller
  17 +application.dispatcher.defaultController = "index"
  18 +;;默认Action
  19 +application.dispatcher.defaultAction = "index"
  20 +
  21 +;;初始化命名空间
  22 +application.namespaces = "Action,Api,Configs,LibModels,Plugin,WebPlugin"
  23 +
  24 +;;使用composer
  25 +composer.autoload = 0
  26 +composer.path = APPLICATION_PATH "/library/Package"
  27 +
  28 +yaf.use_namespace = 1
  29 +
  30 +;;调试模式
  31 +[developer : common]
  32 +application.debug = True
  33 +application.servers.config = APPLICATION_PATH "/configs/core"
  34 +
  35 +;出错的时候是否抛出异常
  36 +application.dispatcher.throwException = True
  37 +
  38 +;是否使用默认的异常 捕获Controller, 如果开启, 在有未捕获的异常的时候,
  39 +;控制权会交给ErrorController的errorAction 方法,
  40 +;可以通过$request->getException()获得此异常对象 False
  41 +application.dispatcher.catchException = True
  42 +
  43 +;模板预编译目录,该目录需要有读写权限
  44 +application.template.compile = ROOT_PATH "/compile/huodong.yohobuy.com"
  45 +application.template.path = ROOT_PATH "/template/huodong.yohobuy.com/actions"
  46 +application.template.partials = ROOT_PATH "/template/huodong.yohobuy.com/partials"
  47 +application.template.ext = ".phtml"
  48 +
  49 +;静态HTML页面的存放目录, 该目录需要有读写权限
  50 +application.assets.path = ROOT_PATH "/assets/web"
  51 +
  52 +; 应用的版本号
  53 +application.version = "0.0.1"
  54 +
  55 +; 网站SEO信息
  56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
  57 +application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
  58 +application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
  59 +
  60 +; 网站静态资源
  61 +application.js.url = "http://static.dev.yohobuy.com/huodong"
  62 +application.css.url = "http://static.dev.yohobuy.com/huodong"
  63 +application.img.url = "http://static.dev.yohobuy.com/huodong"
  1 +[common]
  2 +;;默认项目
  3 +application.directory = APPLICATION_PATH "/application"
  4 +;;website library
  5 +application.library = ROOT_PATH "/library"
  6 +;;默认模块
  7 +application.modules = "Index,Cuxiao"
  8 +;;加载
  9 +application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
  10 +;;view文件的扩展名
  11 +application.view.ext = "phtml"
  12 +;;默认layouts
  13 +application.layout.path = APPLICATION_PATH "/application/layouts"
  14 +;;layouts 默认文件
  15 +application.layout.default = "default"
  16 +;;默认Controller
  17 +application.dispatcher.defaultController = "index"
  18 +;;默认Action
  19 +application.dispatcher.defaultAction = "index"
  20 +
  21 +;;初始化命名空间
  22 +application.namespaces = "Action,Api,Configs,LibModels,Plugin,WebPlugin"
  23 +
  24 +;;使用composer
  25 +composer.autoload = 0
  26 +composer.path = APPLICATION_PATH "/library/Package"
  27 +
  28 +yaf.use_namespace = 1
  29 +
  30 +;;调试模式
  31 +[preview : common]
  32 +application.debug = False
  33 +application.servers.config = APPLICATION_PATH "/configs/core"
  34 +
  35 +;出错的时候是否抛出异常
  36 +application.dispatcher.throwException = False
  37 +
  38 +;是否使用默认的异常 捕获Controller, 如果开启, 在有未捕获的异常的时候,
  39 +;控制权会交给ErrorController的errorAction 方法,
  40 +;可以通过$request->getException()获得此异常对象
  41 +application.dispatcher.catchException = False
  42 +
  43 +;模板预编译目录,该目录需要有读写权限
  44 +application.template.compile = ROOT_PATH "/compile/huodong.yohobuy.com"
  45 +application.template.path = ROOT_PATH "/template/huodong.yohobuy.com/actions"
  46 +application.template.partials = ROOT_PATH "/template/huodong.yohobuy.com/partials"
  47 +application.template.ext = ".phtml"
  48 +
  49 +;静态HTML页面的存放目录, 该目录需要有读写权限
  50 +application.assets.path = ROOT_PATH "/assets/web"
  51 +
  52 +; 应用的版本号
  53 +application.version = "0.0.1"
  54 +
  55 +; 网站SEO信息
  56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
  57 +application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
  58 +application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
  59 +
  60 +; 网站静态资源
  61 +application.js.url = "http://buy.static.test.yoho.cn/huodong"
  62 +application.css.url = "http://buy.static.test.yoho.cn/huodong"
  63 +application.img.url = "http://buy.static.test.yoho.cn/huodong"
  1 +[common]
  2 +;;默认项目
  3 +application.directory = APPLICATION_PATH "/application"
  4 +;;website library
  5 +application.library = ROOT_PATH "/library"
  6 +;;默认模块
  7 +application.modules = "Index,Cuxiao"
  8 +;;加载
  9 +application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
  10 +;;view文件的扩展名
  11 +application.view.ext = "phtml"
  12 +;;默认layouts
  13 +application.layout.path = APPLICATION_PATH "/application/layouts"
  14 +;;layouts 默认文件
  15 +application.layout.default = "default"
  16 +;;默认Controller
  17 +application.dispatcher.defaultController = "index"
  18 +;;默认Action
  19 +application.dispatcher.defaultAction = "index"
  20 +
  21 +;;初始化命名空间
  22 +application.namespaces = "Action,Api,Configs,LibModels,Plugin,WebPlugin"
  23 +
  24 +;;使用composer
  25 +composer.autoload = 0
  26 +composer.path = APPLICATION_PATH "/library/Package"
  27 +
  28 +yaf.use_namespace = 1
  29 +
  30 +;;调试模式
  31 +[production : common]
  32 +application.debug = False
  33 +application.servers.config = APPLICATION_PATH "/configs/core"
  34 +
  35 +;出错的时候是否抛出异常
  36 +application.dispatcher.throwException = False
  37 +
  38 +;是否使用默认的异常 捕获Controller, 如果开启, 在有未捕获的异常的时候,
  39 +;控制权会交给ErrorController的errorAction 方法,
  40 +;可以通过$request->getException()获得此异常对象
  41 +application.dispatcher.catchException = False
  42 +
  43 +;模板预编译目录,该目录需要有读写权限
  44 +application.template.compile = ROOT_PATH "/compile/huodong.yohobuy.com"
  45 +application.template.path = ROOT_PATH "/template/huodong.yohobuy.com/actions"
  46 +application.template.partials = ROOT_PATH "/template/huodong.yohobuy.com/partials"
  47 +application.template.ext = ".phtml"
  48 +
  49 +;静态HTML页面的存放目录, 该目录需要有读写权限
  50 +application.assets.path = ROOT_PATH "/assets/web"
  51 +
  52 +; 应用的版本号
  53 +application.version = "0.0.1"
  54 +
  55 +; 网站SEO信息
  56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
  57 +application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
  58 +application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
  59 +
  60 +; 网站静态资源
  61 +application.js.url = "http://cdn.yoho.cn/huodong"
  62 +application.css.url = "http://cdn.yoho.cn/huodong"
  63 +application.img.url = "http://cdn.yoho.cn/huodong"
  1 +[common]
  2 +;;默认项目
  3 +application.directory = APPLICATION_PATH "/application"
  4 +;;website library
  5 +application.library = ROOT_PATH "/library"
  6 +;;默认模块
  7 +application.modules = "Index,Cuxiao"
  8 +;;加载
  9 +application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
  10 +;;view文件的扩展名
  11 +application.view.ext = "phtml"
  12 +;;默认layouts
  13 +application.layout.path = APPLICATION_PATH "/application/layouts"
  14 +;;layouts 默认文件
  15 +application.layout.default = "default"
  16 +;;默认Controller
  17 +application.dispatcher.defaultController = "index"
  18 +;;默认Action
  19 +application.dispatcher.defaultAction = "index"
  20 +
  21 +;;初始化命名空间
  22 +application.namespaces = "Action,Api,Configs,LibModels,Plugin,WebPlugin"
  23 +
  24 +;;使用composer
  25 +composer.autoload = 0
  26 +composer.path = APPLICATION_PATH "/library/Package"
  27 +
  28 +yaf.use_namespace = 1
  29 +
  30 +;;调试模式
  31 +[testing : common]
  32 +application.debug = True
  33 +application.servers.config = APPLICATION_PATH "/configs/core"
  34 +
  35 +;出错的时候是否抛出异常
  36 +application.dispatcher.throwException = True
  37 +
  38 +;是否使用默认的异常 捕获Controller, 如果开启, 在有未捕获的异常的时候,
  39 +;控制权会交给ErrorController的errorAction 方法,
  40 +;可以通过$request->getException()获得此异常对象 False
  41 +application.dispatcher.catchException = True
  42 +
  43 +;模板预编译目录,该目录需要有读写权限
  44 +application.template.compile = ROOT_PATH "/compile/huodong.yohobuy.com"
  45 +application.template.path = ROOT_PATH "/template/huodong.yohobuy.com/actions"
  46 +application.template.partials = ROOT_PATH "/template/huodong.yohobuy.com/partials"
  47 +application.template.ext = ".phtml"
  48 +
  49 +;静态HTML页面的存放目录, 该目录需要有读写权限
  50 +application.assets.path = ROOT_PATH "/assets/web"
  51 +
  52 +; 应用的版本号
  53 +application.version = "0.0.1"
  54 +
  55 +; 网站SEO信息
  56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
  57 +application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
  58 +application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
  59 +
  60 +; 网站静态资源
  61 +application.js.url = "http://static.buy.test.yoho.cn/huodong"
  62 +application.css.url = "http://static.buy.test.yoho.cn/huodong"
  63 +application.img.url = "http://static.buy.test.yoho.cn/huodong"
  1 +[memcached]
  2 +master.hosts = 127.0.0.1:11212,127.0.0.1:11213
  3 +slave.hosts = 127.0.0.1:11212,127.0.0.1:11213
  4 +session.hosts = 127.0.0.1:11212,127.0.0.1:11213
  5 +
  6 +[redis]
  7 +servers.hosts = 192.168.1.168:6379
  1 +[memcached]
  2 +master.hosts=127.0.0.1:11212,127.0.0.1:11213
  3 +slave.hosts=127.0.0.1:11212,127.0.0.1:11213
  4 +session.hosts=127.0.0.1:11212,127.0.0.1:11213
  5 +
  6 +[redis]
  7 +servers.hosts = 127.0.0.1:6379
  1 +[memcached]
  2 +master.hosts=10.170.182.9:12111,10.172.169.31:12111,10.173.8.214:12111
  3 +slave.hosts=10.170.182.9:12112,10.172.169.31:12112,10.173.8.214:12112
  4 +session.hosts=10.170.182.9:12111,10.172.169.31:12111,10.173.8.214:12111
  5 +
  6 +[redis]
  7 +servers.hosts=127.0.0.1:6379
  1 +[memcached]
  2 +master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
  3 +slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112
  4 +session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111
  5 +
  6 +[redis]
  7 +servers.hosts=127.0.0.1:6379
  1 +[memcached]
  2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  5 +
  6 +[redis]
  7 +servers.hosts=127.0.0.1:6379
  1 +[memcached]
  2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  5 +
  6 +[redis]
  7 +servers.hosts=127.0.0.1:6379
  1 +[memcached]
  2 +master.hosts=127.0.0.1:11212,127.0.0.1:11213
  3 +slave.hosts=127.0.0.1:11212,127.0.0.1:11213
  4 +session.hosts=127.0.0.1:11212,127.0.0.1:11213
  5 +
  6 +[redis]
  7 +servers.hosts = 127.0.0.1:6379
  1 +<?xml version="1.0"?>
  2 +<cross-domain-policy>
  3 + <allow-access-from domain="*.yohobuy.com" />
  4 +</cross-domain-policy>
No preview for this file type
  1 +<?php
  2 +
  3 +use Yaf\Application;
  4 +
  5 +define('SITE_MAIN', 'http://huodong.pc.yohobuy.com'); // 网站主域名
  6 +define('OLD_MAIN', 'http://huodong.yohobuy.com'); // 网站旧域名
  7 +define('COOKIE_DOMAIN', '.pc.yohobuy.com'); // COOKIE作用域
  8 +define('SUB_DOMAIN', '.pc.yohobuy.com'); // 子域名后缀
  9 +define('USE_CACHE', false); // 缓存的开关
  10 +define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
  11 +define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
  12 +defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer');
  13 +
  14 +$application = new Application(APPLICATION_PATH . '/configs/application.developer.ini');
  15 +$application->bootstrap()->run();
  1 +<?php
  2 +
  3 +use Yaf\Application;
  4 +
  5 +define('SITE_MAIN', 'http://huodong.yohobuy.com'); // 网站主域名
  6 +define('OLD_MAIN', 'http://huodong.yohobuy.com'); // 网站旧域名
  7 +define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
  8 +define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
  9 +define('USE_CACHE', true); // 缓存的开关
  10 +define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
  11 +define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
  12 +defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'preview');
  13 +
  14 +$application = new Application(APPLICATION_PATH . '/configs/application.preview.ini');
  15 +$application->bootstrap()->run();
  1 +<?php
  2 +
  3 +use Yaf\Application;
  4 +
  5 +define('SITE_MAIN', 'http://huodong.yohobuy.com'); // 网站主域名
  6 +define('OLD_MAIN', 'http://huodong.yohobuy.com'); // 网站旧域名
  7 +define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
  8 +define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
  9 +define('USE_CACHE', true); // 缓存的开关
  10 +define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
  11 +define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
  12 +defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'testing');
  13 +
  14 +$application = new Application(APPLICATION_PATH . '/configs/application.testing.ini');
  15 +$application->bootstrap()->run();
  1 +<?php
  2 +
  3 +use Yaf\Application;
  4 +
  5 +define('SITE_MAIN', 'http://huodong.yohobuy.com'); // 网站主域名
  6 +define('OLD_MAIN', 'http://huodong.yohobuy.com'); // 网站旧域名
  7 +define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
  8 +define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀
  9 +define('USE_CACHE', true); // 缓存的开关
  10 +define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
  11 +define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
  12 +defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'production');
  13 +
  14 +$application = new Application(APPLICATION_PATH . '/configs/application.production.ini');
  15 +$application->bootstrap()->run();
  1 +User-agent: *
  2 +Disallow:
@@ -78,8 +78,6 @@ class Bootstrap extends Bootstrap_Abstract @@ -78,8 +78,6 @@ class Bootstrap extends Bootstrap_Abstract
78 case 'm': // 老版(到频道选择) 78 case 'm': // 老版(到频道选择)
79 case 'buy': // 测试环境的域名, 以后可去掉 79 case 'buy': // 测试环境的域名, 以后可去掉
80 case 'login': // 登录 80 case 'login': // 登录
81 - case 'm20160224': // AWS TEST  
82 - case 'login20160224': // AWS TEST  
83 break; 81 break;
84 case 'new': // 原新版(到男生首页) 82 case 'new': // 原新版(到男生首页)
85 $controller = 'Boys'; 83 $controller = 'Boys';
@@ -41,7 +41,7 @@ class HfController extends AbstractAction @@ -41,7 +41,7 @@ class HfController extends AbstractAction
41 * patchv 当前补丁的版本号,没有就传空 string "100" 41 * patchv 当前补丁的版本号,没有就传空 string "100"
42 * filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332" 42 * filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332"
43 * ] 43 * ]
44 - * echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main.js')); exit; 44 + * echo md5(file_get_contents('http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-4.js')); exit;
45 */ 45 */
46 public function v1Action() 46 public function v1Action()
47 { 47 {
@@ -51,9 +51,9 @@ class HfController extends AbstractAction @@ -51,9 +51,9 @@ class HfController extends AbstractAction
51 $version = $this->post('app_version'); 51 $version = $this->post('app_version');
52 switch ($version) { 52 switch ($version) {
53 case '4.0.1': // 版本 53 case '4.0.1': // 版本
54 - $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-3.js'; 54 + $result['data']['url'] = 'http://cdn.yoho.cn/app-hotfix/yohobuy/4.0.1/main-4.js';
55 $result['data']['patchv'] = '103'; 55 $result['data']['patchv'] = '103';
56 - $result['data']['filecode'] = md5('8e28e7b0c69e803b28b61e2e373ae162' . 'yohopatch2016'); 56 + $result['data']['filecode'] = md5('f9c03ec39cfb2686d2b778e444fb2306' . 'yohopatch2016');
57 $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data'])); 57 $result['md5'] = md5(self::PRIVATE_KEY . ':' . json_encode($result['data']));
58 break; 58 break;
59 case '4.0.0': // 版本 59 case '4.0.0': // 版本
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
@@ -2,10 +2,10 @@ @@ -2,10 +2,10 @@
2 2
3 use Yaf\Application; 3 use Yaf\Application;
4 4
5 -define('SITE_MAIN', 'http://m20160224.yohobuy.com'); // 网站主域名 5 +define('SITE_MAIN', 'http://m.yohobuy.com'); // 网站主域名
6 define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名 6 define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
7 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域 7 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
8 -define('SUB_DOMAIN', '.m20160224.yohobuy.com'); // 子域名后缀 8 +define('SUB_DOMAIN', '.m.yohobuy.com'); // 子域名后缀
9 define('USE_CACHE', true); // 缓存的开关 9 define('USE_CACHE', true); // 缓存的开关
10 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录 10 define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
11 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录 11 define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
@@ -78,8 +78,6 @@ class Bootstrap extends Bootstrap_Abstract @@ -78,8 +78,6 @@ class Bootstrap extends Bootstrap_Abstract
78 case 'new': // 原新版 78 case 'new': // 原新版
79 case 'dev': // 开发环境 79 case 'dev': // 开发环境
80 case 'web': 80 case 'web':
81 - case 'www20160224': // AWS TEST  
82 - case 'new20160224': // AWS TEST  
83 break; 81 break;
84 case 'search': // 搜索 82 case 'search': // 搜索
85 $module = 'Product'; 83 $module = 'Product';
1 [memcached] 1 [memcached]
2 -master.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111  
3 -slave.hosts=172.31.22.1:12112,172.31.20.56:12112,172.31.31.146:12112  
4 -session.hosts=172.31.22.1:12111,172.31.20.56:12111,172.31.31.146:12111 2 +master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
  3 +slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
  4 +session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
5 5
6 [redis] 6 [redis]
7 servers.hosts=127.0.0.1:6379 7 servers.hosts=127.0.0.1:6379
1 <?php 1 <?php
2 use Yaf\Application; 2 use Yaf\Application;
3 3
4 -define('SITE_MAIN', 'http://www20160224.yohobuy.com'); // 网站主域名 4 +define('SITE_MAIN', 'http://www.yohobuy.com'); // 网站主域名
5 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名 5 define('OLD_MAIN', 'http://www.yohobuy.com'); // 网站旧域名
6 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域 6 define('COOKIE_DOMAIN', '.yohobuy.com'); // COOKIE作用域
7 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀 7 define('SUB_DOMAIN', '.yohobuy.com'); // 子域名后缀