researchTheme.vue 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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="hot-li" v-for="item in dataList" :key="item.IndustrialManagementId">
  10. <view class="li-item hot-item">
  11. <view style="display: flex" class="text_oneLine hot-new" @click="themeDetails(item, '主题热度榜')">
  12. <text class="text_oneLine title" style="display: inline"> # {{ item.IndustryName }} </text>
  13. <!-- <image class="new-img" v-if="item.IsNew" src="https://hzstatic.hzinsights.com/cygx/icon/new_report.png"></image> -->
  14. <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
  15. </view>
  16. <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '主题')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
  17. </view>
  18. <view class="li-item read-more" @click="themeDetails(item, '主题热度榜')">
  19. <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
  20. {{ val.SubjectName }}
  21. </text>
  22. </view>
  23. </view>
  24. </view>
  25. <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
  26. <u-modal
  27. v-model="goFollowShow"
  28. :content-style="{ fontSize: '32rpx' }"
  29. @confirm="goFollowShowBtn"
  30. :show-cancel-button="isCancelBtn"
  31. :confirm-text="confirmText"
  32. @cancel="isCancelBtn = false"
  33. :show-title="false"
  34. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  35. :confirm-style="{ fontWeight: '700' }"
  36. >
  37. <view class="slot-content">
  38. <rich-text :nodes="accounts"></rich-text>
  39. </view>
  40. </u-modal>
  41. <Loading />
  42. </view>
  43. </template>
  44. <script>
  45. import { Reports, Research, Report } from "@/config/api.js";
  46. import mixinsAuthorTheme from "../components/mixinsAuthorTheme";
  47. export default {
  48. data() {
  49. return {
  50. tabBarList: [
  51. {
  52. name: "更新时间",
  53. value: 2,
  54. },
  55. {
  56. name: "主题热度",
  57. value: 1,
  58. },
  59. ],
  60. };
  61. },
  62. mixins: [mixinsAuthorTheme],
  63. methods: {
  64. //主题热度/近期更新更多
  65. async getDataList() {
  66. const res = await Research.researchHotList({
  67. ChartPermissionId: 31,
  68. PageSize: this.pageSize,
  69. CurrentIndex: this.page_no,
  70. ThemeType: this.tabBarActive,
  71. });
  72. if (res.Ret === 200) {
  73. this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
  74. if (this.refresh) {
  75. uni.stopPullDownRefresh();
  76. this.refresh = false;
  77. }
  78. this.dataList = this.page_no === 1 ? res.Data.List || [] : [...this.dataList, ...res.Data.List];
  79. }
  80. },
  81. },
  82. };
  83. </script>
  84. <style lang="scss" scope>
  85. .theme-hot-content {
  86. padding-bottom: 30rpx;
  87. @import "../components/cssAuthorTheme.scss";
  88. }
  89. </style>