show-modal.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="pop flexCC" v-if="showPop">
  3. <view class="pop_con">
  4. <image src="../static/icon/hint_icon.png" class="hint_icon"></image>
  5. <view class="title">温馨提醒</view>
  6. <view class="con">
  7. {{content}}
  8. </view>
  9. <view class="btn_box flexB">
  10. <view @click.stop="cancel" class="flexC">{{cancelText}}</view>
  11. <view @click.stop="confirm" class="flexC">{{confirmText}}</view>
  12. </view>
  13. </view>
  14. <!-- <text class="iconfont iconguanbi" @click.stop="close"></text> -->
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: "hint-pop",
  20. props: {
  21. showPop: {
  22. type: Boolean,
  23. default: false
  24. },
  25. content: {
  26. type: String,
  27. default: '该收货人有多个未发货订单,是否一起发货?'
  28. },
  29. cancelText: {
  30. type: String,
  31. default: '不一起发货'
  32. },
  33. confirmText: {
  34. type: String,
  35. default: '一起发货'
  36. },
  37. },
  38. data() {
  39. return {
  40. };
  41. },
  42. methods: {
  43. cancel() {
  44. this.$emit('cancel');
  45. },
  46. confirm() {
  47. this.$emit('confirm');
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. .pop {
  54. width: 100%;
  55. height: 100vh;
  56. position: fixed;
  57. top: 0;
  58. left: 0;
  59. background-color: rgba(0, 0, 0, 0.7);
  60. z-index: 9999999;
  61. .hint_icon {
  62. width: 183rpx;
  63. height: 135rpx;
  64. position: relative;
  65. margin-top: -85rpx;
  66. }
  67. .pop_con {
  68. width: 648rpx;
  69. height: 442rpx;
  70. background: #fff;
  71. border-radius: 26rpx;
  72. display: flex;
  73. flex-direction: column;
  74. align-items: center;
  75. padding: 0 30rpx;
  76. box-sizing: border-box;
  77. .title {
  78. font-size: 36rpx;
  79. font-weight: bold;
  80. margin-top: 22rpx;
  81. }
  82. .con {
  83. min-height: 150rpx;
  84. margin: 20rpx 0 20rpx;
  85. font-size: 34rpx;
  86. }
  87. .btn_box {
  88. width: 100%;
  89. view {
  90. width: 270rpx;
  91. height: 88rpx;
  92. background: #FFF4F3;
  93. border: 2rpx solid #FB231F;
  94. border-radius: 44rpx;
  95. color:$base-color;
  96. font-size:32rpx;
  97. }
  98. view:last-child {
  99. background: $base-line-bg;
  100. color: #fff;
  101. }
  102. }
  103. }
  104. .iconfont {
  105. color: #fff;
  106. font-size: 60rpx;
  107. margin-top: 30rpx;
  108. }
  109. }
  110. </style>