settle-list.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <main-layout :showHome="true" :showBack="true">
  3. <!-- <view class="selector">
  4. <view class="wrap selected">月</view>
  5. <view class="wrap">年</view>
  6. </view>
  7. <view class="datetime-selector">
  8. <view class="left-btn"><uni-icons type="left" size="30"></uni-icons></view>
  9. <view class="middle-btn">
  10. <picker mode="date" :value="date" fields="month">
  11. <view class="datetime-view">{{date}}</view>
  12. <view class="down-btn"><uni-icons type="down" size="30"></uni-icons></view>
  13. </picker>
  14. </view>
  15. <view class="right-btn"><uni-icons type="right" size="30"></uni-icons></view>
  16. </view> -->
  17. <view>
  18. <uni-datetime-picker type="daterange" />
  19. </view>
  20. <uni-list :border="true">
  21. <uni-list-item v-for="i in 10" title="2024-12-07 完成3个打卡任务,结算奖励4,结算前奖励6,结算后奖励10" time="2020-02-02 20:20" ></uni-list-item>
  22. </uni-list>
  23. </main-layout>
  24. </template>
  25. <script setup>
  26. import {ref} from 'vue';
  27. const date = ref('2025-01');
  28. </script>
  29. <style lang="scss" scoped>
  30. .selector {
  31. width: 220rpx;
  32. height: 88rpx;
  33. opacity: 1;
  34. border-radius: 8rpx;
  35. background: #CCCCCC;
  36. /** 文本1 */
  37. font-size: 36rpx;
  38. font-weight: 400;
  39. letter-spacing: 0rpx;
  40. // line-height: 52.13rpx;
  41. color: #000000;
  42. padding: 12rpx;
  43. display: flex;
  44. .wrap {
  45. flex-grow: 1;
  46. opacity: 1;
  47. border-radius: 8rpx;
  48. display: inline-flex;
  49. justify-content: center;
  50. align-content: center;
  51. }
  52. .selected {
  53. background: #FFFFFF;
  54. }
  55. }
  56. .left-btn, .middle-btn, .right-btn, .datetime-view, .down-btn {
  57. display: inline-flex;
  58. }
  59. .datetime-selector {
  60. width: 100%;
  61. display: flex;
  62. justify-content: center;
  63. align-content: center;
  64. .middle-btn>picker {
  65. display: flex;
  66. justify-content: center;
  67. align-content: center;
  68. }
  69. }
  70. </style>