subStage.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="sub_stage">
  3. <tit :tname="name"/>
  4. <!-- 选择大区 -->
  5. <ul class="stage_box">
  6. <li
  7. v-for="(item,index) in stages"
  8. :key="index"
  9. >{{ item.text }}</li>
  10. </ul>
  11. <!-- end:选择大区 -->
  12. <button>确定</button>
  13. </div>
  14. </template>
  15. <script>
  16. import tit from '~/components/titles.vue'
  17. export default {
  18. data() {
  19. return {
  20. name:'选择阶段',
  21. stages: [
  22. { text: '全部' },
  23. { text: '规划可研' },
  24. { text: '立项审批' },
  25. { text: '项目设计' },
  26. { text: '土建设备招标采购' },
  27. { text: '施工建设' },
  28. { text: '项目完工(投产)' },
  29. { text: '其他' },
  30. ],
  31. }
  32. },
  33. methods:{
  34. chooseOne: function(index){
  35. this.current=index;
  36. }
  37. },
  38. components:{
  39. tit,
  40. }
  41. }
  42. </script>
  43. <style>
  44. .sub_stage{
  45. }
  46. .sub_stage .stage_box{
  47. width: 100%;
  48. padding: 0 1.5rem;
  49. }
  50. .sub_stage .stage_box li{
  51. color: #202020;
  52. line-height: 60px;
  53. transition: 0.2s;
  54. position: relative;
  55. background-image: url('../../static/img/icon_select.png');
  56. background-position: right center;
  57. background-size: 20px;
  58. background-repeat: no-repeat;
  59. }
  60. .sub_stage .stage_box li::after{
  61. position: absolute;
  62. content: '';
  63. display: block;
  64. height: 1px;
  65. left: 0;
  66. bottom: 0;
  67. right: 0;
  68. background-color: #f0f0f0;
  69. margin-right: -1.5rem;
  70. margin-left: -1.5rem;
  71. }
  72. .sub_stage .stage_box li.active{
  73. background-image: url('../../static/img/icon_selected.png');
  74. color: #ff5c5c;
  75. }
  76. .sub_stage button{
  77. width: 100%;
  78. height: 50px;
  79. position: absolute;
  80. bottom: 0;
  81. left: 0;
  82. border: none;
  83. background: #ff5c5c;
  84. font-size: 18px;
  85. font-family: PingFang-SC-Medium;
  86. font-weight: 500;
  87. color: white;
  88. }
  89. </style>