<!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"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>订单列表</title>
    <link href="__CSS__/ssg/common.css" rel="stylesheet" type="text/css">
    <script src="__JS__/ssg/flexible.min.js" type="text/javascript"></script>
</head>

<body class="order-box">
    <div class="title">
        <img class="gologin" src="__IMG__/ssg/back.png" style="margin-left:.24rem;" onclick="javascript:history.go(-1)">
        <div style="font-size: .32rem;color: #fff;">订单查询</div>
        <div class="titleright" style="margin-right:.24rem;"></div>
    </div>
    <if condition="$data_list">
        <div style="padding:0 .3rem;">
            <volist name="data_list" id="data">
                <div class="shaddowbox">
                    <div class="box-title">
                        <div class="borderitem">
                            <div class="title-cont">订单编号:{$data.order_id}</div>
                        </div>
                    </div>

                    <if condition="$data['pay_status'] eq '1'">
                        <a href="/mobile.php/Ssg/install_show.html?order_id={$data.order_id}&game_id={$data['game_id']}">
                            <div class="flexitem gamebox">
                                <img src="{$data['icon']|get_cover='path'}">
                                <div class="gameboxname">{$data['game_name']}-超级签</div>
                                <div style="font-size: .24rem;color: #21B1EB;">交易成功</div>
                            </div>
                        </a>
                        <else />
                        <if condition="$data['pay_status'] eq '2'">
                            <div class="flexitem gamebox">
                                <img src="{$data['icon']|get_cover='path'}">
                                <div class="gameboxname">{$data['game_name']}-超级签</div>
                                <div style="font-size: .24rem;color: #FF0000;">交易失败</div>
                            </div>
                        <else />
                            <if condition="$data['pay_status'] eq '0' and $data['invalid'] eq 0">
                                <a href="/mobile.php/Ssg/pay/game_id/{$data['game_id']}">
                                    <div class="flexitem gamebox">
                                        <img src="{$data['icon']|get_cover='path'}">
                                        <div class="gameboxname">{$data['game_name']}-超级签</div>
                                        <div style="font-size: .24rem;">立即支付</div>
                                    </div>
                                </a>
                            <else />
                                <div class="flexitem gamebox">
                                    <img src="{$data['icon']|get_cover='path'}">
                                    <div class="gameboxname">{$data['game_name']}-超级签</div>
                                    <div style="font-size: .24rem;color:#A9A9A9;">已失效</div>
                                </div>
                            </if>
                        </if>
                    </if>
                </div>
            </volist>
        </div>
        <else />
        <div class="page-container" style="background-color: rgba(0,0,0,0);">
            <div class="order-search">
                <div class="no-order">
                    您还没有订单哟~快去下单吧~
                </div>
            </div>
        </div>
    </if>

    <script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="__STATIC__/bg4_4.js"></script>
    <script>
        function handleOrderDetail(orderID, state, game_id, user_id) {
            if (state == 1) {
                //前往详情
                window.location.href = "/sdk.php/Ipa365/install_show/order_id/" + orderID + "/game_id/" + game_id + "/user_id/" + user_id;
            }
        }
    </script>
</body>

</html>