step-register.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="step-register" >
  3. <image class="competition-title" :src="staticImg.competitionTitle" />
  4. <view class="step-line" >
  5. <view class="dashed-line-list" >
  6. <view class="dashed-line" style="width: 172rpx" />
  7. <view class="dashed-line" style="width: 234rpx" />
  8. <view class="dashed-line" style="width: 172rpx" />
  9. </view>
  10. <view class="step-title-list">
  11. <view class="step-one" >
  12. <view class="red-circle">
  13. <view class="red-dot" />
  14. </view>
  15. <view class="step-title" >1.签署纲领</view>
  16. </view>
  17. <view class="step-two" >
  18. <view class="red-circle">
  19. <view class="red-dot" />
  20. </view>
  21. <view class="step-title" >2.填写信息</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. const staticImg = {
  29. competitionTitle: require('@/static/competitionRegister/common/competition-title.png')
  30. }
  31. export default {
  32. name: 'step-register',
  33. data () {
  34. return {
  35. staticImg
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="less" scoped>
  41. .step-register {
  42. width: 100vw;
  43. height: 234rpx;
  44. // padding: 42rpx 0rpx;
  45. box-sizing: border-box;
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. align-items: center;
  50. .competition-title {
  51. width: 552rpx;
  52. height: 52rpx;
  53. }
  54. .step-line {
  55. width: 100vw;
  56. margin-top: 66rpx;
  57. .dashed-line-list {
  58. display: flex;
  59. justify-content: space-between;
  60. align-items: center;
  61. .dashed-line {
  62. height: 4rpx;
  63. background-image: linear-gradient(to right, red 0%, red 50%, transparent 0%);
  64. background-size: 20rpx 1rpx;
  65. background-repeat: repeat-x;
  66. }
  67. }
  68. .step-title-list {
  69. width: 100vw;
  70. position: relative;
  71. margin: 0 auto;
  72. font-size: 24rpx;
  73. font-family: PingFangSC-Semibold, PingFang SC;
  74. font-weight: 600;
  75. color: #FF6271;
  76. .step-one {
  77. width: 112rpx;
  78. position: absolute;
  79. left: 157rpx;
  80. top: -20rpx;
  81. display: flex;
  82. flex-direction: column;
  83. justify-content: center;
  84. align-items: center;
  85. }
  86. .step-title {
  87. white-space:nowrap;
  88. overflow:hidden;
  89. text-overflow:ellipsis;
  90. }
  91. .step-two {
  92. position: absolute;
  93. right: 160rpx;
  94. top: -20rpx;
  95. // width: 118rpx;
  96. display: flex;
  97. flex-direction: column;
  98. justify-content: center;
  99. align-items: center;
  100. }
  101. .red-circle {
  102. width: 36rpx;
  103. height: 36rpx;
  104. background: #FFFFFF;
  105. border-radius: 50%;
  106. border: 2rpx solid #FF7E8A;
  107. display: flex;
  108. justify-content: center;
  109. align-items: center;
  110. margin-bottom: 10rpx;
  111. .red-dot {
  112. width: 24rpx;
  113. height: 24rpx;
  114. border-radius: 50%;
  115. background: #FF7E8A;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. </style>
  122. 整个世界都在用
  123. 炽热的永远
  124. 宣称自己在爱上的笨拙