text: /**
   * Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
   * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
   * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at http://opensource.org/licenses/MIT
   * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and limitations under the License.
  **/
  function get_bind_status(e){execute_cnt+=1,$.get(site_url+"console/user_center/weixin/get_bind_status/",function(t){if(t.result)e&&e();else{var n=1500;execute_cnt>120&&(n=1500*(execute_cnt-120)),timeout_event=setTimeout(function(){get_bind_status(e)},n)}})}var timeout_event,execute_cnt=0;$("#weixin_action").on("click",".unbind_weixin",function(){$.ajax({method:"post",dataType:"json",url:site_url+"console/user_center/weixin/unbind_wx_user_info/",async:!1,success:function(e){e.result&&location.reload()}})}),$("#weixin_action").on("click",".bind_qy_weixin",function(){clearTimeout(timeout_event),execute_cnt=0,$.ajax({method:"get",dataType:"json",url:site_url+"console/user_center/weixin/qy/get_login_url/",async:!1,success:function(e){e.result&&(window.open(e.url,"_blank"),get_bind_status(function(){location.reload()}))}})}),$("#weixin_action").on("click",".bind_mp_weixin",function(){clearTimeout(timeout_event),execute_cnt=0,new bkDialog({type:"default",width:400,padding:20,content:'<div id="qrcode_div"><img class="loading_img" src="'+static_url+'home/user_center/img/loading_2_36x36.gif"></div>',hasHeader:!1,closeIcon:!0,onClose:function(){clearTimeout(timeout_event)}}).show(),$.getJSON(site_url+"console/user_center/weixin/mp/get_qrcode/",function(e){e.result&&($("#qrcode_div").html('<img class="code_img" src="'+e.url+'">'),get_bind_status(function(){location.reload()}))})});