|
@@ -20,21 +20,23 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="search-tabs" v-if="isResult">
|
|
|
- <view :class="['tabs-item', tabsActive === item.id && 'active']" v-for="item in tabsList" :key="item.id" @click="tabsHandel(item)">
|
|
|
+ <view :class="['tabs-item', tabsActive == item.id && 'active']" v-for="item in tabsList" :key="item.id" @click="tabsHandel(item)">
|
|
|
{{ item.title }}
|
|
|
- <view class="item-act" v-if="tabsActive === item.id"></view>
|
|
|
+ <view class="item-act" v-if="tabsActive == item.id"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<block v-if="isResult">
|
|
|
- <view class="more-summary more-box" v-if="(tabsActive === 1 || tabsActive === 2) && haveResultSummary">
|
|
|
+ <view class="more-summary more-box" v-if="(tabsActive == 1 || tabsActive == 2) && haveResultSummary">
|
|
|
<view>
|
|
|
- <text class="more-text" v-if="tabsActive === 1"> 纪要/图表 </text>
|
|
|
+ <text class="more-text" v-if="tabsActive == 1"> 纪要/图表 </text>
|
|
|
</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="summarySelectHandler(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 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 || tabsActive == 5">
|
|
@@ -415,9 +417,19 @@ export default {
|
|
|
this.reportPageData = {};
|
|
|
this.roadshowPageList = [];
|
|
|
},
|
|
|
+ laodInit(options) {
|
|
|
+ if (Object.keys(options).length && options.searchTxt) {
|
|
|
+ this.searchTxt = options.searchTxt;
|
|
|
+ this.tabsActive = options.tabsActive;
|
|
|
+ this.summarySelectActive = options.summaryActive;
|
|
|
+ this.activitySelectActive = options.activityActive;
|
|
|
+ this.searchTxt && this.getDataList();
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.researchHotKeyWord();
|
|
|
+ this.laodInit(options);
|
|
|
if (this.$db.get("historySearchList")) {
|
|
|
this.historySearchList = JSON.parse(this.$db.get("historySearchList"));
|
|
|
}
|
|
@@ -437,6 +449,21 @@ export default {
|
|
|
this.pageNum++;
|
|
|
this.getDataList();
|
|
|
}),
|
|
|
+ // 分享
|
|
|
+ onShareAppMessage() {
|
|
|
+ return {
|
|
|
+ title: this.searchTxt || "搜索",
|
|
|
+ path:
|
|
|
+ "/pages-search/indedxSearch/indedxSearch?searchTxt=" +
|
|
|
+ this.searchTxt +
|
|
|
+ "&tabsActive=" +
|
|
|
+ this.tabsActive +
|
|
|
+ "&summaryActive=" +
|
|
|
+ this.summarySelectActive +
|
|
|
+ "&activityActive=" +
|
|
|
+ this.activitySelectActive,
|
|
|
+ };
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|