index.axml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <wrapper>
  2. <view class="patient-detail" hidden="{{ !patient.name }}">
  3. <view class="patient-d-block">
  4. <view class="patient-d-flex">
  5. <view class="patient-d-flex">
  6. <text class="patient-d-name">{{ patient.name }}</text>
  7. <text class="patient-d-rela">{{ patient.relationShip }}</text>
  8. </view>
  9. <view class="patient-d-btn" onTap="onEdit">编辑</view>
  10. </view>
  11. <view>{{ patient.sex }}, {{ patient.age }}岁</view>
  12. <view>证件号码:{{ patient.idCardNo }}</view>
  13. <view>手机号码:{{ patient.phoneNumber }}</view>
  14. </view>
  15. <view a:if="{{ patient.medicCards.length > 1 }}" class="patient-card-num">就诊卡({{ patient.medicCards.length }})</view>
  16. <view class="patient-d-block" a:for="{{ patient.medicCards }}" key="{{ index }}">
  17. <view class="patient-d-wrap">
  18. <view class="patient-d-title">
  19. <view>就诊卡{{ index + 1 }}
  20. <text class="patient-d-rela" a:if="{{ patient.medicCards.length > 1 && patient.bindCardNum === item.cardNum }}">默认</text>
  21. </view>
  22. <view>¥{{ item.balance }}</view>
  23. </view>
  24. <view class="patient-d-flex">
  25. <view>{{ item.cardNum }}</view>
  26. <view class="patient-d-btn" onTap="onPayment" data-id="{{ patient.id }}" data-cardNum="{{ item.cardNum }}">充值</view>
  27. </view>
  28. </view>
  29. <collapse
  30. className="demo-collapse"
  31. collapseKey="collapse-{{ item.cardNum }}"
  32. activeKey="{{ item.expand ? 'item-' + item.cardNum : '' }}"
  33. >
  34. <collapse-item itemKey="item-{{ item.cardNum }}" collapseKey="collapse-{{ item.cardNum }}" showArrow="{{ false }}">
  35. <view slot="am-collapse-item-title" a:if="{{ patient.medicCards.length > 1 }}">
  36. <view class="patient-more">
  37. <image class="patient-more-img" mode="aspectFit" src="https://gw.alipayobjects.com/mdn/rms_373ab8/afts/img/A*ZiZ8Q7RKciEAAAAAAAAAAAAAARQnAQ" />
  38. </view>
  39. </view>
  40. <view class="item-content">
  41. <hj-bar-qr-code value="{{ item.cardNum }}" />
  42. <view class="patient-radio" a:if="{{ patient.medicCards.length > 1 }}">
  43. <label class="patient-label">
  44. <radio data-val="{{ item.cardNum }}" checked="{{ patient.bindCardNum === item.cardNum }}" color="#1677ff" onChange="onChange" />
  45. <text>默认就诊卡</text>
  46. </label>
  47. </view>
  48. </view>
  49. </collapse-item>
  50. </collapse>
  51. </view>
  52. <view class="patient-msg">
  53. <view>温馨提示:</view>
  54. 如就诊卡已不再使用,您可以去医院窗口进行注销
  55. </view>
  56. <view class="patient-button" onTap="openModal">删除就诊人</view>
  57. </view>
  58. <modal
  59. show="{{ modalOpened }}"
  60. showClose="{{ false }}"
  61. onButtonClick="onButtonClick"
  62. buttons="{{ buttons }}"
  63. zIndex="10"
  64. >
  65. <view slot="header">是否删除就诊人</view>
  66. 删除就诊人不会发起退款,就诊卡内余额去线下窗口办理退款
  67. </modal>
  68. </wrapper>