Authored by yyq

del all tab

... ... @@ -798,18 +798,12 @@ module.exports = class extends global.yoho.BaseModel {
return co(function * () {
let tabs;
let allTab = {
price: '0,300',
priceTabName: '全部',
active: true
};
if (!params.price) {
tabs = _.get(yield cartApi.getTogetherProductPriceTabAsync(), 'data', []);
tabs = _.concat(allTab, tabs);
}
let price = params.price || _.get(tabs, '[0].price', allTab.price);
let price = params.price || _.get(tabs, '[0].price', '0,300');
let productInfo = yield cartApi.getTogetherProductListAsync(price, page, limit);
if (productInfo.code === 200) {
... ...