checkIsBanned.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $(document).ready(isThisAccountBannedFunc);
  2. function isThisAccountBannedFunc() {
  3. $.get('/source/index/ajax_profile.php?ac=accountIsBan').success(function (data) {
  4. // console.log('isThisAccountBannedFunc data', data);
  5. // var dataJson = JSON.parse(data);
  6. if (data.code === '200') {
  7. showBanedAlert();
  8. }
  9. })
  10. }
  11. function showBanedAlert() {
  12. alert('因发布的APP不符合审核规则,已停用账号发布功能', function () {
  13. // 是否在上传页,在上传页跳转到列表
  14. if(isUploadPage == 1) {
  15. window.location.href = '/index.php/apps';
  16. }
  17. });
  18. // var element_cover = document.createElement('div');
  19. // element_cover.innerHTML =
  20. // '<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;">'
  21. // + '<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">'
  22. // + '<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;">'
  23. // + '<span style="font-size: 16px">&nbsp;&nbsp;&nbsp;提示</span>'
  24. // + '<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>'
  25. // + '</div>'
  26. // + '<div style="padding: 25px 25px;color:#f00;font-size: 14px">因发布的APP不符合审核规则,<br />已停用账号发布功能!</div>'
  27. // + '</div>'
  28. // + '</div>'
  29. //
  30. // document.body.appendChild(element_cover);
  31. // $('.banedcover .banedcoverclose').click(function(){
  32. // document.body.removeChild(element_cover);
  33. // });
  34. }