Files
code-bang/frontend/miniapp/pages/home/home.wxml
T
2026-09-17 16:25:31 +08:00

49 lines
2.5 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">
<t-grid class="block" column="{{4}}" theme="card" border="{{false}}">
<t-grid-item text="Python" image="/assets/image/Python.png" />
<t-grid-item text="C" image="/assets/image/C.png" />
<t-grid-item text="C++" image="/assets/image/C__.png" />
<t-grid-item text="C#" image="/assets/image/C_.png" />
<t-grid-item text="Java" image="/assets/image/Java.png" />
<t-grid-item text="JavaScript" image="/assets/image/JavaScript.png" />
<t-grid-item text="PHP" image="/assets/image/PHP.png" />
<t-grid-item text="Go" image="/assets/image/Go.png" />
</t-grid>
</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="home-page-padding">
<t-button theme="primary" size="" block bind:tap="publish">
填写你的需求
</t-button>
</view>
<view class="home-page-padding">
<t-button wx:if="{{role == 'dev'}}" theme="default" size="" block bind:tap="toDemandHall">
进入接单大厅
</t-button>
<t-button wx:else theme="default" size="" block bind:tap="joinUs">
开发者入驻
</t-button>
</view>
</view>
<t-toast id="t-toast" />
</view>