feat: complete feature gaps across all modules

Server:
- Add settings-cache with 60s TTL for feature toggle checks
- Enforce maintenance_mode on login, enable_binding on device bind

Admin console:
- Remove dead "发送通知" button from user detail
- Firmware check calls real API and compares versions

Miniprogram:
- Wear-check: dynamic battery/connected from BLE state
- Login: hide non-functional phone auth button
- Treating: show actual selected regions instead of hardcoded "全脸"
- Index: display subscription status with tap to manage
- Auto-scan: show "待检测" instead of "--" for PD data
- Agreements: tap shows "内容建设中" modal
这个提交包含在:
Guoguo
2026-05-02 08:48:26 -07:00
父节点 1017fb5dae
当前提交 031678c03f
修改 17 个文件,包含 116 行新增12 行删除
+11 -1
查看文件
@@ -7,7 +7,9 @@ Page({
checking: false,
result: null,
error: '',
devMode: false
devMode: false,
battery: 0,
connected: false
},
onBack: function () {
@@ -21,6 +23,11 @@ Page({
onLoad: function () {
var app = getApp()
this.setData({ statusBarHeight: app.globalData.statusBarHeight, devMode: config.__DEV__ || false })
var device = app.globalData.currentDevice || {}
this.setData({
battery: device.battery || 0,
connected: ble.isConnected()
})
},
onShow: function () {
@@ -34,6 +41,9 @@ Page({
if (this._onStatus) ble.off('status', this._onStatus)
this._onStatus = function (status) {
self.setData({ checking: false })
if (status.battery !== undefined) {
self.setData({ battery: status.battery, connected: true })
}
if (status.bind_status === 1) {
self.setData({ result: 'ok' })
} else {