subStage.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-left: 15px;
  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. width: 100%;
  65. height: 1px;
  66. left: 0;
  67. bottom: 0;
  68. right: 0;
  69. padding-right: 1.5rem;
  70. background-color: #f0f0f0;
  71. }
  72. .sub_stage .stage_box li.active{
  73. }
  74. .sub_stage button{
  75. width: 100%;
  76. height: 50px;
  77. position: absolute;
  78. bottom: 0;
  79. left: 0;
  80. border: none;
  81. background: #ff5c5c;
  82. font-size: 18px;
  83. font-family: PingFang-SC-Medium;
  84. font-weight: 500;
  85. color: white;
  86. }
  87. </style>