institutional-activity-analysis.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="container club clearfix">
  3. <view
  4. class="club-search clearfix"
  5. :style="{ paddingTop: StatusBar + 'px', backgroundImage: `url(${imgUrl})`, backgroundSize: '100% 100%' }"
  6. >
  7. <view class="search-top" :style="{ height: CustomBar - StatusBar + 'px' }">
  8. <view
  9. class="search-icon"
  10. :style="{
  11. width: CustomBar - StatusBar + 'px',
  12. height: CustomBar - StatusBar + 'px',
  13. lineHeight: CustomBar - StatusBar + 'px;'
  14. }"
  15. >
  16. <text @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
  17. </view>
  18. <view class="title">机构活跃分析</view>
  19. </view>
  20. <analysis-card />
  21. </view>
  22. <view class="analysis-list">
  23. <view class="analysis-tabs">
  24. <view
  25. class="analysis-tab"
  26. :class="currentTab === index && 'active'"
  27. v-for="(item, index) in tabs"
  28. :key="index"
  29. @click="handleChangeActive(index)"
  30. >
  31. {{ item.name }}
  32. </view>
  33. </view>
  34. <view class="list">
  35. <activity-analysis />
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import analysisCard from './components/analysis-card.vue'
  42. import activityAnalysis from './components/activity-analysis.vue'
  43. export default {
  44. components: {
  45. analysisCard,
  46. activityAnalysis
  47. },
  48. data() {
  49. return {
  50. isIphoneX: this.$store.state.isIphoneX,
  51. CustomBar: this.CustomBar,
  52. StatusBar: this.StatusBar,
  53. capsule: this.capsule,
  54. imgUrl: 'https://static.caimei365.com/app/img/icon/analysis-bg.png',
  55. currentTab: 0,
  56. tabs: [
  57. {
  58. name: '活跃机构'
  59. },
  60. {
  61. name: '不活跃机构'
  62. }
  63. ]
  64. }
  65. },
  66. mounted() {},
  67. methods: {
  68. handleChangeActive(e) {
  69. this.currentTab = e
  70. },
  71. handleNavigateBack() {
  72. this.$api.navigateBack(1)
  73. }
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .container {
  79. background: #ffffff;
  80. position: relative;
  81. }
  82. .club-search {
  83. height: 700rpx;
  84. width: 100%;
  85. background: #ffffff;
  86. display: flex;
  87. flex-direction: column;
  88. position: sticky;
  89. top: 0;
  90. left: 0;
  91. z-index: 99;
  92. box-sizing: border-box;
  93. .search-top {
  94. display: flex;
  95. align-items: center;
  96. box-sizing: border-box;
  97. position: relative;
  98. margin-bottom: 80rpx;
  99. .title {
  100. position: absolute;
  101. left: 50%;
  102. top: 50%;
  103. transform: translate(-50%, -50%);
  104. }
  105. .search-icon {
  106. text-align: center;
  107. float: left;
  108. .icon-fanhui {
  109. font-size: 44rpx;
  110. color: #333333;
  111. }
  112. .icon-shouye {
  113. font-size: 44rpx;
  114. color: #333333;
  115. }
  116. }
  117. }
  118. }
  119. .analysis-list {
  120. padding: 38rpx 24rpx;
  121. box-sizing: border-box;
  122. .analysis-tabs {
  123. color: #666666;
  124. display: flex;
  125. align-items: center;
  126. margin-bottom: 12rpx;
  127. .analysis-tab {
  128. font-size: 32rpx;
  129. height: 54rpx;
  130. margin-right: 80rpx;
  131. &.active {
  132. color: #ff5b00;
  133. border-bottom: 2px solid #ff5b00;
  134. font-weight: bold;
  135. }
  136. }
  137. }
  138. }
  139. </style>