index.js 17.7 KB
Newer Older
Skyeye云's avatar
Skyeye云 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

var active;
var userId;

layui.config({
    base: basePath,
    version: skyeyeVersion
}).extend({
    window: 'js/winui.window'
}).define(['window', 'radialin', 'form', 'element', 'tautocomplete', 'spop'], function (exports) {
    var $ = layui.jquery,
    	form = layui.form,
    	element = layui.element;
    
    $(document).attr("title", sysMainMation.mationTitle);
    $(".tradition-left-top").find("span").html(sysMainMation.mationTitle);
    // 修改版权
	$(".tradition-right-bottom-copyright").html(sysMainMation.copyright);
    
    //顶部桌面模板
	var desktopTemplate = $("#desktopTemplate").html();
	//菜单盒子模板
	var menuBoxTemplate = $("#menuBoxTemplate").html();
	//二级菜单模板
	var menuMoreTemplate = $("#menuMoreTemplate").html();
	//一级菜单模板
	var menuTemplate = $("#menuTemplate").html();
28

Skyeye云's avatar
Skyeye云 已提交
29
    $(function () {
30
		// 获取当前登录员工信息
W
weizhiqiang 已提交
31
		systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
32 33 34 35 36 37 38 39 40 41
			userId = data.bean.id;
			$("#userPhoto").attr("src", fileBasePath + data.bean.userPhoto);
			$("#userName").html(data.bean.userCode + '(' + data.bean.userName + ')');
		});
		// 加载首页
		initDefaultPage();
		// 加载菜单数据
		loadMenuListToShow();

		etiger.socket.init();
Skyeye云's avatar
Skyeye云 已提交
42 43 44 45 46 47 48 49
    });
    
    //搜索自动补充数据来源
    var data = new Array();
    
    //加载菜单数据
    function loadMenuListToShow(){
    	//获取桌面消息
50
        AjaxPostUtil.request({url: reqBasePath + "login009", params: {}, type: 'json', method: "GET", callback: function(l){
51 52 53 54
			var str = "";//顶部桌面字符串
			var menuBoxStr = "";//多个菜单的字符串
			$.each(l.rows, function(i, row){
				row.show = 'none';
55 56 57 58 59
				if (i == 0) {
					row.show = 'block';
					row.chooseDeskTop = ' select';
				}
				var jsonStr = {
60 61 62 63 64 65 66 67 68 69 70 71
					bean: row
				};
				str += getDataUseHandlebars(desktopTemplate, jsonStr);
				menuBoxStr += getDataUseHandlebars(menuBoxTemplate, jsonStr);
			});
			$(".desktop-menu-box").find("ul").html(str);
			$("#sysMenuListBox").html(menuBoxStr);

			//重新计算头部宽度
			initDeskTopMenuBox();

			// 加载菜单
W
weizhiqiang 已提交
72
			AjaxPostUtil.request({url: reqBasePath + "login005", params: {}, type: 'json', method: "GET", callback: function (json) {
73 74 75
				var menuStr;
				$.each(json.rows, function(i, row){
					menuStr = "";
76
					row.icon = desktopMenuUtil.getTraditionPageMenuIcon(row);
77 78 79 80 81 82 83 84 85 86 87
					if(row.pageURL != '--'){
						//一级菜单
						menuStr = getDataUseHandlebars(menuTemplate, {bean: row});
						if(isNull(row.deskTopId)){
							$("ul[menurowid='winfixedpage00000000']").append(menuStr);
						} else {
							$("ul[menurowid='" + row.deskTopId + "']").append(menuStr);
						}
						data.push({id: row.id, name: row.name, pageURL: row.pageURL, winName: isNull(row.deskTopId) ? defaultName : $(".desktop-menu-box").find("li[rowid='" + row.deskTopId + "']").find('span').html()});
					} else {
						//二级菜单
W
weizhiqiang 已提交
88
						if (!isNull(row.childs)){
89
							$.each(row.childs, function(j, child){
90
								child.icon = desktopMenuUtil.getTraditionPageMenuIcon(child);
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
								data.push({id: child.id, name: child.name, pageURL: child.pageURL, winName: isNull(row.deskTopId) ? defaultName : $(".desktop-menu-box").find("li[rowid='" + row.deskTopId + "']").find('span').html()});
							});
						}
						menuStr = getDataUseHandlebars(menuMoreTemplate, {bean: row});
						if(isNull(row.deskTopId)){
							$("ul[menurowid='winfixedpage00000000']").append(menuStr);
						} else {
							$("ul[menurowid='" + row.deskTopId + "']").append(menuStr);
						}
					}
				});

				var text2 = $("#Text2").tautocomplete({
					width: "500px",
					placeholder: $("#Text2").attr("placeholder"),
					columns: [{field: 'name', title: '菜单名称'}, {field: 'winName', title: '所属桌面'}],
					data: function() {
						var filterData = [];
						var searchData = eval("/" + text2.searchdata() + "/gi");
						$.each(data, function(i, v) {
							if(v.name.search(new RegExp(searchData)) != -1) {
								filterData.push(v);
Skyeye云's avatar
Skyeye云 已提交
113 114
							}
						});
115 116 117
						return filterData;
					},
					onchange: function() {
W
weizhiqiang 已提交
118
						if (!isNull(text2.id())){
119 120 121 122 123 124 125 126
							var dataMenu = $("#sysMenuListBox").find("a[data-id='" + text2.id() + "']");
							indexMenu.loadTraditionPage(dataMenu);
						}
					}
				});

				matchingLanguage();
			}});
Skyeye云's avatar
Skyeye云 已提交
127 128 129 130 131 132 133
   		}});
    }
    
    //计算头部宽度
    function initDeskTopMenuBox(){
    	var items = $(".desktop-menu-box").find('li');
    	var maxWidth = 50;
W
weizhiqiang 已提交
134
    	$.each(items, function(i, item) {
Skyeye云's avatar
Skyeye云 已提交
135 136 137 138 139 140 141 142 143
    		maxWidth += $(item).width();
    	});
    	$(".desktop-menu-box").find('ul').css({'width': maxWidth + 'px'});
    }
    
	//触发事件
    active = {
    	//在这里给active绑定几项事件,后面可通过active调用这些事件
    	tabAdd: function(url, id, name) {
144 145
			url = systemCommonUtil.getUrl(url, null);

Skyeye云's avatar
Skyeye云 已提交
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
    		//新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值
    		//关于tabAdd的方法所传入的参数可看layui的开发文档中基础方法部分
    		element.tabAdd('menubox', {
    			title: name,
    			content: '<iframe data-frameid="' + id + '" scrolling="auto" frameborder="0" src="' + url + '"></iframe>',
    			id: id //规定好的id
    		})
    		CustomRightClick(id); //给tab绑定右击事件
    	},
    	tabChange: function(id) {
    		//切换到指定Tab项
    		element.tabChange('menubox', id); //根据传入的id传入到指定的tab项
    	},
    	tabDelete: function(id) {
    		element.tabDelete("menubox", id); //删除
    	},
    	tabDeleteAll: function(ids) { //删除所有
    		$.each(ids, function(i, item) {
    			element.tabDelete("menubox", item); //ids是一个数组,里面存放了多个id,调用tabDelete方法分别删除
    		})
    	}
    };

