ach.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="ach-modal">
  3. <view class="modal-bg"></view>
  4. <view class="modal-box animated fast" :class="show ? 'slideInUp' : 'slideOutDown'">
  5. <view class="modal-main">
  6. <view class="closed">
  7. <text @click="closed()" class="iconfont ft20 cl-notice iconbtn_close"></text>
  8. </view>
  9. <view class="lh20 ft16 cl-main ftw600 text-center">不予通过</view>
  10. <view class=" pd16_15">
  11. <view class="ft14 cl-info2">不过理由</view>
  12. <view class="mt16">
  13. <textarea placeholder="请输入拒绝的理由" class="ft14 cl-main" placeholder-class="cl-notice"></textarea>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="bg-w mt16 pd10_15" style="box-shadow: 0rpx -4rpx 16rpx 0rpx rgba(0, 0, 0, 0.04);">
  18. <button class="btn-manage">确定</button>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default{
  25. props:{
  26. id:{
  27. type:Number,
  28. default:0
  29. },
  30. },
  31. data(){
  32. return {
  33. show:false,
  34. }
  35. },
  36. created(){
  37. this.show = true;
  38. },
  39. methods:{
  40. closed(){
  41. this.show = false;
  42. setTimeout(()=>{
  43. this.$emit('closed');
  44. },400);
  45. }
  46. }
  47. }
  48. </script>
  49. <style>
  50. .ach-modal{
  51. position: relative;
  52. z-index: 400;
  53. }
  54. .ach-modal .modal-bg{
  55. position: fixed;
  56. z-index: 400;
  57. left: 0;
  58. top: 0;
  59. width: 100%;
  60. height: 100vh;
  61. background: rgba(0,0,0,.5);
  62. }
  63. .ach-modal .modal-box{
  64. position: fixed;
  65. z-index: 401;
  66. background:#FFFFFF;
  67. left: 0;
  68. bottom: 0;
  69. width: 100%;
  70. padding-bottom:0rpx;
  71. padding-bottom:constant(safe-area-inset-bottom);
  72. padding-bottom:env(safe-area-inset-bottom);
  73. border-radius:32rpx 32rpx 0rpx 0rpx;
  74. }
  75. .ach-modal .modal-main{
  76. position: relative;
  77. height: auto;
  78. overflow: hidden;
  79. padding-top: 64rpx;
  80. }
  81. .ach-modal .modal-main .closed{
  82. position: absolute;
  83. right: 40rpx;
  84. top: 40rpx;
  85. }
  86. </style>