审查视图

public/themes/simpleboot3/portal/logistics/index.html 6.5 KB
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!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">
anyv authored
16 17 18
        <a href="javascript:history.back(-1)">
            <img src="__TMPL__/public/assets/images/left.png" alt="">
        </a>
19
        <p>物流信息</p>
王晓刚 authored
20 21 22 23 24 25 26 27 28
    </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>
29
                    <p>运单号:<notempty name="$indent.logistic_code">{$indent.logistic_code}<else />暂无</notempty></p>
王晓刚 authored
30 31
                    <p>
                        信息来源:
32 33
                        {$indent.logistic_name}
                        <!--
34
                        <if condition="$indent.logistic_name eq 'SF'">
王晓刚 authored
35
                            顺丰快递
36
                            <elseif condition="$indent.logistic_name eq 'YTO'"/>
王晓刚 authored
37
                            圆通快递
38
                            <elseif condition="$indent.logistic_name eq 'ZTO'"/>
王晓刚 authored
39
                            中通快递
40
                            <elseif condition="$indent.logistic_name eq 'STO'"/>
王晓刚 authored
41
                            申通快递
42
                            <elseif condition="$indent.logistic_name eq 'YD'"/>
王晓刚 authored
43
                            韵达快递
44
                            <elseif condition="$indent.logistic_name eq 'HHTT'"/>
王晓刚 authored
45
                            天天快递
46
                            <elseif condition="$indent.logistic_name eq 'HTKY'"/>
王晓刚 authored
47
                            百世快递
48
                            <elseif condition="$indent.logistic_name eq 'YZPY'"/>
王晓刚 authored
49
                            邮政快递包裹
50
                            <elseif condition="$indent.logistic_name eq 'EMS'"/>
王晓刚 authored
51
                            EMS
52
                            <elseif condition="$indent.logistic_name eq 'DBL'"/>
王晓刚 authored
53
                            德邦快递
54
                            <elseif condition="$indent.logistic_name eq 'ZJS'"/>
王晓刚 authored
55
                            宅急送
56
                            <elseif condition="$indent.logistic_name eq 'TNT'"/>
王晓刚 authored
57
                            TNT快递
58
                            <else />
1  
anyv authored
59
                            <if condition="$indent.is_courier eq 1">
5  
anyv authored
60 61 62 63
                                统一配送
                               <else/>
                                暂无
                            </if>
王晓刚 authored
64
                        </if>
65
                        -->
王晓刚 authored
66
                    </p>
王晓刚 authored
67 68 69 70 71
                </div>
            </div>


        <!-- 物流信息 -->
72
        <!--
王晓刚 authored
73 74
        <div class="logistics_process">
            <div class="logistics_left">
75
                <if condition="$data2.is_courier eq 1">
王晓刚 authored
76 77
                    <div class="log_Li">
                        <div class="log_LiTime">
78
                            <p class="log_LiTime1" style="line-height: 1;">{$data2['start_time']}</p>
王晓刚 authored
79 80 81 82 83 84
                        </div>
                        <div class="log_Box">
                            <div class="log_Liround"></div>
                            <div class="log_line"></div>
                        </div>
                    </div>
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
                    <else />
                    <foreach name="$data.traces" item="vo">
                        <div class="log_Li">
                            <div class="log_LiTime">
                                <p class="log_LiTime1" style="line-height: 1;">{:date('m-d',strtotime($vo['AcceptTime']))}</p>
                                <p class="log_LiTime2" style="line-height: 1;">{: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>
                    <empty name="$data.traces">
                        暂无物流信息
                    </empty>
                </if>
王晓刚 authored
102 103
            </div>
            <div class="logistics_right">
104
                <if condition="$data2.is_courier eq 1">
王晓刚 authored
105
                    <div class="log_rightTxt">
106
                        <p class="log_rightTxt1">预计到达</p>
王晓刚 authored
107
                    </div>
108 109 110 111 112 113 114
                    <else />
                    <foreach name="$data.traces" item="vo">
                        <div class="log_rightTxt">
                            <p class="log_rightTxt1">{$vo.AcceptStation}</p>
                        </div>
                    </foreach>
                </if>
王晓刚 authored
115 116
            </div>
        </div>
117
        -->
王晓刚 authored
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
    </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>