Authored by xuqi

Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0

... ... @@ -214,7 +214,7 @@ const _getRelatedData = (idList) => {
productSkn: idList,
method: 'h5.product.batch'
}).then((result) => {
// console.log(result)
let productList = [];
if (result && result.code === 200) {
... ... @@ -541,7 +541,6 @@ const _getArticleNext = (id, appType, gender, tag) => {
if (tag) {
per.tag = tag;
}
console.log(tag);
return serviceAPI.get('guang/api/*/article/getArticleNext', per).then((result) => {
... ...
... ... @@ -84,8 +84,8 @@
{{/ relatedGroup}}
</div>
</div>
<span class="left iconfont hide">&#xe62c;</span>
<span class="right iconfont">&#xe629;</span>
<span class="btn-left iconfont hide">&#xe62c;</span>
<span class="btn-right iconfont">&#xe629;</span>
</div>
{{/ related}}
{{/ content}}
... ...
... ... @@ -203,35 +203,35 @@ if ($('.collocation').find('.good-info').length === 0) {
if ($('.goods').find('.good-info').length === 0) {
$('.related-group').hide();
} else if ($('.goods').find('.good-info').length < 5) {
$('.left').hide();
$('.right').hide();
$('.btn-left').hide();
$('.btn-right').hide();
}
$('.right').click(function() {
$('.btn-right').click(function() {
pag = pag + 1;
if (pag === leng - 1) {
$('.right').addClass('hide');
$('.btn-right').addClass('hide');
}
if (pag !== 0) {
$('.left').removeClass('hide');
$('.btn-left').removeClass('hide');
}
$('.goods').animate({left: '+=-930px'});
});
$('.left').click(function() {
$('.btn-left').click(function() {
var $goods = $('.goods');
pag = pag - 1;
if (pag === 0) {
$('.left').addClass('hide');
$('.btn-left').addClass('hide');
}
if (pag !== leng - 1) {
$('.right').removeClass('hide');
$('.btn-right').removeClass('hide');
}
$goods.animate({left: '+=930px'});
... ...
... ... @@ -133,7 +133,7 @@
position: relative;
}
.left {
.btn-left {
position: absolute;
display: block;
width: 30px;
... ... @@ -155,7 +155,7 @@
background: #7f7f7f;
}
.right {
.btn-right {
position: absolute;
display: block;
width: 30px;
... ...