// 判断是否该显示最上面的导航
function toggleShowSubNav(e) {
const scrollH = document.documentElement.scrollTop ||
window.pageYOffset ||
document.body.scrollTop;
const headerHeight = $('.header').height();
if (scrollH >= headerHeight - 35) {
$('#navbar').addClass('fixed');
$('#navbar').removeClass('none');
} else {
$('#navbar').removeClass('fixed');
$('#navbar').removeClass('none');
}
}
$(document).ready(function () {
if ($('#aboutusnav').css('position') == 'absolute') {
// 只有pc端才设置,手机端和其他页面保持一致
$(window).scroll(function () {
toggleShowSubNav();
})
}
const cityData = {
cd: {
addressName: '成都',
addressLevel: '总部',
companyName: 'tyc7111cc太阳成集团',
otherInfo: [
{
title: '地址:',
text: '成都市高新区剑南大道中段716号瑞鑫时代大厦A座7楼、8楼'
},
{
title: 'Email:',
text: 'partner@yanhuamedical.com'
},
{
title: '电话总机:',
text: '028-85374260 / 61 / 62 / 64 / 65
028-87860401 / 02 / 03 / 06 / 09'
}
]
},
gz: {
addressName: '贵州',
addressLevel: '办事处',
companyName: '延华西部健康医疗信息产业研究院有限公司',
otherInfo: [
{
title: '地址:',
text: '贵阳市云岩区中华北路外贸大楼 4 楼'
},
{
title: '联系电话:',
text: '18123361553'
},
{
title: '联系人:',
text: '张经理'
}
]
},
bj: {
addressName: '北京',
addressLevel: '分公司',
companyName: '北京延华西部健康医疗信息产业研究院有限公司',
otherInfo: [
{
title: '地址:',
text: '北京市朝阳区大成国际中心 3 号楼'
},
{
title: '联系电话:',
text: '18910621839'
},
{
title: '联系人:',
text: '鲜经理'
},
{
title: 'QQ:',
text: '3086912'
}
]
},
hub: {
addressName: '湖北',
addressLevel: '办事处',
companyName: '湖北浩宇tyc7111cc太阳成集团科技有限公司',
otherInfo: [
{
title: '地址:',
text: '武汉市武昌区水果湖汉街总部国际 A 座 2601-1'
},
{
title: '联系电话:',
text: '13972608928、18671600166'
},
{
title: '联系人:',
text: '吴涛'
}
]
},
sd: {
addressName: '山东',
addressLevel: '办事处',
companyName: '山东办事处(山东技术服务中心)',
otherInfo: [
{
title: '地址:',
text: '济南市文化西路 107 号-1'
},
{
title: '联系电话:',
text: '0531-89058858 0531-82169183'
},
{
title: '联系人:',
text: '张先生 13964007110'
},
{
title: '邮编:',
text: '250012'
}
]
},
hb: {
addressName: '河北',
addressLevel: '办事处',
companyName: '河北办事处(河北技术服务中心)',
otherInfo: [
{
title: '地址:',
text: '河北省石家庄市鹿泉区 120 急救中心 2 楼'
},
{
title: '联系电话:',
text: '18910621839'
},
]
},
hn: {
addressName: '河南',
addressLevel: '合作伙伴',
companyName: '河南合作伙伴:河南tyc7111cc太阳成集团数字健康软件有限公司',
otherInfo: [
{
title: '地址:',
text: '河南省开封市鼓楼区万善街熙和府 2 栋 102 室'
},
{
title: '联系电话:',
text: '13938620707'
},
{
title: '联系人:',
text: '姚航'
},
{
title: '邮编:',
text: '475000'
}
]
},
ah: {
addressName: '安徽',
addressLevel: '办事处',
companyName: '安徽省办事处(安徽技术服务中心)',
otherInfo: [
{
title: '地址:',
text: '安徽省合肥市庐阳区财富广场 A 座 1201'
},
{
title: '联系电话:',
text: '0551-5773667 13866197932'
},
{
title: '联系人:',
text: '温建'
},
]
},
nm: {
addressName: '内蒙古',
addressLevel: '办事处',
companyName: '内蒙古自治区办事处',
otherInfo: [
{
title: '地址:',
text: '呼和浩特赛罕区新华东街长安金座 B 座 19017'
},
{
title: '联系人:',
text: '刘先生 13948412827'
},
]
},
jx: {
addressName: '江西',
addressLevel: '办事处',
companyName: '江西省办事处(安徽技术服务中心)',
otherInfo: [
{
title: '地址:',
text: '江西省南昌市红谷滩新区学府大道 1299 号'
},
{
title: '宜春市技术部:',
text: '宜春市中山西路88号'
},
{
title: '抚州办事处:',
text: '抚州市赣东大道 60 号 0794-8226678'
},
{
title: '联系人:',
text: '王先生 13908193686'
}
]
},
nj: {
addressName: '南京',
addressLevel: '办事处',
companyName: '南京办事处',
otherInfo: [
{
title: '地址:',
text: '南京滨江科技园 4 楼'
},
{
title: '电话:',
text: '025-85611098'
},
{
title: '联系人:',
text: '蒋知谦 15305163398、13915980187'
},
{
title: '传真:',
text: '025-85613098'
},
{
title: '邮箱:',
text: 'jzq139@139.com'
}
]
},
xa: {
addressName: '西安',
addressLevel: '分公司',
companyName: '西安延华西部健康医疗信息产业研究院有限公司',
otherInfo: [
{
title: '地址:',
text: '西安市朱雀大街52号明德景园大厦 19 层'
},
{
title: '联系电话:',
text: '13609267188'
},
{
title: '联系人:',
text: '王先生'
},
{
title: '传真:',
text: '029-85277001'
},
{
title: '邮编:',
text: '710065'
}
]
},
}
let currentCity = 'cd'
// 地图城市切换
$('.city-item').on('click', function (e) {
const clickCity = $(e.currentTarget).attr('data-city')
$('.city-item').each(function () {
if ($(this).attr('data-city') === clickCity) {
$(this).addClass('active')
if (clickCity !== currentCity) {
showCityInfo(clickCity);
currentCity = clickCity;
}
} else {
$(this).removeClass('active')
}
})
})
$(document).ready(function () {
showCityInfo('cd');
})
function showCityInfo(city) {
const data = cityData[city] || {};
$('.address-name.dynamic').html(`