index.axml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="deposit-container">
  2. <!-- 就诊人信息 -->
  3. <view class="person-block" a:if="{{jsonData.Inpatient.inpatientName}}">
  4. <view>
  5. <view class="person-name">{{jsonData.Inpatient.inpatientName}}</view>
  6. <view class="person-info" a:if="{{jsonData.Inpatient}}">
  7. {{jsonData.Inpatient.sex ? jsonData.Inpatient.sex + ',' : ''}}{{jsonData.Inpatient.inpatientAge ? jsonData.Inpatient.inpatientAge + '岁,' : ''}}{{jsonData.Inpatient.inpatientId ? jsonData.Inpatient.inpatientId : ''}}
  8. </view>
  9. <view class="person-balance" a:if="{{jsonData.Inpatient.depositBalance}}">
  10. 押金余额:¥{{jsonData.Inpatient.depositBalance}}
  11. </view>
  12. </view>
  13. <view class="person-change" onTap="onAdmissionRegistration">切换就诊人</view>
  14. </view>
  15. <view a:else><button style="margin-bottom: 10px" onTap="addPatientNew">绑定就诊人</button></view>
  16. <!-- 充值金额 -->
  17. <view class="detail-block">
  18. <view class="person-name">充值金额</view>
  19. <view class="money-block">
  20. <view a:for="{{moneyArray}}" data-index="{{index}}" onTap="selectMoney" class="money-block-select {{(selectedMoney === index) ? 'selectedMoney' : ''}}">
  21. {{item}}
  22. </view>
  23. </view>
  24. <view class="money-input-out">
  25. <view class="money-input-icon">¥</view>
  26. <input class="money-input" type="number" controlled="{{true}}" value="{{money}}" onBlur="onBlurChange" onFocus="onFocusChange"
  27. onInput="changeMoney" placeholder="点击输入充值金额" placeholder-style="{{'font-size: 20px'}}" />
  28. </view>
  29. </view>
  30. <view class="submit-block">
  31. <button class="submit-block-btn" disabled="{{money === null || money === ''}}" onTap="payMoney">立即支付</button>
  32. </view>
  33. <!-- 切换就诊人弹框 -->
  34. <choose-hospital onGetDatas="onGetDatas" selectIndex="{{ selectIndex }}" />
  35. <!-- 消息订阅组件 -->
  36. <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" />
  37. </view>