增加小程序,修改游戏前端

This commit is contained in:
2026-02-04 17:29:51 +08:00
parent de17737ca1
commit 8c677908d7
835 changed files with 283328 additions and 2165 deletions

View File

@@ -0,0 +1,31 @@
<view class="container">
<view class="section">
<picker bindchange="bindCategoryChange" value="{{categoryIndex}}" range="{{categories}}">
<view class="picker">
当前分类:{{categories[categoryIndex]}}
</view>
</picker>
</view>
<view class="converter-box">
<view class="input-group">
<input type="digit" placeholder="输入数值" bindinput="bindInput" value="{{inputValue}}" />
<picker bindchange="bindFromUnitChange" value="{{fromIndex}}" range="{{currentUnits}}" range-key="name">
<view class="unit-picker">
{{currentUnits[fromIndex].name}}
</view>
</picker>
</view>
<view class="separator">=</view>
<view class="input-group">
<view class="result-display">{{outputValue}}</view>
<picker bindchange="bindToUnitChange" value="{{toIndex}}" range="{{currentUnits}}" range-key="name">
<view class="unit-picker">
{{currentUnits[toIndex].name}}
</view>
</picker>
</view>
</view>
</view>