文件
jw-beauty/miniprogram/pages/bind-success/bind-success.js
T
GuoguoClaude Opus 4.6 267c75718b fix: resolve multiple miniprogram bugs and extend admin console
- fix manual bind stuck at BLE scan, redirect to bind-success
- add 15s timeout and stopScan to ble-connect
- add stopScan method to ble.js
- add back-to-home button on bind-success page
- fix field name in subscribe-plans (plan -> plan_type)
- fix history.js to handle created_at field
- fix index.js to handle device name field
- add subscription route alias in request.js
- extend admin cloud function from 1 to 9 actions
- add mock mode to admin-console request.js
- remove unused discover page and legacy record function

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 23:28:53 +08:00

22 行
439 B
JavaScript

Page({
data: {
statusBarHeight: 44,
deviceId: '',
trialDays: 7
},
onLoad: function (options) {
var app = getApp()
this.setData({ statusBarHeight: app.globalData.statusBarHeight })
this.setData({ deviceId: options.device_id || '' })
},
onStart: function () {
wx.redirectTo({ url: '/pages/wear-check/wear-check' })
},
onGoHome: function () {
wx.reLaunch({ url: '/pages/index/index' })
}
})