researchAuthor.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="container theme-hot-content">
  3. <view class="tab-bar-ul">
  4. <view class="item-content">
  5. <view @click="tabBarSwitchHandel(item)" :class="['item', tabBarActive === item.value && 'item-act']" v-for="item in tabBarList" :key="item.value">{{ item.name }}</view>
  6. </view>
  7. </view>
  8. <view class="content-ul">
  9. <view class="kol-li" v-for="item in dataList" :key="item.DepartmentId">
  10. <image @click="authorDetails(item)" :src="item.ImgUrl" v-if="item.ImgUrl"></image>
  11. <view class="li-item kol-item">
  12. <view class="item-top">
  13. <view class="hot-item" @click="authorDetails(item)">
  14. {{ item.NickName }}
  15. <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
  16. </view>
  17. <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '专家')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
  18. </view>
  19. <text @click="themeDetails(val, 'KOL榜')" class="kol-text text_oneLine" v-for="val in item.List" :key="val.IndustrialManagementId"> # {{ val.IndustryName }} </text>
  20. </view>
  21. </view>
  22. </view>
  23. <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
  24. <u-modal
  25. v-model="goFollowShow"
  26. :content-style="{ fontSize: '32rpx' }"
  27. @confirm="goFollowShowBtn"
  28. :show-cancel-button="isCancelBtn"
  29. :confirm-text="confirmText"
  30. @cancel="isCancelBtn = false"
  31. :show-title="false"
  32. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  33. :confirm-style="{ fontWeight: '700' }"
  34. >
  35. <view class="slot-content">
  36. <rich-text :nodes="accounts"></rich-text>
  37. </view>
  38. </u-modal>
  39. </view>
  40. </template>
  41. <script>
  42. import { Reports, Research, Report } from "@/config/api.js";
  43. import mixinsAuthorTheme from "../components/mixinsAuthorTheme";
  44. export default {
  45. data() {
  46. return {
  47. tabBarList: [
  48. {
  49. name: "更新时间",
  50. value: 2,
  51. },
  52. {
  53. name: "关注度",
  54. value: 1,
  55. },
  56. ],
  57. };
  58. },
  59. mixins: [mixinsAuthorTheme],
  60. methods: {
  61. //kol
  62. async getDataList() {
  63. const res = await Research.researchKolList({
  64. PageSize: this.pageSize,
  65. CurrentIndex: this.page_no,
  66. ThemeType: this.tabBarActive,
  67. });
  68. if (res.Ret === 200) {
  69. this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
  70. if (this.refresh) {
  71. uni.stopPullDownRefresh();
  72. this.refresh = false;
  73. }
  74. this.dataList = this.page_no === 1 ? res.Data.List || [] : [...this.dataList, ...res.Data.List];
  75. }
  76. },
  77. //去往作者详情
  78. authorDetails(item) {
  79. uni.navigateTo({
  80. url: "/reportPages/authorPages/authorPages?id=" + item.DepartmentId,
  81. });
  82. },
  83. },
  84. };
  85. </script>
  86. <style lang="scss" scope>
  87. .theme-hot-content {
  88. padding-bottom: 30rpx;
  89. @import "../components/cssAuthorTheme.scss";
  90. .hot-item {
  91. display: flex;
  92. align-items: center;
  93. .hot-icon {
  94. width: 30rpx !important;
  95. height: 30rpx !important;
  96. }
  97. }
  98. }
  99. </style>