<!--packageH/schoolCompany/schoolCompanyIndex/schoolCompanyIndex.wxml-->

<view class="header">
	<image class="face" src="{{userInfo.avatar_img}}"></image>
	<view class="name">{{userInfo.nickname}}</view>
</view>

<view class="bonus">
	<view class="titleBox">
		<text class="title">我的分红</text>
		<text class="small" bindtap="gotoSchoolCompanyExtend">分红记录</text>
		<icon class="iconfont icon-advertise-next" color="#fff"></icon>
	</view>
	<view class="container">
		<view class="item">
			<view class="price">{{userInfo.total_dividend}}</view>
			<view class="text">总奖金</view>
		</view>
		<view class="item">
			<view class="price">{{userInfo.settle_dividend}}</view>
			<view class="text">已结算奖金</view>
		</view>
		<view class="item">
			<view class="price">{{userInfo.unsettle_dividend}}</view>
			<view class="text">未结算奖金</view>
		</view>
	</view>
</view>

<view class="wrapper">
	<view class="title">我的学校</view>
	<view class="listItem">
		<view class="item" wx:for="{{listData}}" data-item="{{item}}" bindtap="gotoSchoolCompanyDetails">
			<image class="bg" mode="aspectFill" src="{{item.has_one_school.thumb_img}}"></image>
			<view class="container">
				<view class="name">{{item.has_one_school.title}}</view>
				<view class="time">成立时间:{{item.has_one_school.created_at}}</view>
				<view class="identity">我的身份:{{item.has_one_roles.title}}</view>
			</view>
		</view>
		<view wx:if="{{networkLoading && listData.length==0}}" class="blank">
			<image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
		</view>
	</view>
</view>