<view class="deposit-container">
  <!-- 就诊人信息 -->
  <view class="person-block" a:if="{{jsonData.Inpatient.inpatientName}}">
    <view>
      <view class="person-name">{{jsonData.Inpatient.inpatientName}}</view>
      <view class="person-info" a:if="{{jsonData.Inpatient}}">
        {{jsonData.Inpatient.sex ? jsonData.Inpatient.sex + '，' : ''}}{{jsonData.Inpatient.inpatientAge ? jsonData.Inpatient.inpatientAge + '岁，' : ''}}{{jsonData.Inpatient.inpatientId ? jsonData.Inpatient.inpatientId : ''}}
      </view>
      <view class="person-balance" a:if="{{jsonData.Inpatient.depositBalance}}">
        押金余额：¥{{jsonData.Inpatient.depositBalance}}
      </view>
    </view>
    <view class="person-change" onTap="onAdmissionRegistration">切换就诊人</view>
  </view>
  <view a:else><button style="margin-bottom: 10px" onTap="addPatientNew">绑定就诊人</button></view>
  <!-- 充值金额 -->
  <view class="detail-block">
    <view class="person-name">充值金额</view>
    <view class="money-block">
      <view a:for="{{moneyArray}}" data-index="{{index}}" onTap="selectMoney" class="money-block-select {{(selectedMoney === index) ? 'selectedMoney' : ''}}">
        {{item}}
      </view>
    </view>
    <view class="money-input-out">
      <view class="money-input-icon">¥</view>
      <input class="money-input" type="number" controlled="{{true}}" value="{{money}}" onBlur="onBlurChange" onFocus="onFocusChange"
        onInput="changeMoney" placeholder="点击输入充值金额" placeholder-style="{{'font-size: 20px'}}" />
    </view>
  </view>
  <view class="submit-block">
    <button class="submit-block-btn" disabled="{{money === null || money === ''}}" onTap="payMoney">立即支付</button>
  </view>
  <!-- 切换就诊人弹框 -->
  <choose-hospital onGetDatas="onGetDatas" selectIndex="{{ selectIndex }}" />
  <!-- 消息订阅组件 -->
  <!-- <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" /> -->
</view>
