fix: 移除小程序不稳定错误组件依赖

This commit is contained in:
que01 committed 2026-09-20 14:20:24 +08:00
1 parent 38eb3962b2
commit 0fd6c664bf
14 files changed
+42 -45

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@
"navigationBarTextStyle": "black",
"usingComponents": {
"brand-loading": "/components/ui/brand-loading/brand-loading",
"brand-empty": "/components/ui/brand-empty/brand-empty",
"brand-error": "/components/ui/brand-error/brand-error"
"brand-empty": "/components/ui/brand-empty/brand-empty"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
<view class="page">
<view class="heading-row"><text class="heading">我的订单</text><text class="phone" bindtap="contact">☎</text></view>
<brand-loading wx:if="{{loading}}" />
<brand-error wx:elif="{{error}}" message="{{error}}" bind:retry="retry" />
<view wx:elif="{{error}}" class="inline-error"><text>{{error}}</text><button size="mini" bindtap="retry">重新加载</button></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>
+12
View File
@@ -156,3 +156,15 @@
font-size: 56rpx;
line-height: 1;
}
.inline-error {
padding: 72rpx 32rpx;
display: flex;
flex-direction: column;
align-items: center;
color: var(--brand-color-muted);
}
.inline-error button {
margin-top: 24rpx;
color: var(--brand-color-primary);
background: var(--brand-color-subtle);
}