12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <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="hot-li" v-for="item in dataList" :key="item.IndustrialManagementId">
- <view class="li-item hot-item">
- <view style="display: flex" class="text_oneLine hot-new" @click="themeDetails(item, '主题热度榜')">
- <text class="text_oneLine title" style="display: inline"> # {{ item.IndustryName }} </text>
- <image class="new-img" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png"></image>
- </view>
- <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '主题')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
- </view>
- <view class="li-item read-more" @click="themeDetails(item, '主题热度榜')">
- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
- {{ val.SubjectName }}
- </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>
- </view>
- </template>
- <script>
- import { Reports, Research, Report } from "@/config/api.js";
- import mixinsAuthorTheme from "../components/mixinsAuthorTheme";
- export default {
- data() {
- return {
- tabBarList: [
- {
- name: "更新时间",
- value: 1,
- },
- {
- name: "主题热度",
- value: 2,
- },
- ],
- };
- },
- watch: {
- page_no:{
- handler(val){
- console.log(val);
- }
- }
- },
- mixins: [mixinsAuthorTheme],
- methods: {
- // tab bar 切换
- tabBarSwitchHandel(item) {
- this.tabBarActive = item.value;
- },
- //主题热度/近期更新更多
- async getDataList() {
- const res = await Research.researchHotList({ ChartPermissionId: 31, ThemeType: 1 });
- 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];
- }
- },
- },
- };
- </script>
- <style lang="scss" scope>
- .theme-hot-content {
- @import "../components/cssAuthorTheme.scss";
- }
- </style>
|