|
@@ -12,12 +12,12 @@
|
|
|
<u-tabs :active.sync="tabActive" :tabs="tabs" tab-style="default" @change="tabChange"/>
|
|
|
<view v-if="tabActive === 1" class="search-result-list exhibit-list">
|
|
|
<template v-for="(item, index) in exhibitorList">
|
|
|
- <exhibitor-item :item="item" :key="index" @updateItemValue="updateItemValue()"/>
|
|
|
+ <exhibitor-item :item="item" :key="index" :pollShow="pollShow.exhibitors_poll_show" @share="onShare()" @updateItemValue="updateItemValue()"/>
|
|
|
</template>
|
|
|
</view>
|
|
|
<view v-else-if="tabActive === 2" class="search-result-list exhibit-list">
|
|
|
<template v-for="(item, index) in exhibitList">
|
|
|
- <exhibit-item :item="item" :key="index" @updateItemValue="updateItemValue()"/>
|
|
|
+ <exhibit-item :item="item" :key="index" :pollShow="pollShow.product_poll_show" @share="onShare()" @updateItemValue="updateItemValue()"/>
|
|
|
</template>
|
|
|
</view>
|
|
|
<view v-else-if="tabActive === 3" class="search-result-list exhibit-list">
|
|
@@ -39,6 +39,7 @@
|
|
|
<disclaimer-text></disclaimer-text>
|
|
|
</view>
|
|
|
</u-scroll-view>
|
|
|
+ <u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -46,12 +47,14 @@
|
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
|
import UTabs from '@/components/common/u-tabs'
|
|
|
import UScrollView from '@/components/common/u-scroll-view'
|
|
|
+ import UShareActionSheet from '@/components/common/u-share-action-sheet'
|
|
|
import USearch from '@/components/common/u-search'
|
|
|
import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
|
|
|
import ExhibitorItem from '@/pages/exhibitor/components/exhibitor-item.vue'
|
|
|
import NewsItem from '@/pages/news/components/news-item.vue'
|
|
|
import ActivityItem from '@/pages/activity/components/activity-item.vue'
|
|
|
- import { globalSearch, mettingList, exhibitorsList, exhibitorsProductList, exhibitorsNewsList, exhibitorsBoothActivityList } from '@/api/exhibitor'
|
|
|
+
|
|
|
+ import { globalSearch, mettingList, exhibitorsList, exhibitorsProductList, exhibitorsNewsList, exhibitorsBoothActivityList, globalPollShow } from '@/api/exhibitor'
|
|
|
import DisclaimerText from '@/components/disclaimer-text/index.vue'
|
|
|
export default {
|
|
|
options: {
|
|
@@ -66,7 +69,8 @@
|
|
|
ExhibitorItem,
|
|
|
NewsItem,
|
|
|
ActivityItem,
|
|
|
- DisclaimerText
|
|
|
+ DisclaimerText,
|
|
|
+ UShareActionSheet
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -134,7 +138,13 @@
|
|
|
page: 1,
|
|
|
page_size: 10,
|
|
|
keyword: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ pollShow: {
|
|
|
+ exhibitors_poll_show: 0,
|
|
|
+ product_poll_show: 0
|
|
|
+ },
|
|
|
+ showShare: false,
|
|
|
+ shareInfo: null,
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -143,7 +153,9 @@
|
|
|
this.searchKeyword = options.query
|
|
|
this.onClickSearch()
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.getGlobalPollShow()
|
|
|
+ },
|
|
|
methods: {
|
|
|
tabChange() {
|
|
|
|
|
@@ -328,6 +340,29 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ getGlobalPollShow() {
|
|
|
+ globalPollShow().then(res => {
|
|
|
+ this.pollShow = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onShare(e) {
|
|
|
+ this.shareInfo = e.detail
|
|
|
+ this.showShare = true
|
|
|
+ },
|
|
|
+ onShareAppMessage: function (res) {
|
|
|
+ if (res.from === 'button') {
|
|
|
+ if (this.shareInfo) {
|
|
|
+ return this.shareInfo
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.shareInfo = null
|
|
|
+ this.showShare = false
|
|
|
+ return {
|
|
|
+ title: '慕尼黑上海电子生产设备展',
|
|
|
+ path: '/pages/index/index',
|
|
|
+ imageUrl: 'https://oss.starify.cn/prod/starify/up/0001018678/20241108/672da5a7dd374.png?x-oss-process=image/resize,w_600,h_600,limit_0,m_pad'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|