You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.8 KiB
HTML

5 years ago
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport"
5 years ago
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
5 years ago
<title>订单列表</title>
5 years ago
<link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
<style>
.order-search li dl .order-status{
background-image: url("__IMG__/ssg/order-status.png");
}
.order-search .no-order{
background-image: url("__IMG__/ssg/no-order.png");
}
5 years ago
</style>
5 years ago
</head>
<body>
5 years ago
<div class="page-container ">
<div class="top">
5 years ago
<a href="javascript:history.go(-1);"></a>订单查询
5 years ago
</div>
<div class="order-search">
<if condition="$data_list">
<ul>
<volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_id\'],'{$data[\'user_id\']}')">
<p>订单编号:{$data.order_id}</p>
<dl>
<dt><img src="{$data['icon']|get_cover='path'}"></dt>
<dd class="order-title">{$data['game_name']}</dd>
<if condition="$data['pay_status'] eq '1'">
<dd class="order-status"></dd>
<else />
<if condition="$data['pay_status'] eq '0' and $data['invalid'] eq 0">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}"><dd class="order-pay">立即支付</dd></a>
<else />
<dd class="order-pay" style="color:gray">已失效</dd>
</if>
</if>
<!--
<dd class="order-pay" style="color:gray">已失效</dd>
-->
</dl>
</li>
</volist>
</ul>
<else />
<div class="no-order">
您还没有订单哟~快去下单吧~
</div>
</if>
5 years ago
</div>
<script>
function handleOrderDetail(orderID, state, game_id, user_id) {
5 years ago
if (state == 1) {
//前往详情
window.location.href = "/sdk.php/Ipa365/install_show/order_id/"+orderID+"/game_id/"+game_id+"/user_id/"+user_id;
5 years ago
}
5 years ago
}
</script>
5 years ago
5 years ago
</div>
5 years ago
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="__JS__/ssg/common.js" type="text/javascript"></script>
5 years ago
</body>
</html>