modal.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="modal-page">
  3. <view class="modal-box">
  4. <image class="pic" src="../../../static/hint.png"></image>
  5. <text class="text">您的分配工作量较大,建议使用批量分配功能</text>
  6. <view class="btn-wrap">
  7. <view class="btn" @click="isBatchHandle(false)">
  8. <text class="btn-text">取消</text>
  9. </view>
  10. <view class="btn" @click="isBatchHandle(true)">
  11. <text class="btn-text">确定</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. //提示弹框
  19. export default {
  20. data() {
  21. return {
  22. }
  23. },
  24. methods: {
  25. isBatchHandle(flage) {
  26. this.$emit('callback', flage);
  27. }
  28. },
  29. }
  30. </script>
  31. <style lang="less">
  32. .modal-page{
  33. display: flex;
  34. flex-direction: row;
  35. justify-content: center;
  36. align-items: center;
  37. position: fixed;
  38. top: 0rpx;
  39. left: 0rpx;
  40. height: 100%;
  41. width: 100%;
  42. background: rgba(0,0,0,0.5);
  43. .modal-box{
  44. background: #FFFFFF;
  45. border-radius: 24px;
  46. overflow: hidden;
  47. position: relative;
  48. height: 317.5rpx;
  49. width: 562.5rpx;
  50. .pic{
  51. height: 80rpx;
  52. width: 80rpx;
  53. position: absolute;
  54. top: 50rpx;
  55. left: 241.25rpx;
  56. }
  57. .text{
  58. font-size: 22.5rpx;
  59. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  60. font-weight: 400;
  61. color: #292C33;
  62. position: absolute;
  63. top: 170rpx;
  64. left: 56.25rpx;
  65. }
  66. .btn-wrap {
  67. display: flex;
  68. flex-direction: row;
  69. justify-content: space-between;
  70. position: absolute;
  71. bottom: 0rpx;
  72. border-top: 1px solid #DADEE6;
  73. width: 100%;
  74. .btn{
  75. height: 75rpx;
  76. width: 50%;
  77. background: #3377FF;
  78. text-align: center;
  79. .btn-text{
  80. font-size: 22.5rpx;
  81. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  82. font-weight: 400;
  83. color: #FFFFFF;
  84. line-height: 75rpx;
  85. }
  86. &:first-child {
  87. background-color: #fff;
  88. .btn-text {
  89. color: #292C33;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. </style>