更新网站架构

This commit is contained in:
2026-03-09 16:35:17 +08:00
parent 4cbc52c51b
commit bf0daf987b
180 changed files with 60682 additions and 491 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,57 @@
/*
TemplateMo 559 Zay Shop
https://templatemo.com/tm-559-zay-shop
*/
'use strict';
$(document).ready(function() {
// Accordion
var all_panels = $('.templatemo-accordion > li > ul').hide();
$('.templatemo-accordion > li > a').click(function() {
console.log('Hello world!');
var target = $(this).next();
if(!target.hasClass('active')){
all_panels.removeClass('active').slideUp();
target.addClass('active').slideDown();
}
return false;
});
// End accordion
// Product detail
$('.product-links-wap a').click(function(){
var this_src = $(this).children('img').attr('src');
$('#product-detail').attr('src',this_src);
return false;
});
$('#btn-minus').click(function(){
var val = $("#var-value").html();
val = (val=='1')?val:val-1;
$("#var-value").html(val);
$("#product-quanity").val(val);
return false;
});
$('#btn-plus').click(function(){
var val = $("#var-value").html();
val++;
$("#var-value").html(val);
$("#product-quanity").val(val);
return false;
});
$('.btn-size').click(function(){
var this_val = $(this).html();
$("#product-size").val(this_val);
$(".btn-size").removeClass('btn-secondary');
$(".btn-size").addClass('btn-success');
$(this).removeClass('btn-success');
$(this).addClass('btn-secondary');
return false;
});
// End roduct detail
});
+1
View File
@@ -0,0 +1 @@
"use strict";$(document).ready(function(){var t=$(".templatemo-accordion > li > ul").hide();$(".templatemo-accordion > li > a").click(function(){var a=$(this).next();return a.hasClass("active")||(t.removeClass("active").slideUp(),a.addClass("active").slideDown()),!1}),$(".product-links-wap a").click(function(){var t=$(this).children("img").attr("src");return $("#product-detail").attr("src",t),!1}),$("#btn-minus").click(function(){var t=$("#var-value").html();return t="1"==t?t:t-1,$("#var-value").html(t),$("#product-quanity").val(t),!1}),$("#btn-plus").click(function(){var t=$("#var-value").html();return t++,$("#var-value").html(t),$("#product-quanity").val(t),!1}),$(".btn-size").click(function(){var t=$(this).html();return $("#product-size").val(t),$(".btn-size").removeClass("btn-secondary"),$(".btn-size").addClass("btn-success"),$(this).removeClass("btn-success"),$(this).addClass("btn-secondary"),!1})});