top-title.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="top-title">
  3. <view class="title-before">
  4. </view>
  5. <view class="title">{{title}}</view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name:"top-title",
  11. data() {
  12. return {
  13. };
  14. },
  15. props: {
  16. title: {
  17. type: String,
  18. default: ''
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. .top-title {
  25. display: flex;
  26. align-items: center;
  27. .title-before {
  28. display: inline-block;
  29. background-color: $m-color;
  30. width: 10rpx;
  31. height: 30rpx;
  32. margin-right: 16rpx;
  33. }
  34. .title {
  35. display: inline-block;
  36. font-size: 32rpx;
  37. font-family: PingFang SC;
  38. font-weight: bold;
  39. color: #333333;
  40. }
  41. .title-after {
  42. display: inline-block;
  43. .a1 {
  44. width: 8rpx;
  45. height: 8rpx;
  46. background: #FD424B;
  47. border-radius: 50%;
  48. margin-bottom: 6rpx;
  49. margin-top: 16rpx;
  50. margin-left: 25rpx;
  51. }
  52. .a2 {
  53. width: 28rpx;
  54. height: 4rpx;
  55. background: #FD424B;
  56. opacity: 0.1;
  57. border-radius: 2rpx;
  58. margin-bottom: 6rpx;
  59. }
  60. .a3 {
  61. width: 28rpx;
  62. height: 4rpx;
  63. background: #FD424B;
  64. opacity: 0.45;
  65. border-radius: 2rpx;
  66. margin-left: 11rpx;
  67. }
  68. }
  69. }
  70. </style>