<!--packageH/income/consumeReward/consumeDetails/consumeDetails.wxml-->
<view class="priceItems">
	<view class="priceItem">
		<view class="price">￥{{info.sum_amount}}</view>
		<view class="text">报销总金额</view>
	</view>
	<view class="priceItem">
		<view class="price">￥{{info.settled_amount}}</view>
		<view class="text">已报销金额</view>
	</view>
	<view class="priceItem">
		<view class="price">￥{{info.unsettled_amount}}</view>
		<view class="text">未报销金额</view>
	</view>
</view>

<view class="optItems">
	<view class="optItem">
		<view class="name">报销状态</view>
		<view class="desc">{{info.state_name}}</view>
	</view>
	<view class="optItem">
		<view class="name">报销周期</view>
		<view class="desc">{{info.reward_day}}天</view>
	</view>
	<view class="optItem">
		<view class="name">订单号</view>
		<view class="desc">{{info.order_sn}}</view>
	</view>
	<view class="optItem">
		<view class="name">下单时间</view>
		<view class="desc">{{info.created_at}}</view>
	</view>
	<view class="optItem">
		<view class="name">报销记录</view>
		<view class="desc" bindtap="setRecordFlag">
			<text class="iconfont icon-member-top" wx:if="{{recordFlag}}"></text>
			<text class="iconfont icon-member-bottom" wx:if="{{!recordFlag}}"></text>
		</view>
	</view>
	<view class="optRecord" wx:if="{{recordFlag && info.reward_log.length>0}}">
		<view class="c1">
			<text class="text">报销时间</text>
			<text>报销金额</text>
		</view>
		<view class="c2" wx:for="{{info.reward_log}}">
			<text class="text">{{item.created_at}}</text>
			<text class="price">￥{{item.amount}}</text>
		</view>
	</view>
	<view class="noRecord" wx:if="{{recordFlag && info.reward_log.length==0}}">暂无记录</view>
</view>

