a9e31906b3f43ea5c7ea5f4931f7f1fba364bded.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div style="height:100vh">
  3. <yd-layout>
  4. <yd-navbar title="消息详情" color="#fff" slot="navbar">
  5. <router-link :to="{path: '/MessageCenter' }" slot="left">
  6. <yd-navbar-back-icon style="color: #fff"></yd-navbar-back-icon>
  7. </router-link>
  8. </yd-navbar>
  9. <div class="title_info">
  10. <h3 class="title">{{info.title}}</h3>
  11. <p>发件人:188金宝博</p>
  12. <p>发件时间:{{info.write_time}}</p>
  13. </div>
  14. <div class="text_info">
  15. {{info.details}}
  16. </div>
  17. <yd-tabbar slot="tabbar">
  18. <yd-button size="large" type="primary">删除消息</yd-button>
  19. </yd-tabbar>
  20. </yd-layout>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: "MessageDetail",
  26. data(){
  27. return {
  28. info:{
  29. }
  30. }
  31. },
  32. computed: {
  33. // getDetail(){
  34. // return this.$store.getters('getMessageDetail');
  35. // }
  36. },
  37. watch:{
  38. // getDetail(val){
  39. //
  40. // }
  41. },
  42. mounted(){
  43. console.log(this.$store.getters.getMessageDetail)
  44. this.info = this.$store.getters.getMessageDetail
  45. },
  46. methods: {
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. .yd-btn-block {
  52. margin-top: 0.6rem;
  53. }
  54. .yd-navbar {
  55. background-image: linear-gradient(0deg, #565656 0%, #999999 100%);
  56. }
  57. .title_info {
  58. padding: 0.3rem;
  59. height:1.6rem;
  60. background:rgba(239,239,239,1);
  61. }
  62. .title_info h3 {
  63. font-size: 15px;
  64. }
  65. .title_info p {
  66. color: #666666;
  67. line-height: 1.8;
  68. }
  69. .text_info {
  70. margin-top: 0.20rem;
  71. padding: 0.3rem;
  72. background:rgba(239,239,239,1);
  73. font-size: 14px;
  74. color: #333333;
  75. line-height: 1.8;
  76. }
  77. .yd-tabbar {
  78. margin: 0 auto;
  79. width: 80%;
  80. background-color: transparent !important;
  81. }
  82. .yd-btn-block {
  83. margin-top: 0;
  84. border-radius: 10px;
  85. background:linear-gradient(0deg,rgba(90,90,90,1) 0%,rgba(138,138,138,1) 100%);
  86. }
  87. </style>