123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <view class="container theme-hot-content">
- <view class="tab-bar-ul">
- <view class="item-content">
- <view @click="tabBarSwitchHandel(item)" :class="['item', tabBarActive === item.value && 'item-act']" v-for="item in tabBarList" :key="item.value">{{ item.name }}</view>
- </view>
- </view>
- <view class="content-ul">
- <view class="kol-li" v-for="item in dataList" :key="item.DepartmentId">
- <image @click="authorDetails(item)" :src="item.ImgUrl" v-if="item.ImgUrl"></image>
- <view class="li-item kol-item">
- <view class="item-top">
- <view class="hot-item" @click="authorDetails(item)">
- {{ item.NickName }}
- <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
- </view>
- <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '专家')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
- </view>
- <text @click="themeDetails(val, 'KOL榜')" class="kol-text text_oneLine" v-for="val in item.List" :key="val.IndustrialManagementId"> # {{ val.IndustryName }} </text>
- </view>
- </view>
- </view>
- <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
- <u-modal
- v-model="goFollowShow"
- :content-style="{ fontSize: '32rpx' }"
- @confirm="goFollowShowBtn"
- :show-cancel-button="isCancelBtn"
- :confirm-text="confirmText"
- @cancel="isCancelBtn = false"
- :show-title="false"
- :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
- :confirm-style="{ fontWeight: '700' }"
- >
- <view class="slot-content">
- <rich-text :nodes="accounts"></rich-text>
- </view>
- </u-modal>
- <Loading />
- </view>
- </template>
- <script>
- import { Reports, Research, Report } from "@/config/api.js";
- import mixinsAuthorTheme from "../components/mixinsAuthorTheme";
- export default {
- data() {
- return {
- tabBarList: [
- {
- name: "更新时间",
- value: 2,
- },
- {
- name: "关注度",
- value: 1,
- },
- ],
- };
- },
- mixins: [mixinsAuthorTheme],
- methods: {
- //kol
- async getDataList() {
- const res = await Research.researchKolList({
- PageSize: this.pageSize,
- CurrentIndex: this.page_no,
- ThemeType: this.tabBarActive,
- });
- if (res.Ret === 200) {
- this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
- if (this.refresh) {
- uni.stopPullDownRefresh();
- this.refresh = false;
- }
- this.dataList = this.page_no === 1 ? res.Data.List || [] : [...this.dataList, ...res.Data.List];
- }
- },
- //去往作者详情
- authorDetails(item) {
- uni.navigateTo({
- url: "/reportPages/authorPages/authorPages?id=" + item.DepartmentId,
- });
- },
- },
- };
- </script>
- <style lang="scss" scope>
- .theme-hot-content {
- padding-bottom: 30rpx;
- @import "../components/cssAuthorTheme.scss";
- .hot-item {
- display: flex;
- align-items: center;
- .hot-icon {
- width: 30rpx !important;
- height: 30rpx !important;
- }
- }
- }
- </style>
|