performance.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view>
  3. <view class="info-wrap">
  4. <u-navbar
  5. title="我的业绩"
  6. title-color="#fff"
  7. :custom-back="customBack"
  8. :border-bottom="false"
  9. back-icon-color="#CCE8FF"
  10. :background="{background: 'none' }"></u-navbar>
  11. <view class="info">
  12. <view class="payee-no">工号:{{vuexUser.payeeNo}}</view>
  13. <view class="current-time">{{$u.timeFormat(currentTime, 'yyyy年mm月dd日 hh:MM:ss')}}</view>
  14. </view>
  15. </view>
  16. <view class="calendar-wrap">
  17. <u-calendar v-model="calendarShow" mode="date" @change="calendarChange"></u-calendar>
  18. </view>
  19. <view class="statistics">
  20. <view class="statistics-title">实收数(聚合)</view>
  21. <view class="statistics-total">
  22. <span class="number">1380.30</span>
  23. </view>
  24. <view class="statistics-item u-flex">
  25. <view class="statistics-item-cell">
  26. <view class="til">入场数</view>
  27. <view class="con">26</view>
  28. </view>
  29. <view class="statistics-item-cell">
  30. <view class="til">出场数</view>
  31. <view class="con">18</view>
  32. </view>
  33. <view class="statistics-item-cell">
  34. <view class="til">应收数</view>
  35. <view class="con">2215.00</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default{
  43. data(){
  44. return{
  45. vuexUser:'',
  46. currentTime: new Date().getTime(),
  47. calendarShow:true,
  48. }
  49. },
  50. onLoad(){
  51. this.vuexUser = this.$store.state.vuex_user;
  52. },
  53. onShow(){
  54. },
  55. methods:{
  56. customBack(){
  57. this.$u.route({
  58. // type:'switchTab',
  59. url: 'pages/index/index'
  60. });
  61. },
  62. calendarChange(e){
  63. console.log('e',e);
  64. this.calendarShow = true;
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. @import './performance.scss'
  71. </style>