index.axml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!-- 筛选跳转item -->
  2. <import-sjs from="./index.sjs" name="utils"/>
  3. <view class="inpatient-tabs-container">
  4. <!-- tabs按钮 -->
  5. <view class="tabs-out">
  6. <tabs
  7. tabs="{{tabs}}"
  8. tabBarBackgroundColor="transparent"
  9. tabsName="activeTab"
  10. onTabClick="handleTabClick"
  11. activeTab="{{activeIndex}}"
  12. swipeable="{{false}}"
  13. tabBarActiveTextColor="#333"
  14. tabBarUnderlineColor="#1679FF"
  15. tabBarUnderlineHeight="6rpx"
  16. tabBarUnderlineWidth="40rpx"
  17. />
  18. </view>
  19. <!-- 服务list -->
  20. <view class="function-entrance-out">
  21. <view class="function-entrance" a:if="{{ tabs[activeIndex].itemList && tabs[activeIndex].itemList.length > 0 }}">
  22. <block a:for="{{ tabs[activeIndex].itemList }}">
  23. <!-- 小程序自身创建页面跳转 -->
  24. <view a:if="{{item.type === 'create'}}" class="item-width">
  25. <button-auth
  26. style="width:100%"
  27. item="{{utils.getPointList(componentData.serviceList, item.pagePath)}}"
  28. >
  29. <view
  30. data-item="{{ item }}"
  31. class="function-entrance-item"
  32. key="{{ item.id }}"
  33. >
  34. <image src="{{ item.icon }}" class="icon-img" />
  35. <view>{{ item.itemName }}</view>
  36. </view>
  37. </button-auth>
  38. </view>
  39. <!-- 项目内部文件跳转-->
  40. <view
  41. a:else
  42. data-item="{{ item }}"
  43. class="function-entrance-item item-width"
  44. key="{{ item.id }}"
  45. onTap="onClickFunction"
  46. >
  47. <image src="{{ item.icon }}" class="icon-img" />
  48. <view>{{ item.itemName }}</view>
  49. </view>
  50. </block>
  51. </view>
  52. </view>
  53. <!-- 住院人信息 -->
  54. <view class="inpatient-person" a:if="{{tabs[activeIndex].type && tabs[activeIndex].type === 'inpatient' && hospitalRecordList && hospitalRecordList.length > 0 }}">
  55. <view a:for="{{dailyBillList}}" class="inpatient-person-item" data-item="{{item}}" onTap="toDailyBill">
  56. <view class="item-top">
  57. <view class="item-top-name">
  58. <text class="name">{{item.inpatientName}}</text>
  59. <view class="mark" >住院</view>
  60. </view>
  61. <text class="time">{{item.checkInDate.slice(5, 11)}}</text>
  62. </view>
  63. <view class="item-bottom">
  64. <view>今日花费:</view>
  65. <view class="weight distance">¥{{item.spendToday}}</view>
  66. <view>累计花费:</view>
  67. <view class="weight">¥{{item.spendTotal}}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>