index.js 385 Bytes
/**
 * 个人中心首页
 * @author: bikai<kai.bi@yoho.cn>
 * @date: 2015/11/12
 */
var $ = require('jquery');
var $userAvatar = $('.user-avatar');
var myImage = new Image();

require('../product/recommend-for-you.js');
myImage.src = $userAvatar.attr('src');
myImage.onerror = function() {
    $userAvatar.attr('src', 'http://static.dev.yohobuy.com/img/me/index/user-avatar.png');
};