Notice.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <div class="injectionListForm baseInfo">
  6. <div class="title">消息通知</div>
  7. <ul class="notice_list">
  8. <li @click="goPage('/patbleedlist?id='+item.send_user)" v-for="(item,index) in list">
  9. {{item.msg_content}}
  10. <p>{{item.ctime}}</p>
  11. </li>
  12. </ul>
  13. </div>
  14. <div class="footer">
  15. <div class="jbbtn" @click="goPage(-1)">返回</div>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import {
  22. Field,
  23. Picker,
  24. Search,
  25. Button
  26. } from 'mint-ui'
  27. export default {
  28. name: 'Index',
  29. components: {
  30. Field,
  31. Picker,
  32. Search,
  33. Button
  34. },
  35. data() {
  36. return {
  37. list: []
  38. }
  39. },
  40. methods: {
  41. goPage(path) {
  42. if(path==-1){
  43. this.$router.go(-1)
  44. }else{
  45. this.$router.push(path)
  46. }
  47. },
  48. getData() {
  49. this.$api.get_patient_doctor_notice_list().then(res=>{
  50. console.log(res.data.data)
  51. if (!res.data.code) {
  52. this.list = res.data.data.list
  53. }
  54. })
  55. }
  56. },
  57. created() {
  58. this.getData()
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .injectionListForm {
  64. width: 95%;
  65. margin: auto;
  66. margin-top: 1rem;
  67. background: #fff;
  68. padding: 1rem 0;
  69. border-radius: 8px;
  70. position: relative;
  71. .title{
  72. color: #333;
  73. margin-bottom: 1rem;
  74. }
  75. .notice_list{
  76. margin: 0;
  77. padding: 0 10px;
  78. min-height: 55vh;
  79. overflow: auto;
  80. li{
  81. list-style: none;
  82. padding: 10px 0;
  83. text-align: left;
  84. border-bottom: 1px solid #4472C4;
  85. font-size: 14px;
  86. p{
  87. color: #E3E3E3;
  88. }
  89. &:last-child{
  90. border: none;
  91. }
  92. }
  93. }
  94. }
  95. .footer {
  96. display: flex;
  97. flex-wrap: wrap;
  98. // margin-top:2rem;
  99. .jbbtn {
  100. width: 42%;
  101. }
  102. }
  103. .listItemContainer {
  104. display: flex;
  105. .listItem {
  106. width: 33%;
  107. /* height: 3.2rem; */
  108. line-height: 3.2rem;
  109. flex-direction: row;
  110. justify-content: space-between;
  111. border-bottom: 1px solid #ccc;
  112. font-size:1.1rem;
  113. }
  114. .listHeader{
  115. font-size:1.2rem;
  116. }
  117. }
  118. </style>