WebRoot/static/os/js/index.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function() {
show_star_product(); // 明星单品
show_top_category(); // 置顶分类
show_hot_category(); // 热门分类
show_popular_product(); // 为你推荐
show_comment_product(); // 热评产品
});
/**
* 明星单品
*/
function show_star_product() {
$.ajax({
url : baselocation + "/recommend/star",
type : 'get',
dataType : 'text',
success : function(result) {
$("#J_starProduct").html(result);
}
});
}
/**
* 为你推荐
*/
function show_popular_product() {
$.ajax({
url : baselocation + "/recommend/popular",
type : 'get',
dataType : 'text',
success : function(result) {
$("#J_popularPrudoct").html(result);
}
});
}
/**
* 热评产品
*/
function show_comment_product() {
$.ajax({
url : baselocation + "/recommend/comment",
type : 'get',
dataType : 'text',
success : function(result) {
$("#J_commentPrudoct").html(result);
}
});
}
/**
* 置顶分类
*/
function show_top_category() {
$.ajax({
url : baselocation + "/recommend/top",
type : 'get',
后面还有 78 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。