|
@@ -1,69 +1,68 @@
|
|
|
<template>
|
|
|
<page-layout>
|
|
|
- <nav-bar :show-title="false">
|
|
|
- <view class="top-container">
|
|
|
- <image class="logo" :src="logo"/>
|
|
|
- <view class="countdown">
|
|
|
- 距开幕
|
|
|
- <view class="days"> 168</view>
|
|
|
- 天
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </nav-bar>
|
|
|
- <u-swiper :items="images" useComponentName='topSwiper' indicato-dots-style="morphing" :height="387"/>
|
|
|
- <view class="main-container">
|
|
|
- <u-search v-model="searchKeyword" placeholder="搜索关键词" @search="onClickSearch"/>
|
|
|
- <view class="nav-icons">
|
|
|
- <template v-for="(item, index) in navIcons">
|
|
|
- <view class="nav-icon-wrapper" :key="index" v-if="!item.is_hide">
|
|
|
- <view class="nav-icon" @click="onClickNavIcon(item)">
|
|
|
- <view v-if="item.icon.indexOf('.svg') !== -1" :style="'background-image:url(' + item.icon + ')'"></view>
|
|
|
- <view v-else-if="item.icon.indexOf('icon-') !== -1" :class="'iconfont ' + item.icon"></view>
|
|
|
- </view>
|
|
|
- <view class="nav-text">
|
|
|
- {{ item.name }}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
- <view class="panel-group panel-group-1">
|
|
|
- <u-panel title="精彩视频" link="/pages/video/index">
|
|
|
- <u-swiper :items="videos" useComponentName="videoSwiper" :height="360" :autoplay="false" :border-radius="10"
|
|
|
- :image-width="508" :image-height="286" next-margin="100rpx"/>
|
|
|
- </u-panel>
|
|
|
- <u-panel title="精彩图集"
|
|
|
- link="https://www.productronicachina.com.cn/data-facts-impressions-impressions-videos">
|
|
|
- <u-swiper :items="albumPics" useComponentName="imageSwiper" :height="360" :border-radius="10"
|
|
|
- :image-width="508" :image-height="286" next-margin="100rpx"/>
|
|
|
- <!-- <view class="album">
|
|
|
+ <nav-bar :show-title="false">
|
|
|
+ <view class="top-container">
|
|
|
+ <image class="logo" :src="logo" />
|
|
|
+ <view class="countdown">
|
|
|
+ 距开幕
|
|
|
+ <view class="days"> 168</view>
|
|
|
+ 天
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </nav-bar>
|
|
|
+ <u-swiper :items="images" useComponentName='topSwiper' indicato-dots-style="morphing" :height="387" />
|
|
|
+ <view class="main-container">
|
|
|
+ <u-search v-model="searchKeyword" placeholder="搜索关键词" @search="onClickSearch" />
|
|
|
+ <view class="nav-icons">
|
|
|
+ <template v-for="(item, index) in navIcons">
|
|
|
+ <view class="nav-icon-wrapper" :key="index" v-if="!item.is_hide">
|
|
|
+ <view class="nav-icon" @click="onClickNavIcon(item)">
|
|
|
+ <view v-if="item.icon.indexOf('.svg') !== -1" :style="'background-image:url(' + item.icon + ')'"></view>
|
|
|
+ <view v-else-if="item.icon.indexOf('icon-') !== -1" :class="'iconfont ' + item.icon"></view>
|
|
|
+ </view>
|
|
|
+ <view class="nav-text">
|
|
|
+ {{ item.name }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ <view class="panel-group panel-group-1">
|
|
|
+ <u-panel title="精彩视频" link="/pages/video/index">
|
|
|
+ <u-swiper :items="videos" useComponentName="videoSwiper" :height="360" :autoplay="false" :border-radius="10"
|
|
|
+ :image-width="508" :image-height="286" next-margin="100rpx" />
|
|
|
+ </u-panel>
|
|
|
+ <u-panel title="精彩图集" link="https://www.productronicachina.com.cn/data-facts-impressions-impressions-videos">
|
|
|
+ <u-swiper :items="albumPics" useComponentName="imageSwiper" :height="360" :border-radius="10"
|
|
|
+ :image-width="508" :image-height="286" next-margin="100rpx" />
|
|
|
+ <!-- <view class="album">
|
|
|
<template v-for="(item, index) in albumPics">
|
|
|
<view class="album-pic" :key="index" @click="onClickAlbum(index)">
|
|
|
<image :src="String(item)" mode="aspectFill" />
|
|
|
</view>
|
|
|
</template>
|
|
|
</view> -->
|
|
|
- </u-panel>
|
|
|
- </view>
|
|
|
- <view class="panel-group">
|
|
|
- <u-panel title="新闻" link="/pages/news/index">
|
|
|
- <news-recommend recommend-type="home" news-type="exhibition"/>
|
|
|
- </u-panel>
|
|
|
- </view>
|
|
|
- <view class="panel-group logo-group">
|
|
|
- <u-panel title="战略合作方">
|
|
|
- <u-swiper :items="part1" useComponentName="logoSwiper" key="logoSwiper" :autoplay="false" :height="250">
|
|
|
- <template v-slot="{ scope }">
|
|
|
- <view class="partners">
|
|
|
- <template v-for="(item, index) in scope">
|
|
|
- <view class="partner" :key="index" @tap="onLogoClick(item)">
|
|
|
- <image :src="item.url"/>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-swiper>
|
|
|
- </u-panel>
|
|
|
- <!-- <u-panel title="推荐展商" link="https://www.productronicachina.com.cn/partners">
|
|
|
+ </u-panel>
|
|
|
+ </view>
|
|
|
+ <view class="panel-group">
|
|
|
+ <u-panel title="新闻" link="/pages/news/index">
|
|
|
+ <news-recommend recommend-type="home" news-type="exhibition" />
|
|
|
+ </u-panel>
|
|
|
+ </view>
|
|
|
+ <view class="panel-group logo-group">
|
|
|
+ <u-panel title="战略合作方">
|
|
|
+ <u-swiper :items="part1" useComponentName="logoSwiper" key="logoSwiper" :autoplay="false" :height="250">
|
|
|
+ <template v-slot="{ scope }">
|
|
|
+ <view class="partners">
|
|
|
+ <template v-for="(item, index) in scope">
|
|
|
+ <view class="partner" :key="index" @tap="onLogoClick(item)">
|
|
|
+ <image :src="item.url" />
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </u-swiper>
|
|
|
+ </u-panel>
|
|
|
+ <!-- <u-panel title="推荐展商" link="https://www.productronicachina.com.cn/partners">
|
|
|
<u-swiper :items="partners" :height="250">
|
|
|
<template v-slot="{ scope }">
|
|
|
<view class="partners">
|
|
@@ -76,23 +75,8 @@
|
|
|
</template>
|
|
|
</u-swiper>
|
|
|
</u-panel> -->
|
|
|
- <u-panel title="合作媒体" link="https://www.productronicachina.com.cn/partners">
|
|
|
- <u-swiper :items="part2" key="logoSwiper2" useComponentName="logoSwiper" :autoplay="false" :height="250">
|
|
|
- <template v-slot="{ scope }">
|
|
|
- <view class="partners">
|
|
|
- <template v-for="(item, index) in scope">
|
|
|
- <view class="partner" :key="index" @tap="onLogoClick(item)">
|
|
|
- <image :src="item.url"/>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </u-swiper>
|
|
|
- </u-panel>
|
|
|
- </view>
|
|
|
</view>
|
|
|
- <float-button></float-button>
|
|
|
- <van-overlay :show="isShow">
|
|
|
+ <float-button></float-button> <van-overlay :show="isShow">
|
|
|
<view class="ad-wrapper">
|
|
|
<view class="img-btn-box">
|
|
|
<view class="ad-space" @tap="navigateToAdLink(adInfo.ad_link)">
|
|
@@ -104,13 +88,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-overlay>
|
|
|
- </page-layout>
|
|
|
+ </page-layout>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
-import NavBar from '@/components/layout/nav-bar'
|
|
|
- import UScrollView from '@/components/common/u-scroll-view'
|
|
|
+import NavBar from '@/components/layout/nav-bar' import UScrollView from '@/components/common/u-scroll-view'
|
|
|
import USwiper from '@/components/common/u-swiper'
|
|
|
import USearch from '@/components/common/u-search'
|
|
|
import UPanel from '@/components/common/u-panel'
|
|
@@ -206,10 +188,10 @@ import NavBar from '@/components/layout/nav-bar'
|
|
|
this.getAdData()
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getSystemInfo(this,(res)=>{
|
|
|
- this.navType = res
|
|
|
- })
|
|
|
- },
|
|
|
+ this.getSystemInfo(this, (res) => {
|
|
|
+ this.navType = res
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
onClickNavIcon(item) {
|
|
|
if (item.link === '/pages/exhibitor/index') {
|
|
@@ -273,7 +255,7 @@ import NavBar from '@/components/layout/nav-bar'
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
-.ad-wrapper {
|
|
|
+ .ad-wrapper {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -294,11 +276,12 @@ import NavBar from '@/components/layout/nav-bar'
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .home-ad-close{
|
|
|
+ .home-ad-close {
|
|
|
position: absolute;
|
|
|
top: -70rpx;
|
|
|
right: -70rpx;
|
|
|
- .van-icon-close{
|
|
|
+
|
|
|
+ .van-icon-close {
|
|
|
font-size: 60rpx;
|
|
|
color: #FFFFFF;
|
|
|
cursor: pointer;
|
|
@@ -337,12 +320,6 @@ import NavBar from '@/components/layout/nav-bar'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .countdown {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- margin-left: 27rpx;
|
|
|
- font-size: $fontSize3;
|
|
|
-
|
|
|
.search-container {
|
|
|
.search-input {
|
|
|
height: 64rpx;
|
|
@@ -503,5 +480,4 @@ import NavBar from '@/components/layout/nav-bar'
|
|
|
image {
|
|
|
object-fit: contain;
|
|
|
}
|
|
|
- }
|
|
|
-</style>
|
|
|
+ }</style>
|