index.html 16.1 KB
Newer Older
D
v1.2.0  
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{{include file="public/header" /}}

<!-- header top nav -->
{{include file="public/header_top_nav" /}}

<!-- search -->
{{include file="public/nav_search" /}}

<!-- header nav -->
{{include file="public/header_nav" /}}

<!-- goods category -->
{{include file="public/goods_category" /}}

<!-- content -->
<div class="am-container user-main">

    <!-- user menu start -->
    {{include file="public/user_menu" /}}
    <!-- user menu end -->

    <!-- content start -->
    <div class="user-content">
        <div class="user-content-body">
G
gongfuxiang 已提交
25
            <form class="am-form form-validation form-search" method="post" action="{{:MyUrl('index/order/index')}}" request-type="form">
D
v1.2.0  
devil_gong 已提交
26 27 28 29 30 31 32 33 34
                <div class="thin">
                    <div class="am-input-group am-input-group-sm am-fl so">
                        <input type="text" autocomplete="off" name="keywords" class="am-radius" placeholder="订单号/收件信息" value="{{if !empty($params.keywords)}}{{$params.keywords}}{{/if}}" />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius" type="submit" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                        </span>
                    </div>
                    <label class="am-fl thin_sub more-submit">
                        更多筛选条件
G
gongfuxiang 已提交
35 36 37 38 39 40 41
                        {{if isset($params['is_more']) and $params['is_more'] eq 1}}
                            <input type="checkbox" name="is_more" value="1" id="is_more" checked />
                            <i class="am-icon-angle-up"></i>
                        {{else /}}
                            <input type="checkbox" name="is_more" value="1" id="is_more" />
                            <i class="am-icon-angle-down"></i>
                        {{/if}}
D
v1.2.0  
devil_gong 已提交
42 43 44 45 46 47 48
                    </label>
                </div>
                <table class="so-list more-where {{if !isset($params['is_more'])}}none{{/if}}">
                    <tbody>
                        <tr>
                            <td class="time">
                                <span>时间:</span>
G
gongfuxiang 已提交
49
                                <span>
D
v1.2.0  
devil_gong 已提交
50 51 52
                                    <input type="text" autocomplete="off" name="time_start" class="am-form-field am-input-sm am-radius Wdate" placeholder="起始时间" value="{{if !empty($params.time_start)}}{{$params.time_start}}{{/if}}" data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" autocomplete="off" /><i class="am-icon-calendar"></i>
                                </span>
                                <em class="text-grey">~</em>
G
gongfuxiang 已提交
53
                                <span>
D
v1.2.0  
devil_gong 已提交
54 55 56 57 58
                                    <input type="text" autocomplete="off" name="time_end" class="am-form-field am-input-sm am-radius Wdate" placeholder="结束时间" value="{{if !empty($params.time_end)}}{{$params.time_end}}{{/if}}" pattern="^[0-9]{4}-[0-9]{2}-[0-9]{2}$" data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" autocomplete="off" /><i class="am-icon-calendar"></i>
                                </span>
                            </td>
                            <td class="price">
                                <span>价格:</span>
G
gongfuxiang 已提交
59
                                <span>
D
v1.2.0  
devil_gong 已提交
60 61 62
                                    <input type="text" autocomplete="off" name="price_start" class="am-form-field am-input-sm am-radius" placeholder="最小价格" pattern="^([0-9]{1}\d{0,6})(\.\d{1,2})?$" data-validation-message="价格0~9之间的数字" value="{{if !empty($params.price_start)}}{{$params.price_start}}{{/if}}" />
                                </span>
                                <em class="text-grey">~</em>
G
gongfuxiang 已提交
63
                                <span>