Skyeye云's avatar
Skyeye云 已提交
169
    // 当点击有page-item-click属性的标签时,即左侧菜单栏中内容 ,触发点击事件
W
weizhiqiang 已提交
170
    $("body").on("click", ".page-item-click", function (e) {
Skyeye云's avatar
Skyeye云 已提交
171 172 173 174 175
    	var dataMenu = $(this);
    	if("win" === dataMenu.attr("data-type")){
    		window.open(dataMenu.attr("data-url"));
    	} else {
			indexMenu.loadTraditionPage(dataMenu);
Skyeye云's avatar
Skyeye云 已提交
176 177 178 179 180
    	}
    });

    //右键事件
    function CustomRightClick(id) {
W
weizhiqiang 已提交
181
    	// 取消右键  rightmenu属性开始是隐藏的 ,当右击的时候显示,左击的时候隐藏
Skyeye云's avatar
Skyeye云 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
    	$('#LAY_app_tabsheader li').on('contextmenu', function() {
    		return false;
    	})
    	$('#LAY_app_tabsheader, #LAY_app_tabsheader li').click(function() {
    		$('.rightmenu').hide();
    	});
    	//桌面点击右击 
    	$('#LAY_app_tabsheader li').on('contextmenu', function(e) {
    		var popupmenu = $(".rightmenu");
    		popupmenu.find("li").attr("data-id", id); //在右键菜单中的标签绑定id属性
    		//判断右侧菜单的位置 
    		l = ($(document).width() - e.clientX) < popupmenu.width() ? (e.clientX - popupmenu.width()) : e.clientX;
    		t = ($(document).height() - e.clientY) < popupmenu.height() ? (e.clientY - popupmenu.height()) : e.clientY;
    		popupmenu.css({
    			left: l,
    			top: t
    		}).show(); //进行绝对定位
    		return false;
    	});
    }
    
    //加载初始化界面-首页
    function initDefaultPage(){
    	active.tabAdd("../../tpl/mainPage/mainPage.html", "initDefaultPageId", '<i class="layui-icon layui-icon-home"></i>');
    	active.tabChange("initDefaultPageId");
    }
    
    //菜单点击
