refactor: 完善小程序品牌组件视觉层

This commit is contained in:
que01 committed 2026-09-20 12:05:42 +08:00
1 parent e4adfc6b13
commit 8872316ad3
17 files changed
+72 -10

No files matched your search

@@ -0,0 +1,11 @@
Component({
properties: {
message: { type: String, value: "暂时无法加载内容" },
actionText: { type: String, value: "重新加载" },
},
methods: {
retry() {
this.triggerEvent("retry");
},
},
});
@@ -0,0 +1 @@
{ "component": true }
@@ -0,0 +1 @@
<view class="error"><text class="message">{{message}}</text><button class="retry" bindtap="retry">{{actionText}}</button></view>
@@ -0,0 +1,20 @@
.error {
padding: 72rpx 32rpx;
display: flex;
flex-direction: column;
align-items: center;
color: var(--brand-color-muted);
}
.message {
margin-bottom: 24rpx;
font-size: 28rpx;
}
.retry {
margin: 0;
padding: 0 28rpx;
color: var(--brand-color-primary);
background: var(--brand-color-subtle);
border-radius: 999rpx;
font-size: 26rpx;
line-height: 68rpx;
}