guangrongpaihang.wxml 1.7 KB
<view class="navbar">
	<view class="item {{nav==1?'choose':''}}" bindtap="bindNav" data-nav="{{1}}">志愿者</view>
	<view class="item {{nav==2?'choose':''}}" bindtap="bindNav" data-nav="{{2}}">志愿团队</view>
</view>

<view class="goods_index">

	<view wx:if="{{nav==1}}">
		<!-- 星级 -->
		<view class="navbar">
			<view class="item {{navs==1?'choose':''}}" bindtap="bindtype" data-navs="{{1}}">一星</view>
			<view class="item {{navs==2?'choose':''}}" bindtap="bindtype" data-navs="{{2}}">二星</view>
			<view class="item {{navs==3?'choose':''}}" bindtap="bindtype" data-navs="{{3}}">三星</view>
			<view class="item {{navs==4?'choose':''}}" bindtap="bindtype" data-navs="{{4}}">四星</view>
			<view class="item {{navs==5?'choose':''}}" bindtap="bindtype" data-navs="{{5}}">五星</view>
			<view class="item {{navs==6?'choose':''}}" bindtap="bindtype" data-navs="{{6}}">金牌</view>
		</view>
		<view class="goods_groups">
			<view>排名</view>
			<view>姓名</view>
			<view>地区</view>
			<view>工时</view>
		</view>
		<view wx:if="{{navs}}">
			<view class="goods_groups" wx:for="{{list}}" data-id="{{item.user_id}}" bindtap="getdetail">
				<view>{{index+1}}</view>
				<view>{{item.name}}</view>
				<view>{{item.province}}</view>
				<view>{{item.work_time}}</view>
			</view>
		</view>

	</view>

	<view wx:elif="{{nav==2}}">
		<view class="goods_groups">
			<view>序号</view>
			<view>团队名称</view>
			<view>团队总工时</view>
		</view>
		<view class="goods_groups" wx:for="{{list}}" data-id="{{item.team_id}}" bindtap="getteam">
			<view>{{index+1}}</view>
			<view>{{item.name}}</view>
			<view>{{item.work_time}}</view>

		</view>
	</view>
</view>