CINXE.COM

Tecsense-天津西纳智能科技有限公司

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="referrer" content="always"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Tecsense-天津西纳智能科技有限公司</title> <meta name="Keywords" content="Tecsense,手持式氧气分析仪,在线氧气检测系统,顶空分析仪,手持式氧气/二氧化碳分析仪,氧气传感器,多功能氧气传感器"> <meta name="Description" content="TecSense从事工业和科学应用的光化学传感器的开发和制造。多功能可靠的传感器能够控制生产过程,并确定可靠的研发结果。TecSense致力于通过不断改进产品、提升质量,为客户提供尽可能好的解决方案。..."> <meta name="author" content="" /> <meta name="applicable-device" content="pc" /> <meta name="baidu-site-verification" content="codeva-cAxiy3eTRu" /> <link rel="preconnect" href="" crossorigin> <link rel="dns-prefetch" href=""> <link type="image/x-icon" href="https://static.e-xina.com/xina/favicon.ico?v=1732615369" rel="shortcut icon"> <link type="text/css" href="https://static.e-xina.com/xina/common/brand/css/common.css?v=1732615369" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/c/font_3109410_mumqbw1zg9c.css" /> <link type="text/css" href="https://static.e-xina.com/xina/common/brand/third-party/cs/css/style.css?v=1732615369" rel="stylesheet"> <script type="text/javascript" src="https://static.e-xina.com/xina/common/jquery-2.2.4.min.js?v=1732615369"></script> <script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/js/font_3109410_mumqbw1zg9c.js?v=1732615369"></script> <!-- 不一样的地方 - start --> <link type="text/css" href="https://static.e-xina.com/xina/common/brand/third-party/slick/slick.css?v=1732615369" rel="stylesheet"> <link type="text/css" href="https://static.e-xina.com/xina/common/brand/css/brandDetail.css?v=1732615369" rel="stylesheet"> <link type="text/css" href="https://static.e-xina.com/xina/common/brand/css/pagination.css?v=1732615369" rel="stylesheet"> <!-- 不一样的地方 - end --> <style> :root { --brand-detail-theme-color: rgba(217, 45, 56, 1); } </style> <script> img_path = 'https://static.e-xina.com/'; </script> <script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/js/common.js?v=1732615369"></script> <script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/third-party/fingerprint.min.js?v=1732615369"></script> <!-- todo 要看看 setFacilityId() 是什么意思? --> <!--<script src="http://loc.gongyigo.com/static/third-party/fingerprint.min.js?v=0.0.6" onload="setFacilityId()"></script>--> <script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/js/main.js?v=1732615369"></script> <script type="text/javascript" src="https://static.e-xina.com/xina/common/jquery.plugins/jquery.cookie.min.js?v=1732615369"></script></head> <body> <div class="top clearfix"> <!-- 引入顶部广告 --> <!-- 顶部广告 注意:html/css/js 都在当前页面--> <div class="top-banner clearfix"> <div class="image-container ad-div"> <a href="https://www.e-xina.com/article/11406.html" target="_blank"> <img src="https://static.e-xina.com/Advertising/202411/25QejCSzJ4tDbM3ffp.png/og" alt=""> </a> <span class="close closeAd" onclick="closeAd('is_close_top_ad')">x</span> </div> </div> <script> // 关闭指定的广告 function closeAd(adCloseKey) { $.cookie(adCloseKey, $.now(), { expires: null, path: '/' }) } // 关闭顶部横幅 $('.top-banner .close').click(function(){ $('.top-banner a').attr('href','javascript:void(0)') $('.top-banner').hide() }) </script> <style> .ad-div { height: auto; width: 100%; } .closeAd { background-color:#555; border-radius: 15px; width: 30px; text-align: center; line-height: 28px; padding-bottom: 2px; } .top-banner { width: 100%; /*height: 80px;*/ position: relative; box-sizing: border-box; display: block; } .top-banner a { width: 100%; /*height: 80px;*/ position: relative; } .top-banner a .img-ad { margin: 0 auto; display: block; background-repeat: no-repeat; background-position: center center; min-width: 1200px; } .top-banner .close { position: absolute; top: 10px; right: 10px; color: #ffffff; font-size: 20px; font-weight: bold; cursor: pointer; } .image-container { overflow: hidden; display: flex; align-items: center; justify-content: center; } .image-container img { max-width: none !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 50% !important; } </style> <div class="brand-container"> <div class="left" style="color: var(--theme-color);;">天津西纳智能科技有限公司</div> <ul class="right"> <li id="li1"><a href="/">首页</a></li> <li id="li6"><a href="/agent-brand"><span></span>代理品牌</a></li> <li id="li7"><a href="/brand"><span></span>推荐品牌</a></li> <li id="li2"><a href="/category"><span></span>产品目录</a></li> <li id="li3"><a href="/article"><span></span>新闻资讯</a></li> <li id="li5""><a href="/jobs"><span></span>人才中心</a></li> <li id="li6"><a href="/contact"><span></span>联系我们</a></li> <li id="li4"><a href="/service/40.html"><span></span>客服中心</a></li> <li style="padding-right: 0px;line-height: 16px;"> <img src="/static/images/icon_phone.png" alt="qq" width="15" height="15"> <span style="color: var(--theme-color);;display: inline-block;margin-left: 3px;font-size: 14px;"> 400-9619-005 </span> </li> </ul> </div> </div> <div class="body-main"> <div class="brand-detail-head"> <div class="head-bg-slick"> <div class="detail-head-bg background-image-container" style="background-image:url('https://static.e-xina.com/brands/202409/29r3xFerTBwEbwiRYm.jpg/og') "> </div> </div> <div class="detail-head-mask" style="background-color: rgba(235, 215, 215, 0.53);"></div> <div class="head-mask-conent"> <div class="brand-container"> <div class="mask-brand-logo"> <img class="pic-auto" src="https://static.e-xina.com/brands/202410/14MCMSwPYBSmtjfBEE.jpeg/og" alt="Tecsense logo" onload="brandLogoSize(this, 300, 120)"> </div> <div class="mask-brand-describe" style="color: rgba(217, 45, 56, 1);"> TecSense从事工业和科学应用的光化学传感器的开发和制造。多功能可靠的传感器能够控制生产过程,并确定可靠的研发结果。TecSense致力于通过不断改进产品、提升质量,为客户提供尽可能好的解决方案。... </div> <div class="mask-search-bar"> <input class="input" type="text" placeholder="请输入产品名称/型号" id="kw" autofocus="autofocus" name="kw" value="" autocomplete="off"> <div class="mask-search-btn" onclick="search()"> <span style="margin-right: 4px;">搜索</span> <i class="iconfont icon-magnifier"></i> </div> </div> </div> </div> </div> <div class="anchor-nav"> <!-- 显示标题 --> <a href="#brand-information" class="active-nav" >品牌资讯</a> <a href="#product-category" >产品分类</a> <a href="#hot-product" >热门产品</a> <a href="#popular-product" >推荐产品</a> <a href="#brand-consultant" >品牌顾问</a> </div> <!-- 显示配置的内容 --> <!-- 品牌资讯 --> <div id="brand-information" class="brand-container"> <div class="brand-detail-title"> 品牌资讯 </div> <div class="information-content"> <div class="information-video-img"> <!-- 这个是视频用的,需要后端判断 --> <video src="https://static.e-xina.com/products/202410/14bwBrRE6Ja6JpddWx.mp4"></video> <div class="video-play"> <div class="video-play-btn"> <div class="video-play-triangle"></div> </div> </div> </div> <div class="information-list-pages"> <ul class="information-list"> <a href=""> <li> <div class="information-list-title"> <div class="information-list-circle"></div> <div class="text-overflow" style="flex: 1;"> <span> 骨架屏占位 </span> </div> </div> <div class="information-time"> 骨架屏占位 </div> </li> </a> <a href=""> <li> <div class="information-list-title"> <div class="information-list-circle"></div> <div class="text-overflow" style="flex: 1;"> <span> 骨架屏占位 </span> </div> </div> <div class="information-time"> 骨架屏占位 </div> </li> </a> <a href=""> <li> <div class="information-list-title"> <div class="information-list-circle"></div> <div class="text-overflow" style="flex: 1;"> <span> 骨架屏占位 </span> </div> </div> <div class="information-time"> 骨架屏占位 </div> </li> </a> </ul> <div class="common-new-pages" id="informationPages"></div> </div> </div> </div> <!-- 产品分类 --> <div id="product-category"> <div class="brand-detail-title" style="text-align: center;"> 产品分类 </div> <div class="brand-detail-content"> <!-- 分类tab页 --> <div class="category-tab"> <ul class="category-tab-container"> <li data-id="284"> <span>手持式氧气分析仪</span> </li> <li data-id="288"> <span>多功能氧气传感器</span> </li> <li data-id="289"> <span>手持式氧气/二氧化碳分析仪</span> </li> <li data-id="290"> <span>在线氧气检测系统</span> </li> <li data-id="291"> <span>顶空分析仪</span> </li> </ul> <div class="tab-operation"> <div class="tab-operation-btn disabled-click operation-btn-left"> <i class="iconfont icon-arrow-left-back"></i> </div> <div class="tab-operation-btn operation-btn-right"> <i class="iconfont icon-arrow-left-back"></i> </div> </div> </div> <div class="category-info-container"> <div class="category-info-item"> <div class="category-head"> <div class="category-head-block"> </div> <span>占位</span> </div> <div class="three-category-container"> <div class="three-category-item"> <img class="pic-auto" alt="" srcset=""> <div style="width: 176px;"> </div> </div> </div> </div> </div> </div> </div> <!-- 热门产品 --> <div id="hot-product"> <div class="brand-detail-title" style="text-align: center;margin-bottom: 0;"> 热门产品 </div> <div class="product-content brand-detail-content"> <div class="product-item"> <a href="/product/309179.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202304/13se332ZBQPJWGGz4K.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>手持式氧气/二氧化碳分析仪</span> </div> <div class="model-name text-overflow"> <span>TecPen Weld O2</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/359130.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202408/07QJsTeYdTZfAnzncM.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>多功能氧气传感器</span> </div> <div class="model-name text-overflow"> <span>TecMicro Fluid</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/309175.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202408/07yHSzdRSnDmBdKKem.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>手持式氧分析仪</span> </div> <div class="model-name text-overflow"> <span>TecPen Fiber</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/359132.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202408/07R67Mzfc74KMTsD3M.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>手持式氧气/二氧化碳分析仪</span> </div> <div class="model-name text-overflow"> <span>TecPen MAP</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> </div> </div> <!-- 推荐产品 --> <div id="popular-product"> <div class="brand-detail-title" style="text-align: center;margin-bottom: 0;"> 推荐产品 </div> <div class="product-content brand-detail-content"> <div class="product-item"> <a href="/product/359128.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202408/07JNMQ2AG7yTk7rWRh.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>顶空分析仪</span> </div> <div class="model-name text-overflow"> <span>TecHSA</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/309191.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202408/07M7fNapSmfJs38ezB.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>手持式氧气分析仪</span> </div> <div class="model-name text-overflow"> <span>TecPen Dot</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/309187.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202304/13ZHRMQ4jCAWrM6TYB.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>手持式氧气/二氧化碳分析仪</span> </div> <div class="model-name text-overflow"> <span>TecPen MAP O2 (0-5%)</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> <div class="product-item"> <a href="/product/309171.html" target="_blank"> <div class="img"> <img class="pic-auto" src="https://static.e-xina.com/products/202304/138mTzkZzeGchbJcbJ.jpg/g_og" alt="产品图片" srcset=""> </div> <div class="name text-overflow"> <span>多功能氧气传感器</span> </div> <div class="model-name text-overflow"> <span>TecMicro Gas Trace</span> </div> <div class="inquiry-btn"> <span>在线询价</span> </div> </a> </div> </div> </div> <!-- 品牌顾问 --> <div id="brand-consultant" class="background-image-container" style="background-image:url('/common/brand/images/brand-consultant-bg.png');padding: 60px 0;"> <div class="brand-detail-title" style="text-align: center;"> 品牌顾问 </div> <div class="brand-detail-content consultant-content"> <div class="consultant-QR"> <img class="pic-auto" src="https://static.e-xina.com/brands/202411/15yXTttXddD84Z6yxh.png/og" alt="" srcset="" style="margin-bottom: 0px;"> </div> <div class="consultant-info"> <p class="consultant-name">张经理</p> <p class="sales-manager">品牌顾问</p> <span>联系电话:17695592360</span> <span>邮箱:sales@e-xina.com</span> </div> </div> </div> </div> <footer class="footer"> <div class="main" style="color: #DFE1E5;"> <div class="brand-container" style="overflow: hidden;"> <div class="left" style="float: left"> <div class="com-info"> <ul class="clearfix"> <li><a href="/">返回首页</a><span>|</span></li> <li><a href="/product">产品中心</a><span>|</span></li> <li><a href="/service">客户中心</a><span>|</span></li> <li><a href="/jobs">人才中心</a><span>|</span></li> <li><a href="/cooperation">合作平台</a><span>|</span></li> <li><a href="/contact">联系方式</a></li> </ul> <br />&nbsp <br />Copyright© 2013-2024 天津西纳智能科技有限公司 版权所有</br> <br />电话 (Tel.):400-9619-005&nbsp;&nbsp;&nbsp; 传真 (Fax):400-9619-005&nbsp;&nbsp;&nbsp;邮箱 (E-mail):sales@e-xina.com <br />地址:天津市和平区南京路235号河川大厦A座22D <div class="copyright"> <img src="/common/img/recordCode.png" alt="" /> <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12010102000946" target="_blank">12010102000946</a>&nbsp;|&nbsp; <a href="http://beian.miit.gov.cn/" target="_blank">津ICP备13001985号-1</a> </div> </div> </div> <div class="right" style="float: right;"> <div class="menu clearfix"> <ul> <div style="color:var(--theme-color);">400-9619-005</div> <li><div style="max-width: 126px;max-height: 126px"><img src="https://static.e-xina.com/atts/202112/06btktiGRxhsbYA8Hk.png/og" alt=""/></div></li> </ul> </div> </div> </div> </div> </footer> <div class="suspension"> <div class="suspension-box"> <a href="javascript:;" class="a a-service-phone "> <i class="i"></i> <span>电话</span> <span>咨询</span> </a> <a href="javascript:;" class="a a-qrcode"> <i class="i"></i> <span>微信</span> <span>咨询</span> </a> <a href="javascript:;" class="a a-top"><i class="i"></i></a> <div class="d d-service-phone"> <i class="arrow"></i> <div class="inner-box"> <div class="d-service-item clearfix"> <span class="circle"><i class="i-tel"></i></span> <div class="text"> <p>服务热线</p> <p class="red number">400-9619-005</p> </div> </div> </div> </div> <div class="d d-qrcode"> <i class="arrow"></i> <div class="inner-box"> <div class="qrcode-img"><img src="https://static.e-xina.com/atts/202306/26RhhXiDTWhhKCa8hR.png/og" width="180" alt=""></div> <p>微信扫一扫<span style="margin-left: 10px;color:var(--theme-color);">直接聊</span></p> </div> </div> </div> </div> <!-- 不一样的地方 - start --> <script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/third-party/slick/slick.min.js?v=1732615369"></script><script type="text/javascript" src="https://static.e-xina.com/xina/common/brand/js/pagination.js?v=1732615369"></script><!-- 不一样的地方 - end --> <script> var brandId= 29674; // 获取品牌资讯分类下的文章 var iden='XINA_NEWS_BRAND'; // 注意,不同官网,就是不同标识 var informationPage = 1, informationTotal = 0, allCategory; // 搜索 function search(){ window.open('/product/search?brandId=' + brandId + "&title=" + $("#kw").val() , '_blank'); } // 初始化事件 $(()=> { $('.brand-detail-content').addClass('common-skeleton') $.get('/api/brand-category/category?id=' + brandId, function (res) { $('.brand-detail-content').removeClass('common-skeleton') if (res.data.length !== 0) { allCategory = res.data; $('.category-tab-container li').first().trigger('click'); } }) initInformationList(1, 6) if ($('.information-video-img').length === 0) { $('.information-list-pages').css('width', '100%') } }) // 顶部背景轮播图 $('.head-bg-slick').slick({ autoplay: true, //是否自动播放 pauseOnHover: true, //鼠标悬停暂停自动播放 slidesToShow: 1, //要显示的动画速度 swipeToSlide: true, //允许用户直接拖动或滑动到幻灯片上 draggable: true, //是否启用鼠标拖动 arrows: false, }); // 顶部背景轮播图切换事件 $('.head-bg-slick').on('beforeChange', function(event, slick, currentSlide, nextSlide){ $('.head-bg-dots li').eq(nextSlide).addClass('active').siblings().removeClass('active') }) // 顶部背景轮播图dots的点击 $('.head-bg-dots li').each((index, item)=> { $(item).on('click',commonDebounce(function(){ if (!$(this).hasClass('active')){ $(this).addClass('active').siblings().removeClass('active') $('.head-bg-slick').slick('slickGoTo', index) } }, 300) ) }) // 判断导航栏是否高亮 $(window).scroll(function () { var windowTop = $(document).scrollTop(); if (windowTop < ($('#brand-information').offset().top + $('#brand-information').height()) / 2) { $('.anchor-nav a').eq(0).addClass('active-nav').siblings().removeClass('active-nav') } else if (windowTop < ($('#product-category').offset().top + $('#product-category').height()) / 2) { $('.anchor-nav a').eq(1).addClass('active-nav').siblings().removeClass('active-nav') } else if(windowTop < ($('#popular-product').offset().top + $('#popular-product').height()) / 2){ $('.anchor-nav a').eq(2).addClass('active-nav').siblings().removeClass('active-nav') } else { $('.anchor-nav a').eq(3).addClass('active-nav').siblings().removeClass('active-nav') } }) // 品牌资讯视频的播放 if ($('.information-video-img video').length !== 0) { $('.video-play').click(function() { $('.information-video-img video')[0].play() $('.information-video-img video')[0].controls = true; $(this).hide() }) $('.information-video-img video')[0].addEventListener('pause',function() { $('.video-play').show() }) $('.information-video-img video')[0].addEventListener('play',function() { $('.video-play').hide() $('.information-video-img video')[0].controls = true; }) } function initInformationList(page, limit) { $('.information-list .information-list-title').addClass('common-skeleton') $('.information-list .information-time').addClass('common-skeleton') $.get('/api/brand-category/news?iden=' + iden + "&brandId=" + brandId + "&page=" + page + "&limit=" + limit, function(res) { if (res.data.total > 0) { // 资讯列表的分页器 new Pagination({ element: '#informationPages', type: 2, layout: 'prev, pager, next', pageIndex: page, pageSize: limit, total: res.data.total, singlePageHide: false, disabled: true, currentChange: function(index) { $('.information-list .information-list-title').addClass('common-skeleton') $('.information-list .information-time').addClass('common-skeleton') $.get('/api/brand-category/news?iden=' + iden + "&brandId=" + brandId + "&page=" + page + "&limit=" + limit, function(res) { setInformationListHtml(res) $('.information-list .information-list-title').removeClass('common-skeleton') $('.information-list .information-time').removeClass('common-skeleton') }) } }); setInformationListHtml(res) } else { setInformationListHtml(res) } $('.information-list .information-list-title').removeClass('common-skeleton') $('.information-list .information-time').removeClass('common-skeleton') }) } // 设置资讯列表的html function setInformationListHtml(res) { let newHtml = '' for (let index = 0; index < res.data.data.length; index++) { const element = res.data.data[index]; newHtml += ` <a href="${getNewsUrl(element.id)}"> <li> <div class="information-list-title"> <div class="information-list-circle"></div> <div class="text-overflow" style="flex: 1;"> <span> ${element.name} </span> </div> </div> <div class="information-time"> ${element.create_time} </div> </li> </a> ` } $('.information-list').html(newHtml); } // 产品分类的tab点击事件 $('.category-tab-container li').click(function() { if ($(this).hasClass('active')) { return } $(this).addClass('active').siblings().removeClass('active') let currentCate = allCategory.filter((item) => { return item.id === $(this).data('id') })[0]; // 判断是否已经请求过 if (!currentCate.isRequest) { // 判断是否有二级 if (currentCate.children !== undefined) { let cateHtml = ''; let allRequest = []; $('.category-head').addClass('common-skeleton') $('.three-category-item').addClass('common-skeleton') for (let index = 0; index < currentCate.children.length; index++) { const chileCate = currentCate.children[index]; // 产品列表 let proRequest = new Promise((resolve,reject) => { $.get("/api/brand-category/product?id=" + chileCate.id, function (proRes) { chileCate.proInfo = proRes.data; resolve(chileCate) }); }) allRequest.push(proRequest) } Promise.all(allRequest).then(allRes => { for (let index = 0; index < allRes.length; index++) { const element = allRes[index]; cateHtml += ` <div class="category-info-item"> ${getCateHeadHtml(element.name)} <div class="three-category-container"> ${getProHtml(element.proInfo)} </div> </div> ` } $('.category-info-container').html(cateHtml) currentCate.isRequest = true; }) } else { let cateHtml = ''; $('.category-head').addClass('common-skeleton') $('.three-category-item').addClass('common-skeleton') // 产品列表 $.get("/api/brand-category/product?id=" + currentCate.id, function (proRes) { cateHtml += ` <div class="category-info-item"> <div class="three-category-container"> ${getProHtml(proRes.data)} </div> </div> ` currentCate.isRequest = true; currentCate.proInfo = proRes.data; $('.category-info-container').html(cateHtml) }); } } else { let cateHtml = ''; // 判断是否有二级 if (currentCate.children !== undefined) { for (let index = 0; index < currentCate.children.length; index++) { const chileCate = currentCate.children[index]; cateHtml += ` <div class="category-info-item"> ${getCateHeadHtml(chileCate.name)} <div class="three-category-container"> ${getProHtml(chileCate.proInfo)} </div> </div> ` } $('.category-info-container').html(cateHtml) } else { cateHtml += ` <div class="category-info-item"> <div class="three-category-container"> ${getProHtml(currentCate.proInfo)} </div> </div> ` $('.category-info-container').html(cateHtml) } } isShowSeriesText() }) // 判断产品分类是否需要滚动按钮 if ($('.category-tab-container')[0].scrollWidth <= $('.category-tab-container')[0].clientWidth) { $('.category-tab-container').next().remove() } else { $('.category-tab-container').next().children('.operation-btn-right').click(() => { categoryTabScroll($('.category-tab-container').next().children('.operation-btn-right'), 'right') }) $('.category-tab-container').next().children('.operation-btn-left').click(() => { categoryTabScroll($('.category-tab-container').next().children('.operation-btn-left'), 'left') }) } // 触发tab的左右滚动 function categoryTabScroll(_this,type) { if ($(_this).hasClass('disabled-click')) { return } const scrollDom = $(_this).parent().prev(); if (type == 'right') { const right = scrollDom.scrollLeft() + scrollDom.width() scrollDom.animate({ scrollLeft: right}, "slow"); if (right + scrollDom .width() > scrollDom [0].scrollWidth) { $(_this).addClass('disabled-click') } if ($(_this).prev().hasClass('disabled-click')) { $(_this).prev().removeClass('disabled-click') } } else { const left = scrollDom.scrollLeft() - scrollDom.width() scrollDom.animate({ scrollLeft: left }, "slow"); if (left < 0) { $(_this).addClass('disabled-click') } if ($(_this).next().hasClass('disabled-click')) { $(_this).next().removeClass('disabled-click') } } } // 获取分类头部的html function getCateHeadHtml(name) { return `<div class="category-head"> <div class="category-head-block"></div><span>${ name }</span></div>` } // 获取产品的相关html function getProHtml(data) { let proHtml = ''; for (let index = 0; index < data.length; index++) { const proItem = data[index]; proHtml += ` <div class="three-category-item"> <a href="${getProductUrl(proItem.id)}"> <div class="pro-pic-container"> <div class="pro-pic"> ${proItem.pic.length == 0 ? '<img class="pic-auto" src="/static/images/default.jpg" alt="" srcset="">' : `<img class="pic-auto" src="${img_path}${proItem.pic[0]}" alt="" srcset="">` } </div> ${proItem.pic.length > 1 ? '<div class="more-pro-pic"></div>' : '' } </div> </a> <a href="${getProductUrl(proItem.id)}"> <div style="width: 176px;"> <div class="category-name">${ proItem.name }</div> <div class="model-name">${ proItem.series_models }</div> <div class="view-category-detail"> 查看详情 <i class="iconfont icon-arrow-right"></i> </div> </div> </a> </div> ` } return proHtml } // 判断是否要出现系列的文字 function isShowSeriesText() { $('.three-category-item .model-name').each((index, item) => { if ($(item)[0].scrollHeight > 32) { $(item).prepend('<span class="series-text">系列</span>') } }) } </script> <style> /* // 由于每个站点的主题色不一样。所以到页面单独自定义主题色即可 */ :root { --theme-color: #0099d7; } body a:hover { color: #0099d7; } .footer .main .left .com-info ul li a:hover { color: #0099d7; } </style> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10