Move pet card actions into menu and use circular brand logos
ci-cd / verify (push) Successful in 1m39s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-05 11:38:15 +08:00
parent cb4ffa13e9
commit b1439b0fe5
12 changed files with 69 additions and 29 deletions
+13
View File
@@ -9,6 +9,19 @@ Component({
},
},
methods: {
async more() {
if (this.data.saving) return;
try {
const result = await wx.showActionSheet({
itemList: ["编辑档案", "保存身份卡到相册"],
itemColor: "#795a4b",
});
if (result.tapIndex === 0) this.edit();
else if (result.tapIndex === 1) await this.save();
} catch (error) {
if (!/cancel/.test(error.errMsg || "")) toast(error);
}
},
edit() {
this.triggerEvent("edit", { id: this.data.pet.id });
},