Authored by mark

fixed consult length

... ... @@ -33,4 +33,3 @@ const getShareOrderListAsync = (pid, page, size, filterId) => {
module.exports = {
getShareOrderListAsync
};
... ...
... ... @@ -20,11 +20,11 @@ module.exports = {
// test2
singleApi: 'http://192.168.102.27:8092/brower',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
//api: 'http://api.yoho.cn/',
//service: 'http://service.yoho.cn/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
// api: 'http://dev-api.yohops.com:9999/',
// service: 'http://dev-service.yohops.com:9999/',
... ...
... ... @@ -983,7 +983,8 @@ function loadComment() {
data: {
productId: id,
page: nowPage,
filterId: type
filterId: type,
size: 15
}
});
}
... ... @@ -1023,13 +1024,14 @@ function loadComment() {
});
}
totalnum = Math.ceil(totalnum / 10) * 20;
totalnum = Math.ceil(totalnum / 15) * 20;
$ul.empty().append(commentsTpl({
comments: res
}));
baseUrl = '/product/detail/comment?productId=' + id + '&filterId=7';
if(totalnum > 20){
$ul.append(setPager({
baseUrl: baseUrl,
totalRecords: totalnum,
... ... @@ -1037,6 +1039,7 @@ function loadComment() {
type: 'ellipsis',
theme: 'msg-pager'
}));
}
}
}).always(function() {
... ... @@ -1145,7 +1148,8 @@ function loadConsult() {
url: '/product/detail/consult',
data: {
productId: id,
page: nowPage
page: nowPage,
size: 15
}
}).then(function(data) {
var res;
... ... @@ -1162,7 +1166,7 @@ function loadConsult() {
// 更新总数显示
$consultNum.text(res[0].total);
totalNum = Math.ceil(res[0].total / 10) * 20;
totalNum = Math.ceil(res[0].total / 15) * 20;
$consultsUl.empty().append(consultsTpl({
consults: res
... ... @@ -1214,7 +1218,7 @@ function loadConsult() {
});
baseUrl = '/product/detail/consult?productId=' + id;
if(totalNum > 20){
$('.consults-pager').empty().append(
setPager({
baseUrl: baseUrl,
... ... @@ -1224,6 +1228,7 @@ function loadConsult() {
theme: 'msg-pager'
})
);
}
}
}).always(function() {
loadingConsults = false;
... ...