evaluateItemDetail.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="kp-details">
  3. <!-- 考评项 -->
  4. <view class="kp-tabsBox">
  5. <view class="kp-tabs">
  6. <view class="active">
  7. <view>正常营业</view>
  8. <view>(4项)</view>
  9. </view>
  10. <view>
  11. <view>正常营业</view>
  12. <view>(4项)</view>
  13. </view>
  14. <view>
  15. <view>正常营业</view>
  16. <view>(4项)</view>
  17. </view>
  18. </view>
  19. <view class="kp-items">
  20. <view>
  21. <view v-for="item in items" :key="item.id" class="checkbox-item">
  22. {{item.name}}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. data(){
  32. return{
  33. items: [
  34. {name:"正常营业"},
  35. {name:"干净整洁"},
  36. {name:"晨会正常"},
  37. ]
  38. }
  39. },
  40. methods:{
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. page{
  46. height: 100%;
  47. background: #F8F8F8;
  48. }
  49. .kp-details{
  50. height: 100%;
  51. display: flex;
  52. flex-direction: column;
  53. .kp-tabsBox{
  54. flex-grow: 1;
  55. overflow: auto;
  56. display: flex;
  57. .kp-tabs{
  58. width: 30%;
  59. text-align: center;
  60. margin: 15upx;
  61. > view{
  62. padding: 15upx;
  63. background: #fff;
  64. border-radius: 6upx;
  65. box-shadow: 1px 2px 3px #eee;
  66. margin-bottom: 15upx;
  67. > view{
  68. &:last-child{
  69. color: #666;
  70. }
  71. }
  72. }
  73. > view.active{
  74. background: #00aaff;
  75. color: #fff;
  76. > view{
  77. &:last-child{
  78. color: #fff;
  79. }
  80. }
  81. }
  82. }
  83. .kp-items{
  84. width: 70%;
  85. margin: 15upx 15upx 15upx 6upx;
  86. }
  87. }
  88. .checkbox-item{
  89. width:100%;
  90. padding: 15upx;
  91. border-radius: 6upx;
  92. box-shadow: 1px 2px 3px #eee;
  93. background: #fff;
  94. display: flex;
  95. justify-content: space-between;
  96. margin-bottom: 15upx;
  97. }
  98. }
  99. </style>