WebRoot/static/os/js/myapp.js
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function() {
show_cart_umber();// 购物车商品数量
});
/**
* 展示用户登陆下拉菜单
*/
$(function() {
$("#J_userInfo .user").hover(function() {
$(this).addClass('user-active');
$(this).children(".user-menu").css('display', 'block').animate({
height : "100px"
}, 165);
}, function() {
$(this).removeClass('user-active');
$(this).children(".user-menu").css('display', 'none');
})
});
/**
* 导航栏购物车
*/
var lodingHtml = '<div style="text-align: center" class="tac"><img src="' + baselocation + '/static/web/img/loading.gif"></div>';
$(function() {
$('.topbar-cart').hover(function() {
$('.site-topbar .cart-menu').css('display', 'block');
$.ajax({
url : baselocation + "/cart/ajax/topbar",
type : 'get',
dataType : 'text',
beforeSend : function() {
$(".site-topbar .cart-menu").children(".loading").html(lodingHtml);
},
success : function(result) {
$(".site-topbar .cart-menu").html(result);
$('.site-topbar .cart-mini').css({
display : 'block',
background : '#fff',
color : '#ff6700'
});
}
});
}, function() {
$('.site-topbar .cart-menu').css('display', 'none');
var len = $('.site-topbar .cart-menu .cart-list').children('li').length;
if (len > 0) {
$('.site-topbar .cart-mini').css({
background : '#ff6700',
color : '#fff'
});
} else {
$('.site-topbar .cart-mini').css({
background : '#424242',
color : '#b0b0b0'
});
}
});
})
/**
后面还有 539 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。