hospitalServices.axml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <import-sjs
  2. name="utils"
  3. from="./index.sjs"
  4. />
  5. <wrapper>
  6. <view class="hospital-services-component {{utils.getModelClass(componentData)}}">
  7. <button-auth
  8. item="{{ item }}"
  9. formClass="service-item"
  10. class="service-item-content"
  11. a:for="{{ utils.getList(componentData) }}"
  12. style="{{ utils.getItemStyle(item, imgSrcPrefix)}}"
  13. >
  14. <view class="icon-container">
  15. <image
  16. class="icon-image"
  17. src="{{ utils.getImage(item.icon, imgSrcPrefix) }}"
  18. />
  19. </view>
  20. <view class="left-content">
  21. <view class="title">
  22. <text number-of-lines="1">
  23. {{ item.name }}
  24. </text>
  25. </view>
  26. <view class="desc" a:if="{{ item.serviceDesc }}">
  27. <text number-of-lines="1">
  28. {{ item.serviceDesc }}
  29. </text>
  30. </view>
  31. </view>
  32. <view class="right-content">
  33. <button class="action-button">
  34. {{ item.actionText || '去预约' }}
  35. </button>
  36. </view>
  37. </button-auth>
  38. </view>
  39. </wrapper>