researchAuthor.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. <text @click="authorDetails(item)">
  14. {{ item.NickName }}
  15. </text>
  16. <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '专家')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
  17. </view>
  18. <text @click="themeDetails(val, 'KOL榜')" class="kol-text text_oneLine" v-for="val in item.List" :key="val.IndustrialManagementId"> # {{ val.IndustryName }} </text>
  19. </view>
  20. </view>
  21. </view>
  22. <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
  23. <u-modal
  24. v-model="goFollowShow"
  25. :content-style="{ fontSize: '32rpx' }"
  26. @confirm="goFollowShowBtn"
  27. :show-cancel-button="isCancelBtn"
  28. :confirm-text="confirmText"
  29. @cancel="isCancelBtn = false"
  30. :show-title="false"
  31. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  32. :confirm-style="{ fontWeight: '700' }"
  33. >
  34. <view class="slot-content">
  35. <rich-text :nodes="accounts"></rich-text>
  36. </view>
  37. </u-modal>
  38. </view>
  39. </template>
  40. <script>
  41. import { Reports, Research, Report } from "@/config/api.js";
  42. import mixinsAuthorTheme from "../components/mixinsAuthorTheme";
  43. export default {
  44. data() {
  45. return {
  46. tabBarList: [
  47. {
  48. name: "更新时间",
  49. value: 2,
  50. },
  51. {
  52. name: "关注度",
  53. value: 1,
  54. },
  55. ],
  56. };
  57. },
  58. mixins: [mixinsAuthorTheme],
  59. methods: {
  60. //kol
  61. async getDataList() {
  62. const res = await Research.researchKolList({
  63. PageSize: this.pageSize,
  64. CurrentIndex: this.page_no,
  65. ThemeType: this.tabBarActive,
  66. });
  67. if (res.Ret === 200) {
  68. this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
  69. if (this.refresh) {
  70. uni.stopPullDownRefresh();
  71. this.refresh = false;
  72. }
  73. this.dataList = this.page_no === 1 ? res.Data.List || [] : [...this.dataList, ...res.Data.List];
  74. }
  75. },
  76. //去往作者详情
  77. authorDetails(item) {
  78. uni.navigateTo({
  79. url: "/reportPages/authorPages/authorPages?id=" + item.DepartmentId,
  80. });
  81. },
  82. },
  83. };
  84. </script>
  85. <style lang="scss" scope>
  86. .theme-hot-content {
  87. padding-bottom: 30rpx;
  88. @import "../components/cssAuthorTheme.scss";
  89. }
  90. </style>