Refactor: UI & Feature updates (Calculator, UnitConverter, Privacy, Cleanup)

This commit is contained in:
2026-02-09 01:15:19 +08:00
parent fa1a8e083e
commit 2c5d5b7505
52 changed files with 1351 additions and 2702 deletions

View File

@@ -0,0 +1,28 @@
Page({
data: {
historyList: []
},
onShow() {
const list = wx.getStorageSync('CALC_HISTORY') || [];
this.setData({
historyList: list
});
},
clearHistory() {
wx.showModal({
title: '提示',
content: '确定要清空所有记录吗?',
success: (res) => {
if (res.confirm) {
wx.removeStorageSync('CALC_HISTORY');
this.setData({
historyList: []
});
}
}
});
}
});