index.axml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <view>
  2. <!-- 选择科室 -->
  3. <view class="department-section">
  4. <search-bar
  5. value="{{keyWord}}"
  6. disabled="{{false}}"
  7. maxLength="{{20}}"
  8. placeholder="搜索科室"
  9. onInput="handleInput"
  10. onClear="clearkeyWord"
  11. />
  12. <view style="height:calc( 100vh - {{titleBarHeight}}px - 50px );">
  13. <vtabs
  14. a:if="{{!noData && !showLoading }}"
  15. tabs="{{deparmentList}}"
  16. onTabClick="handleChange"
  17. activeTab="{{activeTab}}"
  18. sameFontSize="{{true}}"
  19. tabBarlineShow="{{true}}"
  20. >
  21. <block a:for="{{deparmentList}}" >
  22. <vtab-content anchor="{{item.anchor}}">
  23. </vtab-content>
  24. </block>
  25. <list>
  26. <block a:for-item="child" a:for="{{chidrenList}}">
  27. <list-item
  28. arrow="{{true}}"
  29. data-departmentId="{{child.departmentId}}"
  30. data-departmentName="{{child.name}}"
  31. onClick="onItemClick"
  32. >
  33. <text class="item-txt">{{child.name}}</text>
  34. </list-item>
  35. </block>
  36. </list>
  37. </vtabs>
  38. </view>
  39. </view>
  40. <hj-loading a:if="{{showLoading}}"></hj-loading>
  41. <view a:if="{{noData}}" style="margin-top: 300rpx;">
  42. <hj-empty onRefresh="handleRefresh" showRefresh="true"> </hj-empty>
  43. </view>
  44. </view>