Refactor: UI & Feature updates (Calculator, UnitConverter, Privacy, Cleanup)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<!--pages/calculator/calculator.wxml-->
|
||||
<view class="calculator-container">
|
||||
<privacy-popup></privacy-popup>
|
||||
<!-- 帮助说明面板 -->
|
||||
<view class="history-panel {{showHelp ? 'show' : ''}}" catchtouchmove="preventTouchMove" style="z-index: 200;">
|
||||
<view class="history-mask" bindtap="toggleHelp"></view>
|
||||
@@ -70,14 +71,30 @@
|
||||
<text class="{{isScientific ? 'active' : ''}}" bindtap="switchMode" data-mode="scientific">科学</text>
|
||||
</view>
|
||||
<view class="top-actions">
|
||||
<view class="action-btn" bindtap="toggleHistory" hover-class="action-btn-hover" hover-stay-time="100">
|
||||
<text class="action-icon">🕐</text>
|
||||
</view>
|
||||
<view class="action-btn" bindtap="copyResult" hover-class="action-btn-hover" hover-stay-time="100">
|
||||
<!-- 复制结果按钮 (带文字) -->
|
||||
<view class="action-btn copy-btn" bindtap="copyResult" hover-class="action-btn-hover" hover-stay-time="100">
|
||||
<text class="action-icon">📋</text>
|
||||
<text class="action-text">复制结果</text>
|
||||
</view>
|
||||
<view class="action-btn" bindtap="toggleHelp" hover-class="action-btn-hover" hover-stay-time="100">
|
||||
<text class="action-icon">❓</text>
|
||||
|
||||
<!-- 设置按钮 (包含历史和帮助) -->
|
||||
<view class="settings-container">
|
||||
<view class="action-btn" bindtap="toggleSettings" hover-class="action-btn-hover" hover-stay-time="100">
|
||||
<text class="action-icon">⚙️</text>
|
||||
</view>
|
||||
<!-- 下拉菜单 -->
|
||||
<view class="dropdown-menu {{showSettingsMenu ? 'show' : ''}}">
|
||||
<view class="menu-item" bindtap="toggleHistory">
|
||||
<text class="menu-icon">🕐</text>
|
||||
<text class="menu-text">历史记录</text>
|
||||
</view>
|
||||
<view class="menu-item" bindtap="toggleHelp">
|
||||
<text class="menu-icon">❓</text>
|
||||
<text class="menu-text">使用帮助</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 点击背景关闭菜单 -->
|
||||
<view class="settings-mask" wx:if="{{showSettingsMenu}}" bindtap="closeSettings"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user