xcx_temp/pages/home/home.wxml
2023-11-19 17:37:26 +08:00

46 lines
1.8 KiB
Plaintext

<view style="text-align: center; color: #b9b9b9" wx:if="{{pageLoading}}">
<t-loading theme="circular" size="40rpx" text="加载中..." inherit-color />
</view>
<view class="home-page-header">
<!-- 公告 -->
<!-- <view class="notice-container ">
<view wx:for="{{noticeList}}">
<t-notice-bar class="notice-bar" visible="{{item.visible}}" prefixIcon="null" marquee="{{marquee}}" content="{{item.noticeContent}}">
<view slot="prefix-icon" class="notice-title">
<t-icon class="notice-icon" name="error-circle-filled"></t-icon>
<view>
{{item.noticeTitle}}
</view>
</view>
</t-notice-bar>
</view>
</view> -->
<!-- 轮播图 -->
<view class="swiper-wrap">
<t-swiper wx:if="{{imgSrcs.length > 0}}" current="{{current}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" imageProps="{{swiperImageProps}}" list="{{imgSrcs}}" />
<!-- bind:click="navToActivityDetail" -->
</view>
<!-- 搜索框 -->
<view class="search" bind:tap="navToSearchPage">
<t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="搜索关键词" leftIcon="" disabled>
<t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" />
</t-search>
<!-- 热门搜索 -->
<view class="popular-wrap">
<view class="search-content" wx:if="{{popularWords.length > 0}}">
<view class="search-item" hover-class="hover-history-item" wx:for="{{popularWords}}" data-value="{{item.title}}" bind:tap="handleRecTap" data-index="{{index}}" wx:key="*this">
{{item.title}}
</view>
</view>
<view wx:else class="search-item">
暂无数据
</view>
</view>
</view>
</view>
<view class="home-page-container">
</view>
<t-toast id="t-toast" />