feat(equipment): 设备WIFI跳转与数据补传入口
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
2595080d9a
commit
431be11ecd
@@ -238,6 +238,22 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
/** 跳转设备 WiFi 配网页 */
|
||||
onTapWifi() {
|
||||
wx.navigateTo({ url: '/pages/connectedWifi/connectedWifi' })
|
||||
},
|
||||
|
||||
/** 数据补传:读取设备端 userId 列表(调试用) */
|
||||
onTapDataRetransfer() {
|
||||
leFuService.fetchDeviceUserIds()
|
||||
.then((list) => {
|
||||
console.log('[数据补传] userId 列表:', list)
|
||||
})
|
||||
.catch(() => {
|
||||
wx.showToast({ title: '请先连接设备', icon: 'none' })
|
||||
})
|
||||
},
|
||||
|
||||
onTapAdd() {
|
||||
wx.navigateTo({ url: '/pages/connectedDevice/connectedDevice' })
|
||||
},
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
<view class="device-actions">
|
||||
<block wx:if="{{item.status}}">
|
||||
<view class="device-action-btn">
|
||||
<view class="device-action-btn" bind:tap="onTapWifi">
|
||||
<view>
|
||||
<image src="/images/equipment/wifi.png"/>
|
||||
</view>
|
||||
@@ -89,7 +89,7 @@
|
||||
<view>用户({{ item.userNum }})</view>
|
||||
</view>
|
||||
<block wx:if="{{item.status}}">
|
||||
<view class="device-action-btn">
|
||||
<view class="device-action-btn" bind:tap="onTapDataRetransfer">
|
||||
<view>
|
||||
<image src="/images/equipment/reload.png"/>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user