p-notice.vue 916 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view>
  3. <view class="notice">
  4. <view class="notice_title">公告:</view>
  5. <view class="notice_content">
  6. <text>{{bulletin}}</text>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props:[
  14. "bulletin"
  15. ],
  16. data() {
  17. return {
  18. };
  19. }
  20. }
  21. </script>
  22. <style lang="scss">
  23. .notice{
  24. box-sizing: border-box;
  25. padding: 20rpx 35rpx;
  26. background: #FFFFFF;
  27. box-shadow: 0px 3rpx 29rpx 0px rgba(59, 74, 116, 0.14);
  28. border-radius: 21rpx;
  29. .notice_title{
  30. height: 50rpx;
  31. font-size: 34rpx;
  32. font-family: PingFangSC-Regular, PingFang SC;
  33. font-weight: 400;
  34. color: #3B3B4D;
  35. line-height: 50rpx;
  36. }
  37. .notice_content{
  38. text-indent: 2rem;
  39. margin-top: 10rpx;
  40. font-size: 34rpx;
  41. font-family: PingFangSC-Regular, PingFang SC;
  42. font-weight: 400;
  43. color: #3B3B4D;
  44. line-height: 50rpx;
  45. }
  46. }
  47. </style>