<view class="container">
  <text class="select-money-title">选择充值金额（元）</text>
  <form class="select-money" bindsubmit="formSubmit">
    <radio-group class="radio-group radio" bindchange="radioChange" >
      <view  wx:for="{{items}}" wx:key="*this">
        <label class="{{selectStyle == item.value?'active':''}}">
          {{item.name}}
          <radio  value="{{item.value}}" checked="" color="#fb752c" hidden='true'></radio>
        </label>
      </view>
      <view>
        <input value="{{inputVal}}" placeholder="请输入金额" type="digit" bindfocus='inputFocus' bindblur='inputBlur' class="{{selectStyle == 'input'?'active':''}}"></input>
      </view>
    </radio-group>
    <view class="agreement">
      <switch type="checkbox" bindchange="switchChange" checked="true"></switch>
      <navigator url="../agreement/agreement" hover-stay-time="0">
        <text>我已阅读并同意《竞买服务协议》</text>
      </navigator>
    </view>
    <button formType="submit" type="primary" disabled="{{disabled}}" bindtap="onRecharge">充值</button>
  </form>
  <view wx:if="{{rechargeAmount}}">您要充值的金额为{{rechargeAmount}}元</view>
  <view wx:else>请选择或输入金额</view>
</view>