// 街道、区、市逐层向上找 if (addComp.street.length) { position = addComp.street; } else if (addComp.district.length) { position = addComp.district; } else { position = addComp.city; } var thisMapText = ''; if (position.length > 4) { thisMapText = position.substring(0,4) + "..."; } else { thisMapText = position; } $('.J_sub_s').hide(); //$('.J_map_some').addClass('link_yellow'); $('.cur-map-pos').text('位置:' + thisMapText).attr('title', position).show(); $('#popupBox').text('修改'); $('.J_map_some .map-clear').show(); $('#mapShowC').remove(); }); } geocodeSearch(point); } // 关键字联想 var hotKey = $('#autoKeyInput').autocomplete({ serviceUrl:"/ajaxCommon/hotword.htm", minChars:1, maxHeight:400, width:276, zIndex: 1, deferRequestBy: 0 }); // 关闭红包提醒 $('.t-money .m-re-clo').click(function() { $(this).closest('.m-re-box').hide(); }); $.getJSON(qscms.root+'?m=Allowance&c=Ajax&a=counter',function(result){ if(result.status==1){ $('#money_count_jobs').html(result.data.money_count_jobs); $('#money_count_amount').html(result.data.money_count_amount); } }); $('#J_login').click(function(){ var qsDialog = $(this).dialog({ loading: true, footer: false, header: false, border: false, backdrop: false }); var loginUrl = qscms.root+"?m=Home&c=AjaxCommon&a=ajax_login"; $.getJSON(loginUrl, function(result){ if(result.status==1){ qsDialog.hide(); var qsDialogSon = $(this).dialog({ header: false, content: result.data.html, footer: false, border: false }); qsDialogSon.setInnerPadding(false); } else { qsDialog.hide(); disapperTooltip('remind',result.msg); } }); }); $('#J_reg').click(function(){ var qsDialog = $(this).dialog({ loading: true, footer: false, header: false, border: false, backdrop: false }); var regResume = "0"; if(regResume == 1){ var creatsUrl = qscms.root + '?m=Home&c=AjaxPersonal&a=resume_add_dig'; $.getJSON(creatsUrl, {no_apply:1},function(result){ if(result.status==1){ qsDialog.hide(); var qsDialogSon = $(this).dialog({ content: result.data.html, footer: false, header: false, border: false }); qsDialogSon.setInnerPadding(false); } else { qsDialog.hide(); disapperTooltip("remind", result.msg); } }); }else{ var loginUrl = qscms.root+"?m=Home&c=AjaxCommon&a=ajax_login"; $.getJSON(loginUrl, function(result){ if(result.status==1){ qsDialog.hide(); var qsDialogSon = $(this).dialog({ header: false, content: result.data.html, footer: false, border: false }); qsDialogSon.setInnerPadding(false); } else { qsDialog.hide(); disapperTooltip('remind',result.msg); } }); } });