Files
code-bang/frontend/miniapp/pages/home/home.wxml
T
2026-10-28 16:59:16 +08:00

60 lines
2.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="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" height="220rpx;" />
</view>
</view>
<view class="home-page-container">
<view class="home-page-tabs">
<t-tabs t-class="t-tabs" t-class-active="tabs-external__active" t-class-item="tabs-external__item" defaultValue="{{0}}" space-evenly="{{false}}" bind:change="tabChangeHandle">
<t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:if="{{item.key != -1}}" wx:key="index" label="{{item.text}}" value="{{item.key}}" />
</t-tabs>
</view>
<view class="home-card entry-card" wx:if="{{bannerList.length > 0}}">
<view class="entry-swiper">
<t-swiper
autoplay="{{true}}"
duration="{{500}}"
interval="{{5000}}"
navigation="{{bannerNavigation}}"
imageProps="{{bannerImageProps}}"
t-class-nav="entry-swiper__nav"
list="{{bannerList}}"
height="416rpx"
bind:change="onBannerChange"
/>
<view class="entry-swiper__caption" wx:if="{{currentBanner.title || currentBanner.subtitle}}">
<view class="entry-swiper__title" wx:if="{{currentBanner.title}}">{{currentBanner.title}}</view>
<view class="entry-swiper__subtitle" wx:if="{{currentBanner.subtitle}}">{{currentBanner.subtitle}}</view>
</view>
</view>
</view>
<view class="home-card guarantee-card">
<t-cell title="平台保障" bind:click="toSubscribe" description="3分钟客服响应 平台监管售后" align="top" image="/assets/image/baozhang.png" hover bordered="{{false}}" />
</view>
<view class="home-card demand-card">
<view class="demand-card__title">告诉我们你想要什么?</view>
<view class="demand-card__desc">说出你的想法需求,我们安排工程师一对一帮您实现!</view>
<view class="demand-card__actions">
<view class="home-page-padding">
<t-button theme="primary" size="" block bind:tap="publish">
填写你的需求
</t-button>
</view>
<view class="home-page-padding" wx:if="{{role == 'dev'}}">
<t-button theme="default" size="" block bind:tap="toDemandHall">
进入接单大厅
</t-button>
</view>
<view class="home-page-padding" wx:else>
<t-button theme="default" size="" block bind:tap="toDeveloperJoin">
开发者入驻
</t-button>
</view>
</view>
</view>
<t-toast id="t-toast" />
</view>