article.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!-- -->
  2. <template>
  3. <div class="article-div">
  4. <div class="title">平台公告</div>
  5. <div class="content">
  6. <div class="text rowup">
  7. {{basicSet.pc_temp2_set.notice}}
  8. </div>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import {mapState} from 'vuex'
  14. export default {
  15. data () {
  16. return {
  17. };
  18. },
  19. activated() {},
  20. components: {},
  21. computed: {
  22. ...mapState(['basicSet'])
  23. },
  24. mounted() {},
  25. methods: {}
  26. }
  27. </script>
  28. <style lang='scss' rel='stylesheet/scss' scoped>
  29. .article-div{
  30. width: 100%;
  31. height: 170px;
  32. background-color: #fff;
  33. border-radius: 5px;
  34. margin-top: 15px;
  35. padding: 0 15px;
  36. box-sizing: border-box;
  37. display: flex;
  38. flex-direction: column;
  39. .title{
  40. font-size: 14px;
  41. font-weight: bold;
  42. line-height: 18px;
  43. height: 18px;
  44. padding: 16px 0 8px;
  45. color: #262626;
  46. }
  47. .content{
  48. overflow: hidden;
  49. overflow-y: scroll;
  50. line-height: 26px;
  51. flex: 1;
  52. scrollbar-width: none; /* Firefox */
  53. -ms-overflow-style: none; /* IE 10+ */
  54. .text{
  55. font-size: 12px;
  56. // padding-top: 80px;
  57. // -webkit-animation: 10s rowup linear infinite normal;
  58. // animation: 20s rowup linear infinite normal;
  59. // position: relative;
  60. }
  61. &::-webkit-scrollbar {
  62. display: none; /* Chrome Safari */
  63. }
  64. }
  65. }
  66. // @keyframes rowup {
  67. // 0% {
  68. // -webkit-transform: translate3d(0, 0px, 0);
  69. // transform: translate3d(0, 0px, 0);
  70. // }
  71. // 100% {
  72. // -webkit-transform: translate3d(0, -105%, 0);
  73. // transform: translate3d(0, -105%, 0);
  74. // }
  75. // }
  76. </style>