| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>回复</title>
- <style>
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-activity-reply">
- <input id="feedback_id" th:value="${feedback.id}" hidden>
- <div class="row cl">
- <div style="padding: 20px 95px 20px 95px;">
- <span th:utext="${feedback.content}"></span>
- </div>
- </div>
- <div class="row cl">
- <div style="text-align: center;">
- <textarea style="width: 600px; height: 200px;"
- id="reply" name="reply" th:utext="${feedback.reply}"></textarea>
- </div>
- </div>
- <div class="row cl">
- <div style="text-align: center">
- <a onclick="replyMessage()" class="btn btn-primary radius">确定</a>
- <a onclick="removeIframe();" class="btn btn-default radius" type="button">返回</a>
- </div>
- </div>
- </form>
- </article>
- <script th:inline="javascript">
- function replyMessage() {
- $.ajax({
- type: 'put',
- url: pagePath + "/activity/comment/feedback",
- dataType: "json",
- data: {
- id: function () {
- return $("#feedback_id").val();
- },
- reply: function () {
- return $("#reply").val();
- }
- },
- success: function (data) {
- parent.$("#reply_"+$("#feedback_id").val()).html($("#reply").val());
- smileMessage('回复成功!')
- setTime();
- removeIframe()
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- </script>
- </body>
- </html>
|