init
This commit is contained in:
73
miniprogram/pages/home/home.wxml
Normal file
73
miniprogram/pages/home/home.wxml
Normal file
@@ -0,0 +1,73 @@
|
||||
<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="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>
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<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"
|
||||
value="{{currentTabValue}}"
|
||||
defaultValue="hot"
|
||||
space-evenly="{{false}}"
|
||||
bind:change="tabChangeHandle"
|
||||
>
|
||||
<t-tab-panel
|
||||
wx:for="{{tabList}}"
|
||||
wx:for-index="index"
|
||||
wx:key="index"
|
||||
label="{{item.text}}"
|
||||
value="{{item.key}}"
|
||||
/>
|
||||
</t-tabs>
|
||||
</view>
|
||||
|
||||
<goods-list
|
||||
wr-class="goods-list-container"
|
||||
goodsList="{{goodsList}}"
|
||||
show-cart="{{false}}"
|
||||
bind:click="goodListClickHandle"
|
||||
bind:addcart="goodListAddCartHandle"
|
||||
/>
|
||||
<load-more list-is-empty="{{!goodsList.length}}" status="{{goodsListLoadStatus}}" bind:retry="onReTry">
|
||||
<empty-state
|
||||
slot="empty"
|
||||
title="{{emptyStateConfig.title}}"
|
||||
description="{{emptyStateConfig.description}}"
|
||||
icon="{{emptyStateConfig.icon}}"
|
||||
show-action="{{emptyStateConfig.showAction}}"
|
||||
action-text="{{emptyStateConfig.actionText}}"
|
||||
bind:action="onEmptyAction"
|
||||
/>
|
||||
</load-more>
|
||||
<t-toast id="t-toast" />
|
||||
</view>
|
||||
Reference in New Issue
Block a user