frag.foot.ftl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <#--
  2. <div class="weui-footer">
  3. <p class="weui-footer__links">
  4. <a href="javascript:void(0);" class="weui-footer__link">博锋管家提供技术支持</a>
  5. </p>
  6. <p class="weui-footer__text">Copyright © 2008-2016</p>
  7. </div>
  8. -->
  9. </body>
  10. </html>
  11. <script src="${s3('/jquery/1.11.0/jquery.min.js')}"></script>
  12. <script src="${s3('/jquery-weui/1.2.1/js/jquery-weui.min.js')}"></script>
  13. <script src="${s3('/jquery-weui/1.2.1/js/swiper.min.js')}"></script>
  14. <script src="${s3('/jquery-weui/1.2.1/js/city-picker.min.js')}"></script>
  15. <#--<script src="https://www.w3cways.com/demo/vconsole/vconsole.min.js?v=2.2.0"></script>-->
  16. <script>
  17. Window.prototype.alert = function(){
  18. //创建一个大盒子
  19. var box = document.createElement("div");
  20. //创建一个关闭按钮
  21. var button = document.createElement("button");
  22. //定义一个对象保存样式
  23. var boxName = {
  24. width:"500px",
  25. height:"180px",
  26. backgroundColor:"#f8f8f8",
  27. border:"1px solid #ccc",
  28. position:"absolute",
  29. top:"50%",
  30. left:"50%",
  31. margin:"-90px 0 0 -250px",
  32. zIndex:"999",
  33. textAlign:"center",
  34. lineHeight:"180px"
  35. }
  36. //给元素添加元素
  37. for(var k in boxName){
  38. box.style[k] = boxName[k];
  39. }
  40. //把创建的元素添加到body中
  41. document.body.appendChild(box);
  42. //把alert传入的内容添加到box中
  43. if(arguments[0]){
  44. box.innerHTML = arguments[0];
  45. }
  46. button.innerHTML = "关闭";
  47. //定义按钮样式
  48. var btnName = {
  49. border:"1px solid #ccc",
  50. backgroundColor:"#fff",
  51. width:"70px",
  52. height:"30px",
  53. textAlign:"center",
  54. lineHeight:"30px",
  55. outline:"none",
  56. position:"absolute",
  57. bottom:"10px",
  58. right:"20px",
  59. }
  60. for(var j in btnName){
  61. button.style[j] = btnName[j];
  62. }
  63. //把按钮添加到box中
  64. box.appendChild(button);
  65. //给按钮添加单击事件
  66. button.addEventListener("click",function(){
  67. box.style.display = "none";
  68. })
  69. }
  70. </script>