W
weizhiqiang 已提交
210
    $("body").on("click", ".menu-box-none", function (e) {
Skyeye云's avatar
Skyeye云 已提交
211 212
    	if($(this).parent().hasClass("layui-nav-itemed")){
    		$(this).parent().removeClass("layui-nav-itemed");
Skyeye云's avatar
Skyeye云 已提交
213
    	} else {
Skyeye云's avatar
Skyeye云 已提交
214 215 216 217 218
    		$(this).parent().addClass("layui-nav-itemed");
    	}
    });

    //关闭操作
W
weizhiqiang 已提交
219
    $("body").on("click", ".rightmenu li, .right-close-operator dd a", function (e) {
Skyeye云's avatar
Skyeye云 已提交
220 221 222 223 224 225 226 227 228 229
    	//右键菜单中的选项被点击之后,判断type的类型,决定关闭所有还是关闭当前。
    	if($(this).attr("data-type") == "closethis") {
    		var choosePage = $("#LAY_app_tabsheader li[class='layui-this']").attr('lay-id');
    		if(isNull(choosePage)){
    			winui.window.msg('请选中当前标签页~', {shift: 6});
    			return;
    		}
    		//如果关闭当前,即根据显示右键菜单时所绑定的id,执行tabDelete
    		if(choosePage != 'initDefaultPageId'){
    			active.tabDelete(choosePage);
Skyeye云's avatar
Skyeye云 已提交
230
    		} else {
Skyeye云's avatar
Skyeye云 已提交
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
    			winui.window.msg('首页不能关闭~', {shift: 6});
    		}
    	} else if($(this).attr("data-type") == "closeall") {
    		var tabtitle = $("#LAY_app_tabsheader li");
    		var ids = new Array();
    		$.each(tabtitle, function(i) {
    			if($(this).attr("lay-id") != 'initDefaultPageId'){
    				ids.push($(this).attr("lay-id"));
    			}
    		})
    		//如果关闭所有 ,即将所有的lay-id放进数组,执行tabDeleteAll
    		active.tabDeleteAll(ids);
    	} else if($(this).attr("data-type") == "closeother") {//关闭其他标签页
    		var choosePage = $("#LAY_app_tabsheader li[class='layui-this']").attr('lay-id');
    		if(isNull(choosePage)){
    			winui.window.msg('请选中当前标签页~', {shift: 6});
    			return;
    		}
    		var tabtitle = $("#LAY_app_tabsheader li");
    		var ids = new Array();
    		$.each(tabtitle, function(i) {
    			if($(this).attr("lay-id") != 'initDefaultPageId' && $(this).attr("lay-id") != choosePage){
    				ids.push($(this).attr("lay-id"));
    			}
    		})
    		//如果关闭所有 ,即将所有的lay-id放进数组,执行tabDeleteAll
    		active.tabDeleteAll(ids);
    	}
    	$('.rightmenu').hide(); //最后再隐藏右键菜单
    });
    
    // 全屏操作
    var isFullScreen = false;// 全屏参数
