超级签H5无订单优化

master
zhengchanglong 5 years ago
parent 622ef0571e
commit 13a4a48c1d

@ -108,7 +108,7 @@ class SsgController extends BaseController {
}
$order_list = M("game_supersign a","tab_")->field("a.order_id, b.game_name, b.icon, b.id as game_id, a.pay_status, a.user_id")->join("tab_game b on a.game_id=b.id")->where(array(
$order_list = M("game_supersign a","tab_")->field("a.order_id, b.game_name, b.icon, b.id as game_id, a.pay_status, a.user_id")->join("left join tab_game b on a.game_id=b.id")->where(array(
'a.user_id' => $user['user_id'],
))->order("a.id")->select();
// pp($order_list);

@ -11,6 +11,10 @@
.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");
}
</style>
</head>
<body>
@ -19,26 +23,30 @@
<a href="javascript:history.go(-1);"></a>订单查询
</div>
<div class="order-search">
<ul>
<volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_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>
</if>
<if condition="$data['pay_status'] eq '0'">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}"><dd class="order-pay">立即支付</dd></a>
</if>
<!--
<dd class="order-pay" style="color:gray">已失效</dd>
-->
</dl>
</li>
</volist>
</ul>
<if condition="$data_list">
<ul>
<volist name="data_list" id="data">
<li onclick="handleOrderDetail('{$data[\'order_id\']}','{$data[\'pay_status\']}','{$data[\'game_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>
</if>
<if condition="$data['pay_status'] eq '0'">
<a href="/sdk.php/Ipa365/pay/game_id/{$data['game_id']}"><dd class="order-pay">立即支付</dd></a>
</if>
<!--
<dd class="order-pay" style="color:gray">已失效</dd>
-->
</dl>
</li>
</volist>
</ul>
<else />
<div class="no-order"></div>
</if>
</div>
<script>
function handleOrderDetail(orderID, state, game_id) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Loading…
Cancel
Save