[AI Generated]: fix(*): 修复测试用户ID为64位、限制用户数上限为5、新增WiFi列表为空时的兜底提示UI及样式,并注释本地调试域名

This commit is contained in:
17792275749
2026-04-10 10:34:18 +08:00
parent 571b222ad6
commit 8fd53c074d
4 changed files with 42 additions and 11 deletions
+2
View File
@@ -16,6 +16,8 @@ App({
activeProtocol: null, activeProtocol: null,
domain1: "http://device.shuziweidao.com:80/gateway", // 老版本 没有鉴权 domain1: "http://device.shuziweidao.com:80/gateway", // 老版本 没有鉴权
domain2: "http://device.shuziweidao.com:80/weight", // 新版本 有鉴权 domain2: "http://device.shuziweidao.com:80/weight", // 新版本 有鉴权
// domain1: "http://192.168.1.207:8889", // 老版本 没有鉴权
// domain2: "http://192.168.1.207:8889/weight", // 新版本 有鉴权
wifi: { wifi: {
ssid: "", ssid: "",
password: "" password: ""
@@ -101,7 +101,7 @@ Component({
}, },
addUser() { addUser() {
if (this.data.userList.length >= 10) { if (this.data.userList.length >= 5) {
wx.showToast({ wx.showToast({
title: "超过最大用户数", title: "超过最大用户数",
icon: "none" icon: "none"
@@ -7,18 +7,28 @@
</view> </view>
<view class="progress0_content"> <view class="progress0_content">
<scroll-view class="scrollView" scroll-y> <block wx:if="{{wifiList && wifiList.length}}">
<view class="scrollViewContent"> <scroll-view class="scrollView" scroll-y>
<block wx:for="{{wifiList}}" wx:key="index"> <view class="scrollViewContent">
<view data-item="{{item}}" bind:tap="selectDevice" class="~arrowAfter"> <block wx:for="{{wifiList}}" wx:key="index">
<view> <view data-item="{{item}}" bind:tap="selectDevice" class="~arrowAfter">
<image src="/images/configureDevice/wifi.png" /> <view>
<image src="/images/configureDevice/wifi.png" />
</view>
<view>{{item.ssid}}</view>
</view> </view>
<view>{{item.ssid}}</view> </block>
</view> </view>
</block> </scroll-view>
</block>
<block wx:else>
<view class="nullData" bind:tap="initWifi">
<view>
<image src="/images/configureDevice/null.png" />
</view>
<view>获取WIFI失败</view>
</view> </view>
</scroll-view> </block>
</view> </view>
</view> </view>
</block> </block>
@@ -35,6 +35,25 @@
line-height: 30rpx; line-height: 30rpx;
} }
.nullData {
width: 100%;
padding: 200rpx 0 250rpx;
}
.nullData>view:first-of-type {
width: 230rpx;
height: 160rpx;
margin: 0 auto 15rpx;
}
.nullData>view:last-of-type {
color: #B6B6B6;
height: 30rpx;
font-size: 30rpx;
line-height: 30rpx;
text-align: center;
}
.progress0_content { .progress0_content {
width: 100%; width: 100%;
height: calc(100% - 166rpx); height: calc(100% - 166rpx);