血透系统pad前端

RecordPage.vue 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class="record">
  3. <div class="top">
  4. <popover placement="bottom" >
  5. <div slot="content" class="popover-demo-content">
  6. <ul>
  7. <li>医院医院医院</li>
  8. <li>医院医院医院 <span class="iconfont">&#xe721;</span></li>
  9. </ul>
  10. </div>
  11. <div class="hospital"><span class="title"> 深圳市人民医院血液透析中心</span><span class="iconfont">&#xe74a;</span></div>
  12. </popover>
  13. <div class="department">
  14. <ul>
  15. <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
  16. </ul>
  17. </div>
  18. <div class="search">
  19. <span class="iconfont">&#xe64d;</span>
  20. <input type="text" class="searchInput" placeholder="透析号/姓名">
  21. </div>
  22. </div>
  23. <div class="area">
  24. <waiting-area v-show="index==0" title="候诊区"></waiting-area>
  25. <dialysis-area v-show="index==1" title="透析区"></dialysis-area>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. import DialysisArea from "@/pages/main/DialysisArea";
  31. import WaitingArea from "@/pages/main/WaitingArea";
  32. import { Popover } from 'vux'
  33. export default {
  34. name: "RecordPage",
  35. data(){
  36. return{
  37. index:0
  38. }
  39. },
  40. components: {
  41. DialysisArea,
  42. WaitingArea,
  43. Popover,
  44. // Group,
  45. // Cell
  46. },
  47. methods: {
  48. ClickTab: function(tabIndex) {
  49. this.index = tabIndex;
  50. },
  51. }
  52. };
  53. </script>
  54. <style style="stylesheet/scss" lang="scss" scoped>
  55. .record {
  56. .top {
  57. padding: 0.28rem 0.3rem;
  58. @include display-flex;
  59. @include align-items-center;
  60. @include text-align;
  61. @include justify-content-between;
  62. font-size: 0.3rem;
  63. border-bottom: 1px #e5e5e5 solid;
  64. .title {
  65. font-size: 0.3rem;
  66. font-weight: bold;
  67. color: $pgh-color;
  68. }
  69. .iconfont{
  70. font-size: 0.24rem;
  71. color: #a8b3ba;
  72. }
  73. }
  74. .department {
  75. ul {
  76. li {
  77. float: left;
  78. font-size: 0.28rem;
  79. margin: 0 0.2rem;
  80. height: 0.48rem;
  81. line-height: 0.48rem;
  82. width: 1.4rem;
  83. &.active {
  84. background: $main-color;
  85. color: #fff;
  86. border-radius: 30px;
  87. }
  88. }
  89. }
  90. }
  91. .search {
  92. background: #ebf1f7;
  93. border-radius: 30px;
  94. padding: 0 0.3rem;
  95. height: 0.6rem;
  96. line-height: 0.6rem;
  97. color: #a8b3ba;
  98. .iconfont {
  99. color: #a8b3ba;
  100. }
  101. .searchInput {
  102. font-size: 0.28rem;
  103. border: none;
  104. outline: none;
  105. background: #ebf1f7;
  106. }
  107. }
  108. }
  109. </style>