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: #F0433C;
  30. width: 10rpx;
  31. height: 30rpx;
  32. margin-right: 16rpx;
  33. border-radius: 4rpx;
  34. }
  35. .title {
  36. display: inline-block;
  37. font-size: 32rpx;
  38. font-family: PingFang SC;
  39. font-weight: bold;
  40. color: #333333;
  41. }
  42. .title-after {
  43. display: inline-block;
  44. .a1 {
  45. width: 8rpx;
  46. height: 8rpx;
  47. background: #FD424B;
  48. border-radius: 50%;
  49. margin-bottom: 6rpx;
  50. margin-top: 16rpx;
  51. margin-left: 25rpx;
  52. }
  53. .a2 {
  54. width: 28rpx;
  55. height: 4rpx;
  56. background: #FD424B;
  57. opacity: 0.1;
  58. border-radius: 2rpx;
  59. margin-bottom: 6rpx;
  60. }
  61. .a3 {
  62. width: 28rpx;
  63. height: 4rpx;
  64. background: #FD424B;
  65. opacity: 0.45;
  66. border-radius: 2rpx;
  67. margin-left: 11rpx;
  68. }
  69. }
  70. }
  71. </style>