rightMenu.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. document.writeln("<div class=\"right-menu\">");
  2. document.writeln(" <div class=\"r-item\">");
  3. document.writeln(" <ul class=\"j-take-box\">");
  4. document.writeln(" <li>");
  5. document.writeln(" <a class=\"waiting\">");
  6. document.writeln(" <p><i class=\"iconfont\">&#xe63c;</i></p>");
  7. document.writeln(" <p class=\"r-item-name\">AI咨询</p>");
  8. document.writeln(" </a>");
  9. document.writeln(" </li>");
  10. document.writeln(" <li>");
  11. document.writeln(" <a class=\"waiting\" checkData=\"feedback\">");
  12. document.writeln(" <p><i class=\"iconfont\">&#xe606;</i></p>");
  13. document.writeln(" <p class=\"r-item-name\">诉求反馈</p>");
  14. document.writeln(" </a>");
  15. document.writeln(" </li>");
  16. document.writeln(" <li>");
  17. document.writeln(" <a class=\"waiting\" checkData=\"complaints\">");
  18. document.writeln(" <p><i class=\"iconfont\">&#xe61b;</i></p>");
  19. document.writeln(" <p class=\"r-item-name\">我要投诉</p>");
  20. document.writeln(" </a>");
  21. document.writeln(" </li>");
  22. document.writeln(" <li class=\"app-box\">");
  23. document.writeln(" <a class=\"waiting\" checkData=\"appcode\">");
  24. document.writeln(" <p><i class=\"iconfont\">&#xe686;</i></p>");
  25. document.writeln(" <p class=\"r-item-name\">移动端</p>");
  26. document.writeln(" <!--<div class=\"app-code clearfix\">-->");
  27. document.writeln(" <!--<div class=\"app-code-box\">-->");
  28. document.writeln(" <!--<img th:src=\"@{/home/image/appCode.png}\">-->");
  29. document.writeln(" <!--<p>安卓版</p>-->");
  30. document.writeln(" <!--</div>-->");
  31. document.writeln(" <!--<div class=\"app-code-box\">-->");
  32. document.writeln(" <!--<img th:src=\"@{/home/image/ios.png}\">-->");
  33. document.writeln(" <!--<p>ios版</p>-->");
  34. document.writeln(" <!--</div>-->");
  35. document.writeln(" <!--</div>-->");
  36. document.writeln(" </a>");
  37. document.writeln(" </li>");
  38. document.writeln(" <li>");
  39. document.writeln(" <a class=\"waiting\" checkData=\"files\">");
  40. document.writeln(" <p><i class=\"iconfont\">&#xe722;</i></p>");
  41. document.writeln(" <p class=\"r-item-name\">文件资料</p>");
  42. document.writeln(" </a>");
  43. document.writeln(" </li>");
  44. document.writeln(" </ul>");
  45. document.writeln(" <ul>");
  46. document.writeln(" <li class=\"backTop\">");
  47. document.writeln(" <a class=\"waiting\">");
  48. document.writeln(" <p><i class=\"iconfont\">&#xe665;</i></p>");
  49. document.writeln(" <p class=\"r-item-name\">返回顶部</p>");
  50. document.writeln(" </a>");
  51. document.writeln(" </li>");
  52. document.writeln(" </ul>");
  53. document.writeln(" <div class=\"take-btn active\">收起</div>");
  54. document.writeln(" </div>");
  55. document.writeln("</div>");
  56. document.writeln("<div class=\"tips-popup\">");
  57. document.writeln(" <div class=\"tips-content\">");
  58. document.writeln(" <span class=\"tipsclose\">关闭</span>");
  59. document.writeln(" <div id=\"popupCentent\">敬请期待……</div>");
  60. document.writeln(" </div>");
  61. document.writeln("</div>");
  62. var pagePath = $("meta[name='_ctx']").attr("content");
  63. pagePath = pagePath.substring(0, pagePath.length - 1);
  64. $(function () {
  65. $(".take-btn").on("click",function () {
  66. if($(this).hasClass("active")){
  67. $(this).removeClass("active");
  68. $(".j-take-box").slideUp(200);
  69. $(this).text("展开")
  70. }
  71. else {
  72. $(this).addClass("active");
  73. $(".j-take-box").slideDown(200);
  74. $(this).text("收起")
  75. }
  76. });
  77. $(".backTop").on("click",function () {
  78. $("html,body").animate({scrollTop:0},"slow");
  79. });
  80. $(".j-take-box .waiting").on("click", function () {
  81. var dataVal = $(this).attr('checkData');
  82. $(".tips-content").removeClass("appCodestyle")
  83. $(".tips-popup").show();
  84. if(dataVal == 'feedback') {
  85. $("#popupCentent").html('<div class="popupInfo"><p>投诉邮箱:qyfwzx@snd.gov.cn</p></div>')
  86. }
  87. else if(dataVal == 'complaints') {
  88. $("#popupCentent").html('<div class="popupInfo"><p>投诉邮箱:qyfwzx@snd.gov.cn</p><p>投诉电话:0512-68755225</p></div>')
  89. }
  90. else if(dataVal == 'appcode') {
  91. $("#popupCentent").html('<div class="app-code clearfix">\n' +
  92. ' <div class="app-code-box">\n' +
  93. ' <img src="'+pagePath+'/home/image/appCode.png">\n' +
  94. ' <p>安卓版</p>\n' +
  95. ' </div>\n' +
  96. ' <div class="app-code-box">\n' +
  97. ' <img src="'+pagePath+'/home/image/ios.png">\n' +
  98. ' <p>ios版</p>\n' +
  99. ' </div>\n' +
  100. ' </div>')
  101. $(".tips-content").addClass("appCodestyle")
  102. }
  103. else if(dataVal == 'files') {
  104. $("#popupCentent").html('<div class="popupInfo"><p style="text-align: center; font-size: 20px; color: #ff0000;margin-top: -50px; margin-bottom: 10px;">文件下载</p><p><a href="'+pagePath+'/home/image/园区工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">园区工业载体使用说明.docx</span><span style="float: right; color: #dd0000">↓下载</span></a></p><p><a href="'+pagePath+'/home/image/属地工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">属地工业载体使用说明.docx</span><span style="float: right; color: #dd0000"">↓下载</span></a></p><p><a href="'+pagePath+'/home/image/政府工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">政府工业载体使用说明.docx</span><span style="float: right; color: #dd0000"">↓下载</span></a></p></div>')
  105. }
  106. else {
  107. $("#popupCentent").html('敬请期待……')
  108. }
  109. });
  110. $(".tipsclose").on("click", function () {
  111. $(".tips-popup").hide();
  112. });
  113. });