index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div class="industrialPolicy">
  3. <div class="peripheralBody">
  4. <van-tabs :active="active" @change="onChange">
  5. <van-tab title="全部" :name="0"></van-tab>
  6. <van-tab title="大类" :name="1"></van-tab>
  7. <van-tab title="大类" :name="2"></van-tab>
  8. <van-tab title="大类" :name="3"></van-tab>
  9. <van-tab title="大类" :name="4"></van-tab>
  10. <van-tab title="大类" :name="5"></van-tab>
  11. </van-tabs>
  12. <div class="peripheralBox">
  13. <div class="peripheralItem" v-for="item in peripheralList" @tap="toDetail(item)">
  14. <span class="peripheralName">{{item.name}}</span>
  15. <div class="peripheralItemRow2">2021-03-21 12:00 &nbsp;|&nbsp; 园区管委会</div>
  16. <div class="tagBox">
  17. <span class="periTag" v-for="type in item.type">{{type}}</span>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "peripheralService",
  27. data(){
  28. return{
  29. active: 0,
  30. peripheralList:[
  31. {name:'关于入住企业规模发展奖励',type:['小类','大类']},
  32. {name:'关于入住企业规模发展奖励',type:['小类','大类']},
  33. ]
  34. }
  35. },
  36. methods:{
  37. onChange(e) {
  38. console.log(e)
  39. },
  40. toDetail(item) {
  41. uni.navigateTo({
  42. url:'/pages/subPackages/industrialPolicy/detail'
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .industrialPolicy{
  50. .peripheralBody{
  51. background: white;
  52. margin-top: 24rpx;
  53. padding: 32rpx;
  54. box-sizing: border-box;
  55. height: 1424rpx;
  56. .peripheralBox{
  57. margin-top: 8rpx;
  58. .peripheralItem{
  59. width: 686rpx;
  60. height: 204rpx;
  61. box-sizing: border-box;
  62. border-radius: 16rpx;
  63. background: #F5F7FA;
  64. padding: 32rpx;
  65. margin-top: 24rpx;
  66. .peripheralName{
  67. color:#222222;
  68. font-size: 32rpx;
  69. font-weight: 600;
  70. }
  71. .peripheralItemRow2{
  72. color: #888888;
  73. font-size: 28rpx;
  74. margin-top: 14rpx;
  75. }
  76. .tagBox{
  77. display: flex;
  78. flex-wrap: wrap;
  79. }
  80. .periTag{
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. width: 92rpx;
  85. height: 48rpx;
  86. background: rgba(3, 101, 249, 0.20);
  87. color: rgba(3, 101, 249, 1);
  88. border-radius: 8rpx;
  89. margin: 16rpx 16rpx 0 0;
  90. font-size: 24rpx;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. </style>