nSelect').addClass('hide'); $('#currentItemVal').text($(this).text()) }); //搜索框获取焦点tag隐藏 $('#topSearchIpt').on('click', function(e) { $('#topSearchTag').hide(); if ($('#stHotDestBox').css('display') == 'none') { $('#stHotDestBox').show(); } $(document).on('click', function(e) { if (e.target !== $('#stHotDestBox')[0]) { $('#stHotDestBox').hide(); } }); e.stopPropagation(); }); $('#topSearchIpt').keyup(function(event) { if (event.keyCode == 13) { $('#st-btn').trigger('click'); } }); $('#stHotDestBox').on('click', function(e) { e.stopPropagation(); }); //搜索框失去焦点判断有无值 $('#topSearchIpt').on('blur', function() { if ($(this).val() !== '') { $('#topSearchTag').hide() } else { $('#topSearchTag').show() } }); //登陆状态 $.ajax({ type: "POST", async: false, url: SITEURL + "member/login/ajax_is_login", dataType: 'json', success: function(data) { var html = ''; if (data.status) { html += '您好,' + data.user.nickname + ''; html += '进入个人中心'; html += '退出'; $(".login-after").html(html); } else { html += '登录'; html += '注册'; $(".login-before").html(html); } } }); })

抱歉,该线路还未上线喔,如有疑问请联系:4009661557。查看全部线路