message-detail.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <div class="page-box" v-loading="loading > 0">
  3. <Header :title="title"></Header>
  4. <div class="container">
  5. <div class="content">
  6. <div class="item">
  7. <div class="label">发布人ID:</div>
  8. <div class="value">{{ info.uid }}</div>
  9. </div>
  10. <div class="item">
  11. <div class="label">联系方式:</div>
  12. <div class="value">{{ info.phone }}</div>
  13. </div>
  14. <div class="item">
  15. <div class="label">主题:</div>
  16. <div class="value">{{ info.subject }}</div>
  17. </div>
  18. <div class="item">
  19. <div class="label">详情:</div>
  20. <div class="value">{{ info.describe }}</div>
  21. </div>
  22. <div class="item item2">
  23. <div class="label">配图:</div>
  24. <div class="value">
  25. <!-- <img
  26. class="img"
  27. v-for="(item, index) in info.pics"
  28. :src="item"
  29. alt=""
  30. :key="index"
  31. /> -->
  32. <el-image
  33. class="img"
  34. v-for="(item, index) in info.pics"
  35. :key="index"
  36. :src="item"
  37. fit="cover"
  38. :preview-src-list="info.pics"
  39. >
  40. </el-image>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script type="text/ecmascript-6">
  48. import Header from '../../components/common/header';
  49. export default {
  50. components: {
  51. Header
  52. },
  53. name: 'balanceExamine',
  54. data() {
  55. return {
  56. title: {
  57. // 页面标题
  58. firstTitile: '消息管理',
  59. secondTitle: '消息管理'
  60. },
  61. loading: 0,
  62. info: {}
  63. };
  64. },
  65. mounted() {
  66. this.id = +this.$route.query.id;
  67. // 获取列表
  68. this.getInfo();
  69. },
  70. computed: {},
  71. methods: {
  72. // 获取列表
  73. getInfo() {
  74. this.loading++;
  75. this.httpGet(this.$root.getMessageDetail, {
  76. id: this.id
  77. }).then(
  78. (res) => {
  79. this.loading--;
  80. this.info = res;
  81. },
  82. (res) => {
  83. this.loading--;
  84. this.$message.error(res);
  85. }
  86. );
  87. }
  88. }
  89. };
  90. </script>
  91. <style lang="stylus" rel="stylesheet/stylus">
  92. @import '~assets/public.styl';
  93. </style>
  94. <style lang="stylus" rel="stylesheet/stylus" scoped>
  95. @import '~assets/main.styl';
  96. .page-box {
  97. height: 100%;
  98. width: 100%;
  99. flex-y(flex-start, flex-start);
  100. overflow-y: hidden;
  101. background: bg-color;
  102. .container {
  103. box-sizing: border-box;
  104. height: 100%;
  105. width: 100%;
  106. overflow-y: auto;
  107. flex-y(flex-start, flex-start);
  108. padding: 10px;
  109. // content 表格
  110. .content {
  111. flex: 1;
  112. width: 100%;
  113. font-size: 14px;
  114. background: white;
  115. box-sizing: border-box;
  116. padding: 60px;
  117. border-radius: 2px;
  118. .item {
  119. flex-x(flex-start);
  120. word(14px, #666);
  121. height: 45px;
  122. &.item2 {
  123. height: auto;
  124. padding: 10px 0;
  125. }
  126. .label {
  127. width: 150px;
  128. line-height: 45px;
  129. align-self: flex-start;
  130. }
  131. .zhutu {
  132. width: 32px;
  133. height: 32px;
  134. border-radius: 4px;
  135. }
  136. .img {
  137. width: 112px;
  138. height: 112px;
  139. border-radius: 4px;
  140. margin-right: 15px;
  141. object-fit: cover;
  142. }
  143. .video {
  144. height: 450px;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. </style>