|
@@ -12,12 +12,12 @@
|
|
<u-tabs :active.sync="tabActive" :tabs="tabs" tab-style="default" @change="tabChange"/>
|
|
<u-tabs :active.sync="tabActive" :tabs="tabs" tab-style="default" @change="tabChange"/>
|
|
<view v-if="tabActive === 1" class="search-result-list exhibit-list">
|
|
<view v-if="tabActive === 1" class="search-result-list exhibit-list">
|
|
<template v-for="(item, index) in exhibitorList">
|
|
<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>
|
|
</template>
|
|
</view>
|
|
</view>
|
|
<view v-else-if="tabActive === 2" class="search-result-list exhibit-list">
|
|
<view v-else-if="tabActive === 2" class="search-result-list exhibit-list">
|
|
<template v-for="(item, index) in exhibitList">
|
|
<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>
|
|
</template>
|
|
</view>
|
|
</view>
|
|
<view v-else-if="tabActive === 3" class="search-result-list exhibit-list">
|
|
<view v-else-if="tabActive === 3" class="search-result-list exhibit-list">
|
|
@@ -39,6 +39,7 @@
|
|
<disclaimer-text></disclaimer-text>
|
|
<disclaimer-text></disclaimer-text>
|
|
</view>
|
|
</view>
|
|
</u-scroll-view>
|
|
</u-scroll-view>
|
|
|
|
+ <u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -46,12 +47,14 @@
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
import UTabs from '@/components/common/u-tabs'
|
|
import UTabs from '@/components/common/u-tabs'
|
|
import UScrollView from '@/components/common/u-scroll-view'
|
|
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 USearch from '@/components/common/u-search'
|
|
import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
|
|
import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
|
|
import ExhibitorItem from '@/pages/exhibitor/components/exhibitor-item.vue'
|
|
import ExhibitorItem from '@/pages/exhibitor/components/exhibitor-item.vue'
|
|
import NewsItem from '@/pages/news/components/news-item.vue'
|
|
import NewsItem from '@/pages/news/components/news-item.vue'
|
|
import ActivityItem from '@/pages/activity/components/activity-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'
|
|
import DisclaimerText from '@/components/disclaimer-text/index.vue'
|
|
export default {
|
|
export default {
|
|
options: {
|
|
options: {
|
|
@@ -66,7 +69,8 @@
|
|
ExhibitorItem,
|
|
ExhibitorItem,
|
|
NewsItem,
|
|
NewsItem,
|
|
ActivityItem,
|
|
ActivityItem,
|
|
- DisclaimerText
|
|
|
|
|
|
+ DisclaimerText,
|
|
|
|
+ UShareActionSheet
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -134,7 +138,13 @@
|
|
page: 1,
|
|
page: 1,
|
|
page_size: 10,
|
|
page_size: 10,
|
|
keyword: ''
|
|
keyword: ''
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ pollShow: {
|
|
|
|
+ exhibitors_poll_show: 0,
|
|
|
|
+ product_poll_show: 0
|
|
|
|
+ },
|
|
|
|
+ showShare: false,
|
|
|
|
+ shareInfo: null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -143,12 +153,15 @@
|
|
this.searchKeyword = options.query
|
|
this.searchKeyword = options.query
|
|
this.onClickSearch()
|
|
this.onClickSearch()
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.getGlobalPollShow()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
tabChange() {
|
|
tabChange() {
|
|
|
|
|
|
},
|
|
},
|
|
onClickSearch() {
|
|
onClickSearch() {
|
|
|
|
+
|
|
this.listParams.page = 1
|
|
this.listParams.page = 1
|
|
this.listParams.keyword = this.searchKeyword
|
|
this.listParams.keyword = this.searchKeyword
|
|
this.exhibitorListParams = {...this.listParams}
|
|
this.exhibitorListParams = {...this.listParams}
|
|
@@ -202,7 +215,7 @@
|
|
this.exhibitorListLoading = false
|
|
this.exhibitorListLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getExhibitList() { // 展品
|
|
|
|
|
|
+ getExhibitList() { // 展品
|
|
this.exhibitListLoading = true
|
|
this.exhibitListLoading = true
|
|
exhibitorsProductList(this.exhibitListParams).then(res => {
|
|
exhibitorsProductList(this.exhibitListParams).then(res => {
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
@@ -328,6 +341,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'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|