refusePopup.vue 1.2 KB

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