/* * @Author: * @wx: Ccxl328 * @LastEditTime: 2023-04-11 16:04:07 */ // 面包屑导航JSON const crumbData = [{ url: "index", name: "首页", id: 0, children: [{ name: "登录", id: 1, parentId: 0, url: "login/", parentUrl: "index", children: [{ name: "绑定手机号", id: 1.1, parentId: 1, url: "login-phone/", parentUrl: "login/", }, ], }, { name: "注册", url: "register/", id: 2, parentId: 0, parentUrl: "index", }, { name: "太阳成tyc7111cc官网入口", url: "equipment/", id: 3, parentId: 0, parentUrl: "index", children: [{ url: "board-compilations/", name: "板材切割机", id: 3.1, parentId: 3, parentUrl: "equipment/", children: [{ name: "Dream系列", url: "Product-Dream/", id: "3.1.1", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=Dream", parentUrl: "Product-Dream/", }, { name: "常见问题", url: "Product-problem/1.html", parentUrl: "Product-Dream/", }, { name: "技术规格", url: "technical-parameters/?page=Dream", parentUrl: "Product-Dream/", }, { name: "机型对比", url: "apparatus-contrast/?page=Dream", parentUrl: "Product-Dream/", }, ], }, { name: "A系列", url: "Product-A/", id: "3.1.2", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=A", parentUrl: "Product-A/", }, { name: "常见问题", url: "Product-problem/2.html", parentUrl: "Product-A/", }, { name: "技术规格", url: "technical-parameters/?page=A", parentUrl: "Product-A/", }, { name: "机型对比", url: "apparatus-contrast/?page=A", parentUrl: "Product-A/", }, ], }, { name: "P系列", url: "Product-P/", id: "3.1.3", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=P", parentUrl: "Product-P/", }, { name: "常见问题", url: "Product-problem/3.html", parentUrl: "Product-P/", }, { name: "技术规格", url: "technical-parameters/?page=P", parentUrl: "Product-P/", }, { name: "机型对比", url: "apparatus-contrast/?page=P", parentUrl: "Product-P/", }, ], }, { name: "i系列", url: "Product-i/", id: "3.1.4", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=i", parentUrl: "Product-i/", }, { name: "常见问题", url: "Product-problem/4.html", parentUrl: "Product-i/", }, { name: "技术规格", url: "technical-parameters/?page=i", parentUrl: "Product-i/", }, { name: "机型对比", url: "apparatus-contrast/?page=i", parentUrl: "Product-i/", }, ], }, { name: "H系列", url: "Product-H/", id: "3.1.5", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=H", parentUrl: "Product-H/", }, { name: "常见问题", url: "Product-problem/5.html", parentUrl: "Product-H/", }, { name: "技术规格", url: "technical-parameters/?page=H", parentUrl: "Product-H/", }, { name: "机型对比", url: "apparatus-contrast/?page=H", parentUrl: "Product-H/", }, ], }, { name: "G系列", url: "Product-G/", id: "3.1.6", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=G", parentUrl: "Product-G/", }, { name: "常见问题", url: "Product-problem/6.html", parentUrl: "Product-G/", }, { name: "技术规格", url: "technical-parameters/?page=G", parentUrl: "Product-G/", }, { name: "机型对比", url: "apparatus-contrast/?page=G", parentUrl: "Product-G/", }, ], }, { name: "C系列", url: "Product-C/", id: "3.1.7", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=C", parentUrl: "Product-C/", }, { name: "常见问题", url: "Product-problem/24.html", parentUrl: "Product-C/", }, { name: "技术规格", url: "technical-parameters/?page=C", parentUrl: "Product-C/", }, { name: "机型对比", url: "apparatus-contrast/?page=C", parentUrl: "Product-C/", }, ], }, { name: "L系列", url: "Product-L/", id: "3.1.8", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=L", parentUrl: "Product-L/", }, { name: "常见问题", url: "Product-problem/30.html", parentUrl: "Product-L/", }, { name: "技术规格", url: "technical-parameters/?page=L", parentUrl: "Product-L/", }, { name: "机型对比", url: "apparatus-contrast/?page=L", parentUrl: "Product-L/", }, ], }, { name: "B系列", url: "Product-B/", id: "3.1.9", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=B", parentUrl: "Product-B/", }, { name: "常见问题", url: "Product-problem/31.html", parentUrl: "Product-B/", }, { name: "技术规格", url: "technical-parameters/?page=L", parentUrl: "Product-B/", }, { name: "机型对比", url: "apparatus-contrast/?page=L", parentUrl: "Product-B/", }, ], }, { name: "EC系列", url: "Product-EC/", id: "3.1.10", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=EC", parentUrl: "Product-EC/", }, { name: "常见问题", url: "Product-problem/39.html", parentUrl: "Product-EC/", }, { name: "技术规格", url: "technical-parameters/?page=EC", parentUrl: "Product-EC/", }, { name: "机型对比", url: "apparatus-contrast/?page=EC", parentUrl: "Product-EC/", }, ], }, { name: "EA系列", url: "Product-EA/", id: "3.1.11", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=EA", parentUrl: "Product-EA/", }, { name: "常见问题", url: "Product-problem/43.html", parentUrl: "Product-EA/", }, { name: "技术规格", url: "technical-parameters/?page=EA", parentUrl: "Product-EA/", }, { name: "机型对比", url: "apparatus-contrast/?page=EA", parentUrl: "Product-EA/", }, ], }, { name: "SC系列", url: "Product-SC/", id: "3.1.12", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=SC", parentUrl: "Product-SC/", }, { name: "常见问题", url: "Product-problem/46.html", parentUrl: "Product-SC/", }, { name: "技术规格", url: "technical-parameters/?page=SC", parentUrl: "Product-SC/", }, { name: "机型对比", url: "apparatus-contrast/?page=SC", parentUrl: "Product-SC/", }, ], }, { name: "AH系列", url: "Product-AH/", id: "3.1.13", parentId: 3, parentUrl: "board-compilations/", children: [{ name: "视频", url: "Product-video/?page=AH", parentUrl: "Product-AH/", }, { name: "常见问题", url: "Product-problem/47.html", parentUrl: "Product-AH/", }, { name: "技术规格", url: "technical-parameters/?page=SC", parentUrl: "Product-AH/", }, { name: "机型对比", url: "apparatus-contrast/?page=AH", parentUrl: "Product-AH/", }, ], }, ], }, { url: "pipe-compilations/", name: "管材切割机", id: 3.2, parentId: 3, parentUrl: "equipment/", children: [{ name: "M系列", url: "Product-M/", id: "3.2.1", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=M", parentUrl: "Product-M/", }, { name: "常见问题", url: "Product-problem/7.html", parentUrl: "Product-M/", }, { name: "技术规格", url: "technical-parameters/?page=M", parentUrl: "Product-M/", }, { name: "机型对比", url: "apparatus-contrast/?page=M", parentUrl: "Product-M/", }, ], }, { name: "T系列", url: "Product-T/", id: "3.2.2", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=T", parentUrl: "Product-T/", }, { name: "常见问题", url: "Product-problem/8.html", parentUrl: "Product-T/", }, { name: "技术规格", url: "technical-parameters/?page=T", parentUrl: "Product-T/", }, { name: "机型对比", url: "apparatus-contrast/?page=T", parentUrl: "Product-T/", }, ], }, { name: "K系列", url: "Product-K/", id: "3.2.3", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=K", parentUrl: "Product-K/", }, { name: "常见问题", url: "Product-problem/9.html", parentUrl: "Product-K/", }, { name: "技术规格", url: "technical-parameters/?page=K", parentUrl: "Product-K/", }, { name: "机型对比", url: "apparatus-contrast/?page=K", parentUrl: "Product-K/", }, ], }, { name: "Q系列", url: "Product-Q/", id: "3.2.4", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=Q", parentUrl: "Product-Q/", }, { name: "常见问题", url: "Product-problem/10.html", parentUrl: "Product-Q/", }, { name: "技术规格", url: "technical-parameters/?page=Q", parentUrl: "Product-Q/", }, { name: "机型对比", url: "apparatus-contrast/?page=Q", parentUrl: "Product-Q/", }, ], }, { name: "Smart系列", url: "Product-Smart/", id: "3.2.5", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=Smart", parentUrl: "Product-Smart/", }, { name: "常见问题", url: "Product-problem/34.html", parentUrl: "Product-Smart/", }, { name: "技术规格", url: "technical-parameters/?page=Smart", parentUrl: "Product-Smart/", }, { name: "机型对比", url: "apparatus-contrast/?page=Smart", parentUrl: "Product-Smart/", }, ], }, { name: "N系列", url: "Product-N/", id: "3.2.6", parentId: 3.2, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=N", parentUrl: "Product-N/", }, { name: "常见问题", url: "Product-problem/35.html", parentUrl: "Product-N/", }, { name: "技术规格", url: "technical-parameters/?page=N", parentUrl: "Product-N/", }, { name: "机型对比", url: "apparatus-contrast/?page=N", parentUrl: "Product-N/", }, ], }, { name: "SK系列", url: "Product-SK/", id: "3.2.7", parentId: 3.3, parentUrl: "pipe-compilations/", children: [{ name: "视频", url: "Product-video/?page=SK", parentUrl: "Product-SK/", }, { name: "常见问题", url: "Product-problem/37.html", parentUrl: "Product-SK/", }, { name: "技术规格", url: "technical-parameters/?page=SK", parentUrl: "Product-SK/", }, { name: "机型对比", url: "apparatus-contrast/?page=SK", parentUrl: "Product-SK/", }, ], }, ], }, { url: "#", name: "板管一体机", id: 3.3, parentId: 3, parentUrl: "equipment/", children: [{ name: "AT系列", url: "Product-AT/", id: "3.3.1", parentId: 3.3, parentUrl: "equipment/", children: [{ name: "视频", url: "Product-video/?page=AT", parentUrl: "Product-AT/", }, { name: "常见问题", url: "Product-problem/11.html", parentUrl: "Product-AT/", }, { name: "技术规格", url: "technical-parameters/?page=AT", parentUrl: "Product-AT/", }, { name: "机型对比", url: "apparatus-contrast/?page=AT", parentUrl: "Product-AT/", }, ], }, { name: "CT系列", url: "Product-CT/", id: "3.3.2", parentId: 3.3, parentUrl: "equipment/", children: [{ name: "视频", url: "Product-video/?page=CT", parentUrl: "Product-CT/", }, { name: "常见问题", url: "Product-problem/12.html", parentUrl: "Product-CT/", }, { name: "技术规格", url: "technical-parameters/?page=CT", parentUrl: "Product-CT/", }, { name: "机型对比", url: "apparatus-contrast/?page=CT", parentUrl: "Product-CT/", }, ], }, ], }, { url: "#", name: "卷材切割生产线", id: 3.4, parentId: 3, parentUrl: "equipment/", children: [{ name: "Rocut系列", url: "Product-R/", id: "3.4.1", parentId: 3.4, parentUrl: "equipment/", children: [{ name: "视频", url: "Product-video/?page=R", parentUrl: "Product-R/", }, { name: "常见问题", url: "Product-problem/13.html", parentUrl: "Product-R/", }, { name: "技术规格", url: "technical-parameters/?page=R", parentUrl: "Product-R/", }, { name: "机型对比", url: "apparatus-contrast/?page=R", parentUrl: "Product-R/", }, ], }, ], }, { url: "#", name: "型材切割机", id: 3.5, parentId: 3, parentUrl: "equipment/", children: [{ name: "HiCut", url: "Product-U/", id: "3.5.1", parentId: 3.5, parentUrl: "equipment/", children: [{ name: "视频", url: "Product-video/?page=U", parentUrl: "Product-U/", }, { name: "常见问题", url: "Product-problem/28.html", parentUrl: "Product-U/", }, { name: "技术规格", url: "technical-parameters/?page=U", parentUrl: "Product-U/", }, ], }, { name: "U", url: "Product-U10/", id: "3.5.2", parentId: 3.5, parentUrl: "equipment/", children: [{ name: "视频", url: "Product-video/?page=U10", parentUrl: "Product-U10/", }, { name: "常见问题", url: "Product-problem/28.html", parentUrl: "Product-U10/", }, { name: "技术规格", url: "technical-parameters/?page=U10", parentUrl: "Product-U10/", }, ], }, ], }, { url: "welder-compilations/", name: "激光焊接机", id: 3.5, parentId: 3, parentUrl: "equipment/", children: [{ name: "Pro", id: 13, parentId: 0, url: "Product-BodorWelder-Pro/", parentUrl: "welder-compilations/", children: [{ name: "视频", url: "Product-video/?page=BodorWelder-Pro", parentUrl: "Product-BodorWelder-Pro/", }, { name: "常见问题", url: "Product-problem/27.html", parentUrl: "Product-BodorWelder-Pro/", }, { name: "操作指南", url: "BodorWelder-userGuide/?page=BodorWelder-Pro", parentUrl: "Product-BodorWelder-Pro/", }, { name: "技术规格", url: "technical-parameters/?page=BodorWelder-Pro", parentUrl: "Product-BodorWelder-Pro/", }, ], }, { name: "Eco", id: 13, parentId: 0, url: "Product-Eco/", parentUrl: "welder-compilations/", children: [{ name: "视频", url: "Product-video/?page=Eco", parentUrl: "Product-Eco/", }, { name: "常见问题", url: "Product-problem/33.html", parentUrl: "Product-Eco/", }, { name: "操作指南", url: "BodorWelder-userGuide/?page=Eco", parentUrl: "Product-Eco/", }, { name: "技术规格", url: "technical-parameters/?page=Eco", parentUrl: "Product-Eco/", }, ], }, { name: "Air", id: 13, parentId: 0, url: "Product-BodorWelder/", parentUrl: "welder-compilations/", children: [{ name: "视频", url: "Product-video/?page=BodorWelder", parentUrl: "Product-BodorWelder/", }, { name: "常见问题", url: "Product-problem/29.html", parentUrl: "Product-BodorWelder/", }, { name: "操作指南", url: "BodorWelder-userGuide/?page=BodorWelder", parentUrl: "Product-BodorWelder/", }, { name: "技术规格", url: "technical-parameters/?page=BodorWelder", parentUrl: "Product-BodorWelder/", }, ], } ], }, { url: "sixInOne/", name: "核心软硬件", id: 3.5, parentId: 3, parentUrl: "equipment/", }, { url: "black-technology/", name: "自研黑科技", id: 3.6, parentId: 3, parentUrl: "equipment/", }, { url: "Product-Automation/", name: "自动化产线", id: 3.7, parentId: 3, parentUrl: "equipment/", children: [{ url: "Product-K-Loader/", name: "K-Loader", id: "3.7.1", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-M-Loader/", name: "M-Loader", id: "3.7.2", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-T-Loader/", name: "T-Loader", id: "3.7.3", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-M-Trans/", name: "M-Trans", id: "3.7.4", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-T-Trans/", name: "T-Trans", id: "3.7.5", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-iLoader/", name: "iLoader", id: "3.7.6", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-iLoader-eco/", name: "iLoader-eco", id: "3.7.7", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-iTower/", name: "iTower", id: "3.7.8", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-iTrans/", name: "iTrans", id: "3.7.9", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-iTransTower/", name: "iTransTower", id: "3.7.10", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-S-Loader/", name: "S-Loader", id: "3.7.11", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "Product-S-Trans/", name: "S-Trans", id: "3.7.12", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "sheetPrescription/", name: "板材加工自动化产线", id: "3.7.13", parentId: 3.7, parentUrl: "Product-Automation/", }, { url: "CustomizedAutomation/", name: "非标定制自动化产线解决方案", id: "3.7.14", parentId: 3.7, parentUrl: "Product-Automation/", }, ] } ], }, { name: "解决方案", url: "solution/", id: 4, parentId: 0, parentUrl: "index", children: [{ url: "industry-Shipbuilding/", name: "船舶制造", id: 4.1, parentId: 4, parentUrl: "solution/", }, { url: "industry-NewEnergy/", name: "新能源", id: 4.2, parentId: 4, parentUrl: "solution/", }, { url: "industry-Science/", name: "科教办公", id: 4.3, parentId: 4, parentUrl: "solution/", }, { url: "industry-Furniture/", name: "家具家电", id: 4.4, parentId: 4, parentUrl: "solution/", }, { url: "industry-Ornamental/", name: "建材装饰", id: 4.5, parentId: 4, parentUrl: "solution/", }, { url: "industry-Vehicles/", name: "汽车制造", id: 4.6, parentId: 4, parentUrl: "solution/", }, { url: "industry-Refrigeration/", name: "空调暖通", id: 4.7, parentId: 4, parentUrl: "solution/", }, { url: "industry-Signage/", name: "广告标识", id: 4.8, parentId: 4, parentUrl: "solution/", }, { url: "industry-Steels/", name: "钢材市场外加工", id: 4.9, parentId: 4, parentUrl: "solution/", }, { url: "industry-GymEquipment/", name: "健身器材", id: 4.1, parentId: 4, parentUrl: "solution/", }, { url: "industry-Steelwork/", name: "钢结构", id: 4.11, parentId: 4, parentUrl: "solution/", }, { url: "industry-ConstructionMachinery/", name: "工程机械", id: 4.12, parentId: 4, parentUrl: "solution/", }, ], }, { name: "客户案例", url: "clientCase-home/", id: 5, parentId: 0, parentUrl: "index", children: [{ url: "serveBehaviour/", name: "服务万里行", id: 5.1, parentId: 5, parentUrl: "clientCase-home/", }, { url: "client-case-list/", name: "全部客户案例", id: 5.3, parentId: 5, parentUrl: "clientCase-home/", }, { url: "client-case-backups/", name: "案例详情", id: 5.2, parentId: 5, parentUrl: "clientCase-home/", }, ], }, { name: "展会活动", url: "previous-activities/", id: 6, parentId: 0, parentUrl: "index", children: [{ url: "exhibition-details/", name: "活动详情", id: 6.1, parentId: 6, parentUrl: "previous-activities/", }, { url: "brandActivity/", name: "品牌活动", id: 6.2, parentId: 7, parentUrl: "previous-activities/", }, { url: "exhibition-retrospect/", name: "往期回顾", id: 6.3, parentId: 8, parentUrl: "previous-activities/", // children: [ // { // url: "exhibition-retrospect/", // name: "往期回顾", // id: 6.4, // parentId: 5, // parentUrl: "previous-activities/", // }, // ], }, ], }, { name: "服务支持", url: "service-support/", id: 7, parentId: 0, parentUrl: "index", children: [{ url: "onSite-repair/", name: "上门维修", id: 7.1, parentId: 7, parentUrl: "service-support/", }, { url: "valueAdded-services/", name: "增值服务", id: 7.2, parentId: 7, parentUrl: "service-support/", }, { url: "download-center/", name: "下载中心", id: 7.3, parentId: 7, parentUrl: "service-support/", }, { url: "common-problem/", name: "常见问题", id: 7.4, parentId: 7, parentUrl: "service-support/", }, { url: "my-device/", name: "设备信息", id: 7.5, parentId: 7, parentUrl: "service-support/", }, { url: "binding-device/", name: "设备绑定", id: 7.6, parentId: 7, parentUrl: "service-support/", }, { url: "after-sale/", name: "服务政策", id: 7.7, parentId: 7, parentUrl: "service-support/", }, { url: "knowledge-center/", name: "知识中心", id: 7.8, parentId: 7, parentUrl: "service-support/", children: [{ url: "product-instructionBook/", name: "产品说明书", id: 7.81, parentId: 7.8, parentUrl: "knowledge-center/", }, ], }, { url: "mountings-inquire/", name: "配件查询", id: 7.9, parentId: 7, parentUrl: "service-support/", }, ], }, { name: "关于太阳成tyc7111cc官网入口", url: "brand/", id: 8, parentId: 0, parentUrl: "index", children: [{ url: "culture/", name: "企业文化", id: 8.1, parentId: 8, parentUrl: "brand/", }, { url: "press-center/", name: "新闻中心", id: 8.2, parentId: 8, parentUrl: "brand/", }, { url: "journalism/", name: "新闻详情", id: 8.3, parentId: 8, parentUrl: "brand/", }, { url: "contactUs/", name: "联系我们", id: 8.4, parentId: 8, parentUrl: "brand/", }, { url: "recruit/", name: "人才招聘", id: 8.5, parentId: 8, parentUrl: "brand/", }, ], }, { name: "购买", url: "purchase/", id: 9, parentId: 0, parentUrl: "index", children: [{ url: "customization/", name: "定制设备", id: 9.1, parentId: 9, parentUrl: "purchase/", }, { url: "#", name: "配件商城", id: 9.2, parentId: 9, parentUrl: "purchase/?store=true", }, { url: "inspect/", name: "厂区考察", id: 9.3, parentId: 9, parentUrl: "purchase/", }, { url: "enquiry/", name: "获取报价", id: 9.4, parentId: 9, parentUrl: "purchase/", }, { url: "#", name: "金融政策", id: 9.5, parentId: 9, parentUrl: "purchase/", }, ], }, { name: "扫描切", id: 10, parentId: 0, url: "scan-slices/", parentUrl: "index", }, { name: "全球销量第一*", id: 11, parentId: 0, url: "sales-no1/", parentUrl: "index", }, { name: "VR展厅", url: "VR-homePage/", id: 12, parentId: 0, parentUrl: "index", children: [{ url: "VR-video/", name: "VR视频", id: 12.1, parentId: 12, parentUrl: "VR-homePage/", }, ], }, { name: "预约打样", id: 12, parentId: 0, url: "proofing/", parentUrl: "index", }, { name: "网站地图", id: 12, parentId: 0, url: "site-map/", parentUrl: "index", }, { name: "用户服务协议", id: 14, parentId: 0, url: "user-service/", parentUrl: "index", }, { name: "隐私政策", id: 15, parentId: 0, url: "privacy-policy/", parentUrl: "index", }, { name: "5年质保", id: 16, parentId: 0, url: "five-year-warranty/", parentUrl: "index", }, { name: "新年活动", id: 17, parentId: 0, url: "spring-festival-sale-2024/", parentUrl: "index", }, { name: "可持续发展", id: 18, parentId: 0, url: "environmental/", parentUrl: "index", }, { name: "Bodor+", id: 19, parentId: 0, url: "bodorPlus/", parentUrl: "index", }, { name: "BodorMes", id: 20, parentId: 0, url: "bodorMes/", parentUrl: "index", }, { name: "BodorHUB", id: 21, parentId: 0, url: "bodorHub/", parentUrl: "index", }, { name: "锋速切割", id: 22, parentId: 0, url: "lightningCutting/", parentUrl: "index", }, // { // name: "激光焊接机操作指南", // id: 18, // parentId: 0, // url: "BodorWelder-userGuide/?page=BodorWelder", // parentUrl: "index", // }, ], }, ]; var pageHrefUrl = window.location.href.split("/")[window.location.href.split("/").length - 2] + "/" + window.location.href.split("/")[window.location.href.split("/").length - 1]; // var pageHrefUrl = // window.location.href.split("/")[window.location.href.split("/").length - 2]; // 判断是否移动端 var flag = navigator.userAgent.match( /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ); var isMobile = $(window).width() < 768 ? true : false; // 使用方法: var page = localStorage.getItem("page"); // 递归函数 function findParents(treeData, url) { let allparents = []; if (treeData.length == 0) { return; } let findele = (data, url) => { if (!url) return; data.forEach((item, index) => { if (item.url !== "#" && url.endsWith(item.url)) { // if (item.url !== "#" && url.indexOf(item.url) != -1) { // if (item.url !== "#" && url.split("&")[0] == item.url) { allparents.unshift({ name: item.name, url: item.url == "index" ? "" : item.url, }); findele(treeData, item.parentUrl); } else { if (!!item.children) { findele(item.children, url); } } }); }; findele(treeData, url); return allparents; } var footerBreadcrumb1 = []; const footerBreadcrumb2 = [{ name: "公司简介", url: "/brand/", }, { name: "人才计划", url: "/recruit/", }, { name: "新闻中心", url: "/press-center/", }, { name: "下载中心", url: "/download-center/", }, { name: "绿色发展", url: "/environmental/", }, { name: "购机", url: "/purchase/", }, { name: "网站地图", url: "/site-map/", }, ]; const footerBreadcrumb3 = [{ name: "微信", img: "wxCode.jpg", }, { name: "抖音", img: "dyCode.png", }, { name: "微博", }, ]; const footer = [{ name: "太阳成tyc7111cc官网入口", url: "/equipment/", list: [{ name: "板材切割机", url: "/board-compilations", }, { name: "管材切割机", url: "/pipe-compilations/", }, { name: "板管一体机", url: "/equipment/", }, { name: "型材切割机", url: "/Product-U/", }, { name: "激光焊接机", url: "/welder-compilations/", }, { name: "核心软硬件", url: "/sixInOne/", }, { name: "自研黑科技", url: "/black-technology/", }, ], }, { name: "热门产品", url: "/equipment/", list: [{ name: "经典款A系列", url: "/Product-A/", }, { name: "经典款C系列", url: "/Product-C/", }, { name: "经典款双卡盘K系列", url: "/Product-K/", }, { name: "旗舰款四卡盘M系列", url: "/Product-M/", }, { name: "旗舰款Dream系列", url: "/Product-Dream/", }, { name: "超大幅面H系列", url: "/Product-H/", }, { name: "自冷却手持激光焊", url: "/Product-BodorWelder/", }, ], }, { name: "热门服务", url: "/service-support/", list: [{ name: "上门维修", url: "/onSite-repair/", }, { name: "增值服务", url: "/valueAdded-services/", }, { name: "下载中心", url: "/download-center/", }, { name: "常见问题", url: "/common-problem/", }, { name: "bodor+", url: `/bodorPlus`, }, { name: "个人服务中心", url: "/service-support/", }, ], }, { name: "购买设备", url: "/purchase/", list: [{ name: "定制我的设备", url: "/customization/", }, { name: "配件商城", url: "/purchase/?store=true", }, { name: "厂区考察", url: "/inspect/", }, { name: "获取报价", url: "/enquiry/", }, { name: "金融政策", url: "/purchase/", }, ], }, ]; function getFooter() { let html = '
`; $("footer").append(html); } // 获取移动端底部 function getMdFooter(params) { let html = ' `; $("footer").append(html); } $(function () { footerBreadcrumb1 = findParents(crumbData, pageHrefUrl); if (!footerBreadcrumb1.length) { footerBreadcrumb1 = [{ url: "/", name: "首页", }, ]; } getMdFooter(); getFooter(); }); // 右侧语言图标点击 $(document).on("click", ".footer_record_right", function (n) { innerText = ""; $(".language_pop_up").removeClass("dn"); setTimeout(() => { $(".language_pop_up").addClass("active"); }, 200); }); // 删除url中某个参数,并跳转 function funcUrlDel(name) { var loca = window.location; var baseUrl = loca.origin + loca.pathname + "?"; var query = loca.search.substr(1); if (query.indexOf(name) > -1) { var obj = {} var arr = query.split("&"); for (var i = 0; i < arr.length; i++) { arr[i] = arr[i].split("="); obj[arr[i][0]] = arr[i][1]; }; delete obj[name]; var url = baseUrl + JSON.stringify(obj).replace(/[\"\{\}]/g, "").replace(/\:/g, "=").replace(/\,/g, "&"); return url }; } // 回到顶部点击按钮 $(document).on("click", ".BackTo-top", function (n) { $("#contrast .contrast_swiper-button-next").fadeOut(300); $("#contrast .contrast_swiper-button-prev").fadeOut(300); if (window.location.href.indexOf("environmental") > -1) { $("body,html").animate({ scrollTop: document.getElementsByTagName("section")[1].offsetTop }, 0); } else { if (funcUrlDel("scroll")) { $("body,html").animate({ scrollTop: 0 }, 0); setTimeout(() => { window.location = funcUrlDel("scroll"); }, 1000); } else { $("body,html").animate({ scrollTop: 0 }, 0); setTimeout(() => { location.reload(); }, 1000); } } }); window.addEventListener("scroll", () => { let t = document.documentElement.scrollTop; let h = document.body.clientHeight; if (t > h / 4) { $(".BackTo-top").addClass("op-06"); } else { $(".BackTo-top").removeClass("op-06"); } }); // 移动端点击选择语言 $(document).on("click", ".language", function (n) { sessionStorage.setItem("isGlobalLanguageTip", true); $('#md_globalLanguageTip').addClass('disabled') $(".language_pop_up").removeClass("dn"); setTimeout(() => { $(".language_pop_up").addClass("active"); }, 200); }); // PC端邮箱 $(document).on("input", "#emailAddressPc", function (n) { let email = $("#emailAddressPc").val(); let reg = /^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/; if (!email || !reg.test(email)) { $(".mailbox").removeClass("mailboxActive"); $(".md_email_tip").addClass("op-08"); } else { $(".mailbox").addClass("mailboxActive"); $(".md_email_tip").removeClass("op-08"); } if (!email) { $(".md_email_tip").removeClass("op-08"); } }); // 移动端邮箱 $(document).on("input", "#emailAddress", function (n) { let email = $("#emailAddress").val(); let reg = /^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/; if (!email || !reg.test(email)) { $(".mailbox").removeClass("mailboxActive"); $(".md_email_tip").addClass("op-08"); } else { $(".mailbox").addClass("mailboxActive"); $(".md_email_tip").removeClass("op-08"); } if (!email) { $(".md_email_tip").removeClass("op-08"); } }); //订阅信息 function addSubscriptionService(type) { let email = type == "PC" ? $("#emailAddressPc").val() : $("#emailAddress").val(); if (!email) { layer.msg("请输入邮箱!"); return; } let reg = /^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/; if (!reg.test(email)) { layer.msg("请输入正确邮箱!"); return; } $.ajax({ type: "post", url: baseUrl + "/websiteApi/addSubscriptionService", dataType: "json", headers: { "Content-Type": "application/json;charset=utf-8" }, data: JSON.stringify({ subscriptionEmail: email, }), success: function (res) { if (res.code == 200) { layer.msg("订阅成功!"); } else { layer.msg(res.msg); } }, error: function (err) {}, }); }