popup.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div id="popup">
  3. <div class="filterbg"></div>
  4. <div class="popup">
  5. <div class="headTit" v-if="showContent">
  6. <dv-decoration-11 style="width: 200px;height: 60px;">{{title}}</dv-decoration-11>
  7. </div>
  8. <dv-border-box-10>
  9. <a href="javascript:;" class="popupClose" @click="hide"></a>
  10. <div class="summary">
  11. 111
  12. </div>
  13. </dv-border-box-10>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default{
  19. components:{
  20. },
  21. data(){
  22. return{
  23. showContent:false,
  24. title:'',
  25. showType:'',
  26. detailData:null,
  27. }
  28. },
  29. mounted() {
  30. this.$nextTick(()=>{
  31. this.show()
  32. })
  33. },
  34. methods:{
  35. searchLine(){
  36. this.hide()
  37. this.a_searchLine&&this.a_searchLine()
  38. },
  39. show(){
  40. $('.filterbg').show();
  41. $('.popup').show();
  42. $('.popup').width('3px');
  43. $('.popup').animate({height: '76%'},400,function(){
  44. $('.popup').animate({width: '82%'},400);
  45. });
  46. setTimeout(this.summaryShow,800);
  47. },
  48. hide(){
  49. this.showContent = false;
  50. $('.popupClose').css('display','none');
  51. $('.popup').animate({width: '3px'},400,function(){
  52. $('.popup').animate({height: 0},400);
  53. });
  54. setTimeout(this.summaryHide,800);
  55. },
  56. summaryShow(){
  57. $('.popupClose').css('display','block');
  58. $('.summary').show();
  59. this.showContent = true;
  60. },
  61. summaryHide(){
  62. $('.filterbg').hide();
  63. $('.popup').hide();
  64. $('.popup').width(0);
  65. // 删除判断增加的window属性
  66. delete window.alertIsShow;
  67. let tip_alert = document.getElementById('popup');
  68. tip_alert.parentNode.removeChild(tip_alert);
  69. },
  70. }
  71. }
  72. </script>
  73. <style lang="less">
  74. #popup{
  75. z-index: 999999999999999999;
  76. width: 100%;
  77. height: 100%;
  78. .border-box-content{
  79. padding: 0!important;
  80. }
  81. .headTit{
  82. z-index: 999999999999999;
  83. position: absolute;
  84. width: 100%;
  85. font-size: 16px;
  86. font-weight: bold;
  87. color: #25f1e5;
  88. display: flex;
  89. justify-content: center;
  90. padding-top: 10px;
  91. }
  92. }
  93. </style>