ladderProgress.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="program" >
  3. <view v-for="(item, index) in ladderInfo.ruleList" :key="index" class="p_item">
  4. <view class="p_tem_main">
  5. <view class="p_item_top">
  6. <view :class="'ladder_jt_price1 ' + ((ladderInfo.currentLadderLevel==index+1)?'on1':'')">
  7. <text>¥</text>
  8. <text>{{$getPartNumber(item.ladderPrice,'int')}}</text>
  9. <text>{{$getPartNumber(item.ladderPrice,'decimal')}}</text>
  10. </view>
  11. <text :class="'ladder_num1 ' + ((ladderInfo.currentLadderLevel==index+1)?'on2':'')">{{$L('满')}}{{item.joinGroupNum}}{{$L('人参团')}}</text>
  12. </view>
  13. <view :class="'p_item_bottom ' + ((ladderInfo.currentLadderLevel==index+1)?'on':'')">
  14. <view class="p_line">
  15. <text>{{index+1}}</text>
  16. <view class="p_line_left_wrap">
  17. <view class="p_line_left" :style="'width: ' + ((ladderInfo.currentLadderLevel==index+1)?100:0) + '%'"></view>
  18. </view>
  19. <view class="p_line_right_wrap">
  20. <view class="p_line_left" :style="'width: ' + ((ladderInfo.currentLadderLevel==index+1)?100:0) + '%'"></view>
  21. </view>
  22. </view>
  23. <view class="p_item_txt">{{$L('阶梯')}}{{item.ladderLevel}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. props:['ladderInfo']
  32. }
  33. </script>
  34. <style lang="scss">
  35. /* 阶梯团活动进程start */
  36. .program {
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. height: 223rpx;
  41. padding: 0 54rpx;
  42. background-color: #fff;
  43. .p_prev,
  44. .p_next {
  45. margin: 0 15rpx;
  46. transform: translateY(28rpx);
  47. }
  48. .p_img {
  49. width: 19rpx;
  50. height: 31rpx;
  51. }
  52. .p_content {
  53. flex: 1;
  54. display: block;
  55. overflow: hidden;
  56. white-space: nowrap;
  57. }
  58. .p_item {
  59. display: inline-block;
  60. padding: 0 20rpx;
  61. font-size: 24rpx;
  62. color: #808080;
  63. }
  64. .p_tem_main {
  65. display: flex;
  66. flex-direction: column;
  67. align-items: center;
  68. }
  69. .p_item_top {
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. justify-content: space-around;
  74. width: 177rpx;
  75. height: 76rpx;
  76. margin-bottom: 15rpx;
  77. border: 3rpx solid transparent;
  78. .ladder_jt_price1 {
  79. font-size: 20rpx;
  80. line-height: 20rpx;
  81. }
  82. text:nth-of-type(2) {
  83. font-size: 24rpx;
  84. }
  85. .ladder_num1 {
  86. font-size: 28rpx;
  87. line-height: 28rpx;
  88. }
  89. .on1 {
  90. font-size: 20rpx;
  91. font-family: PingFang SC;
  92. font-weight: 500;
  93. color: #FB2D2D;
  94. line-height: 20rpx;
  95. }
  96. .on2 {
  97. font-size: 28rpx;
  98. font-family: PingFang SC;
  99. font-weight: 500;
  100. color: #333333;
  101. line-height: 28rpx;
  102. }
  103. }
  104. .p_item_bottom {
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. .p_line {
  109. position: relative;
  110. text {
  111. display: block;
  112. width: 40rpx;
  113. height: 40rpx;
  114. font-size: 28rpx;
  115. line-height: 40rpx;
  116. text-align: center;
  117. border-radius: 50%;
  118. overflow: hidden;
  119. background-color: #d1d1d1;
  120. color: #fff;
  121. }
  122. .p_line_left_wrap,
  123. .p_line_right_wrap {
  124. position: absolute;
  125. top: 50%;
  126. width: 95rpx;
  127. height: 2rpx;
  128. background-color: #d1d1d1;
  129. transform: translateY(-50%);
  130. }
  131. .p_line_left_wrap {
  132. right: 40rpx;
  133. }
  134. .p_line_right_wrap {
  135. left: 40rpx;
  136. }
  137. .p_line_left {
  138. width: 0;
  139. height: 2rpx;
  140. background: linear-gradient(90deg, #FFAA06 0%, #FF5C00 0%, #FF561C 0%, #FF9936 100%);
  141. }
  142. }
  143. &.on .p_line text {
  144. background-color: #FD8D01;
  145. }
  146. &.on .p_item_txt {
  147. color: #ed6307;
  148. }
  149. }
  150. }
  151. /* 阶梯团活动end */
  152. </style>