Authored by biao

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -20,6 +20,7 @@ class DetailData
const PRODUCT_BASE_INFO = 'product/queryProductDetailByProductId';
const PRODUCT_SIZE_INFO = 'product/queryProductIntroBySkn';
const PRODUCT_CONSULT_LIST = 'consult/queryConsults';
const PRODUCT_COMMENT_LIST = 'sns/comments/commentList';
/**
* 商品基本信息
... ... @@ -63,4 +64,38 @@ class DetailData
) );
}
/**
* 评论内容列表
*
* @param int $productId 产品ID
* @param int $pageNum 页码数
* @param int $pageSize 每页显示个数
* @return array
*/
public static function commentList($productId, $pageNum, $pageSize)
{
return Yohobuy::jsonPost(Yohobuy::API_URL_PRODUCTDETAIL . self::PRODUCT_COMMENT_LIST, array(
'productId' => intval($productId),
'pageNum' => intval($pageNum),
'pageSize' => intval($pageSize),
) );
}
/**
* 为你优选的商品列表
*
* @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);
return Yohobuy::get(Yohobuy::API_URL, $param, 3600); // 缓存1小时
}
}
... ...
... ... @@ -5,6 +5,7 @@
*/
var $ = require('jquery'),
Hammer = require('yoho.hammer'),
tip = require('../plugin/tip'),
loading = require('../plugin/loading');
... ... @@ -179,36 +180,55 @@ $submit.on('touchend', function() {
// 省市区
$area.on('touchend', function() {
$footer.hide();
$pageWrap.hide();
$addressListPage.show();
$addressListPage.show(1, function() {
$footer.hide();
});
currentPage = 'list';
});
// touchend 在下滑的时候会触发
// 省市区联动
$addressListPage.on('touchend', '.address', function() {
newArea.push($(this).children('.caption').text());
$(this).siblings().hide();
$(this).children('ul').show();
return false;
}).on('touchend', '.address-last', function() {
$addressListPage.find('.address').each(function(i, elem) {
var addressHammer = new Hammer(elem);
// 填结果到 html
newArea.push($(this).children('.caption').text());
$('[name="area"]').val(newArea.join(' '));
$('[name="area_code"]').val($(this).data('id'));
addressHammer.on('tap', function(e) {
var $this = $(e.target);
$editAddressPage.show();
currentPage = 'edit';
$navTitle.html('修改地址');
$footer.show();
newArea.push($this.children('.caption').text());
$this.siblings().hide();
$this.children('ul').show().children('li').show();
// 恢复默认的三级选择
$addressListPage.hide();
$addressListPage.find('ul').hide();
$addressListPage.children('ul').show().children('li').show();
newArea = [];
return false;
e.srcEvent.preventDefault();
e.srcEvent.stopPropagation();
});
});
$addressListPage.find('.address-last').each(function(i, elem) {
var addressLastHammer = new Hammer(elem);
addressLastHammer.on('tap', function(e) {
var $this = $(e.target);
// 填结果到 html
newArea.push($this.children('.caption').text());
$('[name="area"]').val(newArea.join(' '));
$('[name="area_code"]').val($this.data('id'));
$editAddressPage.show();
currentPage = 'edit';
$navTitle.html('修改地址');
$footer.show();
// 恢复默认的三级选择
$addressListPage.hide();
$addressListPage.find('ul').hide();
$addressListPage.children('ul').show().children('li').show();
newArea = [];
e.srcEvent.preventDefault();
e.srcEvent.stopPropagation();
});
});
$($editAddressPage, $addressListPage).css('min-height', function() {
... ...
... ... @@ -11,7 +11,7 @@ var goodsSwiper;
require('./desc');
require('./comments-consults');
require('./like');
lazyLoad($('img.lazy'));
... ... @@ -48,4 +48,6 @@ $('.goodsDiscount .dropdown').on('click', function() {
$('.goodsDiscount .first-item span').html('');
$('.goodsDiscount .discount-folder').slideUp();
}
});
\ No newline at end of file
});
require('./like');
\ No newline at end of file
... ...
... ... @@ -29,12 +29,20 @@
}
.action {
font-size: pxToRem(28px);
line-height: pxToRem(40px);
font-size: pxToRem(40px);
line-height: pxToRem(60px);
text-align: right;
.edit,
.del {
display: inline-block;
text-align: center;
width: pxToRem(60px);
height: pxToRem(60px);
}
.edit {
margin-right: pxToRem(30px);
padding-right: pxToRem(20px);
}
}
}
... ... @@ -180,6 +188,7 @@
}
.my-address-list-page {
position: relative;
width: 100%;
color: #444;
background: #fff;
... ...
.my-page {
color: #444;
background: #f0f0f0;
padding-bottom: pxToRem(20px);
a {
color: #444;
... ...
... ... @@ -292,6 +292,8 @@
line-height: pxToRem(88px);
background-color: #fff;
padding: 0 pxToRem(28px);
border-top: 1px solid $borderC;
border-bottom: 1px solid $borderC;
.go-consult {
float: right;
color: $subFontC;
... ...
... ... @@ -69,16 +69,19 @@ $basicBtnC:#eb0313;
background-size: pxToRem(48px) pxToRem(48px);
background-position: center;
background-repeat: no-repeat;
&.swiper-button-disabled{
opacity: .3;
}
}
.next-grey {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23f0f0f0'%2F%3E%3C%2Fsvg%3E");
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23a0a0a0'%2F%3E%3C%2Fsvg%3E");
right: pxToRem(30px);
left: auto;
}
.prev-grey {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23f0f0f0'%2F%3E%3C%2Fsvg%3E");
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23a0a0a0'%2F%3E%3C%2Fsvg%3E");
left: pxToRem(30px);
right: auto;
}
... ...
.good-detail-page{
.goods-desc {
padding-bottom: pxToRem(20px);
padding-top: pxToRem(20px);
.service {
width: pxToRem(494px);
height: pxToRem(28px);
margin-top: pxToRem(22px);
margin-left: pxToRem(40px);
margin-left: pxToRem(50px);
background: image-url('product/service.png') no-repeat;
background-size: cover;
}
... ... @@ -18,7 +19,6 @@
.desc-text {
font-size: pxToRem(24px);
padding: pxToRem(16px) pxToRem(12px);
margin-bottom: pxToRem(20px);
color: $mainFontC;
background-color: $tableCellC;
}
... ... @@ -95,7 +95,7 @@
img {
margin-top: pxToRem(20px);
width: pxToRem(581px);
height: pxToRem(772px);
height:auto;
}
}
margin-top: pxToRem(30px);
... ... @@ -106,13 +106,13 @@
// height: pxToRem(200px);
// overflow: hidden;
.swiper-slide {
width: pxToRem(114px);
width: auto;
div {
text-align: center;
&.cell {
font-size: pxToRem(24px);
background-color: $tableCellC;
padding: pxToRem(15px) 0;
padding: pxToRem(15px) pxToRem(40px);
border: 1px solid #fff;
}
}
... ...
<!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
... ... @@ -3,7 +3,7 @@
<div class="goto-consult">
<i class="iconfont consult-logo">&#xe639;</i>
<span>我要咨询</span>
<a href="/consultform" class="iconfont enter-consult-page">&#xe604;</a>
<a href="{{consultUrl}}" class="iconfont enter-consult-page">&#xe604;</a>
</div>
{{# consults}}
<div class="goods-consults" id="goods-consults">
... ...
... ... @@ -122,9 +122,9 @@
{{#if numInCart}}
<span class="num-tag">{{numInCart}}</span>
{{/if}}
<a href="/shoppingCart" class="num-incart iconfont">&#xe62c;</a>
<a href="{{cartUrl}}" class="num-incart iconfont">&#xe62c;</a>
{{#if goodsInstore}}
<a href="/shoppingCart" id="addtoCart" class="addto-cart">加入购物车</a>
<a href="{{cartUrl}}" id="addtoCart" class="addto-cart">加入购物车</a>
{{else}}
<a href="javascript:;" class="sold-out">已售罄</a>
{{/if}}
... ...
{{> product/recommend-content}}
\ No newline at end of file
... ...
... ... @@ -65,25 +65,25 @@ class HomeController extends AbstractAction
$this->_view->display('index', $data);
}
/**
* 为您优选
*/
public function preferenceAction()
{
$result = array();
if ($this->isAjax()) {
// 优选新品数据
$channel = Helpers::getChannelByCookie();
$result = UserModel::getPreferenceData($channel);
}
if (empty($result)) {
echo ' ';
} else {
$this->_view->display('recommend-content', $result);
}
}
/**
* 为您优选
*/
public function preferenceAction()
{
$result = array();
if ($this->isAjax()) {
// 优选新品数据
$channel = Helpers::getChannelByCookie();
$result = UserModel::getPreferenceData($channel);
}
if (empty($result)) {
echo ' ';
} else {
$this->_view->display('recommend-content', $result);
}
}
/**
* 用户收藏的商品
... ... @@ -238,7 +238,7 @@ class HomeController extends AbstractAction
$uid = $this->getUid();
$coupons = array(
'couponsUrl' => UserModel::getCouponData($uid),
'couponsUrl' => UserModel::getCouponData($uid, 1),
'couponsPage' => true
);
$coupons['pageFooter'] = true;
... ...
... ... @@ -304,14 +304,15 @@ class UserModel
* 处理优惠券数据
*
* @param int $uid 用户ID
* @param int $page 第几页
* @return array|mixed 处理之后的优惠券数据
*/
public static function getCouponData($uid)
public static function getCouponData($uid, $page)
{
$result = array();
// 调用接口获取优惠券数据
$coupons = UserData::couponData($uid);
$coupons = UserData::couponData($uid, $page);
// 处理优惠券数据
if (!empty($coupons['unused'])) {
... ...
... ... @@ -199,6 +199,7 @@ class DetailModel
// 悬浮的购物车信息
$result['cartInfo'] = array(
'cartUrl' => Helpers::url('/shoppingCart'),
'numInCart' => 0,
'goodsInstore' => $baseInfo['storage'],
);
... ... @@ -361,9 +362,25 @@ class DetailModel
/**
* 获取评价列表
*/
public static function getComments()
public static function getComments($productId, $pageNum = 1, $pageSize = 100)
{
$result = array();
if (is_numeric($productId) && is_numeric($pageNum) && is_numeric($pageSize)) {
$commentList = DetailData::commentList($productId, $pageNum, $pageSize);
if (!empty($commentList)) {
$build = array();
foreach ($commentList as $value) {
$build['userName'] = '';
$build['desc'] = '';
$build['content'] = '';
$build['time'] = '';
$result[] = $build;
}
}
}
return $result;
}
/**
... ... @@ -395,4 +412,26 @@ class DetailModel
return $result;
}
/**
* 获取为你优选的商品
*
* @param int $productSkn 商品SKN
* @return array
*/
public static function getPreference($productSkn)
{
$result = array();
if (is_numeric($productSkn)) {
$preference = DetailData::preference($productSkn);
if (!empty($preference['data'])) {
foreach ($preference['data'] as $value) {
$result['recommendList'][] = Helpers::formatProduct($value, false, true, true, 299, 388, false, false);
}
}
}
return $result;
}
}
... ...
<?php
use Action\AbstractAction;
use Plugin\Helpers;
/**
* 商品详情的控制器
... ... @@ -31,6 +32,7 @@ class DetailController extends AbstractAction
$this->error();
}
$data['goodsDetailPage'] = true;
$data['pageFooter'] = true;
if (isset($data['goodsName'])) {
$this->setTitle($data['goodsName']);
... ... @@ -47,7 +49,6 @@ class DetailController extends AbstractAction
public function introAction()
{
$productSkn = $this->param('productSkn');
$productSkn = 50027562;
if (!is_numeric($productSkn)) {
$this->error();
}
... ... @@ -67,6 +68,7 @@ class DetailController extends AbstractAction
*/
public function commentsAction()
{
$productId = $this->get('product_id', 0);
$total = $this->get('total');
if (!is_numeric($total)) {
$total = 0;
... ... @@ -82,29 +84,7 @@ class DetailController extends AbstractAction
'goodsCommentsPage' => true,
'pageFooter' => true,
'comments' => array(
'list' => array(
array(
'userName' => 'Lynnic',
'desc' => '购买了白色Mate7',
'content' => '活动时买的,挺超值。上身效果也不错。质量
很好,买送人的,很满意。而且物流相当给...',
'time' => '2014-08-12 10:24:26'
),
array(
'userName' => 'Lynnic',
'desc' => '购买了白色Mate7',
'content' => '活动时买的,挺超值。上身效果也不错。质量
很好,买送人的,很满意。而且物流相当给...',
'time' => '2014-08-12 10:24:26'
),
array(
'userName' => 'Lynnic',
'desc' => '购买了白色Mate7',
'content' => '活动时买的,挺超值。上身效果也不错。质量
很好,买送人的,很满意。而且物流相当给...',
'time' => '2014-08-12 10:24:26'
)
)
'list' => \Product\DetailModel::getConsults($productId),
),
);
... ... @@ -137,7 +117,8 @@ class DetailController extends AbstractAction
'pageFooter' => true,
'consults' => array(
'list' => \Product\DetailModel::getConsults($productId),
)
),
'consultUrl' => Helpers::url('/product/detail/consultform'),
);
// 渲染模板
... ... @@ -149,19 +130,33 @@ class DetailController extends AbstractAction
*/
public function consultformAction()
{
$data = array(
'consultform' => true,
'pageHeader' => array(
'navBack' => 'sss ',
// 'navHome' => 'sss ',
'navTitle' => '我要咨询'
)
);
$this->setTitle('我要咨询');
$this->setNavHeader('我要咨询');
$this->_view->assign('title', '我要咨询');
//$this->_view->display('brand', compact('brands'));
// 渲染模板
$this->_view->display('consultform', $data);
$this->_view->display('consultform', array('consultform' => true));
}
/**
* 为你优选
*
* @param int productSkn 商品SKN号
* @return json
*/
public function preferenceAction()
{
$result = array();
if ($this->isAjax()) {
$productSkn = $this->get('productSkn'); // 50000058
$result = \Product\DetailModel::getPreference($productSkn);
}
if (empty($result)) {
echo ' ';
} else {
$this->_view->display('preference', $result);
}
}
}
... ...