index.axml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <!-- 流调表 & 预约按钮 -->
  54. <form onSubmit="onSubmit" onReset="onReset">
  55. <!-- 流调表 -->
  56. <view class="content-out project-table" a:if="{{setShowForm && formList && formList.length > 0}}">
  57. <view class="title">应疫情防控需要,请您如实填写以下问卷</view>
  58. <!-- 流调表-表单 -->
  59. <view class="project-form">
  60. <block a:for="{{formList}}">
  61. <view class="form-section">
  62. <view class="form-section-title">{{index+1}}. {{item.question}}</view>
  63. <radio-group class="form-section-radio" data-index="{{index}}" data-name="{{`${index+1}&${item.correctAnswerId}`}}"
  64. onChange="onRadioChange" name="{{`${index+1}&${item.correctAnswerId}`}}">
  65. <label class="content-item" a:for="{{item.answerList}}" a:for-item="inner">
  66. <radio color="#1677ff" value="{{inner.optionItemId}}" />
  67. <text class="radio-text">{{inner.optionItemDesc}}</text>
  68. </label>
  69. </radio-group>
  70. </view>
  71. </block>
  72. </view>
  73. </view>
  74. <!-- 预约按钮 -->
  75. <view class="project-button">
  76. <view class="project-button-out">
  77. <view class="title-out">
  78. <view class="title">费用</view>
  79. <view class="money">¥ {{ projectItem.nucleicItemFee ? projectItem.nucleicItemFee : '0.00'}}</view>
  80. </view>
  81. <button disabled="{{disabled}}" loading="{{ loading }}" class="button" size="default" type="primary" formType="submit">{{onlinePay ? '预约并支付' : '立即预约'}}</button>
  82. </view>
  83. </view>
  84. </form>
  85. </view>
  86. <!-- 选择就诊人 -->
  87. <select-person personIndex="{{personIndex}}" show="{{showPerson}}" onClose="onClosePerson" onChange="onPersonChange" defaultList="{{personList}}" />
  88. </view>