鸿宇研学生前端代码
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.

81 lines
1.6 KiB

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