|
@@ -3,38 +3,40 @@
|
|
<nav-bar title="展品信息" @init="onInitNavbar"></nav-bar>
|
|
<nav-bar title="展品信息" @init="onInitNavbar"></nav-bar>
|
|
<u-scroll-view>
|
|
<u-scroll-view>
|
|
<view class="main-container">
|
|
<view class="main-container">
|
|
- <view class="exhibitor-filter">
|
|
|
|
- <view>
|
|
|
|
- <view class="exhibitor-filter-label">展馆号</view>
|
|
|
|
- <u-dropdown-select ref="select1" v-model="categoryId" placeholder="选择展馆号" :options="categories" @dropdown="onSelectDropdown(1)" />
|
|
|
|
|
|
+ <view class="exhibitor-filter">
|
|
|
|
+ <view>
|
|
|
|
+ <view class="exhibitor-filter-label">展馆号</view>
|
|
|
|
+ <u-dropdown-select ref="select1" v-model="categoryId" placeholder="选择展馆号" :options="categories" @dropdown="onSelectDropdown(1)" />
|
|
|
|
+ </view>
|
|
|
|
+ <view>
|
|
|
|
+ <view class="exhibitor-filter-label">产品类别</view>
|
|
|
|
+ <u-dropdown-select ref="select2" v-model="categoryId" placeholder="选择产品类别" :options="categories" @dropdown="onSelectDropdown(2)" />
|
|
|
|
+ </view>
|
|
|
|
+ <view>
|
|
|
|
+ <view class="exhibitor-filter-label">应用领域</view>
|
|
|
|
+ <u-dropdown-select ref="select3" v-model="categoryId" placeholder="选择应用领域" :options="categories" @dropdown="onSelectDropdown(3)" />
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
- <view class="exhibitor-filter-label">产品类别</view>
|
|
|
|
- <u-dropdown-select ref="select2" v-model="categoryId" placeholder="选择产品类别" :options="categories" @dropdown="onSelectDropdown(2)" />
|
|
|
|
|
|
+ <u-search v-model="searchKeyword" placeholder="搜索展商 / 展品名称 / 会议" @search="onSearch" />
|
|
|
|
+ <view class="ad-space">
|
|
|
|
+ <image src="https://oss.starify.cn/prod/starify/up/0001018678/20241108/672da70a6c76a.png?x-oss-process=image/resize,w_200" mode="aspectFill"/>
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
- <view class="exhibitor-filter-label">应用领域</view>
|
|
|
|
- <u-dropdown-select ref="select3" v-model="categoryId" placeholder="选择应用领域" :options="categories" @dropdown="onSelectDropdown(3)" />
|
|
|
|
|
|
+ <van-empty v-if="exhibitList.length === 0" description="暂无数据" />
|
|
|
|
+ <view v-else class="exhibit-list exhibitor-list">
|
|
|
|
+ <template v-for="(item, index) in exhibitList">
|
|
|
|
+ <exhibit-item :item="item" :key="index" @share="onShare" />
|
|
|
|
+ </template>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-search v-model="searchKeyword" placeholder="搜索展商 / 展品名称 / 会议" @search="onSearch" />
|
|
|
|
- <view class="ad-space">
|
|
|
|
- <image src="https://oss.starify.cn/prod/starify/up/0001018678/20241108/672da70a6c76a.png?x-oss-process=image/resize,w_200" mode="aspectFill"/>
|
|
|
|
- </view>
|
|
|
|
- <van-empty v-if="exhibitList.length === 0" description="暂无数据" />
|
|
|
|
- <view v-else class="exhibit-list exhibitor-list">
|
|
|
|
- <template v-for="(item, index) in exhibitList">
|
|
|
|
- <exhibit-item :item="item" :key="index" />
|
|
|
|
- </template>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
</u-scroll-view>
|
|
</u-scroll-view>
|
|
|
|
+ <u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
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 UDropdownSelect from '@/components/common/u-dropdown-select'
|
|
import UDropdownSelect from '@/components/common/u-dropdown-select'
|
|
import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
|
|
import ExhibitItem from '@/pages/exhibitor/components/exhibit-item.vue'
|
|
@@ -48,6 +50,7 @@
|
|
UScrollView,
|
|
UScrollView,
|
|
USearch,
|
|
USearch,
|
|
UDropdownSelect,
|
|
UDropdownSelect,
|
|
|
|
+ UShareActionSheet,
|
|
ExhibitItem
|
|
ExhibitItem
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -57,6 +60,8 @@
|
|
scrollviewHeight: 0,
|
|
scrollviewHeight: 0,
|
|
searchKeyword: '',
|
|
searchKeyword: '',
|
|
exhibitList: [{ favourited: true }, { liked: true }, { voted: true }, {} ],
|
|
exhibitList: [{ favourited: true }, { liked: true }, { voted: true }, {} ],
|
|
|
|
+ shareInfo: null,
|
|
|
|
+ showShare: false,
|
|
categories: [{
|
|
categories: [{
|
|
label: '表面贴装',
|
|
label: '表面贴装',
|
|
value: 1,
|
|
value: 1,
|
|
@@ -100,6 +105,24 @@
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ 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'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onSelectDropdown(index) {
|
|
onSelectDropdown(index) {
|
|
['select1', 'select2', 'select3'].forEach(v => {
|
|
['select1', 'select2', 'select3'].forEach(v => {
|
|
if (v !== 'select' + index) {
|
|
if (v !== 'select' + index) {
|