Authored by hf

code review by hf: merge master code ti develop

Showing 28 changed files with 741 additions and 80 deletions
... ... @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>页面不存在 | Yoho!Buy有货</title>
<title>页面不存在</title>
<meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">
<meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
... ... @@ -27,7 +27,7 @@
<body >
<header class="yoho-header boys">
<a href="javascript:history.go(-1);" class="nav-back"></a>
<a href="http://m.dev.yohobuy.com?go=1" class="nav-home"></a>
<a href="http://m.yohobuy.com?go=1" class="nav-home"></a>
<p class="nav-title">抱歉,页面不存在!</p>
</header>
<div class="err-page yoho-page">
... ...
... ... @@ -14,7 +14,7 @@
}
.help {
padding: 30px 30px;
font-size: 18px;
font-size: 26px;
line-height: 1.5;
color: #444;
}
... ... @@ -35,8 +35,7 @@
</ul>
<p>其他说明:</p>
<ul>
<li>1. YOHO!BUY有货对用户在本站进行晒单评价的文字、图片享有使用权利;</li>
<li>2. 用户所晒单评价的文字、图片提交发布后,默认同步YOHO!SHOW平台;</li>
<li>YOHO!BUY有货对用户在本站进行晒单评价的文字、图片享有使用权利</li>
</ul>
</div>
</body>
... ...
<?php return function ($in, $debugopt = 1) {
$cx = array(
'flags' => array(
'jstrue' => false,
'jsobj' => false,
'spvar' => true,
'prop' => false,
'method' => false,
'mustlok' => true,
'echo' => false,
'debug' => $debugopt,
),
'constants' => array(),
'helpers' => array(),
'blockhelpers' => array(),
'hbhelpers' => array(),
'partials' => array(),
'scopes' => array(),
'sp_vars' => array('root' => $in),
'lcrun' => 'Plugin\LCRun3',
);
return '<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>'.Plugin\LCRun3::debug('[staticTitle]', 'encq', $cx, Plugin\LCRun3::debug('[staticTitle]', 'v', $cx, $in, array('staticTitle'))).'</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<style>
*{margin: 0;padding: 0;}
#coupon-container {width: 100%;}
#coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;}
.img-box {width: 100%;position: relative;}
.img-box .href {width: 50%; height: 100%;position: absolute;top: 0;}
.img-box .href-left {left: 0}
.img-box .href-right {right: 0}
.img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
.show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
.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;
}
</style>
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
</head>
<body>
<div class="coupon-container" id="coupon-container" param="'.Plugin\LCRun3::debug('[activityId]', 'encq', $cx, Plugin\LCRun3::debug('[activityId]', 'v', $cx, $in, array('activityId'))).'" isLogged="'.Plugin\LCRun3::debug('[isLogged]', 'encq', $cx, Plugin\LCRun3::debug('[isLogged]', 'v', $cx, $in, array('isLogged'))).'">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/01.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/02.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/03.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/04.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/05.jpg">
<a class="href href-right" href="'.Plugin\LCRun3::debug('[url_yohope]', 'encq', $cx, Plugin\LCRun3::debug('[url_yohope]', 'v', $cx, $in, array('url_yohope'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/06.jpg">
<a class="href href-center" href="'.Plugin\LCRun3::debug('[url_mycoupon]', 'encq', $cx, Plugin\LCRun3::debug('[url_mycoupon]', 'v', $cx, $in, array('url_mycoupon'))).'"></a>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-2.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/07.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/08.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_more]', 'encq', $cx, Plugin\LCRun3::debug('[url_more]', 'v', $cx, $in, array('url_more'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/09.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16567"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/10.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/11.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_4]', 'encq', $cx, Plugin\LCRun3::debug('[url_4]', 'v', $cx, $in, array('url_4'))).'"></a>
<a class="href href-right" href="'.Plugin\LCRun3::debug('[url_343]', 'encq', $cx, Plugin\LCRun3::debug('[url_343]', 'v', $cx, $in, array('url_343'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/12.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16547"></span>
<span class="href href-right get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16549"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/13.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_230]', 'encq', $cx, Plugin\LCRun3::debug('[url_230]', 'v', $cx, $in, array('url_230'))).'"></a>
<a class="href href-right" href="'.Plugin\LCRun3::debug('[url_536]', 'encq', $cx, Plugin\LCRun3::debug('[url_536]', 'v', $cx, $in, array('url_536'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/14.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16551"></span>
<span class="href href-right get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16553"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/15.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_847]', 'encq', $cx, Plugin\LCRun3::debug('[url_847]', 'v', $cx, $in, array('url_847'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/16.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16555"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/17.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/18.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_868]', 'encq', $cx, Plugin\LCRun3::debug('[url_868]', 'v', $cx, $in, array('url_868'))).'"></a>
<a class="href href-right" href="'.Plugin\LCRun3::debug('[url_1026]', 'encq', $cx, Plugin\LCRun3::debug('[url_1026]', 'v', $cx, $in, array('url_1026'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/19.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16557"></span>
<span class="href href-right get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16559"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/20.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_570]', 'encq', $cx, Plugin\LCRun3::debug('[url_570]', 'v', $cx, $in, array('url_570'))).'"></a>
<a class="href href-right" href="'.Plugin\LCRun3::debug('[url_778]', 'encq', $cx, Plugin\LCRun3::debug('[url_778]', 'v', $cx, $in, array('url_778'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/21.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16561"></span>
<span class="href href-right get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16563"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/22.jpg">
<a class="href href-left" href="'.Plugin\LCRun3::debug('[url_517]', 'encq', $cx, Plugin\LCRun3::debug('[url_517]', 'v', $cx, $in, array('url_517'))).'"></a>
</div>
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/23.jpg">
<span class="href href-left get-coupon" href="'.Plugin\LCRun3::debug('[jumpUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jumpUrl]', 'v', $cx, $in, array('jumpUrl'))).'" param="16565"></span>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-1.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-2.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/24-1.jpg">
<div class="img-box">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/24-2.jpg">
<a class="show-more" href="'.Plugin\LCRun3::debug('[url_help]', 'encq', $cx, Plugin\LCRun3::debug('[url_help]', 'v', $cx, $in, array('url_help'))).'"></a>
</div>
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/24-3.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/line-2.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/25.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/26.jpg">
<img src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/img/newuser/27.jpg">
</div>
<script type="text/javascript" src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="'.Plugin\LCRun3::debug('[jsUrl]', 'encq', $cx, Plugin\LCRun3::debug('[jsUrl]', 'v', $cx, $in, array('jsUrl'))).'/cuxiao/js/newuser/coupon.js"></script>
</body>
</html>';
}
?>
\ No newline at end of file
... ...
... ... @@ -442,6 +442,7 @@ class Helpers
* 验证国际手机号是否合法
*
* @param string $areaMobile
* @param int $area
* @return boolean
*/
public static function verifyAreaMobile($areaMobile, $area)
... ...
* {
margin: 0;
padding: 0;
}
.coupon-christmas img {
display: block;
max-width: 100%;
}
.coupon-top {
position: relative;
}
.coupon-top .go-check {
position: absolute;
top: 5.325rem;
width: 100%;
height: 10.5rem;
}
.coupon-top .share-btn {
position: absolute;
width: 14.125rem;
height: 2.525rem;
bottom: 2.575rem;
left: 50%;
margin: 0 0 0 -7.0625rem;
}
.coupon-top .wyf {
position: absolute;
width: 5.95rem;
right: 0;
top: 0.1rem;
}
.coupon-bottom {
height: 11rem;
background: url(../../img/christmas/02/bottom-bg.png) no-repeat bottom center;
background-size: 100% auto;
}
.coupon-banner {
position: relative;
height: 7.675rem;
}
.banner-btn {
position: absolute;
width: 100%;
height: 1.775rem;
bottom: 0;
font-size: 0;
text-align: center;
}
.banner-btn a{
display: inline-block;
height: 100%;
}
.banner-btn .boy {
width: 3.525rem;
}
.banner-btn .girl {
width: 3.35rem;
}
.banner-btn .life {
width: 4.025rem;
}
.banner-btn .kid {
width: 3.25rem;
}
.bottom-btn {
position: relative;
width: 13.725rem;
height: 1.725rem;
margin: 0.875rem auto 0;
font-size: 0;
}
.bottom-btn a{
position: absolute;
top: 0;
width: 8.2rem;
height: 100%;
}
.bottom-btn a.follow-yoho {
width: 5.275rem;
left: 0;
}
.bottom-btn a.download-yoho {
right: 0;
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: url(../../img/christmas/02/share-2.png) center top no-repeat;
-webkit-background-size: 100%;
-moz-background-size: 100%;
background-size: 100%;
display: none;
}
.has-done {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.4) url(../../img/christmas/02/11.png);
background-repeat: no-repeat;
background-size: 80% auto;
background-position: center center;
overflow: hidden;
display: none;
}
.dialog-box {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.4);
z-index: 999;
}
.dialog-inner {
position: absolute;
width: 13.375rem;
height: 9.625rem;
top: 50%;
left: 50%;
margin: -4.8125rem 0 0 -6.6875rem;
}
.dialog-inner img {
max-width: 100%;
}
.dialog-inner span {
position: absolute;
width: 8.225rem;
height: 1.85rem;
bottom: 1.475rem;
left: 50%;
margin: 0 0 0 -4.1125rem;
cursor: pointer;
}
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>{{staticTitle}}</title>
<meta name="apple-mobile-web-app-title" content="SUMMER SALE">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="grey">
<link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/christmas/index3.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<script>
(function(doc, win) {
var docEl = doc.documentElement;
(function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) {
return;
}
docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
}());
})(document, window);
</script>
</head>
<body class="keBody">
<div class="coupon-christmas" show="{{showPopupFlag}}">
<div class="coupon-top">
<img src="{{imgUrl}}/cuxiao/img/christmas/02/top-bg.png" alt="">
<img class="wyf" src="{{imgUrl}}/cuxiao/img/christmas/02/wyf.gif" alt="">
<a class="go-check" href="{{myCouponUrl}}"></a>
<a class="share-btn" href="javascript:;"></a>
</div>
<div class="coupon-bottom">
<div class="coupon-banner">
<div class="banner-btn">
<a class="boy" href="{{bannerUrl_1}}"></a>
<a class="girl" href="{{bannerUrl_2}}"></a>
<a class="life" href="{{bannerUrl_3}}"></a>
<a class="kid" href="{{bannerUrl_4}}"></a>
</div>
</div>
<div class="bottom-btn">
<a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&amp;mid=201849402&amp;idx=1&amp;sn=c0089812f9769d82e0075f69d771f6e1#rd"></a>
<a class="download-yoho" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&amp;g_f=995445"></a>
</div>
</div>
<div class="coupon-ft">
<img src="{{imgUrl}}/cuxiao/img/christmas/02/14.png">
</div>
</div>
<div class="modal"></div>
<div class="dialog-box geted">
<div class="dialog-inner">
<img src="{{imgUrl}}/cuxiao/img/christmas/geted.png" alt=""/>
<span class="dialog-close"></span>
</div>
</div>
<div class="dialog-box fail">
<div class="dialog-inner">
<img src="{{imgUrl}}/cuxiao/img/christmas/fail.png" alt=""/>
<span class="refresh-btn"></span>
</div>
</div>
<input id="shareLink" type="hidden" value="{{shareLink}}">
<input id="shareImg" type="hidden" value="{{shareImg}}">
<input id="shareTitle" type="hidden" value="{{shareTitle}}">
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script>
<script>
//提示分享
$('.share-btn').click(function () {
$('.modal').fadeIn();
});
//关闭提示分享
$('.modal').click(function () {
$(this).fadeOut();
});
//提示已领过券
if ($('.coupon-christmas').attr('show') === '1') {
$('.dialog-box.geted').show();
}
//提示领券失败
else if ($('.coupon-christmas').attr('show') === '2') {
$('.dialog-box.fail').show();
}
//关闭提示
$('.dialog-close').click(function(){
$(this).parents('.dialog-box').fadeOut();
});
//刷新页面
$('.refresh-btn').click(function() {
location.reload();
});
</script>
{{#if weixinShare}}
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" charset="utf-8" src="{{jsUrl}}/cuxiao/js/share.weixin.js"></script>
{{/if}}
{{> layout/analysis}}
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{staticTitle}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<style>
*{margin: 0;padding: 0;}
#coupon-container {width: 100%;}
#coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;}
.img-box {width: 100%;position: relative;}
.img-box .href {width: 50%; height: 100%;position: absolute;top: 0;}
.img-box .href-left {left: 0}
.img-box .href-right {right: 0}
.img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
.show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
.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;
}
</style>
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
</head>
<body>
<div class="coupon-container" id="coupon-container" param="{{activityId}}" isLogged="{{isLogged}}">
<img src="{{jsUrl}}/cuxiao/img/newuser2/01.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/02.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/03.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/04.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/05.jpg">
<a class="href href-right" href="{{url_yohope}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/06.jpg">
<a class="href href-center" href="{{url_mycoupon}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/07.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/08.jpg">
<a class="href href-left" href="{{url_more}}"></a>
<a class="href href-right" href="{{url_more}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12042"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12043"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/10.jpg">
<a class="href href-left" href="{{url_4}}"></a>
<a class="href href-right" href="{{url_343}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12044"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12045"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/12.jpg">
<a class="href href-left" href="{{url_230}}"></a>
<a class="href href-right" href="{{url_536}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/13.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12046"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12047"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/14.jpg">
<a class="href href-left" href="{{url_847}}"></a>
<a class="href href-right" href="{{url_900}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/15.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12048"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12049"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/16.jpg">
<a class="href href-left" href="{{url_868}}"></a>
<a class="href href-right" href="{{url_1026}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12050"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12051"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/24-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/24-2.jpg">
<a class="show-more" href="{{url_help}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/24-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/25.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/26.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser2/27.jpg">
</div>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/newuser/coupon2.js"></script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -59,8 +59,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12042"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12043"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16753"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16755"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -70,8 +70,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12044"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12045"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16757"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16759"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -81,8 +81,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/13.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12046"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12047"></span>
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="16761"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="16763"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -92,8 +92,8 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/15.jpg">
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="12048"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="12049"></span>
<span class="href href-left get-coupon" onclick="" href="{{jumpUrl}}" param="16765"></span>
<span class="href href-right get-coupon" onclick="" href="{{jumpUrl}}" param="16767"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<div class="img-box">
... ... @@ -103,10 +103,12 @@
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12050"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12051"></span>
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="16769"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="16771"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser2/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/24-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser2/24-2.jpg">
<a class="show-more" href="{{url_help}}"></a>
... ...
{{!-- APP 内置晒单介绍 --}}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>晒单评价规则</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
ul {
list-style: none;
margin-bottom: 30px;
}
.help {
padding: 30px 30px;
font-size: 24px;
line-height: 1.5;
color: #444;
}
</style>
</head>
<body>
<div class="help">
<p>晒单评价规则:</p>
<ul>
<li>1. 只能对您购买过的商品进行晒单评价;</li>
<li>2. 晒单通过审核后即可获得奖励,且一件商品只能获得一次晒单奖励;</li>
<li>3. 未通过审核的晒单评价内容将会被删除,若多次出现晒单评价未审核通过的情况,YOHO!BUY有货有权禁止该用户对商品继续晒单评价;</li>
</ul>
<p>如何通过审核:</p>
<ul>
<li>1. 晒单图片应与商品相关、且不得出现含违反法律、法规的内容的;</li>
<li>2. 评价应有一定参考价值的信息,不可以直接拷贝别人的评价文字哦~</li>
</ul>
<p>其他说明:</p>
<ul>
<li>YOHO!BUY有货对用户在本站进行晒单评价的文字、图片享有使用权利</li>
</ul>
</div>
</body>
<head>
<meta charset="utf-8">
<title>晒单评价规则</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
ul {
list-style: none;
margin-bottom: 30px;
}
.help {
padding: 30px 30px;
font-size: 26px;
line-height: 1.5;
color: #444;
}
</style>
</head>
<body>
<div class="help">
<p>晒单评价规则:</p>
<ul>
<li>1. 只能对您购买过的商品进行晒单评价;</li>
<li>2. 晒单通过审核后即可获得奖励,且一件商品只能获得一次晒单奖励;</li>
<li>3. 未通过审核的晒单评价内容将会被删除,若多次出现晒单评价未审核通过的情况,YOHO!BUY有货有权禁止该用户对商品继续晒单评价;</li>
</ul>
<p>如何通过审核:</p>
<ul>
<li>1. 晒单图片应与商品相关、且不得出现含违反法律、法规的内容的;</li>
<li>2. 评价应有一定参考价值的信息,不可以直接拷贝别人的评价文字哦~</li>
</ul>
<p>其他说明:</p>
<ul>
<li>YOHO!BUY有货对用户在本站进行晒单评价的文字、图片享有使用权利</li>
</ul>
</div>
</body>
</html>
\ No newline at end of file
... ...
<?php
use Action\AbstractAction;
/**
* 跳转
*/
class GoController extends AbstractAction
{
/**
* 跳转PC或WAP
*/
public function indexAction()
{
$pc = $this->get('pc', 'http://www.yohobuy.com');
$wap = $this->get('wap', 'http://m.yohobuy.com');
$pc = rawurldecode($pc);
$wap = rawurldecode($wap);
// 苹果设备
if (strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) {
$this->go($wap);
}
// 苹果IPAD
elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
$this->go($pc);
}
// 安卓设备
elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'Android')) {
$this->go($wap);
}
// 其它
else {
$this->go($pc);
}
}
}
\ No newline at end of file
... ...
... ... @@ -36,7 +36,7 @@ class ChristmasController extends HuodongAction
switch (intval($result['code'])) {
case 200: // 领取成功, 发送站内信消息
$showPopupFlag = '0';
$this->sendMessage($uid);
$this->sendMessage($uid, '【优惠券】您有6张潮集圣诞优惠券', '尊敬的客户:恭喜您成功获得6张潮集圣诞优惠券 !您可以在个人中心的交易管理中查看‘我的优惠券’。');
break;
case 201: // 已领取过, 提示重复领券
$showPopupFlag = '1';
... ... @@ -49,13 +49,11 @@ class ChristmasController extends HuodongAction
$this->_view->display('index', array(
'staticTitle' => '潮集圣诞',
'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
'shareLink' => 'http://feature.yohobuy.com/0/0/675/index.html',
'shareTitle' => 'YOHO!BUY有货【潮集圣诞】第一弹来袭!500元优惠券引爆圣诞!',
'shareDesc' => '万件潮品限时58折封顶,再享折上满减,还有惊喜圣诞礼物等你来挑哦!',
'shareImg' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/09/029fd41969b67002126ff7a71fe5396b6e.png',
'showPopupFlag' => $showPopupFlag,
'myCouponUrl' => $myCouponUrl,
'bannerUrl_1' => 'http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1211/1211APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"454"},"param":{"share_id":"454"}}}',
... ... @@ -64,6 +62,56 @@ class ChristmasController extends HuodongAction
}
/**
* 备注:2015年12月11号上线
*/
public function christmas2Action()
{
//获取登录者ID,未登录返回false
$uid = $this->getLoggedUid();
if (!$uid || !is_numeric($uid)) {
//未登录的用户访问,跳转到登录页面。并且在登陆后跳转回本页面
$this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/christmas/christmas2')), 'default'));
}
// 该变量用来控制和显示页面的弹出提示
$showPopupFlag = '0';
//获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作
$myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}';
$activityId = $this->getActivityId2();
$result = ActivityData::getCouponAll($uid, $activityId);
if (isset($result['code'])) {
switch (intval($result['code'])) {
case 200: // 领取成功, 发送站内信消息
$showPopupFlag = '0';
$this->sendMessage($uid, '【优惠券】您获得1000元套券', '尊敬的客户:恭喜您成功获得1000元套券!您可以在个人中心的交易管理中查看‘我的优惠券’。');
break;
case 201: // 已领取过, 提示重复领券
$showPopupFlag = '1';
break;
default: // 领取失败, 提示领券失败
$showPopupFlag = '2';
break;
}
}
$this->_view->display('index-2', array(
'staticTitle' => '潮集圣诞',
'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享
'shareLink' => 'http://feature.yohobuy.com/0/0/701/index.html',
'shareTitle' => 'YOHO!BUY有货【潮集圣诞】第二弹来袭!1000元优惠券引爆圣诞!',
'shareDesc' => '万件潮品限时5折封顶,冬季优品最高直减800元,还有惊喜圣诞礼物等你来挑哦!',
'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2015/12/17/09/014bba1e01a0aef86fa4c81f1c926a0d62.png',
'showPopupFlag' => $showPopupFlag,
'myCouponUrl' => $myCouponUrl,
'bannerUrl_1' => 'http://feature.yoho.cn/1221/1221APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1221/1221APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"530"},"param":{"share_id":"530"}}}',
'bannerUrl_2' => 'http://feature.yoho.cn/1221/1221APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1221/1221APPHOMEGIRL/index.html","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"532"},"param":{"share_id":"532"}}}',
'bannerUrl_3' => 'http://feature.yoho.cn/1221/1221APPHOMELIFE/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1221/1221APPHOMELIFE/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"536"},"param":{"share_id":"536"}}}',
'bannerUrl_4' => 'http://feature.yoho.cn/1221/1221APPHOMEKIDS/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"潮集圣诞","url":"http://feature.yoho.cn/1221/1221APPHOMEKIDS/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"534"},"param":{"share_id":"534"}}}',
));
}
/**
* 检测登录状态
*
* @return int
... ... @@ -81,18 +129,17 @@ class ChristmasController extends HuodongAction
return $uid;
}
/**
* 发送站内信
*
* @param int $uid 用户ID
*/
private function sendMessage($uid)
private function sendMessage($uid, $title, $content)
{
try {
ActivityData::message($uid, '【优惠券】您有6张潮集圣诞优惠券', '尊敬的客户:恭喜您成功获得6张潮集圣诞优惠券 !您可以在个人中心的交易管理中查看‘我的优惠券’。');
}
catch (Exception $e) {
ActivityData::message($uid, $title, $content);
} catch (Exception $e) {
// do nothing
}
}
... ... @@ -116,4 +163,23 @@ class ChristmasController extends HuodongAction
}
}
/**
* 根据环境来获取活动ID
*
* @return int
*/
private function getActivityId2()
{
// 设置环境变量
switch (APPLICATION_ENV) {
case 'production': // 生产
return 390;
case 'preview': // 预览
case 'testing': // 测试
case 'develop': // 开发
default:
return 390;
}
}
}
... ...
... ... @@ -52,7 +52,7 @@ class CouponController extends HuodongAction
$urlGirls = Helpers::url('/cuxiao/coupon/girlsbrand');
$urlKids = Helpers::url('/cuxiao/coupon/kidsbrand');
$urlLifestyle = Helpers::url('/cuxiao/coupon/lifestylebrand');
$urlShare = '\/operations\/api\/v5\/webshare\/getShare';
$urlShare = Yohobuy::SERVICE_URL . '/operations/api/v5/webshare/getShare';
$urlEncode = strtr($urlBoys, array('/' => '\\/'));
$this->_view->display('boysbrand', array(
... ... @@ -67,10 +67,10 @@ class CouponController extends HuodongAction
'shareImg' => 'http://img12.static.yhbimg.com/couponImg/2015/11/26/09/0226ad7f8bcf5467a789e17b761c7557e0.jpg',
'shareDesc' => '2015感恩季!品牌专属优惠券限时送!先领券,再购物,让你乐享整个冬季!',
'url_boys' => $urlBoys . '?yohobuy={"action":"go.h5","params":{"id":"364","share":"' . $urlShare . '","shareparam":{"share_id":"406"},"islogin":"Y","type":0,"url":"' . $urlBoys . '","param":{}}}',
'url_girls' => $urlGirls . '?yohobuy={"action":"go.h5","params":{"id":"366","share":"' . $urlShare . '","shareparam":{"share_id":"408"},"islogin":"Y","type":0,"url":"' . $urlGirls . '","param":{}}}',
'url_kids' => $urlKids . '?yohobuy={"action":"go.h5","params":{"id":"368","share":"' . $urlShare . '","shareparam":{"share_id":"410"},"islogin":"Y","type":0,"url":"' . $urlKids . '","param":{}}}',
'url_lifestyle' => $urlLifestyle . '?yohobuy={"action":"go.h5","params":{"id":"370","share":"' . $urlShare . '","shareparam":{"share_id":"412"},"islogin":"Y","type":0,"url":"' . $urlLifestyle . '","param":{}}}',
'url_boys' => $urlBoys . '?yohobuy={"action":"go.h5","params":{"id":"364","share":"' . $urlShare . '","shareparam":{"share_id":"406"},"islogin":"N","type":0,"url":"' . $urlBoys . '","param":{}}}',
'url_girls' => $urlGirls . '?yohobuy={"action":"go.h5","params":{"id":"366","share":"' . $urlShare . '","shareparam":{"share_id":"408"},"islogin":"N","type":0,"url":"' . $urlGirls . '","param":{}}}',
'url_kids' => $urlKids . '?yohobuy={"action":"go.h5","params":{"id":"368","share":"' . $urlShare . '","shareparam":{"share_id":"410"},"islogin":"N","type":0,"url":"' . $urlKids . '","param":{}}}',
'url_lifestyle' => $urlLifestyle . '?yohobuy={"action":"go.h5","params":{"id":"370","share":"' . $urlShare . '","shareparam":{"share_id":"412"},"islogin":"N","type":0,"url":"' . $urlLifestyle . '","param":{}}}',
'url_350' => 'http://list.m.yohobuy.com/?gender=1,3&brand=350&openby:yohobuy={"action":"go.list","params":{"gender":"1,3","brand":"350","title":"MACROPUS"}}',
'url_160' => 'http://list.m.yohobuy.com/?gender=1,3&brand=60&openby:yohobuy={"action":"go.list","params":{"gender":"1,3","brand":"60","title":"izzue"}}',
... ... @@ -502,10 +502,8 @@ class CouponController extends HuodongAction
));
}
/**
* 新客领券2
*
*
/**
* 新客领券(第二波)12月21号上线
*/
public function newuser2Action()
{
... ... @@ -518,17 +516,26 @@ class CouponController extends HuodongAction
} else {
$isLogged = $this->getUid();
}
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser');
$urlNewuser = Helpers::url('/cuxiao/coupon/newuser2');
$urlYohope = Helpers::url('/cuxiao/coupon/yohope');
$urlHelp = Helpers::url('/cuxiao/coupon/help');
$urlMycoupon = Helpers::url('/home/coupons', null, 'default');
$urlEncode = strtr($urlNewuser, array('/' => '\\/'));
$gender = $this->get('gender', '1,3');
$channel = $this -> get('yh_channel','1');
$url = Helpers::url('/boys') . '?openbuy:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
$channel = $this -> get('yh_channel', '1');
switch (strval($channel)) {
case '1':
$gender = '1,3';
break;
case '2':
$gender = '2,3';
break;
default:
$gender = '1,2,3';
}
$url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
$this->_view->display('newuser2', array(
'activityId' => 87, // 活动ID 444
'activityId' => 444, // 87活动ID
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
... ...
... ... @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.0.1"
application.version = "1.0.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.0.1"
application.version = "1.0.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.0.1"
application.version = "1.0.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -50,7 +50,7 @@ application.template.ext = ".phtml"
application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.0.1"
application.version = "1.0.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...