<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>操作日志及交易记录 - KGCMS</title>
	<link rel="stylesheet" href="{{kg['tpl_url']}}mobile/css/order_logs_mobile.css">
	<script src="{{kg['tpl_url']}}mobile/js/jquery-3.2.1.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/weui.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/zepto.min.js"></script>
	<script src="{{kg['tpl_url']}}mobile/js/common.js"></script>
	<script src="{{kg['tpl_url']}}mobile/layer_mobile/layer.js"></script>

</head>
<body ontouchstart>
	{% include 'component_header_mobile.tpl' %}
	<div class="box" >
		<div class="weui-tab__panel">
			<div class="weui-cells_form">
				{%if kg['order_logs']%}
                {% for row in kg['order_logs'] %}
				<div class="weui-cells" >
					<div class="weui-cell" >
						<div class="weui-cell__hd"><label class="weui-label">订单号</label></div>		
						<div class="weui-cell__bd text-danger">{{row['oid']}}</div>					
					</div>
					<div class="weui-cell" >
						<div class="weui-cell__hd"><label class="weui-label">金额</label>	</div>		
						<div class="weui-cell__bd {%if row['amount']>0%} text-success{%else%}text-danger {%endif%}"><span><i class="fa fa-jpy"></i></span> {{row['amount']}}</div>						
					</div>
					<div class="weui-cell" >
						<div class="weui-cell__hd">	<label class="weui-label">下单时间</label></div>		
						<div class="weui-cell__bd">{{row['date']}}</div>						
                    </div>
                    <div class="weui-cell" >
						<div class="weui-cell__hd">	<label class="weui-label">操作类型</label></div>		
						<div class="weui-cell__bd">{{row['type']}}</div>						
					</div>
					<div class="weui-cell" >
						<div class="weui-cell__hd">	<label class="weui-label">操作事件</label></div>		
						<div class="weui-cell__bd">{{row['info']}}</div>						
                    </div>
                    <div class="weui-cell" >
						<div class="weui-cell__hd">	<label class="weui-label">结果</label></div>		
                        {% if row['result'] %}  
                        <div class="weui-cell__bd text-success">交易成功</div>	
                        {% else %}
                        <div class="weui-cell__bd text-danger">交易失败</div>	
                        {% endif %}					
					</div>
				</div>
				{% endfor %}
				{%else%}
				<div class="weui-cells" >
					<div class="weui-cell" >
						<div class="weui-cell__hd" >没有操作日志及交易记录</div>
					</div>
				</div>
				{%endif%}
			</div>
			{% if kg['order_logs'] %}{{kg['page_html']}}{% endif %}
		</div>
    </div>
    {% include 'component_footer_mobile.tpl' %}
 </body>