i-notice.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view>
  3. <view class="notice">
  4. <view class="notice_title">
  5. <view class="notice_title_icon"></view>
  6. <view class="notice_title_text">
  7. <text>{{notice.title}}</text>
  8. </view>
  9. </view>
  10. <view class="notice_content">
  11. <swiper class="scroll" autoplay vertical circular interval="3000">
  12. <!-- <swiper-item>
  13. <view class="swiper-item">
  14. <text v-html="notice.message"></text>
  15. </view>
  16. </swiper-item> -->
  17. <swiper-item v-for="item in notice.message" :key="item.id">
  18. <view class="swiper-item">
  19. <text v-html="item"></text>
  20. </view>
  21. </swiper-item>
  22. </swiper>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. props:[
  30. "notice"
  31. ],
  32. data() {
  33. return {
  34. };
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .notice{
  40. margin-top: 22rpx;
  41. box-sizing: border-box;
  42. padding-left: 44rpx;
  43. .notice_title{
  44. height: 50rpx;
  45. display: flex;
  46. .notice_title_icon{
  47. width: 52rpx;
  48. height: 52rpx;
  49. background-image: url(icon/notice.png);
  50. background-size: cover;
  51. background-repeat: no-repeat;
  52. margin-right: 20rpx;
  53. }
  54. .notice_title_text{
  55. height: 52rpx;
  56. font-size: 38rpx;
  57. font-family:$font-basic;
  58. font-weight: 500;
  59. color: #FFFFFF;
  60. line-height: 52rpx;
  61. }
  62. }
  63. .notice_content{
  64. margin-top: 12rpx;
  65. width: 666rpx;
  66. height: 114rpx;
  67. font-size: 29rpx;
  68. font-family: $font-basic;
  69. font-weight: 500;
  70. color: #FFFFFF;
  71. line-height: 50rpx;
  72. .scroll{
  73. height: 114rpx;
  74. }
  75. }
  76. }
  77. </style>