index.axml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <patient-tabs-pro
  2. showAll="{{ false }}"
  3. hasFilter="{{ false }}"
  4. patientId="{{ patientId }}"
  5. onAutoFilter="onChange"
  6. >
  7. <view class="recharge">
  8. <view class="recharge-block flex">
  9. <view a:if="{{ cardList.length > 0 }}">
  10. <view class="recharge-balance">¥{{ clinicCard.balance }}</view>
  11. <view>就诊卡:{{ clinicCard.cardNum }}</view>
  12. </view>
  13. <view class="theme" a:if="{{ cardList.length > 1 }}" onTap="changePatient">切换就诊卡</view>
  14. </view>
  15. <view class="recharge-block">
  16. <view class="recharge-t">充值金额</view>
  17. <view class="recharge-amount">
  18. <view a:for="{{ amountItem }}" key="{{ item }}"
  19. class="recharge-amount-item {{ amountItemChecked === index ? 'checked' : '' }}" onTap="changeAmount"
  20. data-val="{{ item }}" data-idx="{{ index }}">
  21. ¥{{ item }}
  22. <view class="recharge-amount-icon">
  23. <icon type="success_no_circle" class="icon-s" size="12" color="#fff"/>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="recharge-input">
  28. <view>¥</view>
  29. <input type="digit" controlled="{{ true }}" class="input" onInput="bindKeyInput" placeholder="点击输入充值金额" value="{{ amount }}" placeholder-class="input-placeholder"/>
  30. </view>
  31. </view>
  32. <view class="recharge-block-tip">如需退款请去医院人工窗口咨询</view>
  33. <view class="recharge-fixed">
  34. <button type="primary" disabled="{{ !amount }}" class="recharge-button" loading="{{ loading }}" onTap="onRecharge">充值
  35. </button>
  36. </view>
  37. </view>
  38. <select-card show="{{ modalOpened }}" onClose="onClose" onChange="chooseCard" balance="{{ true }}"
  39. defaultList="{{ cardList }}"/>
  40. </patient-tabs-pro>