text: /**
   * 用户详情对话框
   */
  var UserInfoDlg = {
      data: {
          deptId: "",
          deptName: ""
      }
  };
  
  layui.use(['layer', 'form', 'admin', 'laydate', 'ax'], function () {
      var $ = layui.jquery;
      var $ax = layui.ax;
      var form = layui.form;
      var admin = layui.admin;
      var laydate = layui.laydate;
      var layer = layui.layer;
  
      // 让当前iframe弹层高度适应
      admin.iframeAuto();
  
      // 表单提交事件
      form.on('submit(btnSubmit)', function (data) {
          var phoneNum=$('#phoneNum').val();
          var channelno= $("#channelno").val();
          var id= $("#id").val();
          var pid=$("#pid").val();
          var message=$("#message").val();
              if(message==''||message==undefined){
              Feng.error("请填写发送信息内容" );
              return false;
          }
          $.ajax({
              type: "post",
              url: Feng.ctxPath + "/userBalance/addZcApiSendInfo2",
              dataType: "json",
              async: false,
              data: { mobile: phoneNum, channelno: channelno,message:message,pid:pid },
              success: function (data) {
                  setStatus(id,"5");//已发送短信
                  //传给上个页面，刷新table用
                  admin.putTempData('formOk', true);
                  //关掉对话框
                  admin.closeThisDialog();
                  Feng.success("发送成功,请反馈短信");
              },
              error: function (data) {
                  Feng.error("发送失败！" + data.responseJSON.message)
              }
          });
      });
  
      function setStatus(id,status) {
          $.ajax({
              type: "post",
              url: Feng.ctxPath + "/WxManual/updateWxManual",
              dataType: "json",
              async: false,
              data: { id: id, status: status },
              success: function (data) {
                  if(status==2||status==3){
                      Feng.success("设置完成！");
                  }
              },
              error: function (data) {
                  Feng.error("状态更新失败！" + data.responseJSON.message)
              }
          });
      }
  
  
  });