W
weizhiqiang 已提交
264
    $("body").on("click", "#isFullScreen", function (e) {
Skyeye云's avatar
Skyeye云 已提交
265 266 267
    	if(!isFullScreen){// 非全屏状态
    		isFullScreen = true;
    		fullScreen();
Skyeye云's avatar
Skyeye云 已提交
268
    	} else {// 全屏状态
Skyeye云's avatar
Skyeye云 已提交
269 270 271 272 273 274
    		isFullScreen = false;
    		exitFullScreen();
    	}
    });

    // 个人中心
W
weizhiqiang 已提交
275
    $("body").on("click", ".winui-start-syspersonal", function (e) {
Skyeye云's avatar
Skyeye云 已提交
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
    	// 否则判断该tab项是否以及存在
		var isData = false; // 初始化一个标志,为false说明未打开该tab项 为true则说明已有
		$.each($("#LAY_app_tabsheader li[lay-id]"), function() {
			// 如果点击左侧菜单栏所传入的id 在右侧tab项中的lay-id属性可以找到,则说明该tab项已经打开
			if($(this).attr("lay-id") === "syspersonal") {
				isData = true;
			}
		})
		if(isData == false) {
			// 标志为false 新增一个tab项
	    	active.tabAdd("../../tpl/syspersonal/syspersonal.html", "syspersonal", '<i class="fa fa-user"></i>个人中心');
		}
    	active.tabChange("syspersonal");
    });
    
    // 任务空间
W
weizhiqiang 已提交
292
    $("body").on("click", ".winui-start-job-space", function (e) {
Skyeye云's avatar
Skyeye云 已提交
293 294 295 296
		window.open("../../tpl/jobSpace/jobSpace.html");
    });
    
    // 配色方案
W
weizhiqiang 已提交
297
    $("body").on("click", ".winui-start-color-scheme", function (e) {
Skyeye云's avatar
Skyeye云 已提交
298 299 300 301 302 303
		layer.open({
			type: 2,
			title: '配色方案',
			shadeClose: true,
			closeBtn: 0,
			shade: 0.3,
Skyeye云's avatar
Skyeye云 已提交
304
			area: ['400px', '95%'],
Skyeye云's avatar
Skyeye云 已提交
305 306 307 308 309 310
			offset: 'rb',
			content: '../../tpl/colorScheme/colorScheme.html'
		}); 
    });
    
    // 切换风格
