feat: 接入小程序品牌组件基础层

This commit is contained in:
que01 committed 2026-09-20 11:33:58 +08:00
1 parent 8fd399f4c2
commit 1a9dc426f6
27 files changed
+158 -9

No files matched your search

+5 -1
View File
@@ -1,5 +1,9 @@
{
"navigationBarTitleText": "我的订单",
"navigationBarBackgroundColor": "#FBF7F1",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "black",
"usingComponents": {
"brand-loading": "/components/ui/brand-loading/brand-loading",
"brand-empty": "/components/ui/brand-empty/brand-empty"
}
}
+2 -2
View File
@@ -1,8 +1,8 @@
<view class="page">
<view class="heading-row"><text class="heading">我的订单</text><text class="phone" bindtap="contact">☎</text></view>
<view wx:if="{{loading}}" class="state">加载中...</view>
<brand-loading wx:if="{{loading}}" />
<view wx:elif="{{error}}" class="state error"><text>{{error}}</text><button size="mini" bindtap="retry">重新加载</button></view>
<view wx:elif="{{!bookings.length}}" class="empty">完成预约后,订单会显示在这里</view>
<brand-empty wx:elif="{{!bookings.length}}" description="完成预约后,订单会显示在这里" />
<block wx:else>
<view class="status-banner"><view><text class="status-title">订单状态</text><text class="status-sub">查看每笔预约的最新进展</text></view><text class="check">✓</text></view>
<view wx:for="{{bookings}}" wx:key="id" class="card">