index.axml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 tabs="{{tabs}}" tabBarBackgroundColor="transparent" tabsName="activeTab" onTabClick="handleTabClick" activeTab="{{activeIndex}}"
  7. swipeable="{{false}}" tabBarActiveTextColor="#333" tabBarUnderlineColor="#1679FF" tabBarUnderlineHeight="6rpx" tabBarUnderlineWidth="40rpx" />
  8. </view>
  9. <!-- 服务list -->
  10. <view class="function-entrance-out">
  11. <view class="function-entrance" a:if="{{ tabs[activeIndex].itemList && tabs[activeIndex].itemList.length > 0 }}">
  12. <block a:for="{{ tabs[activeIndex].itemList }}">
  13. <!-- 小程序自身创建页面跳转 -->
  14. <view a:if="{{item.type === 'create'}}" class="item-width">
  15. <button-auth style="width:100%" item="{{utils.getPointList(componentData.serviceList, item.pagePath)}}">
  16. <view data-item="{{ item }}" class="function-entrance-item" key="{{ item.id }}">
  17. <image src="{{ item.icon }}" class="icon-img" />
  18. <view>{{ item.itemName }}</view>
  19. </view>
  20. </button-auth>
  21. </view>
  22. <!-- 项目内部文件跳转-->
  23. <view a:else data-item="{{ item }}" class="function-entrance-item item-width" key="{{ item.id }}" onTap="onClickFunction">
  24. <image src="{{ item.icon }}" class="icon-img" />
  25. <view>{{ item.itemName }}</view>
  26. </view>
  27. </block>
  28. </view>
  29. </view>
  30. <!-- 住院人信息 -->
  31. <view class="inpatient-person" a:if="{{tabs[activeIndex].type && tabs[activeIndex].type === 'inpatient' && showInventoryDay === 'true'}}">
  32. <view a:for="{{dailyBillList}}" class="inpatient-person-item" data-item="{{item}}" onTap="toDailyBill">
  33. <view class="item-top">
  34. <view class="item-top-name">
  35. <text class="name">{{item.inpatientName}}</text>
  36. <view class="mark">住院</view>
  37. </view>
  38. <text class="time">{{item.checkInDate.slice(5, 11)}}</text>
  39. </view>
  40. <view class="item-bottom">
  41. <view>今日花费:</view>
  42. <view class="weight distance">¥{{item.spendToday}}</view>
  43. <view>累计花费:</view>
  44. <view class="weight">¥{{item.spendTotal}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>