D
v1.2.0  
devil_gong 已提交
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
                                    <input type="text" autocomplete="off" name="price_end" class="am-form-field am-input-sm am-radius" placeholder="最大价格" pattern="^([0-9]{1}\d{0,6})(\.\d{1,2})?$" data-validation-message="价格0~9之间的数字" value="{{if !empty($params.price_end)}}{{$params.price_end}}{{/if}}" />
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span>支付:</span>
                                <select name="payment_id" class="chosen-select" data-placeholder="支付方式...">
                                    <option value="-1">支付方式...</option>
                                    {{if !empty($payment_list)}}
                                        {{foreach $payment_list as $payment}}
                                            <option value="{{$payment.id}}" {{if isset($params['payment_id']) and $params['payment_id'] eq $payment['id']}}selected{{/if}}>{{$payment.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                            <td>
                                <span>付款:</span>
                                <select name="pay_status" class="chosen-select" data-placeholder="付款状态...">
                                    <option value="-1">付款状态...</option>
                                    {{if !empty($common_order_pay_status)}}
                                        {{foreach $common_order_pay_status as $pay}}
                                            <option value="{{$pay.id}}" {{if isset($params['pay_status']) and $params['pay_status'] eq $pay['id']}}selected{{/if}}>{{$pay.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span>状态:</span>
                                <select name="status" class="chosen-select" data-placeholder="订单状态...">
                                    <option value="-1">订单状态...</option>
                                    {{if !empty($common_order_user_status)}}
                                        {{foreach $common_order_user_status as $status}}
                                            <option value="{{$status.id}}" {{if isset($params['status']) and $params['status'] eq $status['id']}}selected{{/if}}>{{$status.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                            <td>
                                <span>评价:</span>
                                <select name="is_comments" class="chosen-select" data-placeholder="评价状态...">
                                    <option value="-1">评价状态...</option>
                                    {{if !empty($common_comments_status_list)}}
                                        {{foreach $common_comments_status_list as $comments}}
                                            <option value="{{$comments.value}}" {{if isset($params['is_comments']) and $params['is_comments'] eq $comments['value']}}selected{{/if}}>{{$comments.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                                <a href="{{:MyUrl('index/order/index')}}" class="am-btn am-btn-warning am-radius am-btn-sm reset-submit">清除条件</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>

            <!-- 订单抬头 -->
            <div class="am-alert am-alert-secondary meila-radius">
                <table class="content-title">
                    <tbody><tr>
                        <th class="row-content">商品</th>
                        <th class="row-price am-hide-sm-only">单价</th>
                        <th class="row-number am-hide-sm-only">数量</th>
                        <th class="row-total-price am-hide-sm-only">合计</th>
                        <th class="row-status">状态</th>
                        <th class="row-operate">操作</th>
                    </tr>
                </tbody></table>
            </div>

            <!-- 订单列表 -->
            {{if !empty($data_list)}}
                {{foreach $data_list as $order}}
                    <table id="data-list-{{$order.id}}" class="data-list {{if $order['status'] LT 4}}data-ongoing{{/if}}">
                        <tr class="content-hd">
                            <td colspan="6">
                                <span class="am-icon-calendar-check-o"> {{$order.add_time}}</span>
                                <span class="am-icon-bookmark-o"> {{$order.order_no}}</span>
                            </td>
                        </tr>
                        {{foreach $order.items as $keys=>$goods}}
                            <tr>
                                <td class="base row-content">
                                    <div class="goods-detail">
                                        <a href="{{$goods.goods_url}}" target="_blank">
                                            <img src="{{$goods.images}}">
                                        </a>
                                        <div class="goods-base">
                                            <a href="{{$goods.goods_url}}" target="_blank" class="goods-title">{{$goods.title}}</a>
                                            {{if !empty($goods.spec)}}
                                                <ul class="goods-attr">
                                                    {{foreach $goods.spec as $spec}}
                                                        <li>{{$spec.type}}:{{$spec.value}}</li>
                                                    {{/foreach}}
                                                </ul>
                                            {{/if}}
                                        </div>
                                    </div>
                                    <div class="wap-base am-show-sm-only">
                                        {{if $goods['original_price'] gt 0}}
                                            <span class="original-price">¥{{$goods.original_price}}</span>
                                        {{/if}}
                                        <strong class="line-price">¥{{$goods.price}}</strong>
                                        <span class="wap-number">x{{$goods.buy_number}}</span>
                                    </div>
                                </td>
                                <td class="row-price am-hide-sm-only">
                                    {{if $goods['original_price'] gt 0}}
                                        <p class="original-price">¥{{$goods.original_price}}</p>
                                    {{/if}}
                                    <p class="line-price">¥{{$goods.price}}</p>
                                </td>
                                <td class="row-number am-hide-sm-only">
                                    x{{$goods.buy_number}}
                                </td>
                                {{if $keys eq 0}}
                                    <td class="row-total-price am-hide-sm-only" rowspan="{{$order.items_count}}">
                                        <strong class="total-price-content">¥{{$order.total_price}}</strong>
                                    </td>
                                    <td class="row-status" rowspan="{{$order.items_count}}">
                                        {{$order.status_name}}
                                        <div class="base-operate">
                                            <a class="block" href="{{:MyUrl('index/order/detail', ['id'=>$order['id']])}}" target="_blank">订单详情</a>
                                        </div>
                                    </td>
                                    <td class="row-operate" rowspan="{{$order.items_count}}">
                                        <!-- 0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭 -->
                                        {{if in_array($order['status'], [0,1])}}
D
devil_gong 已提交
198
                                            <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-icon-paint-brush am-btn-block submit-ajax submit-cancel" data-url="{{:MyUrl('index/order/cancel')}}" data-id="{{$order.id}}" data-view="reload"> 取消</button>
D
v1.2.0  
devil_gong 已提交
199 200
                                        {{/if}}
                                        {{if in_array($order['status'], [1])}}
D
devil_gong 已提交
201
                                            <a class="am-btn am-btn-primary am-btn-xs am-radius am-icon-paypal am-btn-block" href="{{:MyUrl('index/order/detail', ['id'=>$order['id'], 'is_pay_auto'=>1])}}" target="_blank"> 支付</a>
D
v1.2.0  
devil_gong 已提交
202 203
                                        {{/if}}
                                        {{if in_array($order['status'], [3])}}
D
devil_gong 已提交
204
                                            <button type="button" class="am-btn am-btn-secondary am-btn-xs am-radius am-icon-check-circle-o am-btn-block submit-ajax submit-confirm" data-url="{{:MyUrl('index/order/collect')}}" data-id="{{$order.id}}" data-view="reload" data-msg="请仔细确认已收到货物、确认继续吗?"> 收货</button>
D
v1.2.0  
devil_gong 已提交
205 206
                                        {{/if}}
                                        {{if in_array($order['status'], [4]) and $order['user_is_comments'] eq 0}}
D
devil_gong 已提交
207
                                            <a href="{{:MyUrl('index/order/comments', ['id'=>$order['id']])}}" target="_blank" class="am-btn am-btn-primary am-btn-xs am-radius am-icon-heart-o am-btn-block"> 评价</a>
D
v1.2.0  
devil_gong 已提交
208 209
                                        {{/if}}
                                        {{if in_array($order['status'], [4,5,6])}}
D
devil_gong 已提交
210
                                            <button type="button" class="am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o am-btn-block submit-delete" data-url="{{:MyUrl('index/order/delete')}}" data-id="{{$order.id}}" data-view="reload"> 删除</button>
D
v1.2.0  
devil_gong 已提交
211
                                        {{/if}}
D
devil_gong 已提交
212 213 214 215 216 217 218 219 220 221 222 223 224 225

                                        <!-- 钩子订单操作 -->
                                        {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                                            <div class="plugins-tag">
                                                <span>plugins_service_order_handle_operation_html</span>
                                            </div>
                                        {{/if}}
                                        {{if !empty($order['plugins_service_order_handle_operation_html']) and is_array($order['plugins_service_order_handle_operation_html'])}}
                                            {{foreach $order.plugins_service_order_handle_operation_html as $hook}}
                                                {{if is_string($hook) or is_int($hook)}}
                                                    {{$hook|raw}}
                                                {{/if}}
                                            {{/foreach}}
                                        {{/if}}
D
v1.2.0  
devil_gong 已提交
226 227 228 229 230 231 232 233 234
                                    </td>
                                {{/if}}
                            </tr>
                        {{/foreach}}
                    </table>
                {{/foreach}}

                <!-- 分页 -->
                {{$page_html|raw}}
G
gongfuxiang 已提交
235
            {{else /}}
D
v1.2.0  
devil_gong 已提交
236 237 238 239 240 241 242 243 244 245
                <div class="table-no"><i class="am-icon-warning"></i> 没有相关数据</div>
            {{/if}}
        </div>
    </div>
    <!-- content end -->
</div>

<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->