|
@@ -1,35 +1,40 @@
|
|
<!--pages/index/index.wxml-->
|
|
<!--pages/index/index.wxml-->
|
|
<!-- 小程序首页 -->
|
|
<!-- 小程序首页 -->
|
|
-<view wx:if="{{showLoading}}">
|
|
|
|
|
|
+<view hidden="{{!showLoading}}">
|
|
<loading bind:startexplore="onStartExplore"></loading>
|
|
<loading bind:startexplore="onStartExplore"></loading>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
-<view wx:else class="home-container {{!isFromParam ? 'home-tabar' : ''}} {{isFirstOpen ? 'home-not-overflow' : ''}}">
|
|
|
|
|
|
+<view hidden="{{showLoading}}" class="home-container {{!isFromParam ? 'home-tabar' : ''}} {{isFirstOpen ? 'home-not-overflow' : ''}}">
|
|
<!-- 轮播图区域 -->
|
|
<!-- 轮播图区域 -->
|
|
- <view class="carousel-section">
|
|
|
|
- <swiper class="carousel-swiper" indicator-dots="{{false}}" autoplay="{{true}}" interval="5000" duration="500">
|
|
|
|
- <swiper-item wx:for="{{bannerData}}" wx:key="carouselId">
|
|
|
|
|
|
+ <view class="carousel-section" wx:if="{{bannerData.length}}">
|
|
|
|
+ <swiper class="carousel-swiper" indicator-dots="{{true}}" autoplay="{{true}}" interval="4000" duration="500">
|
|
|
|
+ <swiper-item wx:for="{{bannerData}}" wx:key="carouselId" bindtap="onBannerClick" data-url="{{item.url}}">
|
|
<image src="{{item.img}}" alt="{{item.title || '轮播图'}}" class="carousel-img" mode="aspectFill"></image>
|
|
<image src="{{item.img}}" alt="{{item.title || '轮播图'}}" class="carousel-img" mode="aspectFill"></image>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="carousel-section" wx:else>
|
|
|
|
+ <view class="nobanner-data">
|
|
|
|
+ 轮播图暂无数据
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 功能区域 -->
|
|
<!-- 功能区域 -->
|
|
<view class="function-section">
|
|
<view class="function-section">
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="visit">
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="visit">
|
|
- <image src="https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/imgs/indexPage/visit.png" alt="预约参观" class="function-icon"></image>
|
|
|
|
|
|
+ <image src="https://sit-kelamayi.4dage.com/mini/wxImg/indexPage/visit.png" alt="预约参观" class="function-icon"></image>
|
|
<text class="function-text">预约参观</text>
|
|
<text class="function-text">预约参观</text>
|
|
</view>
|
|
</view>
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="activity">
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="activity">
|
|
- <image src="https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/imgs/indexPage/activity.png" alt="活动预约" class="function-icon"></image>
|
|
|
|
|
|
+ <image src="https://sit-kelamayi.4dage.com/mini/wxImg/indexPage/activity.png" alt="活动预约" class="function-icon"></image>
|
|
<text class="function-text">活动预约</text>
|
|
<text class="function-text">活动预约</text>
|
|
</view>
|
|
</view>
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="map">
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="map">
|
|
- <image src="https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/imgs/indexPage/map.png" alt="展馆地图" class="function-icon"></image>
|
|
|
|
|
|
+ <image src="https://sit-kelamayi.4dage.com/mini/wxImg/indexPage/map.png" alt="展馆地图" class="function-icon"></image>
|
|
<text class="function-text">展馆地图</text>
|
|
<text class="function-text">展馆地图</text>
|
|
</view>
|
|
</view>
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="introduce">
|
|
<view class="function-item" bindtap="handleFunctionClick" data-type="introduce">
|
|
- <image src="https://swkz-1332577016.cos.ap-guangzhou.myqcloud.com/imgs/indexPage/introduce.png" alt="展馆介绍" class="function-icon"></image>
|
|
|
|
|
|
+ <image src="https://sit-kelamayi.4dage.com/mini/wxImg/indexPage/introduce.png" alt="展馆介绍" class="function-icon"></image>
|
|
<text class="function-text">展馆介绍</text>
|
|
<text class="function-text">展馆介绍</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -37,16 +42,21 @@
|
|
<!-- 展览资讯 -->
|
|
<!-- 展览资讯 -->
|
|
<view class="section">
|
|
<view class="section">
|
|
<view class="section-header">
|
|
<view class="section-header">
|
|
- <text class="section-title">展览资讯</text>
|
|
|
|
|
|
+ <text class="section-title">展馆资讯</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="recommended">查看更多 +</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="recommended">查看更多 +</text>
|
|
</view>
|
|
</view>
|
|
- <view class="news-item" wx:for="{{newsList}}" wx:key="informationId" bindtap="viewNews" data-item="{{item}}">
|
|
|
|
- <image src="{{item.infoImg}}" alt="展览资讯" class="news-img" mode="aspectFill"></image>
|
|
|
|
- <view class="news-content">
|
|
|
|
- <text class="news-title">{{item.title}}</text>
|
|
|
|
- <text class="news-desc">⇀</text>
|
|
|
|
|
|
+ <view wx:if="{{newsList && newsList.length > 0}}">
|
|
|
|
+ <view class="news-item" wx:for="{{newsList}}" wx:key="informationId" bindtap="viewNews" data-item="{{item}}">
|
|
|
|
+ <image src="{{item.indexImg}}" alt="展览资讯" class="news-img" mode="aspectFill"></image>
|
|
|
|
+ <view class="news-content">
|
|
|
|
+ <text class="news-title">{{item.title}}</text>
|
|
|
|
+ <text class="news-desc">⇀</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view wx:else class="empty-data">
|
|
|
|
+ <text class="empty-text">暂无数据</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 推荐展览 -->
|
|
<!-- 推荐展览 -->
|
|
@@ -55,16 +65,21 @@
|
|
<text class="section-title">推荐展览</text>
|
|
<text class="section-title">推荐展览</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="exhibition">查看更多 +</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="exhibition">查看更多 +</text>
|
|
</view>
|
|
</view>
|
|
- <scroll-view class="scroll-container" scroll-x="{{true}}">
|
|
|
|
- <view class="scroll-wrapper">
|
|
|
|
- <view class="exhibition-item" wx:for="{{exhibitionList}}" wx:key="exhibitId" bindtap="viewExhibition" data-item="{{item}}">
|
|
|
|
- <image src="{{item.img}}" alt="展览" class="exhibition-img" mode="aspectFill"></image>
|
|
|
|
- <view class="exhibition-info">
|
|
|
|
- <text class="exhibition-title">{{item.title}}</text>
|
|
|
|
|
|
+ <view wx:if="{{exhibitionList && exhibitionList.length > 0}}">
|
|
|
|
+ <scroll-view class="scroll-container" scroll-x="{{true}}">
|
|
|
|
+ <view class="scroll-wrapper">
|
|
|
|
+ <view class="exhibition-item" wx:for="{{exhibitionList}}" wx:key="exhibitId" bindtap="viewExhibition" data-item="{{item}}">
|
|
|
|
+ <image src="{{item.img}}" alt="展览" class="exhibition-img" mode="aspectFill"></image>
|
|
|
|
+ <view class="exhibition-info">
|
|
|
|
+ <text class="exhibition-title">{{item.title}}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- </scroll-view>
|
|
|
|
|
|
+ </scroll-view>
|
|
|
|
+ </view>
|
|
|
|
+ <view wx:else class="empty-data">
|
|
|
|
+ <text class="empty-text">暂无数据</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 社教活动 -->
|
|
<!-- 社教活动 -->
|
|
@@ -73,19 +88,24 @@
|
|
<text class="section-title">社教活动</text>
|
|
<text class="section-title">社教活动</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="activity">查看更多 +</text>
|
|
<text class="view-more" bindtap="viewMore" data-section="activity">查看更多 +</text>
|
|
</view>
|
|
</view>
|
|
- <scroll-view class="scroll-container" scroll-x="{{true}}">
|
|
|
|
- <view class="scroll-wrapper">
|
|
|
|
- <view class="activity-item" wx:for="{{activeList}}" wx:key="activityId" bindtap="viewActivity" data-item="{{item}}">
|
|
|
|
- <view class="active-top">
|
|
|
|
- <image src="{{item.indexImg}}" alt="活动" class="activity-img" mode="aspectFill"></image>
|
|
|
|
- <text class="active-go">></text>
|
|
|
|
- </view>
|
|
|
|
- <view class="activity-info">
|
|
|
|
- <text class="activity-title">{{item.title}}</text>
|
|
|
|
|
|
+ <view wx:if="{{activeList && activeList.length > 0}}">
|
|
|
|
+ <scroll-view class="scroll-container" scroll-x="{{true}}">
|
|
|
|
+ <view class="scroll-wrapper">
|
|
|
|
+ <view class="activity-item" wx:for="{{activeList}}" wx:key="activityId" bindtap="viewActivity" data-item="{{item}}">
|
|
|
|
+ <view class="active-top">
|
|
|
|
+ <image src="{{item.indexImg}}" alt="活动" class="activity-img" mode="aspectFill"></image>
|
|
|
|
+ <text class="active-go">></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="activity-info">
|
|
|
|
+ <text class="activity-title">{{item.title}}</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- </scroll-view>
|
|
|
|
|
|
+ </scroll-view>
|
|
|
|
+ </view>
|
|
|
|
+ <view wx:else class="empty-data">
|
|
|
|
+ <text class="empty-text">暂无数据</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|