1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>mcZsMenu</title>
- <script type="text/javascript">
- $(function () {
- var key = "$!key";
- switch (key) {
- case "yzgk":
- loadZsMain("ztgk");
- break;
- case "qtsz":
- loadZsMain("tzfb");
- break;
- case "slxh":
- loadZsMain("mtxh");
- break;
- case "snhj":
- loadZsMain("snwd");
- break;
- }
- //点击二级菜单加载内容页面-事件委托
- $('#mc').on('click', 'li', function () {
- //console.log($(this).data('skip'));
- var key2 = $(this).data('skip');
- if ($(this).data('skip')) {
- $('#mc').find('li.active').removeClass('active');
- $(this).addClass('active');
- }
- //载入页面
- haifm.loadMobilePage("searchMenu", "searchHaifmMain.htm?key2=" + key2 + "&zsid=" + $("#zsid").val() + "&yweb=" + $("#yweb").val());
- });
- });
- //载入内容页面
- function loadZsMain(key2) {
- /* if (key2 == "ssjc") {
- window.location.href=key2 + "HaifmMain.htm?zsid=" + $("#zsid").val();
- return;
- } */
- //haifm.loadMobilePage("zsmain", key2 + "HaifmMain.htm?zsid=" + $("#zsid").val());
- haifm.loadMobilePage("searchMenu", "searchHaifmMain.htm?key2=" + key2 + "&zsid=" + $("#zsid").val() + "&yweb=" + $("#yweb").val());
- }
- </script>
- </head>
- <body>
- <input type="hidden" id="zsid" value="$!zsid"/>
- <div class="container">
- <div class="row" id="mc">
-
- </div>
- </div>
- </body>
- </html>
|