recommend-for-you-cart.js 422 Bytes
/**
 * 为您优选
 * @author: bikai<kai.bi@yoho.cn>
 * @date: 2015/11/16
 */


var Swiper = require('yoho.iswiper'),
    $ = require('jquery'),
    lazyLoad = require('yoho.lazyload');

var $recommendForYou = $('.recommend-for-you');

$.get('/product/recommend-for-you/cart').then(function(html) {
    $recommendForYou.html(html).show();
    lazyLoad($('img.lazy'));
}).fail(function() {
    $recommendForYou.hide();
});