punchin-detail.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <main-layout>
  3. <uni-calendar />
  4. <viwe class="info-box">
  5. <view class="left">打卡:12次</view>
  6. <view class="right">全勤率:80%</view>
  7. </viwe>
  8. <view class="log-box">
  9. <uni-section title="打卡记录" type="line">
  10. <uni-list>
  11. <uni-list-item title="2024-12-07 08:30:22 福彩 幸运88 中奖100元" time="2020-02-02 20:20" ></uni-list-item>
  12. <uni-list-item title="2024-12-07 08:30:22 福彩 幸运88 中奖100元" time="2020-02-02 20:20" ></uni-list-item>
  13. <uni-list-item title="2024-12-07 08:30:22 福彩 幸运88 中奖100元" time="2020-02-02 20:20" ></uni-list-item>
  14. </uni-list>
  15. </uni-section>
  16. </view>
  17. <uni-fab ref="fab" :content="content" horizontal="right" vertical="bottom"
  18. direction="vertical" @trigger="trigger"/>
  19. </main-layout>
  20. </template>
  21. <script setup>
  22. import router from '@/common/constants/router';
  23. const content = [{
  24. text: '删除',
  25. active: false,
  26. iconPath: '/static/delete.svg',
  27. selectedIconPath: '/static/delete-active.svg'
  28. },
  29. {
  30. text: '归档',
  31. active: false,
  32. iconPath: '/static/archive.svg',
  33. selectedIconPath: '/static/archive-active.svg'
  34. },
  35. {
  36. text: '补卡',
  37. active: false,
  38. iconPath: '/static/append.svg',
  39. selectedIconPath: '/static/append-active.svg'
  40. },
  41. {
  42. text: '编辑',
  43. active: false,
  44. iconPath: '/static/edit.svg',
  45. selectedIconPath: '/static/edit-active.svg'
  46. }
  47. ];
  48. const trigger = (e) => {
  49. if (e.index == 3) {
  50. uni.navigateTo({
  51. url: router.PUNCHIN_EDIT_URL
  52. })
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .info-box, .log-box {
  58. margin-top: 24rpx;
  59. }
  60. .info-box {
  61. display: flex;
  62. background-color: #FFFFFF;
  63. padding: 20rpx 10rpx;
  64. .left, .right {
  65. flex: 1;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. }
  70. }
  71. </style>