Authored by zhangxiaoru

hotrankCss

'use strict';
const api = global.yoho.API;
const helpers = global.yoho.helpers;
const _ = require('lodash');
const serviceAPI = global.yoho.ServiceAPI;
const logger = global.yoho.logger;
... ... @@ -37,7 +36,7 @@ const getHotRank = (codeKey) => {
});
};
const selectHotrank = (yhChannel, gender, sort, tab_id, limit, page, notab) => {
const selectHotrank = (yhChannel, gender, sort, tabId, limit, page, notab) => {
let param = {
method: 'app.search.top',
gender: gender,
... ... @@ -50,12 +49,10 @@ const selectHotrank = (yhChannel, gender, sort, tab_id, limit, page, notab) => {
param.sort = sort;
}
if (tab_id) {
param.tab_id = tab_id;
if (tabId) {
param.tab_id = tabId;
}
console.log(param);
return api.get('', param).then((result) => {
if (result && result.code === 200 && result.data.product_list) {
... ... @@ -97,8 +94,8 @@ const selectHotrank = (yhChannel, gender, sort, tab_id, limit, page, notab) => {
}
one = _.assign(one, {
url: '/product/pro_' + data.product_id + '_' + data.goods_list[0].goods_id
+ '/' + data.cn_alphabet + '.html',
url: '/product/pro_' + data.product_id + '_' + data.goods_list[0].goods_id +
'/' + data.cn_alphabet + '.html',
thumb: data.default_images,
rank: limit * (page - 1) + index + 1,
name: data.product_name,
... ...
... ... @@ -91,6 +91,7 @@
}
}
}
.goods-nav {
border-bottom: 2px solid #e6e6e6;
height: 67px;
... ... @@ -127,21 +128,24 @@
}
.s-goods-nav {
box-sizing:border-box;
box-sizing: border-box;
overflow: hidden;
background: #fff;
li {
margin: 0 10px;
padding:0 15px;
padding: 0 15px;
width: auto;
height: 100%;
color: #999;
&.active{
&.active {
color: #000;
}
&.bgActive{
&.bgActive {
color: #000;
background-color:#e0e0e0;
background-color: #e0e0e0;
}
a {
padding: 0;
... ...