index.html 4.8 KB
<!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="order_top">
        <img src="__TMPL__/public/assets/images/left.png" alt="">
        <p>我的订单</p>
    </div>
    <div class="logistics_box">
        <!-- 商品信息 -->
            <div class="log_detail">
                <div class="log_detailImg">
                    <img src="{:cmf_get_image_url($indent.indent_goods.0.thumbnail)}" alt="">
                </div>
                <div class="log_detailTxt">
                    <h1 class="one-txt-cut">{$indent.indent_goods.0.book_name}</h1>
                    <p>运单号:{$indent.logistic_code}</p>
                    <p>
                        信息来源:
                        <if condition="$indent.logistic_code eq SF">
                            顺丰快递
                            <elseif condition="YTO"/>
                            圆通快递
                            <elseif condition="ZTO"/>
                            中通快递
                            <elseif condition="STO"/>
                            申通快递
                            <elseif condition="YD"/>
                            韵达快递
                            <elseif condition="HHTT"/>
                            天天快递
                            <elseif condition="HTKY"/>
                            百世快递
                            <elseif condition="YZPY"/>
                            邮政快递包裹
                            <elseif condition="EMS"/>
                            EMS
                            <elseif condition="DBL"/>
                            德邦快递
                            <elseif condition="ZJS"/>
                            宅急送
                            <elseif condition="TNT"/>
                            TNT快递
                        </if>
                    </p>
                </div>
            </div>


        <!-- 物流信息 -->
        <div class="logistics_process">
            <empty name="$data.traces">
                暂无物流信息
            </empty>
            <div class="logistics_left">
                <foreach name="$data.traces" item="vo">
                    <div class="log_Li">
                        <div class="log_LiTime">
                            <p class="log_LiTime1">{:date('m-d',strtotime($vo['AcceptTime']))}</p>
                            <p class="log_LiTime2">{:date('H:i',strtotime($vo['AcceptTime']))}</p>
                        </div>
                        <div class="log_Box">
                            <div class="log_Liround"></div>
                            <div class="log_line"></div>
                        </div>
                    </div>
                </foreach>
            </div>
            <div class="logistics_right">
                <foreach name="$data.traces" item="vo">
                    <div class="log_rightTxt">
                        <p class="log_rightTxt1">{$vo.AcceptStation}</p>
                    </div>
                </foreach>
            </div>
        </div>
    </div>
    <script src="__TMPL__/public/assets/js/base.js"></script>
    <script src="__TMPL__/public/assets/js/jquery.js"></script>
    <script>
        var circle = $(".log_Li");
        // console.log(circle);
        var list = $(".log_rightTxt");
        // console.log(list)
        for (var i = 0; i < circle.length; i++) {
            for (var j = 0; j < list.length; j++) {
                if (i == j && i == 0 && j == 0) {
                    var h = $(list[j]).css("height");
                    console.log(h)
                    h = h.split("p");
                    h = parseInt(h[0]);
                    h = h + 20;
                    console.log(h);
                    console.log(h);
                    $(circle[i]).css("height", h + "px");
                    $(circle[i]).find(".log_line").css("height", h + "px");
                } else if (i == j != 0) {
                    var h = $(list[j]).css("height");
                    // console.log(h)
                    h = h.split("p");
                    console.log(h[0]);
                    h = parseInt(h[0]);
                    h = h + 20;
                    console.log(h);
                    $(circle[i]).css("height", h + "px");
                    $(circle[i]).find(".log_line").css("height", h + "px");
                }

            }
        }
    </script>
</body>

</html>