Complete core mini program flows
ci-cd / verify (push) Successful in 5s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-04 09:26:58 +08:00
parent 5688db4d63
commit c72cf24f56
28 changed files with 490 additions and 65 deletions
+9 -1
View File
@@ -9,15 +9,23 @@ Page({
},
onLoad(options) {
this.token = options.token;
if (!this.token) this.setData({ status: "分享链接无效" });
},
onShow() {
if (!this.token) return;
this.load();
clearInterval(this.timer);
this.timer = setInterval(() => this.load(), 15000);
},
onHide() {
clearInterval(this.timer);
},
onUnload() {
clearInterval(this.timer);
},
async load() {
try {
const p = await request("/share/walk/" + this.token);
const p = await request("/share/walk/" + this.token, "GET", null, false);
this.setData({
latitude: p.latitude,
longitude: p.longitude,