index.axml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <import-sjs name="utils" from="./index.sjs"/>
  2. <wrapper>
  3. <view class="{{ utils.getAllPageClass(componentData) }} tab-services">
  4. <adc-tab
  5. className="activeTab"
  6. tabsName="activeTab"
  7. showPlus="{{ false }}"
  8. onTabClick="handleTabClick"
  9. tabBarUnderlineWidth="20px"
  10. tabBarActiveTextColor="#333"
  11. activeTab="{{ activeTab }}"
  12. tabBarUnderlineColor="#1677FF"
  13. tabBarBackgroundColor="#fff"
  14. tabs="{{tabs}}"
  15. />
  16. </adc-tab>
  17. <view
  18. a:for="{{tabs}}"
  19. key="{{index}}"
  20. a:if="{{ activeTab === index }}">
  21. <view class="tab-content">
  22. <view class="tab-services-wrap">
  23. <button-auth
  24. a:for="{{ item.itemList }}"
  25. a:for-item="button"
  26. a:for-index="idx"
  27. key="{{idx}}"
  28. item="{{ button }}"
  29. formClass="tab-service-form"
  30. class="tab-services-item"
  31. >
  32. <view class="icon-container">
  33. <image
  34. class="icon"
  35. src="{{ button.icon }}"
  36. />
  37. </view>
  38. <view class="title">
  39. <text number-of-lines="1">
  40. {{ button.itemName }}
  41. </text>
  42. </view>
  43. </button-auth>
  44. </view>
  45. <patient-item a:if="{{item.id === 3}}" />
  46. </view>
  47. </view>
  48. </view>
  49. </wrapper>