chore: remove dead regions param from wear-check

这个提交包含在:
Guoguo
2026-06-29 05:29:51 -07:00
父节点 f85925ecd1
当前提交 b7b76a675d
+3 -5
查看文件
@@ -4,8 +4,7 @@ Page({
data: { data: {
statusBarHeight: 44, statusBarHeight: 44,
battery: 0, battery: 0,
connected: false, connected: false
regions: 0x1F
}, },
onBack: function () { onBack: function () {
@@ -16,12 +15,11 @@ Page({
}) })
}, },
onLoad: function (options) { onLoad: function () {
var app = getApp() var app = getApp()
this.setData({ this.setData({
statusBarHeight: app.globalData.statusBarHeight, statusBarHeight: app.globalData.statusBarHeight,
connected: ble.isConnected(), connected: ble.isConnected()
regions: parseInt(options.regions) || 0x1F
}) })
var device = app.globalData.currentDevice || {} var device = app.globalData.currentDevice || {}
this.setData({ battery: device.battery || 0 }) this.setData({ battery: device.battery || 0 })