function doReply(id){
    var url = "/Feedback/Feedback/reply";
    var content = $("#reply_content").val();
    var status = $("input[name='status']:checked").val();
    if (content == "") {
        layer.close(replyTempLayer);
        layer.msg("客官不要着急哦,请耐心的给客户回复内容");
        return false;
    }
    $.ajax({
        type: "POST",
        url: url ,
        data: {id:id,content:content,status:status},
        cache:false,
        dataType:"json",
        async:true,
        success: function(msg){
            layer.close(replyTempLayer);
            layer.closeAll('loading');
            if(msg.status != 1){
                layer.msg(msg.info);
            }else{
                layer.msg(msg.info);
                //成功处理之后对前端展示的数据进行更改
                var data = id.split(",");
                console.log(data);
                $(data).each(function(){
                    $("#reply_msg_"+this).html($("#reply_content").val());
                  })
            }
        },
        beforeSend:function(){
            layer.load(1, {
              shade: [0.1,'#fff'] //0.1透明度的白色背景
            });
        },
        error:function(e){
            console.log(e);
            alert("网络繁忙请稍后");
        }
        });
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-02-03
  • 2021-06-03
  • 2021-12-15
相关资源
相似解决方案