123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!-- 筛选跳转item -->
- <import-sjs from="./index.sjs" name="utils" />
- <view class="inpatient-tabs-container">
- <!-- tabs按钮 -->
- <view class="tabs-out">
- <tabs tabs="{{tabs}}" tabBarBackgroundColor="transparent" tabsName="activeTab" onTabClick="handleTabClick" activeTab="{{activeIndex}}"
- swipeable="{{false}}" tabBarActiveTextColor="#333" tabBarUnderlineColor="#1679FF" tabBarUnderlineHeight="6rpx" tabBarUnderlineWidth="40rpx" />
- </view>
- <!-- 服务list -->
- <view class="function-entrance-out">
- <view class="function-entrance" a:if="{{ tabs[activeIndex].itemList && tabs[activeIndex].itemList.length > 0 }}">
- <block a:for="{{ tabs[activeIndex].itemList }}">
- <!-- 小程序自身创建页面跳转 -->
- <view a:if="{{item.type === 'create'}}" class="item-width">
- <button-auth style="width:100%" item="{{utils.getPointList(componentData.serviceList, item.pagePath)}}">
- <view data-item="{{ item }}" class="function-entrance-item" key="{{ item.id }}">
- <image src="{{ item.icon }}" class="icon-img" />
- <view>{{ item.itemName }}</view>
- </view>
- </button-auth>
- </view>
- <!-- 项目内部文件跳转-->
- <view a:else data-item="{{ item }}" class="function-entrance-item item-width" key="{{ item.id }}" onTap="onClickFunction">
- <image src="{{ item.icon }}" class="icon-img" />
- <view>{{ item.itemName }}</view>
- </view>
- </block>
- </view>
- </view>
- <!-- 住院人信息 -->
- <view class="inpatient-person" a:if="{{tabs[activeIndex].type && tabs[activeIndex].type === 'inpatient' && showInventoryDay === 'true'}}">
- <view a:for="{{dailyBillList}}" class="inpatient-person-item" data-item="{{item}}" onTap="toDailyBill">
- <view class="item-top">
- <view class="item-top-name">
- <text class="name">{{item.inpatientName}}</text>
- <view class="mark">住院</view>
- </view>
- <text class="time">{{item.checkInDate.slice(5, 11)}}</text>
- </view>
- <view class="item-bottom">
- <view>今日花费:</view>
- <view class="weight distance">¥{{item.spendToday}}</view>
- <view>累计花费:</view>
- <view class="weight">¥{{item.spendTotal}}</view>
- </view>
- </view>
- </view>
- </view>
|