sysMsg.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view>
  3. <view class="myclient_list2 " v-for="(item,index) in list">
  4. <view class="myclient_list_name ">
  5. {{item.title}}
  6. </view>
  7. <view class="myclient_list_content">
  8. <view class="content">
  9. <rich-text v-html="item.content">
  10. </rich-text>
  11. </view>
  12. <view class="time ">
  13. <image class="image" referrerpolicy="no-referrer" src="http://www.gzzzyd.com/groupon/home_slices/时间@2x.png" />
  14. <text class="time_text ">
  15. 时间:&nbsp;&nbsp;{{item.releaseTime}}
  16. </text>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. name:"sysMsg",
  25. props: {
  26. list: { // 为了请求数据,演示用,可根据自己的项目判断是否要传
  27. type: Array,
  28. default () {
  29. return []
  30. }
  31. },
  32. },
  33. data() {
  34. return {
  35. };
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .myclient_list2 {
  41. margin-top: 20rpx;
  42. width: 750rpx;
  43. min-height: 220rpx;
  44. padding: 30rpx;
  45. background: #FFFFFF;
  46. }
  47. .myclient_list_name {
  48. margin-bottom: 15rpx;
  49. font-size: 28rpx;
  50. font-weight: bold;
  51. color: #111111;
  52. line-height: 44rpx;
  53. }
  54. .myclient_list_content {
  55. }
  56. .image {
  57. width: 28rpx;
  58. height: 28rpx;
  59. margin-top: 9rpx;
  60. margin-right: 10rpx;
  61. }
  62. .content {
  63. margin-bottom: 15rpx;
  64. font-size: 28rpx;
  65. font-weight: 400;
  66. color: #666666;
  67. }
  68. .time {
  69. height: 44rpx;
  70. display: flex;
  71. flex-direction: row;
  72. }
  73. .time_text{
  74. font-size: 24rpx;
  75. font-weight: 400;
  76. color: #999999;
  77. line-height: 44rpx;
  78. }
  79. .bord{
  80. border: 1px solid red;
  81. }
  82. </style>