23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
<!--pages/recharge/index.wxml-->
|
|
<navigator title="充值" />
|
|
<view class="wrapper">
|
|
<view class="chooseMeter">
|
|
充值表号
|
|
<view class="selectMeter">
|
|
<picker bindchange="onChangeCode" value="{{index}}" range="{{codes}}">
|
|
<view class="picker">
|
|
<view class="input border" wx:if="{{code}}">{{code}}</view>
|
|
<view class="input border" style="color: rgb(116, 109, 109)" wx:else>请选择</view>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="moneyBoxs">
|
|
<view wx:for="{{defaultMoneyArray}}" class="moneyBox border radius12" style="background-color: {{moneyIndex === index ? primaryColor : ''}};" bind:tap="chooseMoney" data-money="{{item}}" data-index="{{index}}"> {{item}} </view>
|
|
<view class="moneyBox border radius12" bind:tap="custom"> 自定义 </view>
|
|
</view>
|
|
<view class="customInput border radius12" wx:if="{{customFlag}}" > <input type="number" focus placeholder="请输入要充值的金额" bindinput="onChangeCustomMoney"/> </view>
|
|
<view class="operate">
|
|
<button type="primary" bind:tap="recharge" disabled="{{!code || !money}}"> 充值 </button>
|
|
</view>
|
|
</view> |