refusePopup.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="popup">
  3. <u-popup
  4. :show="show"
  5. @close="$emit('close')"
  6. :safeAreaInsetBottom="false"
  7. mode="center"
  8. round="10"
  9. >
  10. <view class="popup-content">
  11. <view class="title"> 拒绝理由 </view>
  12. <view class="_textarea">
  13. <u--textarea
  14. v-model="value2"
  15. height="108"
  16. maxlength="200"
  17. placeholder="请输入拒绝原因"
  18. count
  19. ></u--textarea>
  20. </view>
  21. <button class="btn-1" @click="$emit('refund', 2, value2)">提交</button>
  22. <view class="cancel" @click="$emit('close')"> 取消 </view>
  23. </view>
  24. </u-popup>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. props: {
  30. show: {
  31. typeof: Boolean,
  32. default: false,
  33. },
  34. },
  35. watch: {
  36. show(newVal) {
  37. if (!newVal) {
  38. this.value2 = "";
  39. }
  40. },
  41. },
  42. data() {
  43. return {
  44. value2: "",
  45. };
  46. },
  47. methods: {
  48. close() {},
  49. },
  50. };
  51. </script>
  52. <style scoped lang="scss">
  53. .popup-content {
  54. padding: 36rpx 28rpx;
  55. .title {
  56. font-size: 32rpx;
  57. color: #333;
  58. font-weight: 600;
  59. text-align: center;
  60. margin-bottom: 28rpx;
  61. }
  62. ._textarea {
  63. width: 534rpx;
  64. height: 216rpx;
  65. }
  66. .btn-1 {
  67. background-color: #f83224;
  68. color: #fff;
  69. margin-top: 40rpx;
  70. border-radius: 38rpx;
  71. }
  72. .cancel {
  73. text-align: center;
  74. margin-top: 28rpx;
  75. font-size: 28rpx;
  76. color: rgba(51, 51, 51, 0.6);
  77. }
  78. }
  79. </style>