Authored by hf

do add product detail preference call api

... ... @@ -66,12 +66,14 @@ class DetailData
/**
* 为你优选的商品列表
*
* @todo 需要替换成JAVA接口
* @param int $productSkn 商品SKN号
* @return array
*/
public static function preference($productSkn)
{
$param = Yohobuy::param();
$param['method'] = 'app.product.topreference';
$param['product_skn'] = $productSkn;
$param['client_secret'] = Sign::getSign($param);
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>{{staticTitle}}</title>
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/cuxiao/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(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>
<div class="coupon-container" id="coupon-container" param="{{activityId}}">
<div class="coupon-hd"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.1-12.6期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.1-12.6期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="floor-header best-choice"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon01">
<li>
<a class="enter-store" href="{{url_350}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15659"></a>
</li>
<li>
<a class="enter-store" href="{{url_160}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15663"></a>
</li>
</ul>
<ul class="img-coupon02">
<li>
<a class="enter-store" href="{{url_341}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15667"></a>
</li>
<li>
<a class="enter-store" href="{{url_710}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15669"></a>
</li>
</ul>
<ul class="img-coupon03">
<li>
<a class="enter-store" href="{{url_471}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15671"></a>
</li>
<li>
<a class="enter-store" href="{{url_495}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15675"></a>
</li>
</ul>
<ul class="img-coupon04">
<li>
<a class="enter-store" href="{{url_235}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15681"></a>
</li>
<li>
<a class="enter-store" href="{{url_583}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15683"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon01">
<a class="enter-store" href="{{url_417}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15665"></a>
</li>
<li class="logo-coupon02">
<a class="enter-store" href="{{url_672}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15673"></a>
</li>
<li class="logo-coupon03">
<a class="enter-store" href="{{url_589}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15679"></a>
</li>
<li class="logo-coupon04">
<a class="enter-store" href="{{url_707}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15699"></a>
</li>
<li class="logo-coupon05">
<a class="enter-store" href="{{url_550}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15687"></a>
</li>
<li class="logo-coupon06">
<a class="enter-store" href="{{url_600}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15693"></a>
</li>
</ul>
</div>
<div class="floor-header top-recommend"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon05">
<li>
<a class="enter-store" href="{{url_402}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15685"></a>
</li>
<li>
<a class="enter-store" href="{{url_720}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15689"></a>
</li>
</ul>
<ul class="img-coupon06">
<li>
<a class="enter-store" href="{{url_138}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15691"></a>
</li>
<li>
<a class="enter-store" href="{{url_506}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15695"></a>
</li>
</ul>
<ul class="img-coupon07">
<li>
<a class="enter-store" href="{{url_419}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15697"></a>
</li>
<li>
<a class="enter-store" href="{{url_581}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15705"></a>
</li>
</ul>
<ul class="img-coupon08">
<li>
<a class="enter-store" href="{{url_722}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15707"></a>
</li>
<li>
<a class="enter-store" href="{{url_191}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15751"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon07">
<a class="enter-store" href="{{url_152}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15701"></a>
</li>
<li class="logo-coupon08">
<a class="enter-store" href="{{url_464}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15703"></a>
</li>
<li class="logo-coupon09">
<a class="enter-store" href="{{url_102}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15709"></a>
</li>
<li class="logo-coupon10">
<a class="enter-store" href="{{url_851}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15711"></a>
</li>
<li class="logo-coupon11">
<a class="enter-store" href="{{url_699}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15713"></a>
</li>
<li class="logo-coupon12">
<a class="enter-store" href="{{url_103}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15733"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="{{url_girls}}">女生</a>
<a href="{{url_kids}}">童装</a>
<a href="{{url_lifestyle}}">创意生活</a>
</div>
</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}}">
{{#if weixinShare}}
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
{{/if}}
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/151201/coupon.mobile.js"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>{{title}}</title>
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/cuxiao/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(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>
<div class="coupon-container" id="coupon-container" param="{{activityId}}">
<div class="coupon-hd"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.1-12.6期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.1-12.6期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="floor-header best-choice"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon01 girl">
<li>
<a class="get-coupon" href="{{url_570}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15755"></a>
</li>
<li>
<a class="get-coupon" href="{{url_864}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15761"></a>
</li>
</ul>
<ul class="img-coupon02 girl">
<li>
<a class="get-coupon" href="{{url_824}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15765"></a>
</li>
<li>
<a class="get-coupon" href="{{url_536}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15767"></a>
</li>
</ul>
<ul class="img-coupon03 girl">
<li>
<a class="get-coupon" href="{{url_257}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15773"></a>
</li>
<li>
<a class="get-coupon" href="{{url_342}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15775"></a>
</li>
</ul>
<ul class="img-coupon04 girl">
<li>
<a class="get-coupon" href="{{url_354}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15777"></a>
</li>
<li>
<a class="get-coupon" href="{{url_60}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15663"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon01 girl">
<a class="enter-store" href="{{url_481}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15757"></a>
</li>
<li class="logo-coupon02 girl">
<a class="enter-store" href="{{url_450}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15759"></a>
</li>
<li class="logo-coupon03 girl">
<a class="enter-store" href="{{url_256}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15763"></a>
</li>
<li class="logo-coupon04 girl">
<a class="enter-store" href="{{url_701}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15769"></a>
</li>
<li class="logo-coupon05 girl">
<a class="enter-store" href="{{url_506}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15695"></a>
</li>
<li class="logo-coupon06 girl">
<a class="enter-store" href="{{url_569}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15779"></a>
</li>
</ul>
</div>
<div class="floor-header top-recommend"></div>
<div class="img-coupon clearfix">
<ul class="img-coupon05 girl">
<li>
<a class="get-coupon" href="{{url_324}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15783"></a>
</li>
<li>
<a class="get-coupon" href="{{url_589}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15679"></a>
</li>
</ul>
<ul class="img-coupon06 girl">
<li>
<a class="get-coupon" href="{{url_191}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15751"></a>
</li>
<li>
<a class="get-coupon" href="{{url_4}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15715"></a>
</li>
</ul>
<ul class="img-coupon07 girl">
<li>
<a class="get-coupon" href="{{url_768}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15795"></a>
</li>
<li>
<a class="get-coupon" href="{{url_649}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15799"></a>
</li>
</ul>
<ul class="img-coupon08 girl">
<li>
<a class="get-coupon" href="{{url_1026}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15811"></a>
</li>
<li>
<a class="get-coupon" href="{{url_1027}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15813"></a>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon07 girl">
<a class="enter-store" href="{{url_981}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15787"></a>
</li>
<li class="logo-coupon08 girl">
<a class="enter-store" href="{{url_402}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15793"></a>
</li>
<li class="logo-coupon09 girl">
<a class="enter-store" href="{{url_1021}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15709"></a>
</li>
<li class="logo-coupon10 girl">
<a class="enter-store" href="{{url_860}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15801"></a>
</li>
<li class="logo-coupon11 girl">
<a class="enter-store" href="{{url_435}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15803"></a>
</li>
<li class="logo-coupon12 girl">
<a class="enter-store" href="{{url_327}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15805"></a>
</li>
<li class="logo-coupon13 girl">
<a class="enter-store" href="{{url_505}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15807"></a>
</li>
<li class="logo-coupon14 girl">
<a class="enter-store" href="{{url_987}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15809"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="{{url_boys}}">男生</a>
<a href="{{url_kids}}">童装</a>
<a href="{{url_lifestyle}}">创意生活</a>
</div>
</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" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/151201/coupon.mobile.js"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>{{title}}</title>
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/cuxiao/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(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>
<div class="coupon-container" id="coupon-container" param="{{activityId}}">
<div class="coupon-hd hd2"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.1-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.1-12.10期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon01 kid">
<a class="enter-store" href="{{url_907}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15859"></a>
</li>
<li class="logo-coupon02 kid">
<a class="enter-store" href="{{url_600}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15693"></a>
</li>
<li class="logo-coupon03 kid">
<a class="enter-store" href="{{url_888}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15863"></a>
</li>
<li class="logo-coupon04 kid">
<a class="enter-store" href="{{url_855}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15865"></a>
</li>
<li class="logo-coupon05 kid">
<a class="enter-store" href="{{url_203}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15867"></a>
</li>
<li class="logo-coupon06 kid">
<a class="enter-store" href="{{url_800}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15869"></a>
</li>
<li class="logo-coupon07 kid">
<a class="enter-store" href="{{url_784}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15871"></a>
</li>
<li class="logo-coupon08 kid">
<a class="enter-store" href="{{url_876}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="16145"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="{{url_boys}}">男生</a>
<a href="{{url_girls}}">女生</a>
<a href="{{url_lifestyle}}">创意生活</a>
</div>
</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" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/151201/coupon.mobile.js"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>{{title}}</title>
<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/cuxiao/151201/coupon.mobile.css">
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(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>
<div class="coupon-container" id="coupon-container" param="{{activityId}}">
<div class="coupon-hd hd2"></div>
<div class="coupon-bd">
<div class="bd-top"></div>
<div class="bd-bottom"></div>
<div class="coupon-rule">
<h2></h2>
<ul>
<li class="clearfix">
<span>如何领取</span>
<em>12.1-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em>
</li>
<li class="clearfix">
<span>使用方法</span>
<em>12.1-12.10期间,在结算页面选择使用相应的优惠券。</em>
</li>
<li class="clearfix">
<span>使用细则</span>
<em>在个人中心查看我的优惠券,每个订单限制用一张。</em>
</li>
</ul>
</div>
<div class="logo-coupon">
<ul>
<li class="logo-coupon01 life">
<a class="enter-store" href="{{url_166}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15875"></a>
</li>
<li class="logo-coupon02 life">
<a class="enter-store" href="{{url_201}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15877"></a>
</li>
<li class="logo-coupon03 life">
<a class="enter-store" href="{{url_626}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15879"></a>
</li>
<li class="logo-coupon04 life">
<a class="enter-store" href="{{url_1024}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15881"></a>
</li>
<li class="logo-coupon05 life">
<a class="enter-store" href="{{url_675}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15717"></a>
</li>
<li class="logo-coupon06 life">
<a class="enter-store" href="{{url_801}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15885"></a>
</li>
<li class="logo-coupon07 life">
<a class="enter-store" href="{{url_686}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15887"></a>
</li>
<li class="logo-coupon08 life">
<a class="enter-store" href="{{url_501}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15889"></a>
</li>
<li class="logo-coupon09 life">
<a class="enter-store" href="{{url_925}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15891"></a>
</li>
<li class="logo-coupon10 life">
<a class="enter-store" href="{{url_932}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15893"></a>
</li>
<li class="logo-coupon11 life">
<a class="enter-store" href="{{url_892}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15895"></a>
</li>
<li class="logo-coupon12 life">
<a class="enter-store" href="{{url_849}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15899"></a>
</li>
<li class="logo-coupon13 life">
<a class="enter-store" href="{{url_615}}"></a>
<a class="get-coupon" href="{{jumpUrl}}" param="15901"></a>
</li>
</ul>
</div>
</div>
<div class="coupon-ft">
<div class="other-coupon">
<a href="{{url_boys}}">男生</a>
<a href="{{url_girls}}">女生</a>
<a href="{{url_kids}}">童装</a>
</div>
</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" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script type="text/javascript" src="http://static.dev.yohobuy.com/js/cuxiao/151201/coupon.mobile.js"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<title>{{staticTitle}}</title>
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<script type="text/javascript">
(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>
<style>
*{margin: 0; padding: 0;}
#wrapper {width: 100%;}
#wrapper img {width: 100%; height: auto; display: block;overflow: hidden;}
.introduce {font-size: 0.5rem; line-height: 1rem;color: #444;padding: 0 0.75rem;margin-top: 1rem;text-indent: 1.125rem;font-family: "SimHei", "Helvetica", "Arial";}
.brand-item {height: auto;overflow: hidden;background: #f4f4f4;margin-bottom: 1rem;}
.brand-item li {display: block;width: 4rem;height: 4rem;float: left;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;-o-box-sizing: border-box;box-sizing: border-box;border-right: 1px solid #e0e0e0;border-bottom: 1px solid #e0e0e0;border: 1px solid #e0e0e0;}
/* .brand-item li:nth-child(4n+4) {border-right: none;} */
.brand-item li a,.brand-item li img {width: 100%;height: 100%;display: block;overflow: hidden;}
</style>
</head>
<body>
<div id="wrapper">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/banner.jpg">
<div class="introduce">
YOHOPE计划是中国潮流产业的领导者YOHO!集团联合潮流教父Nigo、五月天主唱阿信等全球潮流ICON共同推出的新锐设计师孵化平台,主意是“Help Dream”。该计划为具有设计天赋和潮流设计梦想的国内外原创设计师提供全方位的支持,共同打造更加多元化、更具代表性的设计师品牌和潮流文化,推动中国潮流生态圈的发展。
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/two.jpg">
<ul class="brand-item">
<li>
<a href="{{url_208}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-01.jpg">
</a>
</li>
<li>
<a href="{{url_256}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-02.jpg">
</a>
</li>
<li>
<a href="{{url_257}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-03.jpg">
</a>
</li>
<li>
<a href="{{url_450}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-04.jpg">
</a>
</li>
<li>
<a href="{{url_444}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-05.jpg">
</a>
</li>
<li>
<a href="{{url_443}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-06.jpg">
</a>
</li>
<li>
<a href="{{url_261}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-07.jpg">
</a>
</li>
<li>
<a href="{{url_350}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-08.jpg">
</a>
</li>
<li>
<a href="{{url_302}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-09.jpg">
</a>
</li>
<li>
<a href="{{url_852}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-10.jpg">
</a>
</li>
<li>
<a href="{{url_570}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-11.jpg">
</a>
</li>
<li><a href="{{url_560}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-12.jpg">
</a>
</li>
<li>
<a href="{{url_520}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-13.jpg">
</a>
</li>
<li>
<a href="{{url_562}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-14.jpg">
</a>
</li>
<li>
<a href="{{url_672}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-15.jpg">
</a>
</li>
<li>
<a href="{{url_678}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-16.jpg">
</a>
</li>
<li>
<a href="{{url_396}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-17.jpg">
</a>
</li>
<li>
<a href="{{url_397}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-18.jpg">
</a>
</li>
<li>
<a href="{{url_550}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-19.jpg">
</a>
</li>
<li>
<a href="{{url_591}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-20.jpg">
</a>
</li>
<li>
<a href="{{url_583}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-21.jpg">
</a>
</li>
<li>
<a href="{{url_598}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-22.jpg">
</a>
</li>
<li>
<a href="{{url_824}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-23.jpg">
</a>
</li>
<li>
<a href="{{url_481}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-24.jpg">
</a>
</li>
<li>
<a href="{{url_701}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-25.jpg">
</a>
</li>
<li>
<a href="{{url_464}}">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/brand-26.jpg">
</a>
</li>
</ul>
</div>
<script src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script src="http://static.dev.yohobuy.com/js/cuxiao/jquery.lazyload.js"></script>
<script>
$(function() {
$("img.lazy").lazyload({
threshold: 200
});
});
</script>
</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">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<style>
*{margin: 0;padding: 0;}
#wrapper {width: 100%;}
#wrapper 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-click {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.7;color: #fff;font-size: 18px;border: none;border-radius: 10px;}
</style>
</head>
<body>
<div id="wrapper">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/01.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/02.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/03.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/04.jpg">
<a class="href href-right" href="{{url_yohope}}"></a>
</div>
<a href="{{url_mycoupon}}"><img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/05.jpg"></a>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/06.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/07.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/08.jpg">
<a class="href href-left" href="{{url_60}}"></a>
<a class="href href-right" href="{{url_710}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/09.jpg">
<a class="href href-left" href="{{url_138}}"></a>
<a class="href href-right" href="{{url_495}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/10.jpg">
<a class="href href-left" href="{{url_419}}"></a>
<a class="href href-right" href="{{url_868}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/11.jpg">
<a class="href href-left" href="{{url_1026}}"></a>
<a class="href href-right" href="{{url_1027}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/12.jpg">
<a class="href href-left" href="{{url_324}}"></a>
<a class="href href-right" href="{{url_649}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/13.jpg">
<a class="href href-left" href="{{url_more}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/14.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/15.jpg">
<a class="href-click" id="get-all-coupon" href="{{jumpUrl}}"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/16.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/17.jpg">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/18.jpg">
<div class="img-box">
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/19.jpg">
<a href="{{url_help}}" class="show-more"></a>
</div>
<img class="lazy" data-original="http://static.dev.yohobuy.com/img/cuxiao/newuser/00.jpg">
</div>
<div id="coupon-container" param="{{activityId}}"></div>
<script src="http://static.dev.yohobuy.com/js/cuxiao/jquery.min.js"></script>
<script src="http://static.dev.yohobuy.com/js/cuxiao/jquery.lazyload.js"></script>
<script src="http://static.dev.yohobuy.com/js/cuxiao/151201/coupon.mobile.js"></script>
<script>
$(function() {
$("img.lazy").lazyload({
threshold: 200
});
});
</script>
</body>
</html>
\ No newline at end of file
{{> product/recommend-content}}
\ No newline at end of file
... ...
... ... @@ -406,7 +406,7 @@ class DetailModel
$result = array();
if (is_numeric($productSkn)) {
$preference = DetailData::preference($productSkn);
$preference = DetailData::preference($productSkn); var_dump($preference); exit;
if (!empty($preference['data'])) {
foreach ($preference['data'] as $value) {
$result['recommendList'][] = Helpers::formatProduct($value, false, true, true, 299, 388, false, false);
... ...
... ... @@ -173,10 +173,10 @@ class DetailController extends AbstractAction
{
$result = array();
if ($this->isAjax()) {
$productSkn = $this->get('productSkn');
$result = \Product\DetailModel::getPreference($productSkn);
}
//if ($this->isAjax()) {
$productSkn = $this->get('productSkn', 50000058);
$result = \Product\DetailModel::getPreference($productSkn); var_dump($result);
//}
if (empty($result)) {
echo ' ';
... ...