Authored by htoooth

fix pager

... ... @@ -394,16 +394,6 @@
<div id="consults-ul"></div>
<div class="common-question">
<p>
<span>
<i class="iconfont">&#xe696;</i><small class="leave-message">
客服留言:&nbsp;&nbsp;感谢你的咨询,YOHO潮流网站双十一期间服装五折抢购
感谢您对有货YOHO!的关注</small>
</span>
</p>
<div class="common-message">
</div>
</div>
<div class="consults-devide">
... ...
... ... @@ -61,7 +61,7 @@ var consultSuccessTpl = require('hbs/product/consult-success.hbs');
var pkgData;// 套餐数据
var notifyTpl = require('hbs/product/notify.hbs');
var notifySuccessTpl = require('hbs/product/notify-ok.hbs');
var notifyOkTpl = require('hbs/product/notify-ok.hbs');
var $goodsIdArr = [];
... ... @@ -537,7 +537,7 @@ bindEvent.add(function() {
var opt2 = {
className: 'notify-goods-wrapper',
closeIcon: true,
content: notifySuccessTpl()
content: notifyOkTpl()
};
var dialog = new Dialog(opt); // eslint-disable-line
... ... @@ -1229,8 +1229,6 @@ function fetchComment() {
});
});
// 评论类型的切换
$('.comments').on('click', '.comment-tabs h2[data-comment-type]', function() {
... ... @@ -1670,14 +1668,14 @@ $(function() {
var font = $('.description-content .basic li');
var fontwidth = $('.description-content ul li:nth-child(4) .valueSpace').width();
$('.description-content ul li:nth-child(8) .valueSpace').css({
'display': 'inline-block',
display: 'inline-block',
'text-align': 'right',
'width': fontwidth
width: fontwidth
});
font.each(function(i, ele) {
if ((i + 1) % 4 === 0) {
$(this).find('.justpostion').css({'display': 'inline-block', 'float': 'right'});
$(this).find('.justpostion').css({display: 'inline-block', float: 'right'});
} else if ((i + 1) % 4 === 1) {
return;
} else {
... ...
... ... @@ -107,8 +107,7 @@ module.exports = function(opts) {
var ret = '';
if ($.isArray(arr) && arr.length) {
arr.forEach(function(val) {
$.each(arr, function(i, val) {
if (val === '.') {
ret += '<a>...</a>';
} else {
... ... @@ -144,8 +143,8 @@ module.exports = function(opts) {
var hasPage = false; // 配置中如果配置了多次 page/pe 则将忽略,只第一次有效
var ret = '<div class="pager' + ' ' + theme + '">';
items.forEach(function(val) {
$.each(items, function(i, val) {
switch (val) {
case 'f' :
if (page > 1) {
... ...
... ... @@ -142,7 +142,7 @@
.thumbs {
width: 75px;
height: 510px;
height: 560px;
margin-left: 10px;
margin-right: 60px;
overflow: hidden;
... ... @@ -468,7 +468,7 @@
font-size: 12px;
.title {
margin-top: 14px;
margin-top: 10px;
}
img {
... ... @@ -509,7 +509,7 @@
font-size: 12px;
.title {
margin-top: 6px;
margin-top: 4px;
}
li {
... ... @@ -577,7 +577,7 @@
}
.chose-count .title {
margin-top: 6px;
margin-top: 4px;
}
.num {
... ... @@ -2266,7 +2266,7 @@
font-size: 12px;
.title {
margin-top: 6px;
margin-top: 3px;
}
li {
... ...