1、外壳采用优质绝缘阻燃材料:整机灼热丝测试750 ℃不燃烧;耐热烤箱测试100 ℃不变形
2、儿童安全保护门技术,可有效防止儿童用手或其他金属异物捅插造成触电
3、优质铜材,一体成型,无焊点,温升低,导电性能好,插套弹性强,插拔寿命可达10000个行程
4、大间距孔位,同时满足多种电源适配器,避免反复拔插
5、一键总控,通电开关触点升级为银镍材质,耐用坚固可承受10000次按压
6、加粗线径(3*1.0MM²)高品质铜芯,额定功率下持续使用不软化变形
7、双挂钩设计,为家庭中多场景的使用提供选择









$(function () {
var jqzoomWidth = $('.jqzoom').width();
var jqzoomHeight = $('.jqzoom').height();
$(".jqzoom").jqueryzoom({ xzoom: jqzoomWidth, yzoom: jqzoomHeight });
$(window).resize(function () {
jqzoomWidth = $('.jqzoom').width();
jqzoomHeight = $('.jqzoom').height();
$(".jqzoom").jqueryzoom({ xzoom: jqzoomWidth, yzoom: jqzoomHeight });
});
$(".spec-scroll .items ul li img").mouseover(function () {
$(".jqzoom>img").attr("src", $(this).attr("bimg"));
$(".jqzoom>img").attr("jqimg", $(this).attr("bimg"));
});
var tempLength = 0; //临时变量,当前移动的长度
var viewNum = 4; //设置每次显示图片的个数量
var moveNum = 1; //每次移动的数量
var moveTime = 300; //移动速度,毫秒
var scrollDiv = $(".spec-scroll .items ul"); //进行移动动画的容器
var scrollItems = $(".spec-scroll .items ul li"); //移动容器里的集合
var moveLength = scrollItems.eq(0).outerWidth(true) * moveNum; //计算每次移动的长度
var countLength = (scrollItems.length - viewNum) * scrollItems.eq(0).outerWidth(true); //计算总长度,总个数*单个长度
//下一张
$(".spec-scroll .next").bind("click", function () {
if (tempLength < countLength) {
if ((countLength - tempLength) > moveLength) {
scrollDiv.animate({ left: "-=" + moveLength + "px" }, moveTime);
tempLength += moveLength;
} else {
scrollDiv.animate({ left: "-=" + (countLength - tempLength) + "px" }, moveTime);
tempLength += (countLength - tempLength);
}
}
});
//上一张
$(".spec-scroll .prev").bind("click", function () {
if (tempLength > 0) {
if (tempLength > moveLength) {
scrollDiv.animate({ left: "+=" + moveLength + "px" }, moveTime);
tempLength -= moveLength;
} else {
scrollDiv.animate({ left: "+=" + tempLength + "px" }, moveTime);
tempLength = 0;
}
}
});
var productimg = new Swiper('.productimg', {
delay: 3000,
autoplay: true,
loop: true,
slidesPerView: 1,
spaceBetween: 0,
roundLengths: true,
navigation: {},
pagination: {
el: '.swiper-pagination',
clickable: true
},
breakpoints: {}
});
var $tabs = $('.productdetail .desc .tab-nav .tab-item');
var $items = $('.productdetail .desc .con .item');
$tabs.first().addClass('active');
$tabs.on('click', function () {
var index = $(this).index();
var currentActive = $tabs.index($tabs.filter('.active'));
// 如果点击的是当前激活的标签,不做处理
if (index === currentActive) return;
// 切换标签状态
$tabs.removeClass('active');
$(this).addClass('active');
// 淡出当前内容,淡入新内容
$items.eq(currentActive).fadeOut(200, function () {
$items.eq(index).fadeIn(200);
});
});
// 异步下载文件
$(document).on('click', '.icon-download', function () {
var fileId = $(this).attr('fileId');
if (!fileId) {
layer.msg('文件ID不存在', { icon: 2 });
return;
}
// 显示加载提示
var loadingIndex = layer.load(2, { shade: [0.1, '#000000'], time: 2000 });
// 第一步:AJAX 请求获取文件信息并更新下载次数
$.ajax({
url: '/product/downloadfile',
type: 'GET',
data: { fileId: fileId },
dataType: 'json',
success: function (res) {
if (res.code === 0 && res.data) {
var fileUrl = res.data.FileUrl;
var fileName = res.data.FileName;
// 第二步:使用 fetch 异步下载文件
fetch(fileUrl)
.then(function (response) {
if (!response.ok) throw new Error('下载失败');
return response.blob();
})
.then(function (blob) {
layer.close(loadingIndex);
// 创建下载链接
var url = window.URL.createObjectURL(blob);
var a = document.createElement('a');
a.href = url;
a.download = fileName;
document.body.appendChild(a);
a.click();
// 清理资源
window.URL.revokeObjectURL(url);
document.body.removeChild(a);
layer.msg('下载成功', { icon: 1, time: 2000 });
})
.catch(function (error) {
layer.close(loadingIndex);
console.error('下载错误:', error);
// 降级方案:直接打开文件链接
window.open(fileUrl, '_blank');
layer.msg('正在下载...', { icon: 1, time: 2000 });
});
} else {
layer.close(loadingIndex);
layer.msg(res.msg || '获取文件信息失败', { icon: 2 });
}
},
error: function () {
layer.close(loadingIndex);
layer.msg('网络错误,请重试', { icon: 2 });
}
});
});
});