/* * @Author: zhangfeifei zff_607@163.com * @Date: 2023-03-31 22:51:25 * @LastEditors: zhangfeifei zff_607@163.com * @LastEditTime: 2023-04-04 11:44:35 * @FilePath: \institute-of-technology\js\index-phone.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ $(function () { $(".phone_nav_icon").click(function (e) { e.stopPropagation() $(".bottom_LI").removeClass('_action_phone') $(".nav-tow").removeClass('show-nav-tow') $(".nav-tow-icon-phone").removeClass('nav-action-phone') if ($(this).hasClass("pack-up-icon")) { $('body').removeClass('phone-nav-show') $(this).removeClass("pack-up-icon"); $(".nav_container").css("display", "none"); $(".nav_foot").css("display", "none"); $('.recruitment-image').css("display", "block"); $('.recruitment-main').css("display", "block"); $('.footer').css("display", "block"); } else { $('body').addClass('phone-nav-show') $(this).addClass("pack-up-icon"); $(".nav_container").css("display", "block"); $(".nav_foot").css("display", "block"); $('.recruitment-image').css("display", "none"); $('.recruitment-main').css("display", "none"); $('.footer').css("display", "none"); } }); $(".nav-tow-icon-phone").click(function (e) { // $(this).siblings() let iconkey = $(this).hasClass("nav-action-phone") if(iconkey){ // 没显示二级菜单 $(this).removeClass('nav-action-phone') $(this).siblings('.nav-tow').removeClass("show-nav-tow") }else{ // $(this).addClass('nav-action-phone') $(this).parent().siblings().children().removeClass("show-nav-tow nav-action-phone") $(this).siblings('.nav-tow').addClass("show-nav-tow") } }) $(".bottom_LI").click(function (e) { e.stopPropagation() $(this).siblings().removeClass("_action_phone"); $(this).addClass("_action_phone"); }); $(".recruitment-nav-icon").click(function () { let iconkey = $(this).hasClass("recruitment-nav-icon-phone"); if (iconkey) { $('.talent-item-warp').css('display', 'none') $(this).removeClass("recruitment-nav-icon-phone"); } else { $('.talent-item-warp').css('display', 'block') $(this).addClass("recruitment-nav-icon-phone"); } }); });