medicalConsultation.axml 862 B

12345678910111213141516171819202122232425262728293031
  1. <import-sjs
  2. name="utils"
  3. from="./index.sjs"
  4. />
  5. <wrapper>
  6. <view class="medical-consultation">
  7. <view class="medical-header-tabs">
  8. <adc-tab
  9. className="activeTab"
  10. tabsName="activeTab"
  11. showPlus="{{ false }}"
  12. onTabClick="onTabClick"
  13. tabBarUnderlineWidth="20px"
  14. tabBarActiveTextColor="#333"
  15. activeTab="{{ activeTab }}"
  16. tabBarUnderlineColor="#333"
  17. tabBarBackgroundColor="transparent"
  18. tabs="{{ utils.getTabs(componentData) }}"
  19. />
  20. </view>
  21. <view class="medical-consultation-content">
  22. <!--医生介绍 -->
  23. <experts-item a:if="{{ activeTab === 0 }}" />
  24. <!--科室介绍 -->
  25. <department-introduction
  26. a:if="{{ activeTab === 1 }}"
  27. dataSource="{{ utils.getServiceList(componentData) }}"
  28. />
  29. </view>
  30. </view>
  31. </wrapper>