index.axml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. <!-- 隐藏充值 -->
  27. <!-- <view class="patient-d-btn" onTap="onPayment" data-id="{{ patient.id }}" data-cardNum="{{ item.cardNum }}">充值</view> -->
  28. </view>
  29. </view>
  30. <collapse
  31. className="demo-collapse"
  32. collapseKey="collapse-{{ item.cardNum }}"
  33. activeKey="{{ item.expand ? 'item-' + item.cardNum : '' }}"
  34. >
  35. <collapse-item itemKey="item-{{ item.cardNum }}" collapseKey="collapse-{{ item.cardNum }}" showArrow="{{ false }}">
  36. <view slot="am-collapse-item-title" a:if="{{ patient.medicCards.length > 1 }}">
  37. <view class="patient-more">
  38. <image class="patient-more-img" mode="aspectFit" src="https://gw.alipayobjects.com/mdn/rms_373ab8/afts/img/A*ZiZ8Q7RKciEAAAAAAAAAAAAAARQnAQ" />
  39. </view>
  40. </view>
  41. <view class="item-content">
  42. <hj-bar-qr-code value="{{ item.cardNum }}" />
  43. <view class="patient-radio" a:if="{{ patient.medicCards.length > 1 }}">
  44. <label class="patient-label">
  45. <radio data-val="{{ item.cardNum }}" checked="{{ patient.bindCardNum === item.cardNum }}" color="#1677ff" onChange="onChange" />
  46. <text>默认就诊卡</text>
  47. </label>
  48. </view>
  49. </view>
  50. </collapse-item>
  51. </collapse>
  52. </view>
  53. <view class="patient-msg">
  54. <view>温馨提示:</view>
  55. 如就诊卡已不再使用,您可以去医院窗口进行注销
  56. </view>
  57. <view class="patient-button" onTap="openModal">删除就诊人</view>
  58. </view>
  59. <modal
  60. show="{{ modalOpened }}"
  61. showClose="{{ false }}"
  62. onButtonClick="onButtonClick"
  63. buttons="{{ buttons }}"
  64. zIndex="10"
  65. >
  66. <view slot="header">是否删除就诊人</view>
  67. 删除就诊人不会发起退款,就诊卡内余额去线下窗口办理退款
  68. </modal>
  69. </wrapper>