|
@@ -32,20 +32,19 @@
|
|
|
</view>
|
|
|
<view style="display: flex; align-items: center">
|
|
|
<view class="summary-select">
|
|
|
- <text @click="summarySelectHandler(item, '纪要')" :class="['select-item', summarySelectActive == item.value && 'active-item']" v-for="item in summarySelect" :key="item.value">{{
|
|
|
- item.name
|
|
|
- }}</text>
|
|
|
+ <text @click="item, '纪要'" :class="['select-item', summarySelectActive == item.value && 'active-item']" v-for="item in summarySelect" :key="item.value">{{ item.name }}</text>
|
|
|
</view>
|
|
|
<view v-if="tabsActive === 1" class="more-rivet" @click="tabsActiveMore(2)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="activity-select" style="display: flex; align-items: center; justify-content: flex-end" v-if="tabsActive == 4">
|
|
|
- <view class="summary-select">
|
|
|
- <text @click="summarySelectHandler(item, '活动')" :class="['select-item', activitySelectActive == item.value && 'active-item']" v-for="item in activitySelect" :key="item.value">
|
|
|
- {{ item.name }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view v-if="tabsActive === 1" class="more-rivet" @click="tabsActiveMore(2)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
|
|
|
+ <view class="activity-select" style="display: flex; align-items: center; justify-content: flex-end" v-if="tabsActive == 4 || tabsActive == 5">
|
|
|
+ <block v-for="item in activitySelect" :key="item.type">
|
|
|
+ <view :class="['summary-select', item.type == 5 && 'select-roadshow']" v-if="tabsActive == item.type">
|
|
|
+ <text @click="summarySelectHandler(key, item.name)" :class="['select-item', activitySelectActive == key.value && 'active-item']" v-for="key in item.list" :key="key.value">
|
|
|
+ {{ key.name }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
@@ -78,9 +77,7 @@
|
|
|
<view class="more-rivet" @click="tabsActiveMore(3)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <reportPage :reportPageData="reportPageData" id="container-report-page"
|
|
|
- v-if="Object.keys(reportPageData).length && (tabsActive == 3 || tabsActive == 1)" />
|
|
|
-
|
|
|
+ <reportPage :reportPageData="reportPageData" id="container-report-page" v-if="Object.keys(reportPageData).length && (tabsActive == 3 || tabsActive == 1)" />
|
|
|
<view class="more-activity more-box" v-if="tabsActive === 1 && haveResultActivity">
|
|
|
<text class="more-text"> 活动/回放 </text>
|
|
|
<view>
|
|
@@ -88,6 +85,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<activityBack :collectLists="collectList" :tabsActiveSearch="tabsActive" v-if="collectList.length && (tabsActive == 4 || tabsActive == 1)" />
|
|
|
+ <view class="more-activity more-box" v-if="tabsActive === 1 && haveResultRoadshow">
|
|
|
+ <text class="more-text"> 微路演 </text>
|
|
|
+ <view>
|
|
|
+ <view class="more-rivet" @click="tabsActiveMore(5)"> 更多 <u-icon name="arrow-right" color="#3385FF" size="28"></u-icon> </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <roadshowPage :roadshowPageList="roadshowPageList" :tabsRoadshowSearch="tabsActive" v-if="roadshowPageList.length && (tabsActive == 5 || tabsActive == 1)" />
|
|
|
</view>
|
|
|
</block>
|
|
|
<view class="nodata" v-else>
|
|
@@ -100,14 +104,15 @@
|
|
|
|
|
|
<script>
|
|
|
import { KeywordList, TabsList, SummarySelect, ActivitySelect } from "./searchList";
|
|
|
-import { Search, activity, Report } from "@/config/api";
|
|
|
+import { Search, activity, Report, Home } from "@/config/api";
|
|
|
import { Debounce, Throttle } from "@/config/util.js";
|
|
|
import summaryChart from "../components/summaryChart.vue";
|
|
|
import activityBack from "../components/activityBack.vue";
|
|
|
import reportPage from "../components/report.vue";
|
|
|
+import roadshowPage from "../components/roadshow.vue";
|
|
|
|
|
|
export default {
|
|
|
- components: { summaryChart, activityBack, reportPage },
|
|
|
+ components: { summaryChart, activityBack, reportPage, roadshowPage },
|
|
|
data() {
|
|
|
return {
|
|
|
searchTxt: "",
|
|
@@ -120,10 +125,12 @@ export default {
|
|
|
resultDataList: [], ////纪要与图表
|
|
|
collectList: [], //活动的数据
|
|
|
reportPageData: {}, //报告的数据
|
|
|
+ roadshowPageList: [], //微路演的数据
|
|
|
// haveResult: true, //是否有搜索数据
|
|
|
- haveResultSummary: true, //是否有搜索数据
|
|
|
- haveResultActivity: true, //是否有搜索数据
|
|
|
- haveResultReport: true, //是否有搜索数据
|
|
|
+ haveResultSummary: true, //是否有搜索数据 纪要
|
|
|
+ haveResultActivity: true, //是否有搜索数据 活动
|
|
|
+ haveResultReport: true, //是否有搜索数据 报告
|
|
|
+ haveResultRoadshow: true, //是否有搜索数据 微路演
|
|
|
summarySelectActive: "Matching",
|
|
|
activitySelectActive: "0",
|
|
|
refresh: false, //正在下拉
|
|
@@ -152,8 +159,16 @@ export default {
|
|
|
return ActivitySelect;
|
|
|
},
|
|
|
haveResult() {
|
|
|
- let all = this.haveResultSummary || this.haveResultActivity || this.haveResultReport;
|
|
|
- return this.tabsActive == 1 ? all : this.tabsActive == 2 ? this.haveResultSummary : this.tabsActive == 3 ? this.haveResultReport : this.haveResultActivity;
|
|
|
+ let all = this.haveResultSummary || this.haveResultActivity || this.haveResultReport || this.haveResultRoadshow;
|
|
|
+ return this.tabsActive == 1
|
|
|
+ ? all
|
|
|
+ : this.tabsActive == 2
|
|
|
+ ? this.haveResultSummary
|
|
|
+ : this.tabsActive == 3
|
|
|
+ ? this.haveResultReport
|
|
|
+ : this.tabsActive == 4
|
|
|
+ ? this.haveResultActivity
|
|
|
+ : this.haveResultRoadshow;
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
@@ -221,12 +236,15 @@ export default {
|
|
|
this.synthesiz();
|
|
|
this.getReportList();
|
|
|
this.getActivityBackList();
|
|
|
+ this.getRoadshowList();
|
|
|
} else if (this.tabsActive == 2) {
|
|
|
this.synthesiz();
|
|
|
} else if (this.tabsActive == 3) {
|
|
|
this.getReportList();
|
|
|
} else if (this.tabsActive == 4) {
|
|
|
this.getActivityBackList();
|
|
|
+ } else if (this.tabsActive == 5) {
|
|
|
+ this.getRoadshowList();
|
|
|
}
|
|
|
},
|
|
|
//纪要 图表的搜索
|
|
@@ -319,6 +337,29 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //获取微路演
|
|
|
+ async getRoadshowList() {
|
|
|
+ const res = await Home.microRoadshowList({
|
|
|
+ PageSize: this.pageSize == 5 ? 6 : this.pageSize,
|
|
|
+ CurrentIndex: this.pageNum,
|
|
|
+ KeyWord: this.searchTxt.replace(/^\s+|\s+$/g, ""),
|
|
|
+ Filter: Number(this.activitySelectActive),
|
|
|
+ });
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
+ this.totalPage = res.Data.Paging.Pages; //总页数
|
|
|
+ if (this.pageNum == 1) {
|
|
|
+ this.roadshowPageList = res.Data.List || [];
|
|
|
+ this.haveResultRoadshow = this.roadshowPageList.length > 0 ? true : false;
|
|
|
+ if (this.refresh) {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ this.refresh = false;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.roadshowPageList = this.roadshowPageList.concat(res.Data.List);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//点击了更多
|
|
|
tabsActiveMore(val) {
|
|
|
this.tabsActive = val;
|
|
@@ -333,10 +374,14 @@ export default {
|
|
|
this.resultList = [];
|
|
|
this.resultDataList = [];
|
|
|
this.synthesiz();
|
|
|
- } else {
|
|
|
+ } else if (type == "活动") {
|
|
|
this.activitySelectActive = item.value;
|
|
|
this.collectList = [];
|
|
|
this.getActivityBackList();
|
|
|
+ } else if (type == "微路演") {
|
|
|
+ this.activitySelectActive = item.value;
|
|
|
+ this.roadshowPageList = [];
|
|
|
+ this.getRoadshowList();
|
|
|
}
|
|
|
},
|
|
|
/* 历史搜索清空 */
|
|
@@ -359,6 +404,7 @@ export default {
|
|
|
this.resultDataList = [];
|
|
|
this.collectList = [];
|
|
|
this.reportPageData = {};
|
|
|
+ this.roadshowPageList = [];
|
|
|
},
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -484,7 +530,6 @@ export default {
|
|
|
.search-tabs {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
width: 100%;
|
|
|
font-size: 32rpx;
|
|
|
color: #333333;
|
|
@@ -593,6 +638,9 @@ export default {
|
|
|
z-index: 99;
|
|
|
background-color: #f5f6fa;
|
|
|
}
|
|
|
+ .select-roadshow {
|
|
|
+ width: 345rpx !important;
|
|
|
+ }
|
|
|
.more-summary {
|
|
|
top: 184rpx;
|
|
|
}
|
|
@@ -607,16 +655,16 @@ export default {
|
|
|
}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
- #container-report-page{
|
|
|
- .industry-video-module{
|
|
|
- .global-video-box{
|
|
|
- .video-content{
|
|
|
- top: 400rpx!important;
|
|
|
- }
|
|
|
- .close-icon{
|
|
|
- top: 330rpx!important;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+#container-report-page {
|
|
|
+ .industry-video-module {
|
|
|
+ .global-video-box {
|
|
|
+ .video-content {
|
|
|
+ top: 400rpx !important;
|
|
|
+ }
|
|
|
+ .close-icon {
|
|
|
+ top: 330rpx !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|