crew.wxml 2.15 KB
<!--pages/tab/crew/crew.wxml-->
<navigation-bar bindnavbarReady="navbarReady"
                class="navigation-header"
                navStyle="background-color: transparent;box-shadow:none;">
	<view class="page-title">
		团队
	</view>
</navigation-bar>
<view class="bg"></view>
<view class="container"
      scroll-y
      style="padding-top: {{ navBarHeight }}px;">
	<view class="top-box">
		<view class="tab">
			<view class="tab-item {{ tabIndex == index ? 'active' : '' }}"
			      bindtap="changeTab"
			      data-target="{{ item }}"
			      wx:for="{{ tabList }}"
			      wx:key="index">
				{{ item.text }}
			</view>
		</view>
		<view class="scene-tab">
			<view class="scene-tab-item {{ sceneTabIndex == index ? 'active' : '' }}"
			      wx:for="{{ sceneTabList }}"
			      wx:key="index"
			      bindtap="changeSceneTab"
			      data-target="{{ item }}">
				<image wx:if="{{ sceneTabIndex == index }}"
				       src="{{ IMG_URL }}{{ item.icon }}.png"
				       mode="" />
				{{ item.text }}
			</view>
		</view>
		<view class="date">
			<date-screen id="date"
			             bind:search="search"
			             setTrackData="{{ true }}"></date-screen>
		</view>
	</view>
	<scroll-view scroll-y style="height: calc(100% - {{ topBoxHeight }}px);">
		<view class="static-info">
			<view class="static-item"
			      wx:for="{{ staticList }}"
			      style="flex: {{ item.width }}rpx 0 0;background: {{ item.background }};"
			      data-key="{{ item.key }}"
			      bind:tap="handleNavigatePerformance"
			      wx:key="index">
				<view class="label">
					{{ item.label }}
				</view>
				<view class="value">
					{{ staticData[item.key] }}
				</view>
			</view>
		</view>
		<AI-analyse AIContent="{{ AIContent }}" loading="{{ AILoading }}" />
		<employee-ranking id="employee-ranking"
		                  title-icon="{{ IMG_URL }}staff-rank.png"
		                  mode="{{ mode }}"
		                  scene="{{ sceneTabIndex }}"
		                  employee-list="{{ employeeList }}"
		                  local-sort="{{ false }}"
		                  bind:sortChange="onEmployeeSortChange"
		                  bind:employeeTap="onEmployeeTap" />
	</scroll-view>
</view>