recharge.wxml 1.2 KB

12345678910111213141516171819202122232425
  1. <view class="container">
  2. <text class="select-money-title">选择充值金额(元)</text>
  3. <form class="select-money" bindsubmit="formSubmit">
  4. <radio-group class="radio-group radio" bindchange="radioChange" >
  5. <view wx:for="{{items}}" wx:key="*this">
  6. <label class="{{selectStyle == item.value?'active':''}}">
  7. {{item.name}}
  8. <radio value="{{item.value}}" checked="" color="#fb752c" hidden='true'></radio>
  9. </label>
  10. </view>
  11. <view>
  12. <input value="{{inputVal}}" placeholder="请输入金额" type="digit" bindfocus='inputFocus' bindblur='inputBlur' class="{{selectStyle == 'input'?'active':''}}"></input>
  13. </view>
  14. </radio-group>
  15. <view class="agreement">
  16. <switch type="checkbox" bindchange="switchChange" checked="true"></switch>
  17. <navigator url="../agreement/agreement" hover-stay-time="0">
  18. <text>我已阅读并同意《竞买服务协议》</text>
  19. </navigator>
  20. </view>
  21. <button formType="submit" type="primary" disabled="{{disabled}}" bindtap="onRecharge">充值</button>
  22. </form>
  23. <view wx:if="{{rechargeAmount}}">您要充值的金额为{{rechargeAmount}}元</view>
  24. <view wx:else>请选择或输入金额</view>
  25. </view>