|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
|
<title>学考无忧-我的订单</title>
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
|
|
|
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css" />
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<div class="myorder_box">
|
|
|
<!-- 顶部 -->
|
|
|
<div class="order_top">
|
|
|
<img src="__TMPL__/public/assets/images/left.png" alt="" />
|
|
|
<p>我的订单</p>
|
|
|
</div>
|
|
|
<!-- 头部 -->
|
|
|
<div class="myor_title">
|
|
|
<ul>
|
|
|
<li class="<if condition='$state eq 0'>myor_title_active</if>">全部</li>
|
|
|
<li class="<if condition='$state eq 4'>myor_title_active</if>">待付款</li>
|
|
|
<li class="<if condition='$state eq 2'>myor_title_active</if>">待发货</li>
|
|
|
<li class="<if condition='$state eq 5'>myor_title_active</if>">已发货</li>
|
|
|
<li class="<if condition='$state eq 3'>myor_title_active</if>">已完成</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!-- 内容 -->
|
|
|
<div class="myorder_content">
|
|
|
<!-- 全部 -->
|
|
|
<div class="myorder_con1" style="display: block">
|
|
|
<foreach name="data" item="vo">
|
|
|
<a href="">
|
|
|
<div class="myorder_information">
|
|
|
<!-- 订单 -->
|
|
|
<div class="myorder_the">
|
|
|
<p class="order_dan">订单号:{$vo.order_number}</p>
|
|
|
<div class="myorder_state1">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
待付款
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
待发货
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
已发货
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
已完成
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="order_newsUl myorder_border">
|
|
|
<foreach name="$vo.indent_goods" item="i_g">
|
|
|
<li>
|
|
|
<div class="order_newsImg">
|
|
|
<img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" />
|
|
|
</div>
|
|
|
<div class="order_newsCon">
|
|
|
<div class="order_newsTxt1 txt-cut">
|
|
|
{$i_g.book_name}
|
|
|
</div>
|
|
|
<div class="order_newsTxt2">×<span>{$i_g.number}</span></div>
|
|
|
<div class="order_newsTxt3">
|
|
|
<p class="de_topTxt1_1">¥<span>{$i_g.price}</span></p>
|
|
|
<p class="de_topTxt1_2">¥<span>{$i_g.pricing}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
<div class="my_ordera">
|
|
|
<span>共{:count($vo.indent_goods)}件商品 合计:</span>
|
|
|
<p>¥{$vo.money}</p>
|
|
|
</div>
|
|
|
</ul>
|
|
|
<!-- 时间/底部 -->
|
|
|
<div class="myorder_bottom">
|
|
|
<div class="myorder_bottom1">
|
|
|
<div class="myorder_bottom1Img">
|
|
|
<img src="__TMPL__/public/assets/images/52.png" alt="" />
|
|
|
</div>
|
|
|
<p class="myorder_bottom1Txt">{:date('Y-m-d H:i:s',$vo['create_time'])}</p>
|
|
|
</div>
|
|
|
<div class="myorder_bottom2">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<div class="myorder_bottom2_1">取消订单</div>
|
|
|
<div class="myorder_bottom2_2">去支付</div>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<a href="w_Ypayment.html">
|
|
|
<div class="myorder_bottom2_2">查看订单</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
<a href="w_logistics.html">
|
|
|
<div class="myorder_bottom2_2">查看物流</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<div class="myorder_bottom2_2">去评价</div>
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<!-- 待付款 -->
|
|
|
<div class="myorder_con1">
|
|
|
<foreach name="data" item="vo">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<a href="">
|
|
|
<div class="myorder_information">
|
|
|
<!-- 订单 -->
|
|
|
<div class="myorder_the">
|
|
|
<p class="order_dan">订单号:{$vo.order_number}</p>
|
|
|
<div class="myorder_state1">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
待付款
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
待发货
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
已发货
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
已完成
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="order_newsUl myorder_border">
|
|
|
<foreach name="$vo.indent_goods" item="i_g">
|
|
|
<li>
|
|
|
<div class="order_newsImg">
|
|
|
<img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" />
|
|
|
</div>
|
|
|
<div class="order_newsCon">
|
|
|
<div class="order_newsTxt1 txt-cut">
|
|
|
{$i_g.book_name}
|
|
|
</div>
|
|
|
<div class="order_newsTxt2">×<span>{$i_g.number}</span></div>
|
|
|
<div class="order_newsTxt3">
|
|
|
<p class="de_topTxt1_1">¥<span>{$i_g.price}</span></p>
|
|
|
<p class="de_topTxt1_2">¥<span>{$i_g.pricing}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
<div class="my_ordera">
|
|
|
<span>共{:count($vo.indent_goods)}件商品 合计:</span>
|
|
|
<p>¥{$vo.money}</p>
|
|
|
</div>
|
|
|
</ul>
|
|
|
<!-- 时间/底部 -->
|
|
|
<div class="myorder_bottom">
|
|
|
<div class="myorder_bottom1">
|
|
|
<div class="myorder_bottom1Img">
|
|
|
<img src="__TMPL__/public/assets/images/52.png" alt="" />
|
|
|
</div>
|
|
|
<p class="myorder_bottom1Txt">{:date('Y-m-d H:i:s',$vo['create_time'])}</p>
|
|
|
</div>
|
|
|
<div class="myorder_bottom2">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<div class="myorder_bottom2_1">取消订单</div>
|
|
|
<div class="myorder_bottom2_2">去支付</div>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<a href="w_Ypayment.html">
|
|
|
<div class="myorder_bottom2_2">查看订单</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
<a href="w_logistics.html">
|
|
|
<div class="myorder_bottom2_2">查看物流</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<div class="myorder_bottom2_2">去评价</div>
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</if>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<!-- 待发货 -->
|
|
|
<div class="myorder_con1">
|
|
|
<foreach name="data" item="vo">
|
|
|
<if condition="$vo.state eq 2">
|
|
|
<a href="">
|
|
|
<div class="myorder_information">
|
|
|
<!-- 订单 -->
|
|
|
<div class="myorder_the">
|
|
|
<p class="order_dan">订单号:{$vo.order_number}</p>
|
|
|
<div class="myorder_state1">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
待付款
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
待发货
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
已发货
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
已完成
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="order_newsUl myorder_border">
|
|
|
<foreach name="$vo.indent_goods" item="i_g">
|
|
|
<li>
|
|
|
<div class="order_newsImg">
|
|
|
<img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" />
|
|
|
</div>
|
|
|
<div class="order_newsCon">
|
|
|
<div class="order_newsTxt1 txt-cut">
|
|
|
{$i_g.book_name}
|
|
|
</div>
|
|
|
<div class="order_newsTxt2">×<span>{$i_g.number}</span></div>
|
|
|
<div class="order_newsTxt3">
|
|
|
<p class="de_topTxt1_1">¥<span>{$i_g.price}</span></p>
|
|
|
<p class="de_topTxt1_2">¥<span>{$i_g.pricing}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
<div class="my_ordera">
|
|
|
<span>共{:count($vo.indent_goods)}件商品 合计:</span>
|
|
|
<p>¥{$vo.money}</p>
|
|
|
</div>
|
|
|
</ul>
|
|
|
<!-- 时间/底部 -->
|
|
|
<div class="myorder_bottom">
|
|
|
<div class="myorder_bottom1">
|
|
|
<div class="myorder_bottom1Img">
|
|
|
<img src="__TMPL__/public/assets/images/52.png" alt="" />
|
|
|
</div>
|
|
|
<p class="myorder_bottom1Txt">{:date('Y-m-d H:i:s',$vo['create_time'])}</p>
|
|
|
</div>
|
|
|
<div class="myorder_bottom2">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<div class="myorder_bottom2_1">取消订单</div>
|
|
|
<div class="myorder_bottom2_2">去支付</div>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<a href="w_Ypayment.html">
|
|
|
<div class="myorder_bottom2_2">查看订单</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
<a href="w_logistics.html">
|
|
|
<div class="myorder_bottom2_2">查看物流</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<div class="myorder_bottom2_2">去评价</div>
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</if>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<!-- 已发货 -->
|
|
|
<div class="myorder_con1">
|
|
|
<foreach name="data" item="vo">
|
|
|
<if condition="$vo.state eq 5">
|
|
|
<a href="">
|
|
|
<div class="myorder_information">
|
|
|
<!-- 订单 -->
|
|
|
<div class="myorder_the">
|
|
|
<p class="order_dan">订单号:{$vo.order_number}</p>
|
|
|
<div class="myorder_state1">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
待付款
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
待发货
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
已发货
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
已完成
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="order_newsUl myorder_border">
|
|
|
<foreach name="$vo.indent_goods" item="i_g">
|
|
|
<li>
|
|
|
<div class="order_newsImg">
|
|
|
<img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" />
|
|
|
</div>
|
|
|
<div class="order_newsCon">
|
|
|
<div class="order_newsTxt1 txt-cut">
|
|
|
{$i_g.book_name}
|
|
|
</div>
|
|
|
<div class="order_newsTxt2">×<span>{$i_g.number}</span></div>
|
|
|
<div class="order_newsTxt3">
|
|
|
<p class="de_topTxt1_1">¥<span>{$i_g.price}</span></p>
|
|
|
<p class="de_topTxt1_2">¥<span>{$i_g.pricing}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
<div class="my_ordera">
|
|
|
<span>共{:count($vo.indent_goods)}件商品 合计:</span>
|
|
|
<p>¥{$vo.money}</p>
|
|
|
</div>
|
|
|
</ul>
|
|
|
<!-- 时间/底部 -->
|
|
|
<div class="myorder_bottom">
|
|
|
<div class="myorder_bottom1">
|
|
|
<div class="myorder_bottom1Img">
|
|
|
<img src="__TMPL__/public/assets/images/52.png" alt="" />
|
|
|
</div>
|
|
|
<p class="myorder_bottom1Txt">{:date('Y-m-d H:i:s',$vo['create_time'])}</p>
|
|
|
</div>
|
|
|
<div class="myorder_bottom2">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<div class="myorder_bottom2_1">取消订单</div>
|
|
|
<div class="myorder_bottom2_2">去支付</div>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<a href="w_Ypayment.html">
|
|
|
<div class="myorder_bottom2_2">查看订单</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
<a href="w_logistics.html">
|
|
|
<div class="myorder_bottom2_2">查看物流</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<div class="myorder_bottom2_2">去评价</div>
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</if>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
<!-- 已完成 -->
|
|
|
<div class="myorder_con1">
|
|
|
<foreach name="data" item="vo">
|
|
|
<if condition="$vo.state eq 3">
|
|
|
<a href="">
|
|
|
<div class="myorder_information">
|
|
|
<!-- 订单 -->
|
|
|
<div class="myorder_the">
|
|
|
<p class="order_dan">订单号:{$vo.order_number}</p>
|
|
|
<div class="myorder_state1">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
待付款
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
待发货
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
已发货
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
已完成
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ul class="order_newsUl myorder_border">
|
|
|
<foreach name="$vo.indent_goods" item="i_g">
|
|
|
<li>
|
|
|
<div class="order_newsImg">
|
|
|
<img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" />
|
|
|
</div>
|
|
|
<div class="order_newsCon">
|
|
|
<div class="order_newsTxt1 txt-cut">
|
|
|
{$i_g.book_name}
|
|
|
</div>
|
|
|
<div class="order_newsTxt2">×<span>{$i_g.number}</span></div>
|
|
|
<div class="order_newsTxt3">
|
|
|
<p class="de_topTxt1_1">¥<span>{$i_g.price}</span></p>
|
|
|
<p class="de_topTxt1_2">¥<span>{$i_g.pricing}</span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
</foreach>
|
|
|
<div class="my_ordera">
|
|
|
<span>共{:count($vo.indent_goods)}件商品 合计:</span>
|
|
|
<p>¥{$vo.money}</p>
|
|
|
</div>
|
|
|
</ul>
|
|
|
<!-- 时间/底部 -->
|
|
|
<div class="myorder_bottom">
|
|
|
<div class="myorder_bottom1">
|
|
|
<div class="myorder_bottom1Img">
|
|
|
<img src="__TMPL__/public/assets/images/52.png" alt="" />
|
|
|
</div>
|
|
|
<p class="myorder_bottom1Txt">{:date('Y-m-d H:i:s',$vo['create_time'])}</p>
|
|
|
</div>
|
|
|
<div class="myorder_bottom2">
|
|
|
<if condition="$vo.state eq 4">
|
|
|
<div class="myorder_bottom2_1">取消订单</div>
|
|
|
<div class="myorder_bottom2_2">去支付</div>
|
|
|
<elseif condition="$vo.state eq 2"/>
|
|
|
<a href="w_Ypayment.html">
|
|
|
<div class="myorder_bottom2_2">查看订单</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 5"/>
|
|
|
<a href="w_logistics.html">
|
|
|
<div class="myorder_bottom2_2">查看物流</div>
|
|
|
</a>
|
|
|
<elseif condition="$vo.state eq 3"/>
|
|
|
<div class="myorder_bottom2_2">去评价</div>
|
|
|
</if>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</if>
|
|
|
</foreach>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="__TMPL__/public/assets/js/base.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/jquery.js"></script>
|
|
|
<script>
|
|
|
function load(){
|
|
|
var index = $(".myor_title ul li").index($('.myor_title_active'));
|
|
|
$(".myorder_con1").eq(index).show().siblings().hide();
|
|
|
}
|
|
|
$(function() {
|
|
|
load();
|
|
|
// myor_title_active
|
|
|
$(".myor_title ul li").click(function() {
|
|
|
console.log($(this));
|
|
|
$(this)
|
|
|
.addClass("myor_title_active")
|
|
|
.siblings()
|
|
|
.removeClass("myor_title_active");
|
|
|
var index = $(this).index();
|
|
|
$(".myorder_con1")
|
|
|
.eq(index)
|
|
|
.show()
|
|
|
.siblings()
|
|
|
.hide();
|
|
|
});
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|