Authored by 郝肖肖

Merge branch 'feature/searchOptimi' into 'release/5.5'

maybe like 接受对象参数



See merge request !351
... ... @@ -62,7 +62,7 @@ function getGender() {
return window.cookie('_Channel') || 'boys';
}
require('../channel/maybe-like')(getGender());
require('../channel/maybe-like')({gender: getGender()});
// 你可能喜欢没有数据就隐藏
setTimeout(function() {
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/12
*/
module.exports = function(specificGender) {
module.exports = function(likeParameter) {
var $ = require('yoho-jquery'),
Hammer = require('yoho-hammer'),
ellipsis = require('yoho-mlellipsis'),
... ... @@ -20,7 +20,8 @@ module.exports = function(specificGender) {
gender = null,
num,
url,
RECPOSE = '110001';
specificGender = likeParameter && likeParameter.gender,
RECPOSE = likeParameter && likeParameter.recpose || '110001';
// The kidsType can be specified by the parameter. Add by @ZhaoBiao
var kidsType = specificGender === 'kids' || $('.mobile-wrap').hasClass('kids-wrap') ? true : false,
... ... @@ -241,7 +242,7 @@ module.exports = function(specificGender) {
}
// 优惠券页面直接加载你可能喜欢。add by @zhaobiao
if (specificGender) {
if (specificGender || likeParameter && likeParameter.isExecute) {
search();
}
... ...
... ... @@ -12,7 +12,7 @@ function getGender() {
return window.cookie('_Channel') || 'boys';
}
require('../channel/maybe-like')(getGender());
require('../channel/maybe-like')({gender: getGender()});
setTimeout(function() {
... ...
... ... @@ -1137,4 +1137,4 @@ var fuckNum = $('.good-info').length;
fuckNum < 12 && $('.search-divide').remove();
require('channel/maybe-like')(true);
require('channel/maybe-like')({recpose: 100101, isExecute: true});
... ...
... ... @@ -821,4 +821,4 @@ $('#goods-container').on('click', '.good-info', function() {
// return false;
});
require('channel/maybe-like')(true);
require('channel/maybe-like')({recpose: 100101, isExecute: true});
... ...