功能:新增微信小程序界面

This commit is contained in:
xiaowang
2026-04-01 15:18:35 +08:00
parent bb2d8c4410
commit 7fa67d0511
92 changed files with 7463 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
<navigation-bar title="作品库" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
<view class="page-shell product-page">
<view class="page-content">
<view class="page-hero product-hero">
<text class="hero-kicker">作品筛选</text>
<text class="hero-title">{{selectedCategory !== '全部' ? selectedCategory : '找到适合你的美甲款式'}}</text>
<text class="hero-desc">{{activeBannerText ? activeBannerText : '按标签筛选或输入关键词搜索,先缩小范围,再挑喜欢的作品。'}}</text>
<view class="search-card">
<view class="search-row">
<input
class="search-input"
placeholder="搜索作品名称或关键词"
placeholder-class="field-placeholder"
value="{{searchKeyword}}"
bindinput="handleSearchInput"
bindconfirm="handleSearchConfirm"
confirm-type="search"
/>
<view class="search-btn" bindtap="handleSearchConfirm">搜索</view>
</view>
<scroll-view class="category-scroll" scroll-x enable-flex>
<view class="category-list">
<view
wx:for="{{categories}}"
wx:key="*this"
class="category-item {{selectedCategory === item ? 'active' : ''}}"
data-category="{{item}}"
bindtap="handleSelectCategory"
>
{{item}}
</view>
</view>
</scroll-view>
</view>
</view>
<view class="results-head">
<view class="results-count">{{products.length ? products.length : 0}} 个结果</view>
<view wx:if="{{searchKeyword || selectedCategory !== '全部'}}" class="ghost-btn results-reset" bindtap="handleResetFilters">重置筛选</view>
</view>
<view wx:if="{{activeBannerText}}" class="filter-banner">{{activeBannerText}}</view>
<view wx:if="{{products.length}}" class="product-grid">
<view wx:for="{{products}}" wx:key="id" class="product-grid-item">
<product-card item="{{item}}" show-stats="{{true}}" bindselect="handleProductSelect"></product-card>
</view>
</view>
<view wx:elif="{{loading}}" class="page-card empty-card">
<text class="empty-title">正在加载作品</text>
</view>
<view wx:else class="page-card empty-card">
<text class="empty-title">暂时没有匹配的作品</text>
<text class="empty-desc">可以换个关键词试试,或者先浏览全部作品。</text>
<view class="ghost-btn" bindtap="handleResetFilters">查看全部</view>
</view>
</view>
</view>