feat(equipment): 弹框组件新增转圈加载图标

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-19 14:42:27 +08:00
co-authored by Claude Opus 4.7
parent eaec08a6e4
commit 21020a23b3
3 changed files with 24 additions and 3 deletions
@@ -21,7 +21,16 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 100rpx 40rpx; padding: 64rpx 40rpx 56rpx;
.equipment-spinner {
width: 96rpx;
height: 96rpx;
border: 8rpx solid rgba(19, 133, 250, 0.2);
border-top-color: #1385FA;
border-radius: 50%;
animation: equipment-spin 1s linear infinite;
}
.equipment-title { .equipment-title {
color: #252535; color: #252535;
@@ -29,6 +38,7 @@
font-size: 32rpx; font-size: 32rpx;
line-height: 32rpx; line-height: 32rpx;
text-align: center; text-align: center;
margin-top: 40rpx;
} }
.equipment-content { .equipment-content {
@@ -40,3 +50,13 @@
white-space: pre-line; white-space: pre-line;
} }
} }
@keyframes equipment-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@@ -1,6 +1,7 @@
<block wx:if="{{ show }}"> <block wx:if="{{ show }}">
<view class="equipment-mask" bind:tap="onTapMask"></view> <view class="equipment-mask" bind:tap="onTapMask"></view>
<view class="equipment-panel"> <view class="equipment-panel">
<view class="equipment-spinner"></view>
<view class="equipment-title">{{ title }}</view> <view class="equipment-title">{{ title }}</view>
<view class="equipment-content">{{ content }}</view> <view class="equipment-content">{{ content }}</view>
</view> </view>
+2 -2
View File
@@ -20,8 +20,8 @@ Page({
} }
], ],
loadingShow: true, loadingShow: true,
loadingTitle: '', loadingTitle: '正在连接设备',
loadingContent: '' loadingContent: '请确保设备处于开启状态\n请勿离开...'
}, },
/** 取消配对:使用小程序自带 showModal */ /** 取消配对:使用小程序自带 showModal */