W
weizhiqiang 已提交
311
    $("body").on("click", ".winui-switching-style", function (e) {
Skyeye云's avatar
Skyeye云 已提交
312 313 314 315 316 317 318 319
    	location.href = "../../tpl/index/index.html";
    });

    var nowType = isNull(getCookie("languageType")) ? "zh" : getCookie("languageType");
    if(nowType == "zh"){
        // 中文
        $("#switchLanguage").find("a").attr("title", "切换英文");
		$("#switchLanguage").find("a").html('<svg t="1598752278678" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5850" width="16" height="16"><path d="M294.144 617.301333v-102.4h101.717333v102.4H294.144z m159.061333 0v-102.4H555.52v102.4h-102.4zM884.394667 51.968c76.202667 0 138.581333 61.44 139.093333 136.106667v476.16c0 74.666667-62.378667 136.106667-138.581333 136.106666h-32.768v41.386667c0 74.666667-62.378667 136.106667-138.581334 136.106667H138.581333C62.378667 977.834667 0 916.394667 0 841.728V353.792c0-73.216 59.306667-133.034667 132.949333-136.106667v-29.610666c0-74.752 62.464-136.106667 138.666667-136.106667h612.693333zM611.754667 687.786667V462.250667H452.693333V384h-56.832v78.250667H239.872V690.346667h54.272v-25.088h101.717333V806.4h56.832V665.258667h102.314667v22.528h56.746667z m333.994666 37.376a83.541333 83.541333 0 0 0 25.6-60.842667v-476.16a85.333333 85.333333 0 0 0-25.6-60.416 88.490667 88.490667 0 0 0-61.44-25.002667h-612.693333a86.186667 86.186667 0 0 0-87.04 85.333334v29.696h528.469333c76.202667 0 138.581333 61.44 138.581334 136.106666V750.08h32.768c23.04 0 44.970667-8.704 61.44-25.088z" fill="#666666" p-id="5851"></path></svg>');
Skyeye云's avatar
Skyeye云 已提交
320
    } else {
Skyeye云's avatar
Skyeye云 已提交
321 322 323 324 325
        // 英文
        $("#switchLanguage").find("a").attr("title", "切换中文");
        $("#switchLanguage").find("a").html('<svg t="1598752407969" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6614" width="16" height="16"><path d="M884.394667 52.053333c76.202667 0 138.581333 61.269333 139.093333 136.021334v476.16c0 74.666667-62.378667 136.106667-138.581333 136.106666h-32.768v41.386667c0 74.666667-62.378667 136.106667-138.581334 136.106667H138.581333C62.378667 977.834667 0 916.394667 0 841.728V353.792c0-73.216 59.306667-133.034667 132.949333-136.106667v-29.610666c0-74.752 62.464-136.106667 138.666667-136.106667h612.693333z m61.44 673.024a83.541333 83.541333 0 0 0 25.514666-60.842666v-476.16a85.333333 85.333333 0 0 0-25.6-60.416 88.490667 88.490667 0 0 0-61.44-25.002667h-612.693333a86.186667 86.186667 0 0 0-87.04 85.333333v29.696h528.469333c76.202667 0 138.581333 61.44 138.581334 136.106667V750.08h32.768c23.04 0 44.970667-8.704 61.44-25.088zM398.933333 484.181333v42.496H254.634667V651.093333h-57.856v49.664h169.472c-3.584 6.144-7.68 11.776-12.288 17.92-27.136 31.744-79.872 58.88-157.696 80.384l29.184 46.592c77.824-21.504 134.144-51.712 168.96-91.136 12.8-15.872 23.552-33.792 32.768-53.76h1.024c27.136 60.416 94.72 108.544 202.752 145.408l29.696-48.128c-90.624-24.576-150.016-56.832-177.664-97.28h172.544V651.093333h-58.88V526.677333h-143.36v-42.496h-54.272zM306.858667 651.093333v-74.752h92.16v7.68c-1.536 23.552-5.12 46.08-11.264 67.072h-80.896z m137.216 0c4.608-20.48 7.68-42.496 9.216-67.072v-7.68H544.426667v74.752H444.074667zM199.338667 407.381333v49.152h113.152v43.008h54.272V456.533333H485.546667v43.008h54.272V456.533333h113.152v-49.152H539.818667V366.933333H485.546667v40.448H366.762667V366.933333h-54.272v40.448H199.338667z" fill="#666666" p-id="6615"></path></svg>');
    }
    // 切换语言
W
weizhiqiang 已提交
326
    $("body").on("click", "#switchLanguage", function (e) {
Skyeye云's avatar
Skyeye云 已提交
327 328 329
        var nowType = isNull(getCookie("languageType")) ? "zh" : getCookie("languageType");
        if(nowType == "zh"){
        	// 中文,设置为英文
330
            setCookie('languageType', "cn");
Skyeye云's avatar
Skyeye云 已提交
331
		} else {
Skyeye云's avatar
Skyeye云 已提交
332
            // 英文,设置为中文
333
            setCookie('languageType', "zh");
Skyeye云's avatar
Skyeye云 已提交
334 335 336 337 338 339
		}
        window.location.reload();
    });
    
    // 菜单收缩按钮
    var notOrContraction = false;// 菜单收缩参数
W
weizhiqiang 已提交
340
    $("body").on("click", "#notOrContraction", function (e) {
Skyeye云's avatar
Skyeye云 已提交
341 342 343 344
    	if(!notOrContraction){// 展开状态
    		notOrContraction = true;
    		$(".tradition-left").animate({width: "0px"});
    		$(".tradition-right").animate({width: "100%"});
Skyeye云's avatar
Skyeye云 已提交
345
    	} else {// 收缩状态
Skyeye云's avatar
Skyeye云 已提交
346
    		notOrContraction = false;
Skyeye云's avatar
Skyeye云 已提交
347
    		$(".tradition-left").animate({width: "218px"});
Skyeye云's avatar
Skyeye云 已提交
348 349
    		var _width = $("body").width();
    		$(".tradition-right").animate({width: (_width - 220) + "px"}, function () {
Skyeye云's avatar
Skyeye云 已提交
350
    			$(this).css({width:"calc(100% - 218px)"})
Skyeye云's avatar
Skyeye云 已提交
351 352 353 354 355
    		});
    	}
    });
    
    // 退出
