label.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <section class="Label-container">
  3. <div class="label-item">
  4. <section class="label">{{labelProps.label}}</section>
  5. <section class="first-desc">{{labelProps.firstText}}</section>
  6. <section class="secoend-desc">{{labelProps.secoendText}}</section>
  7. </div>
  8. </section>
  9. </template>
  10. <script>
  11. export default {
  12. name: "LabelPage",
  13. props: {
  14. labelProps: {
  15. type: Object,
  16. required: true,
  17. },
  18. },
  19. mounted() {
  20. },
  21. };
  22. </script>
  23. <style scoped lang="scss">
  24. .Label-container {
  25. margin: 100px 0 70px;
  26. display: flex;
  27. justify-content: center;
  28. .label-item {
  29. position: relative;
  30. font-size: 16px;
  31. font-family: PingFangSC-Regular, sans-serif;
  32. font-weight: 400;
  33. color: #646A7E;
  34. line-height: 22px;
  35. text-align: center;
  36. .label {
  37. font-family: PingFangSC-Semibold, sans-serif;
  38. color: #333333;
  39. font-size: 34px;
  40. font-weight: 600;
  41. line-height: 48px;
  42. }
  43. .first-desc {
  44. margin: 30px 0 5px;
  45. text-align: center;
  46. }
  47. .secoend-desc {
  48. text-align: center;
  49. }
  50. }
  51. }
  52. </style>