<!--pages/payment-details/payment-details.wxml-->
<wxs src="payment-details.wxs" module="Tools"></wxs>
<view class="container safe_area">

	<view class="cell" wx:for='{{list}}' wx:key='index'>
		<view class="info">
			<text class="title" wx:if='{{type === "integral"}}'>{{Tools.integralInfo(item.pointType)}}</text>
			<text class="title" wx:if='{{type === "wallet"}}'>{{Tools.walltInfo(item.moneyType)}}</text>
			<text class="text">{{item.pointsTime || item.updateDate}}</text>
		</view>
		<view wx:if='{{type === "integral"}}' class="money {{item.points > 0?'ruzhang':''}}">
			{{item.points > 0?'+':''}}{{item.points}}
		</view>
		<view wx:if='{{type === "wallet"}}' class="money {{item.moneyType === 2|| item.moneyType ===  7?'':'ruzhang'}}">
			{{item.moneyType === 2|| item.moneyType ===  7?'-':'+'}}{{item.money}}
		</view>
	</view>
	<empty wx:if='{{!list.length}}' />
</view>