refusePopup.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. data() {
  36. return {
  37. value2: "",
  38. };
  39. },
  40. methods: {
  41. close() {},
  42. },
  43. };
  44. </script>
  45. <style scoped lang="scss">
  46. .popup-content {
  47. padding: 36rpx 28rpx;
  48. .title {
  49. font-size: 32rpx;
  50. color: #333;
  51. font-weight: 600;
  52. text-align: center;
  53. margin-bottom: 28rpx;
  54. }
  55. ._textarea {
  56. width: 534rpx;
  57. height: 216rpx;
  58. }
  59. .btn-1 {
  60. background-color: #f83224;
  61. color: #fff;
  62. margin-top: 40rpx;
  63. border-radius: 38rpx;
  64. }
  65. .cancel {
  66. text-align: center;
  67. margin-top: 28rpx;
  68. font-size: 28rpx;
  69. color: rgba(51, 51, 51, 0.6);
  70. }
  71. }
  72. </style>