index.html 3.8 KB
Newer Older
D
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <legend>
            <span class="fs-16">运费设置</span>
            <a href="{{:MyUrl('admin/pluginsadmin/index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
        </legend>

        <div class="freightfee-content">
D
devil_gong 已提交
12 13 14 15 16 17 18 19 20 21 22
            <div class="items">
                <label>展示名称</label>
                <div>
                    {{if empty($data['show_name'])}}
                        运费
                    {{else /}}
                        {{$data.show_name}}
                    {{/if}}
                </div>
            </div>

D
devil_gong 已提交
23
            <div class="items">
D
devil_gong 已提交
24
                <label>计价方式</label>
D
devil_gong 已提交
25
                <div>
D
devil_gong 已提交
26 27
                    {{if isset($data['valuation']) and $data['valuation'] eq 0}}
                        按件数
D
devil_gong 已提交
28
                    {{else /}}
D
devil_gong 已提交
29
                        按重量
D
devil_gong 已提交
30 31 32 33 34
                    {{/if}}
                </div>
            </div>

            <div class="items">
D
devil_gong 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
                <label>运费模板</label>
                <div class="freightfee-rules">
                    <table class="am-table am-table-striped">
                        {{if empty($data['data'])}}
                            没有配置
                        {{else /}}
                            {{if isset($data['valuation']) and $data['valuation'] eq 0}}
                                <thead>
                                    <tr>
                                        <th>运送到</th>
                                        <th>首件数(件)</th>
                                        <th>首费(元)</th>
                                        <th>续件数(件)</th>
                                        <th>续费(元)</th>
                                    </tr>
                                </thead>
                            {{else /}}
                                <thead>
                                    <tr>
                                        <th>运送到</th>
                                        <th>首件数(kg)</th>
                                        <th>首费(元)</th>
                                        <th>续件数(kg)</th>
                                        <th>续费(元)</th>
                                    </tr>
                                </thead>
                            {{/if}}
                            <tbody>
                                {{foreach $data.data as $k=>$v}}
                                    <tr class="data-list-{{$k}}">
                                        <td class="first">
                                            {{if $v['region'] eq 'default'}}
                                                默认运费
                                            {{else /}}
                                                <div class="region-td">{{$v.region_names}}</div>
                                            {{/if}}
                                        </td>
                                        <td>{{$v.first}}</td>
                                        <td>{{$v.first_price}}</td>
                                        <td>{{$v.continue}}</td>
                                        <td>{{$v.continue_price}}</td>
                                    </tr>
                                {{/foreach}}
                            </tbody>
                        {{/if}}
                    </table>
D
devil_gong 已提交
81 82 83 84 85 86 87 88 89 90 91 92
                </div>
            </div>

            <a href="{{:PluginsAdminUrl('freightfee', 'admin', 'saveinfo')}}" class="am-btn am-btn-secondary am-radius btn-loading-example am-btn-sm am-btn-block edit-submit">编辑</a>
        </div>
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->