index.axml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <view class="project-container">
  2. <view class="project-head"></view>
  3. <view class="project-content">
  4. <!-- 人员信息 -->
  5. <view a:if="{{personItem.name}}" class="content-out project-person">
  6. <view class="person-name" onTap="onOpenPerson">
  7. <view class="person-name-left">
  8. <text class="name">{{personItem.name}}</text>
  9. <view class="mark" a:if="{{personItem.bindCardNum}}">已绑定就诊卡</view>
  10. <view class="mark mark-grey" a:else>未绑定就诊卡</view>
  11. <view class="mark">{{personItem.relationShip === '我自己' ? '本人' : personItem.relationShip}}</view>
  12. </view>
  13. <am-icon type="right" color="#ccc" size="24" />
  14. </view>
  15. <view class="person-other">
  16. <text>
  17. <text a:if="{{personItem.sex}}">{{personItem.sex}}</text>
  18. <text a:if="{{personItem.age}}">,{{personItem.age}}岁</text>
  19. <text a:if="{{personItem.phoneNumber}}">,{{personItem.phoneNumber}}</text>
  20. </text>
  21. </view>
  22. <view class="person-hospital">
  23. <text>就诊医院</text>
  24. <text class="hospital">{{hospitalName}}</text>
  25. </view>
  26. </view>
  27. <!-- 选择项目 -->
  28. <view class="content-out project-select">
  29. <view class="title">请选择项目</view>
  30. <radio-group>
  31. <label a:for="{{projects}}" key="label-{{index}}" class="project-select-label">
  32. <view class="project-select-item" onTap="onChangeProject" data-item="{{item}}">
  33. <view class="item-left">
  34. <view class="radio">
  35. <radio color="#1677ff" value="{{item.nucleicItemId}}" />
  36. </view>
  37. <view>
  38. <view class="name">{{item.nucleicItemName}}</view>
  39. <view class="detail">{{item.nucleicItemDesc}}</view>
  40. </view>
  41. </view>
  42. <view class="item-right"> ¥ {{item.nucleicItemFee}}</view>
  43. </view>
  44. </label>
  45. </radio-group>
  46. </view>
  47. <!-- 选择时间 -->
  48. <view a:if="{{setShowTime}}" class="content-out">
  49. <view class="title">请选择检查时间</view>
  50. <!-- 选择检查时间 -->
  51. <select-time setDayTime="{{setDayTime}}" onChange="onCloseTime" timeList="{{timeList}}" />
  52. </view>
  53. <view a:elif="{{ projects.length <= 0 }}" class="result">
  54. <page-result
  55. type="empty"
  56. title="暂无医生排班信息"
  57. brief=""
  58. footer="{{footer}}"
  59. onTapLeft="onTapLeft"
  60. onTapRight="onTapRight"
  61. class="result" />
  62. </view>
  63. <!-- 流调表 & 预约按钮 -->
  64. <form onSubmit="onSubmit" onReset="onReset">
  65. <!-- 流调表 -->
  66. <view class="content-out project-table" a:if="{{setShowForm && formList && formList.length > 0}}">
  67. <view class="title">应疫情防控需要,请您如实填写以下问卷</view>
  68. <!-- 流调表-表单 -->
  69. <view class="project-form">
  70. <block a:for="{{formList}}">
  71. <view class="form-section">
  72. <view class="form-section-title">{{index+1}}. {{item.question}}</view>
  73. <radio-group class="form-section-radio" data-index="{{index}}" data-name="{{`${index+1}&${item.correctAnswerId}`}}"
  74. onChange="onRadioChange" name="{{`${index+1}&${item.correctAnswerId}`}}">
  75. <label class="content-item" a:for="{{item.answerList}}" a:for-item="inner">
  76. <radio color="#1677ff" value="{{inner.optionItemId}}" />
  77. <text class="radio-text">{{inner.optionItemDesc}}</text>
  78. </label>
  79. </radio-group>
  80. </view>
  81. </block>
  82. </view>
  83. </view>
  84. <!-- 预约按钮 -->
  85. <view class="project-button">
  86. <view class="project-button-out">
  87. <view class="title-out">
  88. <view class="title">费用</view>
  89. <view class="money">¥ {{ projectItem.nucleicItemFee ? projectItem.nucleicItemFee : '0.00'}}</view>
  90. </view>
  91. <button disabled="{{disabled}}" loading="{{ loading }}" class="button" size="default" type="primary" formType="submit">{{onlinePay ? '预约并支付' : '立即预约'}}</button>
  92. </view>
  93. </view>
  94. </form>
  95. </view>
  96. <!-- 选择就诊人 -->
  97. <select-person personIndex="{{personIndex}}" show="{{showPerson}}" onClose="onClosePerson" onChange="onPersonChange" defaultList="{{personList}}" />
  98. </view>