洛阳学员端
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.

86 lines
2.5 KiB

10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
9 months ago
10 months ago
  1. <template>
  2. <view class="pageBg pad">
  3. <zeng-calen :actDay="actDay" :chooseDayLack="chooseDayLack" @onDayClick='onDayClick' :chooseDay="chooseDay"></zeng-calen>
  4. <view class="btnBg" style="margin: 20rpx 0;" @click="scanCodeClick">去签到/去签退</view>
  5. <view class="card">
  6. <view class="h1"><text class="active">签到记录</text></view>
  7. <view class="ul">
  8. <view class="li" v-for="(item,index) in 4" :key="index">
  9. <view class="lab">{{ index%2==0? '签退成功':'签到成功'}}</view>
  10. <view class="date">2024-01-29 11:29</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import zengCalen from '@/uni_modules/zeng-calen/components/zeng-calen/zeng-calen'
  18. import { scanCodeFn } from '@/config/utils.js'
  19. export default {
  20. components: {zengCalen},
  21. data() {
  22. return {
  23. actDay: [], //用户选择的日期
  24. chooseDay: ["2024-01-29", "2024-01-27", "2024-01-19", "2024-01-10"], //已被投标的数据
  25. chooseDayLack: ["2024-01-29", ], //已被投标的数据
  26. }
  27. },
  28. onLoad() {
  29. },
  30. methods: {
  31. // 展开日历
  32. onDayClick(data) {
  33. this.actDay = [data]
  34. return
  35. // let choose = data.date //用户点中的数据
  36. // if (this.actDay.includes(choose)) { //如果用户点击的日期已经存在
  37. // // 移除元素下标
  38. // const index = this.actDay.indexOf(choose);
  39. // //删除用户点击的日期
  40. // this.actDay.splice(index, 1)
  41. // } else if (this.chooseDay.includes(choose)) { //判断是否已经被投标
  42. // uni.showToast({
  43. // title: "这个日期已经被投标了",
  44. // icon: "none"
  45. // })
  46. // } else {
  47. // //添加用户点击的日期
  48. // this.actDay.push(choose)
  49. // }
  50. },
  51. // 扫码
  52. scanCodeClick() {
  53. scanCodeFn()
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .pageBg {
  60. padding-bottom: 30rpx;
  61. }
  62. .card {
  63. padding: 20rpx;
  64. .ul {
  65. .li {
  66. padding: 30rpx 0;
  67. border-bottom: 1px solid #f4f4f4;
  68. &:last-child {
  69. border: none;
  70. }
  71. .lab {
  72. font-size: 28rpx;
  73. color: #333;
  74. }
  75. .date {
  76. font-size: 24rpx;
  77. color: #999;
  78. margin-top: 16rpx;
  79. }
  80. }
  81. }
  82. }
  83. </style>