index.axml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <import-sjs name="utils" from="./index.sjs"/>
  2. <wrapper>
  3. <view class="hospital-num-source">
  4. <view
  5. class="source-header"
  6. style="top: {{ headerHeight }}px"
  7. >
  8. <date-control
  9. onChange="onChange"
  10. dateList="{{ dateList }}"
  11. />
  12. </view>
  13. <view class="hospital-num-source-content">
  14. <block a:if="{{ nativeList.length > 0 }}">
  15. <block a:for="{{ dataSource }}" a:for-item="p">
  16. <block a:if="{{ p.items.length > 0 }}">
  17. <view class="sub-title">{{ p.name }}</view>
  18. <view class="normal-items">
  19. <view a:for="{{ p.items }}" class="normal-item">
  20. <num-item
  21. item="{{ item }}"
  22. isRange="{{ !!date }}"
  23. isFlex="{{ utils.checkFlex() }}"
  24. componentData="{{ componentData }}"
  25. />
  26. </view>
  27. </view>
  28. </block>
  29. </block>
  30. </block>
  31. <empty
  32. title="抱歉,当日无医生排班"
  33. height="calc(100vh - 2.2rem)"
  34. message="您可以查看其他日期号源"
  35. a:if="{{ !nativeList.length && !loading }}"
  36. />
  37. <view
  38. a:if="{{ loading }}"
  39. class="loading-container"
  40. >
  41. <loading size="48px" />
  42. </view>
  43. <view
  44. class="no-more"
  45. a:if="{{ nativeList.length > 0 && isLastPage }}"
  46. >
  47. ~没有更多了~
  48. </view>
  49. </view>
  50. <modal
  51. show="{{ showModal }}"
  52. onButtonClick="onModalClick"
  53. disableScroll="{{false}}"
  54. zIndex="10"
  55. buttons="{{ [
  56. {
  57. text: modalBtnNum > 0 ? modalBtnNum + 's后可点击' : '确定',
  58. extClass: 'buttonBold',
  59. },
  60. ] }}"
  61. >
  62. <view slot="header">{{ title }}</view>
  63. <mas-adc-rich-pro content="{{ content }}"/>
  64. </modal>
  65. </view>
  66. </wrapper>