增加小程序,修改游戏前端
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user