checkIsBanned.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $(document).ready(isThisAccountBannedFunc);
  2. function isThisAccountBannedFunc() {
  3. $.get('/source/index/ajax_profile.php?ac=accountIsBan',function (data) {
  4. if(data){
  5. var dataJson = JSON.parse(data);
  6. if (dataJson.code == '200') {
  7. showBanedAlert();
  8. }
  9. }
  10. })
  11. }
  12. function showBanedAlert() {
  13. alert('因发布的APP不符合审核规则,或您发布的APP已违规,现已停用该账号发布功能', function () {
  14. // 是否在上传页,在上传页跳转到列表
  15. if(isUploadPage == 1) {
  16. window.location.href = '/index.php/apps';
  17. }
  18. });
  19. // var element_cover = document.createElement('div');
  20. // element_cover.innerHTML =
  21. // '<div class="banedcover" style="position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(30,30,30,0.5);z-index:2100000000;">'
  22. // + '<div style="width: 300px;height: 150px; background-color:#fafafa;margin: -75px -150px;top:50%;left:50%;position:absolute;border-radius: 5px;border: #999 1px solid">'
  23. // + '<div style="height: 30px; width: 100%; text-align: center; border-bottom: 1px solid #ccc; background-color:#f1f1f1;line-height:30px;border-radius: 5px 5px 0 0;color:#333;">'
  24. // + '<span style="font-size: 16px">&nbsp;&nbsp;&nbsp;提示</span>'
  25. // + '<span class="banedcoverclose" style="float:right; border-radius:50%;color: #fff;height: 20px;width: 20px;line-height:19px;text-align:center;margin: 5px;background-color: #aaa; cursor: pointer">×</span>'
  26. // + '</div>'
  27. // + '<div style="padding: 25px 25px;color:#f00;font-size: 14px">因发布的APP不符合审核规则,或您发布的APP已违规,<br />已停用账号发布功能!</div>'
  28. // + '</div>'
  29. // + '</div>'
  30. //
  31. // document.body.appendChild(element_cover);
  32. // $('.banedcover .banedcoverclose').click(function(){
  33. // document.body.removeChild(element_cover);
  34. // });
  35. }