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,4 @@
{
"navigationBarTitleText": "关于",
"usingComponents": {}
}

View File

@@ -0,0 +1,17 @@
Page({
data: {
version: '1.0.0'
},
onShareAppMessage() {
return {
title: '道棋百宝箱 - 您的日常计算好帮手'
}
},
goToPrivacy() {
wx.navigateTo({
url: '/pages/privacy/privacy'
})
}
});

View File

@@ -0,0 +1,27 @@
<view class="container">
<view class="logo-section">
<view class="logo-placeholder">🧮</view>
<text class="app-name">道棋百宝箱</text>
<text class="version">Version {{version}}</text>
</view>
<view class="content-section">
<view class="section-title">应用简介</view>
<text class="description">
本小程序为实用生活计算工具,提供基础算术、常用单位换算、日期计算、折扣计算等完整功能。
我们致力于为您提供便捷、纯净的日常计算服务,所有数据仅存储于本地,充分保障您的隐私安全。
</text>
</view>
<view class="menu-list">
<view class="menu-item" bindtap="goToPrivacy">
<text>隐私政策</text>
<text class="arrow">></text>
</view>
</view>
<view class="footer">
<text class="copyright">© 2024 道棋百宝箱</text>
</view>
</view>

View File

@@ -0,0 +1,99 @@
page {
background-color: #EBF4F8; /* Color 03 */
}
.container {
padding: 40rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.logo-section {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 60rpx;
margin-top: 40rpx;
}
.logo-placeholder {
font-size: 100rpx;
margin-bottom: 20rpx;
background-color: #fff;
width: 160rpx;
height: 160rpx;
line-height: 160rpx;
text-align: center;
border-radius: 40rpx;
box-shadow: 0 4rpx 12rpx rgba(17, 97, 107, 0.1);
color: #11616B;
}
.app-name {
font-size: 40rpx;
font-weight: bold;
color: #11616B; /* Color 01 */
margin-bottom: 10rpx;
}
.version {
font-size: 24rpx;
color: #7BBDB6; /* Color 02 */
}
.content-section {
width: 100%;
background-color: #fff;
padding: 40rpx;
border-radius: 20rpx;
margin-bottom: 30rpx;
box-sizing: border-box;
box-shadow: 0 4rpx 12rpx rgba(17, 97, 107, 0.05);
}
.section-title {
font-size: 30rpx;
font-weight: bold;
margin-bottom: 20rpx;
color: #11616B; /* Color 01 */
}
.description {
font-size: 28rpx;
color: #555; /* Neutral Dark */
line-height: 1.8;
}
.menu-list {
width: 100%;
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
box-shadow: 0 4rpx 12rpx rgba(17, 97, 107, 0.05);
}
.menu-item {
display: flex;
justify-content: space-between;
padding: 30rpx 40rpx;
font-size: 30rpx;
color: #11616B; /* Color 01 */
}
.menu-item:active {
background-color: #f0f0f0;
}
.arrow {
color: #7BBDB6; /* Color 02 */
}
.footer {
margin-top: 60rpx;
}
.copyright {
font-size: 22rpx;
color: #7BBDB6; /* Color 02 */
}