<!--packageH/schoolCompany/schoolCompanyDetails/schoolCompanyDetails.wxml-->
<view class="header">
	<view class="con">
		<image class="face" src="{{userInfo.avatar_img}}"></image>
		<view class="name">{{userInfo.nickname}}</view>
	</view>
</view>
<view class="school">
	<image class="bg" mode="aspectFill" src="{{has_one_school.thumb_img}}"></image>
	<view class="container">
		<view class="name">{{has_one_school.title}}</view>
		<view class="identity">成立时间：{{has_one_school.created_at}}</view>
	</view>
</view>

<view class="info">
	<view class="c1">
		<view>
			<text class="text">我的身份:</text>
			<text class="esp">{{has_one_roles.title}}</text>
		</view>
		<view>
			<text class="text">分红比例:</text>
			<text class="esp">{{userInfo.member_school.rate}}%</text>
		</view>
	</view>
	<view class="c2">有效期至{{userInfo.member_school.failure_time}}</view>
</view>


<view class="mouthBonus">
	<text class="text">本月预计分红:</text>
	<text class="esp">{{userInfo.dividend}}</text>
</view>

<view class="mouthBonus">
	<text class="text">学校会员:</text>
	<text class="esp">{{userInfo.total_member}}</text>
</view>


<view class="bonus">
	<view class="titleBox">
		<text class="title">学校总业绩</text>
		<text class="small" bindtap="gotoRecord">历史业绩</text>
		<icon class="iconfont icon-advertise-next" color="#fff"></icon>
	</view>
	<view class="container">
		<view class="item">
			<view class="price">{{userInfo.last_month_amount}}</view>
			<view class="text">上月业绩</view>
		</view>
		<view class="item">
			<view class="price">{{userInfo.month_amount}}</view>
			<view class="text">本月业绩</view>
		</view>
		<view class="item">
			<view class="price">{{userInfo.total_amount}}</view>
			<view class="text">累计业绩</view>
		</view>
	</view>
</view>