feat: 完成分龄页开发
This commit is contained in:
@@ -186,40 +186,22 @@
|
||||
<!-- <text class="home-section-panel__sub">{{item.subtitle}}</text> -->
|
||||
<scroll-view class="home-track-scroll" scroll-x enable-flex>
|
||||
<view class="home-track-row">
|
||||
<view
|
||||
<worksheet-card
|
||||
wx:for="{{item.items}}"
|
||||
wx:key="id"
|
||||
class="home-track-card"
|
||||
variant="track"
|
||||
title="{{item.title}}"
|
||||
subtitle="{{item.subtitle}}"
|
||||
preview-img="{{item.previewImg}}"
|
||||
icon="{{item.icon}}"
|
||||
age-band="{{item.ageBand}}"
|
||||
difficulty="{{item.difficulty}}"
|
||||
path="{{item.path}}"
|
||||
data-title="{{item.title}}"
|
||||
data-path="{{item.path}}"
|
||||
bindtap="onTapTrackCard">
|
||||
<view class="home-track-card__top">
|
||||
<image
|
||||
wx:if="{{item.previewImg}}"
|
||||
class="home-track-card__cover"
|
||||
src="{{item.previewImg}}"
|
||||
mode="widthFix" />
|
||||
<text wx:else class="home-track-card__icon"
|
||||
>{{item.icon}}</text
|
||||
>
|
||||
<view class="home-track-card__tags">
|
||||
<text class="tag tag--age"
|
||||
>{{item.ageBand}}</text
|
||||
>
|
||||
<text class="tag tag--diff"
|
||||
>{{item.difficulty}}</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-track-card__body">
|
||||
<text class="home-track-card__title"
|
||||
>{{item.title}}</text
|
||||
>
|
||||
<text class="home-track-card__sub"
|
||||
>{{item.subtitle}}</text
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
bindtap="onTapCard"
|
||||
/>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user