agreePop.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view>
  3. <u-popup :show="show" @close="$emit('close')" mode="center" round="10">
  4. <view class="content">
  5. <text>{{ title }}</text>
  6. <view class="btn-list">
  7. <button class="btn-1" @click="$emit('close')">取消</button>
  8. <button class="btn-2" @click="$emit('refund', 1)">确认</button>
  9. </view>
  10. </view>
  11. </u-popup>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. show: {
  18. typeof: Boolean,
  19. default: false,
  20. },
  21. title: {
  22. typeof: String,
  23. default: "",
  24. },
  25. },
  26. data() {
  27. return {};
  28. },
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. .content {
  33. width: 494rpx;
  34. padding: 56rpx 0;
  35. text-align: center;
  36. .btn-list {
  37. display: flex;
  38. margin-top: 52rpx;
  39. justify-content: space-around;
  40. .btn-1 {
  41. margin: 0;
  42. padding: 0;
  43. font-size: 32rpx;
  44. color: #f83224;
  45. border-radius: 38rpx;
  46. border: 2rpx solid #f83224;
  47. background-color: #fff;
  48. padding: 0 60rpx;
  49. }
  50. .btn-2 {
  51. margin: 0;
  52. padding: 0;
  53. font-size: 32rpx;
  54. color: #fff;
  55. border-radius: 38rpx;
  56. border: 2rpx solid #f83224;
  57. background-color: #f83224;
  58. padding: 0 60rpx;
  59. }
  60. }
  61. }
  62. </style>