<!--{include file="<!--{$mpath}-->block_header.tpl"}-->
<!--loading页开始-->
<div class="loading">
    <div class="loader">
        <div class="loader-inner pacman">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
</div>
<!--loading页结束-->
<body>
<header class="mui-bar mui-bar-nav report-header box-s" id="header">
    <a href="javascript:history.go(-1)"><i class="iconfont icon-fanhui fl"></i></a>
    <p>意见反馈</p>
</header>
<div id="main" class="mui-clearfix">
    <div class="bigouters">
        <div class="bighead"><div class="bigheadleft"></div><div class="bigheadright">问题描述</div></div>
        <div class="bigconts">
            <textarea style="height:3rem;resize: none;" rows="4" cols="45" class="outers" id="content" placeholder="请补充详细问题和意见，我们会认真看完的哦!"></textarea>
            <div class="bi">0/500</div>
        </div>
    </div>
    <div class="bigoutersss">
        <div class="bighead"><div class="bigheadleft"></div><div class="bigheadright">联系方式</div></div>
        <div class="outtwo"><input type="text" class="outerss" id="linkmode" placeholder="请留下您的手机号/微信/QQ/邮箱方便联系" value="<!--{$data.name}-->"></div>
    </div>
    <div class="psw-btn clearfloat">
        <a href="javascript:void(0)"  id="edit_btn" style="float:left;display:inline; margin-left: 27%;">提交反馈</a>
    </div>
</div>
</body>
<script type="text/javascript" src="<!--{$mpath}-->js/jquery-1.8.3.min.js" ></script>
<script src="<!--{$mpath}-->layer_mobile/layer.js"></script>
<script src="<!--{$mpath}-->js/fastclick.js"></script>
<script src="<!--{$mpath}-->js/mui.min.js"></script>
<script type="text/javascript" src="<!--{$mpath}-->js/hmt.js" ></script>
<script>
    $(function(){
        $("#edit_btn").bind("click", function(){ //提交
            $content=$("#content").val();
            $linkmode=$("#linkmode").val();
            $.ajax({
                type: "POST",
                url: "index.php?c=user&a=ajaxfeedback",
                cache: false,
                data: {content:$content,linkmode:$linkmode},
                dataType: "json",
                success: function(data) {
                    var json = eval(data);
                    var response = json.response;
                    var result = json.result;
                    if (response == '1') {
                        layer.open({
                            content: result
                            ,skin: 'msg'
                            ,time: 2 //2秒后自动关闭
                        });
                        setTimeout( function(){
                            location.reload();
                            layer.close(index);
                        }, 1 * 1000 );//延迟5000毫米
                    } else {
                        layer.open({
                            content: result
                            ,skin: 'msg'
                            ,time: 2 //2秒后自动关闭
                        });
                    }
                },
            });
        });

    });
</script>
</html>