W
weizhiqiang 已提交
356
    $("body").on("click", ".logout", function (e) {
Skyeye云's avatar
Skyeye云 已提交
357 358 359 360 361
    	winui.window.confirm('确认注销吗?', {id: 'exit-confim', icon: 3, title: '提示', skin: 'msg-skin-message', success: function(layero, index){
			var times = $("#exit-confim").parent().attr("times");
			var zIndex = $("#exit-confim").parent().css("z-index");
			$("#layui-layer-shade" + times).css({'z-index': zIndex});
		}}, function (index) {
W
weizhiqiang 已提交
362
        	AjaxPostUtil.request({url: reqBasePath + "login003", params: {}, type: 'json', method: "POST", callback: function (json) {
363 364 365 366 367 368 369
				if (etiger != null) {
					etiger.socket.close();
				}
				location.href = "../../tpl/index/login.html";
 	   		}, errorCallback: function (json) {
				location.href = "../../tpl/index/login.html";
			}});
Skyeye云's avatar
Skyeye云 已提交
370 371 372 373
        });
    });
    
    // 头部桌面列表滚动事件
W
weizhiqiang 已提交
374
    $("body").on("wheel", ".desktop-menu-box", function (e) {
Skyeye云's avatar
Skyeye云 已提交
375 376 377 378 379 380 381 382 383 384 385 386 387 388
    	var _this = $(this);
    	var right = _this.find("ul").width() - _this[0].offsetWidth;
    	if (_this.scrollLeft() < right && e.originalEvent.deltaY > 0) {
            //禁止事件默认行为(此处禁止鼠标滚轮行为关联到"屏幕滚动条上下移动"行为)  
            var left = (_this.scrollLeft() + 50);
            _this.scrollLeft(left) 
        }
        if (_this.scrollLeft() > 0 && e.originalEvent.deltaY < 0) {
            //禁止事件默认行为(此处禁止鼠标滚轮行为关联到"屏幕滚动条上下移动"行为)  
            var left = (_this.scrollLeft() - 50);
            _this.scrollLeft(left) 
        }
    });
    
Skyeye云's avatar
Skyeye云 已提交
389
    // 头部桌面列表点击事件
W
weizhiqiang 已提交
390
    $("body").on("click", ".desktop-menu-box ul .layui-nav-item", function (e) {
Skyeye云's avatar
Skyeye云 已提交
391 392 393 394 395 396 397
    	$("#sysMenuListBox").find(".layui-nav-tree").hide();
    	$(".desktop-menu-box ul .layui-nav-item").removeClass('select');
    	$(this).addClass('select');
    	var rowId = $(this).attr("rowid");
    	$("#sysMenuListBox").find("ul[menurowid='" + rowId + "']").show();
    });
    
Skyeye云's avatar
Skyeye云 已提交
398
    // 消息中心
W
weizhiqiang 已提交
399
    $("body").on("click", "#messageCenter", function (e) {
400 401
		var url = systemCommonUtil.getUrl('FP2024013100007', null);
		$(this).attr('data-url', url);
Skyeye云's avatar
Skyeye云 已提交
402
		indexMenu.loadTraditionPage($(this));
Skyeye云's avatar
Skyeye云 已提交
403 404
    });
    
Skyeye云's avatar
Skyeye云 已提交
405
    // 左侧底部功能
W
weizhiqiang 已提交
406
    $("body").on("click", ".tradition-left-bottom .other-item", function (e) {
Skyeye云's avatar
Skyeye云 已提交
407
    	var dataMenu = $(this);
Skyeye云's avatar
Skyeye云 已提交
408
    	var icon = dataMenu.find(".other-item-img").html();
Skyeye云's avatar
Skyeye云 已提交
409
		indexMenu.loadTraditionPage(dataMenu, icon);
Skyeye云's avatar
Skyeye云 已提交
410 411 412 413 414 415 416 417 418
    });
    
	$(window).resize(function () {
	});
	
	matchingLanguage();

    exports('traditionpageindex', {});
});