index.html 6.8 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
D
devil_gong 已提交
7
        <form class="am-form view-list" action="{{:MyUrl('admin/apphomenav/index')}}" method="POST">
G
gongfuxiang 已提交
8
            <div class="am-g">
D
devil_gong 已提交
9
                <input type="text" autocomplete="off" class="am-radius form-keyword" placeholder="名称" name="keywords" {{if !empty($params['keywords'])}} value="{{$params.keywords}}"{{/if}} />
D
devil_gong 已提交
10
                <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
G
gongfuxiang 已提交
11
                <label class="fs-12 m-l-5 c-p fw-100 more-submit">
D
devil_gong 已提交
12
                    更多筛选
D
devil_gong 已提交
13
                    <input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($params['is_more']) and $params['is_more'] eq 1}}checked{{/if}} />
G
gongfuxiang 已提交
14 15 16
                    <i class="am-icon-angle-down"></i>
                </label>

D
devil_gong 已提交
17
                <div class="more-where {{if !isset($params['is_more']) or $params['is_more'] neq 1}}none{{/if}}">
G
gongfuxiang 已提交
18
                    <select name="is_enable" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
19 20 21
                        <option value="-1">是否启用</option>
                        {{foreach $common_is_enable_list as $v}}
                            <option value="{{$v.id}}" {{if isset($params['is_enable']) and $params['is_enable'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
G
gongfuxiang 已提交
22 23 24
                        {{/foreach}}
                    </select>
                    <select name="platform" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
25
                        <option value="">所属平台</option>
D
devil_gong 已提交
26
                        {{foreach $common_platform_type as $v}}
G
gongfuxiang 已提交
27
                            {{if !in_array($v['value'], ['pc'])}}
D
devil_gong 已提交
28
                                <option value="{{$v.value}}" {{if isset($params['platform']) and $params['platform'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
G
gongfuxiang 已提交
29 30 31 32
                            {{/if}}
                        {{/foreach}}
                    </select>
                    <select name="event_type" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
33 34 35
                        <option value="-1">事件类型</option>
                        {{foreach $common_app_event_type as $v}}
                            <option value="{{$v.value}}" {{if isset($params['event_type']) and $params['event_type'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
G
gongfuxiang 已提交
36 37 38
                        {{/foreach}}
                    </select>
                    <div class="param-date param-where m-l-5)}}
D
devil_gong 已提交
39
                        <input type="text" autocomplete="off" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_start'])}}value="{{$params.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
40
                        <span>~</span>
D
devil_gong 已提交
41
                        <input type="text" autocomplete="off" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_end'])}}value="{{$params.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
42 43 44 45 46 47 48
                    </div>
                </div>
            </div>
        </form>
        <!-- form end -->

        <!-- operation start -->
D
devil_gong 已提交
49
        <div class="am-g m-t-15">
D
devil_gong 已提交
50
            <a href="{{:MyUrl('admin/apphomenav/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
G
gongfuxiang 已提交
51 52 53 54
        </div>
        <!-- operation end -->

        <!-- list start -->
D
devil_gong 已提交
55
        <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
G
gongfuxiang 已提交
56 57
            <thead>
                <tr>
D
语言  
devil_gong 已提交
58
                    <th>名称</th>
D
devil_gong 已提交
59
                    <th>所属平台</th>
D
语言  
devil_gong 已提交
60
                    <th>导航图标</th>
D
devil_gong 已提交
61 62 63 64
                    <th>事件值</th>
                    <th>是否启用</th>
                    <th>创建时间</th>
                    <th>操作</th>
G
gongfuxiang 已提交
65 66 67
                </tr>
            </thead>
            <tbody>
D
devil_gong 已提交
68 69 70
                {{if !empty($data_list)}}
                    {{foreach $data_list as $v}}
                        <tr id="data-list-{{$v.id}}" {{if $v['is_enable'] eq 0}}class="am-active"{{/if}}>
G
gongfuxiang 已提交
71 72 73 74 75 76 77 78 79
                            <td>{{$v.name}}</td>
                            <td>{{$v.platform_text}}</td>
                            <td>
                                <div class="am-circle nav-icon-circle" {{if !empty($v['bg_color'])}}style="background-color:{{$v.bg_color}};"{{/if}}>
                                    {{if !empty($v['images_url'])}}
                                        <a href="{{$v['images_url']}}" target="_blank">
                                            <img src="{{$v['images_url']}}" class="am-radius" width="30" height="30" />
                                        </a>
                                    {{else /}}
D
devil_gong 已提交
80
                                        <span class="cr-ddd">暂无图片</span>
G
gongfuxiang 已提交
81 82 83 84 85 86 87 88 89 90
                                    {{/if}}
                                </div>
                            </td>
                            <td>
                                {{$v.event_value}}
                                {{if !empty($v['event_value'])}}
                                    <br /><span class="am-badge am-badge-warning am-radius">{{$v.event_type_text}}</span>
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only">
D
devil_gong 已提交
91
                                <a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/apphomenav/statusupdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_enable']}}" data-is-update-status="1"></a>
G
gongfuxiang 已提交
92
                            </td>
D
devil_gong 已提交
93
                            <td>{{$v.add_time_time}}</td>
G
gongfuxiang 已提交
94
                            <td class="view-operation">
D
devil_gong 已提交
95
                                <a href="{{:MyUrl('admin/apphomenav/saveinfo', array_merge($params, ['id'=>$v['id']]))}}">
D
devil_gong 已提交
96
                                    <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> 编辑</button>
G
gongfuxiang 已提交
97
                                </a>
D
devil_gong 已提交
98
                                <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:MyUrl('admin/apphomenav/delete')}}" data-id="{{$v.id}}"> 删除</button>
G
gongfuxiang 已提交
99 100 101 102
                            </td>
                        </tr>
                    {{/foreach}}
                {{else /}}
D
devil_gong 已提交
103
                    <tr><td colspan="20" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
104 105 106 107 108 109
                {{/if}}
            </tbody>
        </table>
        <!-- list end -->

        <!-- page start -->
D
devil_gong 已提交
110 111
        {{if !empty($data_list)}}
            {{$page_html|raw}}
G
gongfuxiang 已提交
112 113 114 115 116 117 118 119 120
        {{/if}}
        <!-- page end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->