News.vue 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view>
  3. <!-- <titlenav></titlenav> -->
  4. <view class="news">
  5. <view class="title">消息中心</view>
  6. <block>
  7. <u-swipe-action :right-width="65">
  8. <news-info></news-info>
  9. <div slot="right" class="del" @click="closeNews(item)">删除</div>
  10. </u-swipe-action>
  11. </block>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import { mapState } from 'vuex';
  17. import Titlenav from '../components/Titlenav.vue';
  18. import NewsInfo from '../components/NewsInfo.vue';
  19. export default {
  20. components: {
  21. Titlenav,
  22. NewsInfo
  23. },
  24. data() {
  25. return {};
  26. },
  27. computed: {
  28. ...mapState(['systemInfo'])
  29. },
  30. methods: {}
  31. };
  32. </script>
  33. <style lang="scss" scoped>
  34. .news {
  35. margin: 10px 20px 0;
  36. .title {
  37. font-size: 24px;
  38. font-weight: bold;
  39. color: #000000;
  40. line-height: 33px;
  41. margin-bottom: 10px;
  42. }
  43. .del {
  44. background-color: red;
  45. height: 100%;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. color: #fff;
  50. font-size: 12px;
  51. width: 65px;
  52. }
  53. }
  54. </style>