statistics.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="container">
  3. <view class="topBox flex">
  4. <view class="tpl1 flex_item" @click="show = true">
  5. <view class="title" style="padding-right: 10rpx;">日期</view>
  6. <i class="iconfont icon-xiangxia" v-if="show == false"></i>
  7. <i class="iconfont icon-xiangshang" v-if="show == true"></i>
  8. </view>
  9. <view class="tpl2 title">累计处理</view>
  10. <view class="tpl2 title">累计接单</view>
  11. </view>
  12. <view class="listBox">
  13. <view class="listTpl flex" v-for="item,index in list" :key="index">
  14. <view class="title tpl1">6月6日</view>
  15. <view class="num tpl2">88</view>
  16. <view class="num tpl2">88</view>
  17. </view>
  18. </view>
  19. <u-datetime-picker :show="show" v-model="timeValue" mode="year-month" @cancel="close" @close="close" @confirm="confirm"></u-datetime-picker>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return{
  26. list:[{},{},{},{},{},{},{},{},{},{},{},{},{}],
  27. timeValue:Number(new Date()),
  28. show:false
  29. };
  30. },
  31. onLoad(options) {},
  32. onShow() {},
  33. methods: {
  34. close(){
  35. this.show = false
  36. },
  37. confirm(e){
  38. console.log(e,888)
  39. this.timeValue = e.value
  40. this.show = false
  41. },
  42. },
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. page{
  47. width: 100%;
  48. height: 100%;
  49. }
  50. .container{
  51. width: 100%;
  52. height: 100%;
  53. padding-top: 120rpx;
  54. }
  55. .topBox{
  56. width: 100%;
  57. height: 100rpx;
  58. line-height: 100rpx;
  59. padding: 0rpx 30rpx;
  60. background: #FFFFFF;
  61. position: fixed;
  62. top: 0;
  63. }
  64. .listBox{
  65. background-color: #fff;
  66. padding: 0rpx 30rpx;
  67. .listTpl{
  68. border-bottom: 1rpx solid #F0F0F0;
  69. }
  70. }
  71. .tpl1{
  72. width: 30%;
  73. text-align: center;
  74. justify-content: center;
  75. }
  76. .tpl2{
  77. width: 35%;
  78. text-align: center;
  79. }
  80. .title{
  81. font-size: 30rpx;
  82. font-family: PingFang SC;
  83. font-weight: 500;
  84. color: #333333;
  85. line-height: 110rpx;
  86. }
  87. .num{
  88. font-size: 32rpx;
  89. font-family: PingFang SC;
  90. font-weight: bold;
  91. color: #333333;
  92. }
  93. </style>