Commit 089e2b4ef5142a59e04246a6b0e44079580c2b5e
1 parent
bb2904bb
修复直播审核拒绝504错误,增加拒绝确认弹窗
Showing
1 changed file
with
8 additions
and
3 deletions
src/main/resources/templates/page/liveDetail.html
| ... | ... | @@ -243,7 +243,7 @@ |
| 243 | 243 | |
| 244 | 244 | <div class="box-footer"> |
| 245 | 245 | <div class="col-sm-5"> |
| 246 | - <button type="button" class="btn btn-danger pull-right" onclick="live(4);">拒 绝 | |
| 246 | + <button type="button" class="btn btn-danger pull-right" onclick="live(2);">拒 绝 | |
| 247 | 247 | </button> |
| 248 | 248 | </div> |
| 249 | 249 | |
| ... | ... | @@ -296,8 +296,13 @@ |
| 296 | 296 | alert(data.errorMessage); |
| 297 | 297 | } |
| 298 | 298 | }) |
| 299 | - } else { | |
| 299 | + } else if(status == 2){ | |
| 300 | 300 | $.post("/live/repulse?ids=" + liveId + "&status=" + status, function (data) { |
| 301 | + var r = confirm("您确定拒绝本条内容吗?"); | |
| 302 | + if (r == true) { | |
| 303 | + $('#msgModal').modal('show'); | |
| 304 | + } | |
| 305 | + | |
| 301 | 306 | if (data.errorCode == 0) { |
| 302 | 307 | //location.href = history.back(); |
| 303 | 308 | self.location = document.referrer; |
| ... | ... | @@ -315,7 +320,7 @@ |
| 315 | 320 | alert('请输入审核意见!'); |
| 316 | 321 | return false; |
| 317 | 322 | } |
| 318 | - $.post("/live/repulse?ids=" + liveId + "&status=" + 4, function (data) { | |
| 323 | + $.post("/live/repulse?ids=" + liveId + "&status=" + 2, function (data) { | |
| 319 | 324 | if (data.errorCode == 0) { |
| 320 | 325 | alert(data.errorMessage); |
| 321 | 326 | self.location = document.referrer; | ... | ... |