鸿宇研学生前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.6 KiB

  1. <template>
  2. <view class="card">
  3. <view class="title">绑定申请</view>
  4. <view class="row">
  5. <view class="row-label">绑定人</view>
  6. <view class="row-content">{{ data.name }}</view>
  7. </view>
  8. <view class="row">
  9. <view class="row-label">申请人ID</view>
  10. <view class="row-content">{{ data.userId }}</view>
  11. </view>
  12. <view class="row">
  13. <view class="row-label">申请时间</view>
  14. <view class="row-content">{{ data.createTime }}</view>
  15. </view>
  16. <view class="flex btns">
  17. <button class="btn" @click="onReject">拒绝</button>
  18. <button class="btn" @click="onConfirm">同意</button>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. data: {
  26. type: Object,
  27. default() {
  28. return {}
  29. }
  30. },
  31. value: {
  32. type: String,
  33. default: null,
  34. },
  35. showRadio: {
  36. type: Boolean,
  37. default: false
  38. },
  39. },
  40. data() {
  41. return {
  42. }
  43. },
  44. methods: {
  45. onReject() {
  46. // todo: fetch reject
  47. this.$emit('submitted')
  48. },
  49. onConfirm() {
  50. // todo: fetch confirm
  51. this.$emit('submitted')
  52. },
  53. },
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. @import './card.scss';
  58. .btns {
  59. margin-top: 16rpx;
  60. justify-content: flex-end;
  61. }
  62. .btn {
  63. display: inline-block;
  64. width: auto;
  65. padding: 10rpx 50rpx;
  66. font-family: PingFang SC;
  67. font-size: 28rpx;
  68. font-weight: 500;
  69. line-height: 1.4;
  70. color: #252545;
  71. border: 2rpx solid #252545;
  72. border-radius: 32rpx;
  73. & + & {
  74. margin-left: 24rpx;
  75. }
  76. }
  77. </style>