t-o-news.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view>
  3. <!-- tab -->
  4. <view class="tab">
  5. <view class="item" @click="change_active(1)">
  6. <view class="icon">
  7. <image v-if="active != 1" src="./icon/icon_1.png" mode=""></image>
  8. <image v-if="active == 1" src="./icon/icon_1_active.png" style="width: 115rpx;height: 80rpx;"
  9. mode=""></image>
  10. </view>
  11. <view class="title">
  12. <view class="text" :style="active==1?'color:#009FE8;font-weight:700;':'' ">闭环管理</view>
  13. <view class="tip" :style="active==1?'color:#3a3a3a;':'' ">PDCA循环管理</view>
  14. </view>
  15. </view>
  16. <view class="item" @click="change_active(2)">
  17. <view class="icon">
  18. <image v-if="active != 2" src="./icon/icon_2.png" mode=""></image>
  19. <image v-if="active == 2" src="./icon/icon_2_active.png" style="width: 115rpx;height: 80rpx;"
  20. mode=""></image>
  21. </view>
  22. <view class="title">
  23. <view class="text" :style="active==2?'color:#009FE8;font-weight:700;':'' ">记录管理</view>
  24. <view class="tip" :style="active==2?'color:#3a3a3a;':'' ">全部消息一览</view>
  25. </view>
  26. </view>
  27. <view class="item" @click="change_active(3)">
  28. <view class="icon">
  29. <image v-if="active != 3" src="./icon/icon_3.png" mode=""></image>
  30. <image v-if="active == 3" src="./icon/icon_3_active.png" style="width: 115rpx;height: 80rpx;"
  31. mode=""></image>
  32. </view>
  33. <view class="title">
  34. <view class="text" :style="active==3?'color:#009FE8;font-weight:700;':'' ">宣传展板</view>
  35. <view class="tip" :style="active==3?'color:#3a3a3a;':'' ">企业文化宣传展示</view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- content -->
  40. <view class="content">
  41. <view v-if="active == 1">
  42. <t-o-news-tab-1></t-o-news-tab-1>
  43. </view>
  44. <view v-if="active == 2">
  45. <t-o-news-tab-2></t-o-news-tab-2>
  46. </view>
  47. <view v-if="active == 3">
  48. <t-o-news-tab-3></t-o-news-tab-3>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. name: "t-o-news",
  56. data() {
  57. return {
  58. active: 1
  59. };
  60. },
  61. methods: {
  62. change_active(item) {
  63. this.active = item
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. page {
  70. background-color: #F2FAF7;
  71. }
  72. .tab {
  73. background-color: #FFFFFF;
  74. box-sizing: border-box;
  75. padding: 25rpx 50rpx;
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. .item {
  80. text-align: center;
  81. .icon {
  82. height: 80rpx;
  83. image {
  84. width: 95rpx;
  85. height: 66rpx;
  86. }
  87. }
  88. .title {
  89. margin-top: 10rpx;
  90. .text {
  91. font-size: 30rpx;
  92. color: #727272;
  93. }
  94. .tip {
  95. margin-top: 5rpx;
  96. font-size: 24rpx;
  97. color: #979797;
  98. }
  99. }
  100. }
  101. }
  102. .content{
  103. margin-top: 20rpx;
  104. }
  105. </style>