Blame view

public/js/home/mycurrency.page.js 445 Bytes
ccbikai(👎🏻🍜) authored
1 2 3 4 5
/**
 * 新有货币界面
 */
require('home/currency-index.page.css');
陈峰 authored
6
let $ = require('yoho-jquery'),
ccbikai(👎🏻🍜) authored
7 8
    lazyLoad = require('yoho-jquery-lazyload');
9
require('common');
ccbikai(👎🏻🍜) authored
10 11 12 13 14

function getGender() {
    return window.cookie('_Channel') || 'boys';
}
15
require('channel/maybe-like')({gender: getGender()});
ccbikai(👎🏻🍜) authored
16 17 18 19 20 21 22 23 24

setTimeout(function() {

    lazyLoad($('img.lazy'));

    if ($('#goods-list').length === 0) {
        $('.maybe-like').hide();
    }
}, 30);