作者 jinglong
1 个管道 的构建 通过 耗费 7 秒

修改用户提出的问题

@@ -63,7 +63,7 @@ class Banner extends Backend @@ -63,7 +63,7 @@ class Banner extends Backend
63 ->select(); 63 ->select();
64 64
65 foreach ($list as $row) { 65 foreach ($list as $row) {
66 - $row->visible(['id','image','createtime','url']); 66 + $row->visible(['id','image','createtime','url','status']);
67 67
68 } 68 }
69 $list = collection($list)->toArray(); 69 $list = collection($list)->toArray();
@@ -4,6 +4,7 @@ namespace app\admin\controller; @@ -4,6 +4,7 @@ namespace app\admin\controller;
4 4
5 use app\common\controller\Backend; 5 use app\common\controller\Backend;
6 use think\Config; 6 use think\Config;
  7 +use think\Db;
7 8
8 /** 9 /**
9 * 控制台 10 * 控制台
@@ -33,10 +34,13 @@ class Dashboard extends Backend @@ -33,10 +34,13 @@ class Dashboard extends Backend
33 Config::parse($addonComposerCfg, "json", "composer"); 34 Config::parse($addonComposerCfg, "json", "composer");
34 $config = Config::get("composer"); 35 $config = Config::get("composer");
35 $addonVersion = isset($config['version']) ? $config['version'] : __('Unknown'); 36 $addonVersion = isset($config['version']) ? $config['version'] : __('Unknown');
  37 +
  38 + //查询订单数量
  39 + $order_total = Db::name('order')->useSoftDelete('deletetime')->count();
36 $this->view->assign([ 40 $this->view->assign([
37 'totaluser' => 35200, 41 'totaluser' => 35200,
38 'totalviews' => 219390, 42 'totalviews' => 219390,
39 - 'totalorder' => 32143, 43 + 'totalorder' => $order_total,
40 'totalorderamount' => 174800, 44 'totalorderamount' => 174800,
41 'todayuserlogin' => 321, 45 'todayuserlogin' => 321,
42 'todayusersignup' => 430, 46 'todayusersignup' => 430,
@@ -24,7 +24,7 @@ class Ulist extends Backend @@ -24,7 +24,7 @@ class Ulist extends Backend
24 $this->model = new \app\admin\model\Ulist; 24 $this->model = new \app\admin\model\Ulist;
25 //品类分类名称 25 //品类分类名称
26 $res = Db::name('goods')->field('id,type_name,name')->select(); 26 $res = Db::name('goods')->field('id,type_name,name')->select();
27 - $arr = []; 27 + $arr[0] = '请选择商品';
28 foreach($res as $value){ 28 foreach($res as $value){
29 $arr[$value['id']] = $value['name'].'------'.$value['type_name']; 29 $arr[$value['id']] = $value['name'].'------'.$value['type_name'];
30 } 30 }
@@ -69,7 +69,7 @@ class Ulist extends Backend @@ -69,7 +69,7 @@ class Ulist extends Backend
69 ->select(); 69 ->select();
70 70
71 foreach ($list as $row) { 71 foreach ($list as $row) {
72 - $row->visible(['id','title','nickname','image','address','createtime']); 72 + $row->visible(['id','title','nickname','image','address','createtime','status']);
73 $row->visible(['goods']); 73 $row->visible(['goods']);
74 $row->getRelation('goods')->visible(['name','type_name']); 74 $row->getRelation('goods')->visible(['name','type_name']);
75 } 75 }
@@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('banner/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('banner/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('banner/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('banner/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <!--<div class="dropdown btn-group {:$auth->check('banner/multi')?'':'hide'}">-->  
16 - <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->  
17 - <!--<ul class="dropdown-menu text-left" role="menu">-->  
18 - <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->  
19 - <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->  
20 - <!--</ul>-->  
21 - <!--</div>--> 15 + <div class="dropdown btn-group {:$auth->check('banner/multi')?'':'hide'}">
  16 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i>启用</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i>禁用</a></li>
  20 + </ul>
  21 + </div>
22 22
23 23
24 </div> 24 </div>
1 <!-- Logo --> 1 <!-- Logo -->
2 <a href="javascript:;" class="logo"> 2 <a href="javascript:;" class="logo">
3 <!-- 迷你模式下Logo的大小为50X50 --> 3 <!-- 迷你模式下Logo的大小为50X50 -->
4 - <span class="logo-mini">{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'|htmlentities}</span> 4 + <!--<span class="logo-mini">{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'|htmlentities}</span>-->
  5 + <span class="logo-mini">非凡谷VIVAKOOL</span>
5 <!-- 普通模式下Logo --> 6 <!-- 普通模式下Logo -->
6 - <span class="logo-lg"><b>{$site.name|mb_substr=0,4,'utf-8'|htmlentities}</b>{$site.name|mb_substr=4,null,'utf-8'|htmlentities}</span> 7 + <!--<span class="logo-lg"><b>{$site.name|mb_substr=0,4,'utf-8'|htmlentities}</b>{$site.name|mb_substr=4,null,'utf-8'|htmlentities}</span>-->
  8 + <span class="logo-lg">非凡谷VIVAKOOL</span>
7 </a> 9 </a>
8 10
9 <!-- 顶部通栏样式 --> 11 <!-- 顶部通栏样式 -->
@@ -24,30 +26,30 @@ @@ -24,30 +26,30 @@
24 <div class="navbar-custom-menu"> 26 <div class="navbar-custom-menu">
25 <ul class="nav navbar-nav"> 27 <ul class="nav navbar-nav">
26 28
27 - <li>  
28 - <a href="__PUBLIC__" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i></a>  
29 - </li> 29 + <!--<li>-->
  30 + <!--<a href="__PUBLIC__" target="_blank"><i class="fa fa-home" style="font-size:14px;"></i></a>-->
  31 + <!--</li>-->
30 32
31 - <!-- 账号信息下拉框 -->  
32 - <li class="hidden-xs">  
33 - <a href="javascript:;" data-toggle="checkupdate" title="{:__('Check for updates')}">  
34 - <i class="fa fa-refresh"></i>  
35 - </a>  
36 - </li> 33 + <!--&lt;!&ndash; 账号信息下拉框 &ndash;&gt;-->
  34 + <!--<li class="hidden-xs">-->
  35 + <!--<a href="javascript:;" data-toggle="checkupdate" title="{:__('Check for updates')}">-->
  36 + <!--<i class="fa fa-refresh"></i>-->
  37 + <!--</a>-->
  38 + <!--</li>-->
37 39
38 - <!-- 清除缓存 -->  
39 - <li>  
40 - <a href="javascript:;" data-toggle="dropdown" title="{:__('Wipe cache')}">  
41 - <i class="fa fa-trash"></i>  
42 - </a>  
43 - <ul class="dropdown-menu wipecache">  
44 - <li><a href="javascript:;" data-type="all"><i class="fa fa-trash"></i> {:__('Wipe all cache')}</a></li>  
45 - <li class="divider"></li>  
46 - <li><a href="javascript:;" data-type="content"><i class="fa fa-file-text"></i> {:__('Wipe content cache')}</a></li>  
47 - <li><a href="javascript:;" data-type="template"><i class="fa fa-file-image-o"></i> {:__('Wipe template cache')}</a></li>  
48 - <li><a href="javascript:;" data-type="addons"><i class="fa fa-rocket"></i> {:__('Wipe addons cache')}</a></li>  
49 - </ul>  
50 - </li> 40 + <!--&lt;!&ndash; 清除缓存 &ndash;&gt;-->
  41 + <!--<li>-->
  42 + <!--<a href="javascript:;" data-toggle="dropdown" title="{:__('Wipe cache')}">-->
  43 + <!--<i class="fa fa-trash"></i>-->
  44 + <!--</a>-->
  45 + <!--<ul class="dropdown-menu wipecache">-->
  46 + <!--<li><a href="javascript:;" data-type="all"><i class="fa fa-trash"></i> {:__('Wipe all cache')}</a></li>-->
  47 + <!--<li class="divider"></li>-->
  48 + <!--<li><a href="javascript:;" data-type="content"><i class="fa fa-file-text"></i> {:__('Wipe content cache')}</a></li>-->
  49 + <!--<li><a href="javascript:;" data-type="template"><i class="fa fa-file-image-o"></i> {:__('Wipe template cache')}</a></li>-->
  50 + <!--<li><a href="javascript:;" data-type="addons"><i class="fa fa-rocket"></i> {:__('Wipe addons cache')}</a></li>-->
  51 + <!--</ul>-->
  52 + <!--</li>-->
51 53
52 <!-- 多语言列表 --> 54 <!-- 多语言列表 -->
53 {if $Think.config.lang_switch_on} 55 {if $Think.config.lang_switch_on}
1 <style type="text/css"> 1 <style type="text/css">
2 .sm-st { 2 .sm-st {
3 - background: #fff;  
4 - padding: 20px;  
5 - -webkit-border-radius: 3px;  
6 - -moz-border-radius: 3px;  
7 - border-radius: 3px;  
8 - margin-bottom: 20px;  
9 - -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);  
10 - box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05); 3 + background:#fff;
  4 + padding:20px;
  5 + -webkit-border-radius:3px;
  6 + -moz-border-radius:3px;
  7 + border-radius:3px;
  8 + margin-bottom:20px;
  9 + -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
  10 + box-shadow: 0 1px 0px rgba(0,0,0,0.05);
11 } 11 }
12 -  
13 .sm-st-icon { 12 .sm-st-icon {
14 - width: 60px;  
15 - height: 60px;  
16 - display: inline-block;  
17 - line-height: 60px;  
18 - text-align: center;  
19 - font-size: 30px;  
20 - background: #eee;  
21 - -webkit-border-radius: 5px;  
22 - -moz-border-radius: 5px;  
23 - border-radius: 5px;  
24 - float: left;  
25 - margin-right: 10px;  
26 - color: #fff; 13 + width:60px;
  14 + height:60px;
  15 + display:inline-block;
  16 + line-height:60px;
  17 + text-align:center;
  18 + font-size:30px;
  19 + background:#eee;
  20 + -webkit-border-radius:5px;
  21 + -moz-border-radius:5px;
  22 + border-radius:5px;
  23 + float:left;
  24 + margin-right:10px;
  25 + color:#fff;
27 } 26 }
28 -  
29 .sm-st-info { 27 .sm-st-info {
30 - font-size: 12px;  
31 - padding-top: 2px; 28 + font-size:12px;
  29 + padding-top:2px;
32 } 30 }
33 -  
34 .sm-st-info span { 31 .sm-st-info span {
35 - display: block;  
36 - font-size: 24px;  
37 - font-weight: 600; 32 + display:block;
  33 + font-size:24px;
  34 + font-weight:600;
38 } 35 }
39 -  
40 .orange { 36 .orange {
41 - background: #fa8564 !important; 37 + background:#fa8564 !important;
42 } 38 }
43 -  
44 .tar { 39 .tar {
45 - background: #45cf95 !important; 40 + background:#45cf95 !important;
46 } 41 }
47 -  
48 .sm-st .green { 42 .sm-st .green {
49 - background: #86ba41 !important; 43 + background:#86ba41 !important;
50 } 44 }
51 -  
52 .pink { 45 .pink {
53 - background: #AC75F0 !important; 46 + background:#AC75F0 !important;
54 } 47 }
55 -  
56 .yellow-b { 48 .yellow-b {
57 background: #fdd752 !important; 49 background: #fdd752 !important;
58 } 50 }
59 -  
60 .stat-elem { 51 .stat-elem {
61 52
62 background-color: #fff; 53 background-color: #fff;
@@ -67,12 +58,12 @@ @@ -67,12 +58,12 @@
67 58
68 .stat-info { 59 .stat-info {
69 text-align: center; 60 text-align: center;
70 - background-color: #fff; 61 + background-color:#fff;
71 border-radius: 5px; 62 border-radius: 5px;
72 margin-top: -5px; 63 margin-top: -5px;
73 padding: 8px; 64 padding: 8px;
74 - -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);  
75 - box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05); 65 + -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
  66 + box-shadow: 0 1px 0px rgba(0,0,0,0.05);
76 font-style: italic; 67 font-style: italic;
77 } 68 }
78 69
@@ -84,15 +75,12 @@ @@ -84,15 +75,12 @@
84 .st-red { 75 .st-red {
85 background-color: #F05050; 76 background-color: #F05050;
86 } 77 }
87 -  
88 .st-green { 78 .st-green {
89 background-color: #27C24C; 79 background-color: #27C24C;
90 } 80 }
91 -  
92 .st-violet { 81 .st-violet {
93 background-color: #7266ba; 82 background-color: #7266ba;
94 } 83 }
95 -  
96 .st-blue { 84 .st-blue {
97 background-color: #23b7e5; 85 background-color: #23b7e5;
98 } 86 }
@@ -104,7 +92,7 @@ @@ -104,7 +92,7 @@
104 text-align: center; 92 text-align: center;
105 vertical-align: middle; 93 vertical-align: middle;
106 width: 50px; 94 width: 50px;
107 - float: left; 95 + float:left;
108 } 96 }
109 97
110 .stat { 98 .stat {
@@ -112,42 +100,26 @@ @@ -112,42 +100,26 @@
112 overflow: hidden; 100 overflow: hidden;
113 text-overflow: ellipsis; 101 text-overflow: ellipsis;
114 display: inline-block; 102 display: inline-block;
115 - margin-right: 10px;  
116 - }  
117 - 103 + margin-right: 10px; }
118 .stat .value { 104 .stat .value {
119 font-size: 20px; 105 font-size: 20px;
120 line-height: 24px; 106 line-height: 24px;
121 overflow: hidden; 107 overflow: hidden;
122 text-overflow: ellipsis; 108 text-overflow: ellipsis;
123 - font-weight: 500;  
124 - }  
125 - 109 + font-weight: 500; }
126 .stat .name { 110 .stat .name {
127 overflow: hidden; 111 overflow: hidden;
128 - text-overflow: ellipsis;  
129 - }  
130 - 112 + text-overflow: ellipsis; }
131 .stat.lg .value { 113 .stat.lg .value {
132 font-size: 26px; 114 font-size: 26px;
133 - line-height: 28px;  
134 - }  
135 - 115 + line-height: 28px; }
136 .stat.lg .name { 116 .stat.lg .name {
137 - font-size: 16px;  
138 - }  
139 -  
140 - .stat-col .progress {  
141 - height: 2px;  
142 - }  
143 -  
144 - .stat-col .progress-bar {  
145 - line-height: 2px;  
146 - height: 2px;  
147 - } 117 + font-size: 16px; }
  118 + .stat-col .progress {height:2px;}
  119 + .stat-col .progress-bar {line-height:2px;height:2px;}
148 120
149 .item { 121 .item {
150 - padding: 30px 0; 122 + padding:30px 0;
151 } 123 }
152 </style> 124 </style>
153 {if preg_match('/\/admin\/|admin\.php|admin_d75KABNWt\.php/i', url())} 125 {if preg_match('/\/admin\/|admin\.php|admin_d75KABNWt\.php/i', url())}
@@ -163,346 +135,328 @@ @@ -163,346 +135,328 @@
163 <!--<li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>--> 135 <!--<li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>-->
164 </ul> 136 </ul>
165 </div> 137 </div>
166 - <div class="panel-body home-info">  
167 - <ul class="list-inline">  
168 - <li>银河百荣科技</li>  
169 - </ul> 138 + <div class="panel-body">
  139 + <div id="myTabContent" class="tab-content">
  140 + <div class="tab-pane fade active in" id="one">
  141 +
  142 + <div class="row">
  143 + <!--<div class="col-sm-3 col-xs-6">-->
  144 + <!--<div class="sm-st clearfix">-->
  145 + <!--<span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>-->
  146 + <!--<div class="sm-st-info">-->
  147 + <!--<span>{$totaluser}</span>-->
  148 + <!--{:__('Total user')}-->
  149 + <!--</div>-->
  150 + <!--</div>-->
  151 + <!--</div>-->
  152 + <!--<div class="col-sm-3 col-xs-6">-->
  153 + <!--<div class="sm-st clearfix">-->
  154 + <!--<span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>-->
  155 + <!--<div class="sm-st-info">-->
  156 + <!--<span>{$totalviews}</span>-->
  157 + <!--{:__('Total view')}-->
  158 + <!--</div>-->
  159 + <!--</div>-->
  160 + <!--</div>-->
  161 + <div class="col-sm-3 col-xs-6">
  162 + <div class="sm-st clearfix">
  163 + <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
  164 + <div class="sm-st-info">
  165 + <span>{$totalorder}</span>
  166 + {:__('Total order')}
  167 + </div>
  168 + </div>
  169 + </div>
  170 + <!--<div class="col-sm-3 col-xs-6">-->
  171 + <!--<div class="sm-st clearfix">-->
  172 + <!--<span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>-->
  173 + <!--<div class="sm-st-info">-->
  174 + <!--<span>{$totalorderamount}</span>-->
  175 + <!--{:__('Total order amount')}-->
  176 + <!--</div>-->
  177 + <!--</div>-->
  178 + <!--</div>-->
  179 + </div>
  180 +
  181 + <!--<div class="row">-->
  182 + <!--<div class="col-lg-8">-->
  183 + <!--<div id="echart" style="height:200px;width:100%;"></div>-->
  184 + <!--</div>-->
  185 + <!--<div class="col-lg-4">-->
  186 + <!--<div class="card sameheight-item stats">-->
  187 + <!--<div class="card-block">-->
  188 + <!--<div class="row row-sm stats-container">-->
  189 + <!--<div class="col-xs-6 stat-col">-->
  190 + <!--<div class="stat-icon"> <i class="fa fa-rocket"></i> </div>-->
  191 + <!--<div class="stat">-->
  192 + <!--<div class="value"> {$todayusersignup} </div>-->
  193 + <!--<div class="name"> {:__('Today user signup')} </div>-->
  194 + <!--</div>-->
  195 + <!--<div class="progress">-->
  196 + <!--<div class="progress-bar progress-bar-success" style="width: 30%"></div>-->
  197 + <!--</div>-->
  198 + <!--</div>-->
  199 + <!--<div class="col-xs-6 stat-col">-->
  200 + <!--<div class="stat-icon"> <i class="fa fa-shopping-cart"></i> </div>-->
  201 + <!--<div class="stat">-->
  202 + <!--<div class="value"> {$todayuserlogin} </div>-->
  203 + <!--<div class="name"> {:__('Today user login')} </div>-->
  204 + <!--</div>-->
  205 + <!--<div class="progress">-->
  206 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  207 + <!--</div>-->
  208 + <!--</div>-->
  209 + <!--<div class="col-xs-6 stat-col">-->
  210 + <!--<div class="stat-icon"> <i class="fa fa-line-chart"></i> </div>-->
  211 + <!--<div class="stat">-->
  212 + <!--<div class="value"> {$todayorder} </div>-->
  213 + <!--<div class="name"> {:__('Today order')} </div>-->
  214 + <!--</div>-->
  215 + <!--<div class="progress">-->
  216 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  217 + <!--</div>-->
  218 + <!--</div>-->
  219 + <!--<div class="col-xs-6 stat-col">-->
  220 + <!--<div class="stat-icon"> <i class="fa fa-users"></i> </div>-->
  221 + <!--<div class="stat">-->
  222 + <!--<div class="value"> {$unsettleorder} </div>-->
  223 + <!--<div class="name"> {:__('Unsettle order')} </div>-->
  224 + <!--</div>-->
  225 + <!--<div class="progress">-->
  226 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  227 + <!--</div>-->
  228 + <!--</div>-->
  229 + <!--<div class="col-xs-6 stat-col">-->
  230 + <!--<div class="stat-icon"> <i class="fa fa-list-alt"></i> </div>-->
  231 + <!--<div class="stat">-->
  232 + <!--<div class="value"> {$sevendnu} </div>-->
  233 + <!--<div class="name"> {:__('Seven dnu')} </div>-->
  234 + <!--</div>-->
  235 + <!--<div class="progress">-->
  236 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  237 + <!--</div>-->
  238 + <!--</div>-->
  239 + <!--<div class="col-xs-6 stat-col">-->
  240 + <!--<div class="stat-icon"> <i class="fa fa-dollar"></i> </div>-->
  241 + <!--<div class="stat">-->
  242 + <!--<div class="value"> {$sevendau} </div>-->
  243 + <!--<div class="name"> {:__('Seven dau')} </div>-->
  244 + <!--</div>-->
  245 + <!--<div class="progress">-->
  246 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  247 + <!--</div>-->
  248 + <!--</div>-->
  249 + <!--</div>-->
  250 + <!--</div>-->
  251 + <!--</div>-->
  252 + <!--</div>-->
  253 + <!--</div>-->
  254 +
  255 + <!--<div class="row" style="margin-top:15px;">-->
  256 +
  257 + <!--<div class="col-lg-12">-->
  258 + <!--</div>-->
  259 + <!--<div class="col-xs-6 col-md-3">-->
  260 + <!--<div class="panel bg-blue">-->
  261 + <!--<div class="panel-body">-->
  262 + <!--<div class="panel-title">-->
  263 + <!--<span class="label label-success pull-right">{:__('Real time')}</span>-->
  264 + <!--<h5>{:__('Category count')}</h5>-->
  265 + <!--</div>-->
  266 + <!--<div class="panel-content">-->
  267 + <!--<h1 class="no-margins">1234</h1>-->
  268 + <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 1234</div>-->
  269 + <!--<small>{:__('Category count tips')}</small>-->
  270 + <!--</div>-->
  271 + <!--</div>-->
  272 + <!--</div>-->
  273 + <!--</div>-->
  274 + <!--<div class="col-xs-6 col-md-3">-->
  275 + <!--<div class="panel bg-aqua-gradient">-->
  276 + <!--<div class="panel-body">-->
  277 + <!--<div class="ibox-title">-->
  278 + <!--<span class="label label-info pull-right">{:__('Real time')}</span>-->
  279 + <!--<h5>{:__('Attachment count')}</h5>-->
  280 + <!--</div>-->
  281 + <!--<div class="ibox-content">-->
  282 + <!--<h1 class="no-margins">1043</h1>-->
  283 + <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> 2592</div>-->
  284 + <!--<small>{:__('Attachment count tips')}</small>-->
  285 + <!--</div>-->
  286 + <!--</div>-->
  287 + <!--</div>-->
  288 + <!--</div>-->
  289 +
  290 + <!--<div class="col-xs-6 col-md-3">-->
  291 + <!--<div class="panel bg-purple-gradient">-->
  292 + <!--<div class="panel-body">-->
  293 + <!--<div class="ibox-title">-->
  294 + <!--<span class="label label-primary pull-right">{:__('Real time')}</span>-->
  295 + <!--<h5>{:__('Article count')}</h5>-->
  296 + <!--</div>-->
  297 + <!--<div class="ibox-content">-->
  298 +
  299 + <!--<div class="row">-->
  300 + <!--<div class="col-md-6">-->
  301 + <!--<h1 class="no-margins">1234</h1>-->
  302 + <!--<div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>-->
  303 + <!--</div>-->
  304 + <!--<div class="col-md-6">-->
  305 + <!--<h1 class="no-margins">6754</h1>-->
  306 + <!--<div class="font-bold"><i class="fa fa-heart"></i> <small>{:__('Like count')}</small></div>-->
  307 + <!--</div>-->
  308 + <!--</div>-->
  309 + <!--</div>-->
  310 + <!--</div>-->
  311 + <!--</div>-->
  312 + <!--</div>-->
  313 + <!--<div class="col-xs-6 col-md-3">-->
  314 + <!--<div class="panel bg-green-gradient">-->
  315 + <!--<div class="panel-body">-->
  316 + <!--<div class="ibox-title">-->
  317 + <!--<span class="label label-primary pull-right">{:__('Real time')}</span>-->
  318 + <!--<h5>{:__('News count')}</h5>-->
  319 + <!--</div>-->
  320 + <!--<div class="ibox-content">-->
  321 +
  322 + <!--<div class="row">-->
  323 + <!--<div class="col-md-6">-->
  324 + <!--<h1 class="no-margins">5302</h1>-->
  325 + <!--<div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>-->
  326 + <!--</div>-->
  327 + <!--<div class="col-md-6">-->
  328 + <!--<h1 class="no-margins">8205</h1>-->
  329 + <!--<div class="font-bold"><i class="fa fa-user"></i> <small>{:__('Like count')}</small></div>-->
  330 + <!--</div>-->
  331 + <!--</div>-->
  332 + <!--</div>-->
  333 + <!--</div>-->
  334 + <!--</div>-->
  335 + <!--</div>-->
  336 + <!--</div>-->
  337 +
  338 + <!--如果需要删除最新新闻和最新发贴,删除HTML后还需要删除dashboard.js中的代码-->
  339 + <!--<div class="row">-->
  340 + <!--<div class="col-lg-4">-->
  341 + <!--<div class="box box-danger">-->
  342 + <!--<div class="box-header">-->
  343 + <!--<h3 class="box-title">{:__('Recent news')}</h3>-->
  344 + <!--<div class="box-tools pull-right">-->
  345 + <!--<a href="https://www.fastadmin.net" target="_blank" class="btn btn-box-tool">{:__('More')}</a>-->
  346 + <!--</div>-->
  347 + <!--</div>-->
  348 + <!--<div class="box-body" id="news-list">-->
  349 + <!---->
  350 + <!--</div>-->
  351 + <!--</div>-->
  352 + <!--</div>-->
  353 + <!--<div class="col-lg-4">-->
  354 + <!--<div class="box box-success">-->
  355 + <!--<div class="box-header">-->
  356 + <!--<h3 class="box-title">{:__('Recent discussion')}</h3>-->
  357 + <!--<div class="box-tools pull-right">-->
  358 + <!--<a href="https://forum.fastadmin.net" class="btn btn-box-tool">{:__('More')}</a>-->
  359 + <!--</div>-->
  360 + <!--</div>-->
  361 + <!--<div class="box-body" id="discussion-list">-->
  362 + <!---->
  363 + <!--</div>-->
  364 + <!--</div>-->
  365 + <!--</div>-->
  366 + <!--<div class="col-lg-4">-->
  367 + <!--<div class="box box-info">-->
  368 + <!--<div class="box-header"><h3 class="box-title">{:__('Server info')}</h3></div>-->
  369 + <!--<div class="box-body">-->
  370 + <!--<table class="table table-striped">-->
  371 + <!--<tbody>-->
  372 + <!--<tr>-->
  373 + <!--<td width="140">{:__('FastAdmin version')}</td>-->
  374 + <!--<td>{$Think.config.fastadmin.version} <a href="javascript:;" class="btn btn-xs btn-checkversion">检查最新版</a></td>-->
  375 + <!--</tr>-->
  376 + <!--<tr>-->
  377 + <!--<td>{:__('FastAdmin addon version')}</td>-->
  378 + <!--<td>{$addonversion}</td>-->
  379 + <!--</tr>-->
  380 + <!--<tr>-->
  381 + <!--<td>{:__('Sapi name')}</td>-->
  382 + <!--<td>{:php_sapi_name()}</td>-->
  383 + <!--</tr>-->
  384 + <!--<tr>-->
  385 + <!--<td>{:__('Debug mode')}</td>-->
  386 + <!--<td>{$Think.config.app_debug?__('Yes'):__('No')}</td>-->
  387 + <!--</tr>-->
  388 + <!--<tr>-->
  389 + <!--<td>{:__('Software')}</td>-->
  390 + <!--<td>{$Think.server.SERVER_SOFTWARE}</td>-->
  391 + <!--</tr>-->
  392 + <!--<tr>-->
  393 + <!--<td>{:__('Upload mode')}</td>-->
  394 + <!--<td>{$uploadmode}</td>-->
  395 + <!--</tr>-->
  396 + <!--<tr>-->
  397 + <!--<td>{:__('Upload url')}</td>-->
  398 + <!--<td>{$config.upload.uploadurl}</td>-->
  399 + <!--</tr>-->
  400 + <!--<tr>-->
  401 + <!--<td>{:__('Upload Cdn url')}</td>-->
  402 + <!--<td>{$config.upload.cdnurl}</td>-->
  403 + <!--</tr>-->
  404 + <!--<tr>-->
  405 + <!--<td>{:__('Timezone')}</td>-->
  406 + <!--<td>{:date_default_timezone_get()}</td>-->
  407 + <!--</tr>-->
  408 + <!--<tr>-->
  409 + <!--<td>{:__('Cdn url')}</td>-->
  410 + <!--<td>__CDN__</td>-->
  411 + <!--</tr>-->
  412 + <!--<tr>-->
  413 + <!--<td>{:__('Language')}</td>-->
  414 + <!--<td>{$config.language}</td>-->
  415 + <!--</tr>-->
  416 + <!--</tbody></table>-->
  417 + <!--</div>-->
  418 + <!--</div>-->
  419 + <!--</div>-->
  420 + <!--</div>-->
  421 + </div>
  422 + <!--<div class="tab-pane fade" id="two">-->
  423 + <!--<div class="row">-->
  424 + <!--<div class="col-xs-12">-->
  425 + <!--{:__('Custom zone')}-->
  426 + <!--</div>-->
  427 + <!--</div>-->
  428 + <!--</div>-->
  429 + </div>
170 </div> 430 </div>
171 - <!--<div class="panel-body">-->  
172 - <!--<div id="myTabContent" class="tab-content">-->  
173 - <!--<div class="tab-pane fade active in" id="one">-->  
174 -  
175 - <!--<div class="row">-->  
176 - <!--<div class="col-sm-3 col-xs-6">-->  
177 - <!--<div class="sm-st clearfix">-->  
178 - <!--<span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>-->  
179 - <!--<div class="sm-st-info">-->  
180 - <!--<span>{$totaluser}</span>-->  
181 - <!--{:__('Total user')}-->  
182 - <!--</div>-->  
183 - <!--</div>-->  
184 - <!--</div>-->  
185 - <!--<div class="col-sm-3 col-xs-6">-->  
186 - <!--<div class="sm-st clearfix">-->  
187 - <!--<span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>-->  
188 - <!--<div class="sm-st-info">-->  
189 - <!--<span>{$totalviews}</span>-->  
190 - <!--{:__('Total view')}-->  
191 - <!--</div>-->  
192 - <!--</div>-->  
193 - <!--</div>-->  
194 - <!--<div class="col-sm-3 col-xs-6">-->  
195 - <!--<div class="sm-st clearfix">-->  
196 - <!--<span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>-->  
197 - <!--<div class="sm-st-info">-->  
198 - <!--<span>{$totalorder}</span>-->  
199 - <!--{:__('Total order')}-->  
200 - <!--</div>-->  
201 - <!--</div>-->  
202 - <!--</div>-->  
203 - <!--<div class="col-sm-3 col-xs-6">-->  
204 - <!--<div class="sm-st clearfix">-->  
205 - <!--<span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>-->  
206 - <!--<div class="sm-st-info">-->  
207 - <!--<span>{$totalorderamount}</span>-->  
208 - <!--{:__('Total order amount')}-->  
209 - <!--</div>-->  
210 - <!--</div>-->  
211 - <!--</div>-->  
212 - <!--</div>-->  
213 -  
214 - <!--<div class="row">-->  
215 - <!--<div class="col-lg-8">-->  
216 - <!--<div id="echart" style="height:200px;width:100%;"></div>-->  
217 - <!--</div>-->  
218 - <!--<div class="col-lg-4">-->  
219 - <!--<div class="card sameheight-item stats">-->  
220 - <!--<div class="card-block">-->  
221 - <!--<div class="row row-sm stats-container">-->  
222 - <!--<div class="col-xs-6 stat-col">-->  
223 - <!--<div class="stat-icon"><i class="fa fa-rocket"></i></div>-->  
224 - <!--<div class="stat">-->  
225 - <!--<div class="value"> {$todayusersignup}</div>-->  
226 - <!--<div class="name"> {:__('Today user signup')}</div>-->  
227 - <!--</div>-->  
228 - <!--<div class="progress">-->  
229 - <!--<div class="progress-bar progress-bar-success" style="width: 30%"></div>-->  
230 - <!--</div>-->  
231 - <!--</div>-->  
232 - <!--<div class="col-xs-6 stat-col">-->  
233 - <!--<div class="stat-icon"><i class="fa fa-shopping-cart"></i></div>-->  
234 - <!--<div class="stat">-->  
235 - <!--<div class="value"> {$todayuserlogin}</div>-->  
236 - <!--<div class="name"> {:__('Today user login')}</div>-->  
237 - <!--</div>-->  
238 - <!--<div class="progress">-->  
239 - <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->  
240 - <!--</div>-->  
241 - <!--</div>-->  
242 - <!--<div class="col-xs-6 stat-col">-->  
243 - <!--<div class="stat-icon"><i class="fa fa-line-chart"></i></div>-->  
244 - <!--<div class="stat">-->  
245 - <!--<div class="value"> {$todayorder}</div>-->  
246 - <!--<div class="name"> {:__('Today order')}</div>-->  
247 - <!--</div>-->  
248 - <!--<div class="progress">-->  
249 - <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->  
250 - <!--</div>-->  
251 - <!--</div>-->  
252 - <!--<div class="col-xs-6 stat-col">-->  
253 - <!--<div class="stat-icon"><i class="fa fa-users"></i></div>-->  
254 - <!--<div class="stat">-->  
255 - <!--<div class="value"> {$unsettleorder}</div>-->  
256 - <!--<div class="name"> {:__('Unsettle order')}</div>-->  
257 - <!--</div>-->  
258 - <!--<div class="progress">-->  
259 - <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->  
260 - <!--</div>-->  
261 - <!--</div>-->  
262 - <!--<div class="col-xs-6 stat-col">-->  
263 - <!--<div class="stat-icon"><i class="fa fa-list-alt"></i></div>-->  
264 - <!--<div class="stat">-->  
265 - <!--<div class="value"> {$sevendnu}</div>-->  
266 - <!--<div class="name"> {:__('Seven dnu')}</div>-->  
267 - <!--</div>-->  
268 - <!--<div class="progress">-->  
269 - <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->  
270 - <!--</div>-->  
271 - <!--</div>-->  
272 - <!--<div class="col-xs-6 stat-col">-->  
273 - <!--<div class="stat-icon"><i class="fa fa-dollar"></i></div>-->  
274 - <!--<div class="stat">-->  
275 - <!--<div class="value"> {$sevendau}</div>-->  
276 - <!--<div class="name"> {:__('Seven dau')}</div>-->  
277 - <!--</div>-->  
278 - <!--<div class="progress">-->  
279 - <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->  
280 - <!--</div>-->  
281 - <!--</div>-->  
282 - <!--</div>-->  
283 - <!--</div>-->  
284 - <!--</div>-->  
285 - <!--</div>-->  
286 - <!--</div>-->  
287 -  
288 - <!--<div class="row" style="margin-top:15px;">-->  
289 -  
290 - <!--<div class="col-lg-12">-->  
291 - <!--</div>-->  
292 - <!--<div class="col-xs-6 col-md-3">-->  
293 - <!--<div class="panel bg-blue">-->  
294 - <!--<div class="panel-body">-->  
295 - <!--<div class="panel-title">-->  
296 - <!--<span class="label label-success pull-right">{:__('Real time')}</span>-->  
297 - <!--<h5>{:__('Category count')}</h5>-->  
298 - <!--</div>-->  
299 - <!--<div class="panel-content">-->  
300 - <!--<h1 class="no-margins">1234</h1>-->  
301 - <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 1234</div>-->  
302 - <!--<small>{:__('Category count tips')}</small>-->  
303 - <!--</div>-->  
304 - <!--</div>-->  
305 - <!--</div>-->  
306 - <!--</div>-->  
307 - <!--<div class="col-xs-6 col-md-3">-->  
308 - <!--<div class="panel bg-aqua-gradient">-->  
309 - <!--<div class="panel-body">-->  
310 - <!--<div class="ibox-title">-->  
311 - <!--<span class="label label-info pull-right">{:__('Real time')}</span>-->  
312 - <!--<h5>{:__('Attachment count')}</h5>-->  
313 - <!--</div>-->  
314 - <!--<div class="ibox-content">-->  
315 - <!--<h1 class="no-margins">1043</h1>-->  
316 - <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> 2592</div>-->  
317 - <!--<small>{:__('Attachment count tips')}</small>-->  
318 - <!--</div>-->  
319 - <!--</div>-->  
320 - <!--</div>-->  
321 - <!--</div>-->  
322 -  
323 - <!--<div class="col-xs-6 col-md-3">-->  
324 - <!--<div class="panel bg-purple-gradient">-->  
325 - <!--<div class="panel-body">-->  
326 - <!--<div class="ibox-title">-->  
327 - <!--<span class="label label-primary pull-right">{:__('Real time')}</span>-->  
328 - <!--<h5>{:__('Article count')}</h5>-->  
329 - <!--</div>-->  
330 - <!--<div class="ibox-content">-->  
331 -  
332 - <!--<div class="row">-->  
333 - <!--<div class="col-md-6">-->  
334 - <!--<h1 class="no-margins">1234</h1>-->  
335 - <!--<div class="font-bold"><i class="fa fa-commenting"></i>-->  
336 - <!--<small>{:__('Comment count')}</small>-->  
337 - <!--</div>-->  
338 - <!--</div>-->  
339 - <!--<div class="col-md-6">-->  
340 - <!--<h1 class="no-margins">6754</h1>-->  
341 - <!--<div class="font-bold"><i class="fa fa-heart"></i>-->  
342 - <!--<small>{:__('Like count')}</small>-->  
343 - <!--</div>-->  
344 - <!--</div>-->  
345 - <!--</div>-->  
346 - <!--</div>-->  
347 - <!--</div>-->  
348 - <!--</div>-->  
349 - <!--</div>-->  
350 - <!--<div class="col-xs-6 col-md-3">-->  
351 - <!--<div class="panel bg-green-gradient">-->  
352 - <!--&lt;!&ndash;<div class="panel-body">&ndash;&gt;-->  
353 - <!--&lt;!&ndash;<div class="ibox-title">&ndash;&gt;-->  
354 - <!--&lt;!&ndash;<span class="label label-primary pull-right">{:__('Real time')}</span>&ndash;&gt;-->  
355 - <!--&lt;!&ndash;<h5>{:__('News count')}</h5>&ndash;&gt;-->  
356 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
357 - <!--&lt;!&ndash;<div class="ibox-content">&ndash;&gt;-->  
358 -  
359 - <!--&lt;!&ndash;<div class="row">&ndash;&gt;-->  
360 - <!--&lt;!&ndash;<div class="col-md-6">&ndash;&gt;-->  
361 - <!--&lt;!&ndash;<h1 class="no-margins">5302</h1>&ndash;&gt;-->  
362 - <!--&lt;!&ndash;<div class="font-bold"><i class="fa fa-commenting"></i>&ndash;&gt;-->  
363 - <!--&lt;!&ndash;<small>{:__('Comment count')}</small>&ndash;&gt;-->  
364 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
365 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
366 - <!--&lt;!&ndash;<div class="col-md-6">&ndash;&gt;-->  
367 - <!--&lt;!&ndash;<h1 class="no-margins">8205</h1>&ndash;&gt;-->  
368 - <!--&lt;!&ndash;<div class="font-bold"><i class="fa fa-user"></i>&ndash;&gt;-->  
369 - <!--&lt;!&ndash;<small>{:__('Like count')}</small>&ndash;&gt;-->  
370 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
371 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
372 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
373 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
374 - <!--&lt;!&ndash;</div>&ndash;&gt;-->  
375 - <!--</div>-->  
376 - <!--</div>-->  
377 - <!--</div>-->  
378 -  
379 - <!--<div class="row">-->  
380 - <!--<div class="col-lg-4">-->  
381 - <!--<div class="box box-danger">-->  
382 - <!--<div class="box-header with-border">-->  
383 - <!--<h3 class="box-title">{:__('Recent news')}</h3>-->  
384 -  
385 - <!--<div class="box-tools pull-right">-->  
386 - <!--</div>-->  
387 - <!--</div>-->  
388 - <!--<div class="box-body">-->  
389 - <!--<ul class="products-list product-list-in-box">-->  
390 - <!--{for start="1" end="8"}-->  
391 - <!--<li class="item">-->  
392 - <!--<div class="product-img">-->  
393 - <!--<img src="__CDN__/assets/img/avatar.png" style="height:40px;width:40px;">-->  
394 - <!--</div>-->  
395 - <!--<div class="product-info">-->  
396 - <!--<a href="https://www.fastadmin.net" target="_blank" class="product-title">-->  
397 - <!--FastAdmin-->  
398 - <!--<span class="label label-{:$i%3===0?'warning':($i%2===0?'success':'info')} pull-right">开源免费</span>-->  
399 - <!--</a>-->  
400 - <!--<span class="product-description">-->  
401 - <!--一款基于ThinkPHP5+Bootstrap的极速后台开发框架-->  
402 - <!--</span>-->  
403 - <!--</div>-->  
404 - <!--</li>-->  
405 - <!--{/for}-->  
406 - <!--</ul>-->  
407 - <!--</div>-->  
408 - <!--</div>-->  
409 - <!--</div>-->  
410 - <!--<div class="col-lg-4">-->  
411 - <!--<div class="box box-success">-->  
412 - <!--<div class="box-header with-border">-->  
413 - <!--<h3 class="box-title">{:__('Recent discussion')}</h3>-->  
414 -  
415 - <!--<div class="box-tools pull-right">-->  
416 - <!--</div>-->  
417 - <!--</div>-->  
418 - <!--<div class="box-body">-->  
419 - <!--<ul class="nav nav-pills nav-stacked">-->  
420 - <!--<li><a href="https://www.fastadmin.net" target="_blank">一款基于ThinkPHP5+Bootstrap的极速后台开发框架<span class="pull-right text-red"><i class="fa fa-angle-down"></i> 12%</span></a></li>-->  
421 - <!--<li><a href="https://www.fastadmin.net" target="_blank">一键生成CRUD控制器模型和视图 <span class="pull-right text-green"><i class="fa fa-angle-up"></i> 4%</span></a></li>-->  
422 - <!--<li><a href="https://www.fastadmin.net" target="_blank">一键压缩打包JS和CSS文件 <span class="pull-right text-red"><i class="fa fa-angle-down"></i> 3%</span></a></li>-->  
423 - <!--<li><a href="https://www.fastadmin.net" target="_blank">一键生成控制器菜单和规则 <span class="pull-right text-green"><i class="fa fa-angle-up"></i> 8%</span></a></li>-->  
424 - <!--<li><a href="https://www.fastadmin.net" target="_blank">一键生成API接口文档 <span class="pull-right text-yellow"><i class="fa fa-angle-left"></i> 0%</span></a></li>-->  
425 - <!--<li><a href="https://www.fastadmin.net" target="_blank">强大的插件扩展功能,在线安装卸载升级插件 <span class="pull-right text-red"><i class="fa fa-angle-down"></i> 10%</span></a></li>-->  
426 - <!--<li><a href="https://www.fastadmin.net" target="_blank">通用的会员模块和API模块 <span class="pull-right text-green"><i class="fa fa-angle-up"></i> 2%</span></a></li>-->  
427 - <!--<li><a href="https://www.fastadmin.net" target="_blank">共用同一账号体系的Web端会员中心权限验证和API接口会员权限验证 <span class="pull-right text-red"><i class="fa fa-angle-down"></i> 6%</span></a></li>-->  
428 - <!--<li><a href="https://www.fastadmin.net" target="_blank">二级域名部署支持,同时域名支持绑定到插件 <span class="pull-right text-yellow"><i class="fa fa-angle-left"></i> 0%</span></a></li>-->  
429 - <!--<li><a href="https://www.fastadmin.net" target="_blank">多语言支持,服务端及客户端支持 <span class="pull-right text-yellow"><i class="fa fa-angle-left"></i> 0%</span></a></li>-->  
430 - <!--<li><a href="https://www.fastadmin.net" target="_blank">基于Bootstrap开发,自适应手机、平板、PC <span class="pull-right text-green"><i class="fa fa-angle-up"></i> 4%</span></a></li>-->  
431 - <!--</ul>-->  
432 - <!--</div>-->  
433 - <!--</div>-->  
434 - <!--</div>-->  
435 - <!--<div class="col-lg-4">-->  
436 - <!--<div class="box box-info">-->  
437 - <!--<div class="box-header"><h3 class="box-title">{:__('Server info')}</h3></div>-->  
438 - <!--<div class="box-body" style="padding-top:0;">-->  
439 - <!--<table class="table table-striped">-->  
440 - <!--<tbody>-->  
441 - <!--<tr>-->  
442 - <!--<td width="140">{:__('FastAdmin version')}</td>-->  
443 - <!--<td>{$Think.config.fastadmin.version} <a href="javascript:;" class="btn btn-xs btn-checkversion">检查最新版</a></td>-->  
444 - <!--</tr>-->  
445 - <!--<tr>-->  
446 - <!--<td>{:__('FastAdmin addon version')}</td>-->  
447 - <!--<td>{$addonversion}</td>-->  
448 - <!--</tr>-->  
449 - <!--<tr>-->  
450 - <!--<td>{:__('Thinkphp version')}</td>-->  
451 - <!--<td>{:THINK_VERSION}</td>-->  
452 - <!--</tr>-->  
453 - <!--<tr>-->  
454 - <!--<td>{:__('Sapi name')}</td>-->  
455 - <!--<td>{:php_sapi_name()}</td>-->  
456 - <!--</tr>-->  
457 - <!--<tr>-->  
458 - <!--<td>{:__('Debug mode')}</td>-->  
459 - <!--<td>{$Think.config.app_debug?__('Yes'):__('No')}</td>-->  
460 - <!--</tr>-->  
461 - <!--<tr>-->  
462 - <!--<td>{:__('Software')}</td>-->  
463 - <!--<td>{$Think.server.SERVER_SOFTWARE}</td>-->  
464 - <!--</tr>-->  
465 - <!--<tr>-->  
466 - <!--<td>{:__('Upload mode')}</td>-->  
467 - <!--<td>{$uploadmode}</td>-->  
468 - <!--</tr>-->  
469 - <!--<tr>-->  
470 - <!--<td>{:__('Upload url')}</td>-->  
471 - <!--<td>{$config.upload.uploadurl}</td>-->  
472 - <!--</tr>-->  
473 - <!--<tr>-->  
474 - <!--<td>{:__('Upload Cdn url')}</td>-->  
475 - <!--<td>{$config.upload.cdnurl}</td>-->  
476 - <!--</tr>-->  
477 - <!--<tr>-->  
478 - <!--<td>{:__('Timezone')}</td>-->  
479 - <!--<td>{:date_default_timezone_get()}</td>-->  
480 - <!--</tr>-->  
481 - <!--<tr>-->  
482 - <!--<td>{:__('Cdn url')}</td>-->  
483 - <!--<td>__CDN__</td>-->  
484 - <!--</tr>-->  
485 - <!--<tr>-->  
486 - <!--<td>{:__('Language')}</td>-->  
487 - <!--<td>{$config.language}</td>-->  
488 - <!--</tr>-->  
489 - <!--</tbody>-->  
490 - <!--</table>-->  
491 - <!--</div>-->  
492 - <!--</div>-->  
493 - <!--</div>-->  
494 - <!--</div>-->  
495 - <!--</div>-->  
496 - <!--<div class="tab-pane fade" id="two">-->  
497 - <!--<div class="row">-->  
498 - <!--<div class="col-xs-12">-->  
499 - <!--{:__('Custom zone')}-->  
500 - <!--</div>-->  
501 - <!--</div>-->  
502 - <!--</div>-->  
503 - <!--</div>-->  
504 - <!--</div>-->  
505 </div> 431 </div>
  432 +<script id="newstpl" type="text/html">
  433 + <ul class="nav nav-stacked">
  434 + <%for(var i=0;i < news.length;i++){%>
  435 + <%var item=news[i];%>
  436 + <li>
  437 + <a href="<%=item.url%>" target="_blank">
  438 + <span class="text"><%=item.title%></span>
  439 + </a>
  440 + </li>
  441 + <%}%>
  442 + </ul>
  443 +</script>
  444 +<script id="discussiontpl" type="text/html">
  445 + <ul class="products-list product-list-in-box">
  446 + <%for(var i=0;i < news.length;i++){%>
  447 + <%var item=news[i];%>
  448 + <li class="item">
  449 + <div class="">
  450 + <a href="<%=item.url%>" target="_blank" class="product-title"><%=item.title%>
  451 + <span class="label label-warning pull-right"><%=item.comments_count%></span></a>
  452 + <span class="product-description">
  453 + <%=item.last_time%>
  454 + </span>
  455 + </div>
  456 + </li>
  457 + <%}%>
  458 + </ul>
  459 +</script>
506 <script> 460 <script>
507 var Orderdata = { 461 var Orderdata = {
508 column: {:json_encode(array_keys($paylist))}, 462 column: {:json_encode(array_keys($paylist))},
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 <div class="login-screen"> 61 <div class="login-screen">
62 <div class="well"> 62 <div class="well">
63 <div class="login-form"> 63 <div class="login-form">
64 - <img id="profile-img" class="profile-img-card" src="__CDN__/assets/img/avatar.png" /> 64 + <img class="profile-img-card" src="/assets/img/feifangu_logo.png" />
65 <p id="profile-name" class="profile-name-card"></p> 65 <p id="profile-name" class="profile-name-card"></p>
66 66
67 <form action="" method="post" id="login-form"> 67 <form action="" method="post" id="login-form">
@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 </div> 98 </div>
99 </div> 99 </div>
100 <!-- FastAdmin是开源程序,建议在您的网站底部保留一个FastAdmin的链接 --> 100 <!-- FastAdmin是开源程序,建议在您的网站底部保留一个FastAdmin的链接 -->
101 - <p class="copyright"><a href="https://www.fastadmin.net">Powered By FastAdmin</a></p> 101 + <!--<p class="copyright"><a href="https://www.fastadmin.net">Powered By FastAdmin</a></p>-->
102 </div> 102 </div>
103 </div> 103 </div>
104 </div> 104 </div>
@@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('ulist/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('ulist/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('ulist/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>--> 13 <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('ulist/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 - <!--<div class="dropdown btn-group {:$auth->check('ulist/multi')?'':'hide'}">-->  
16 - <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->  
17 - <!--<ul class="dropdown-menu text-left" role="menu">-->  
18 - <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>-->  
19 - <!--<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>-->  
20 - <!--</ul>-->  
21 - <!--</div>--> 15 + <div class="dropdown btn-group {:$auth->check('ulist/multi')?'':'hide'}">
  16 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i>启用</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i>禁用</a></li>
  20 + </ul>
  21 + </div>
22 22
23 <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('ulist/recyclebin')?'':'hide'}" href="ulist/recyclebin" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i> {:__('Recycle bin')}</a> 23 <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('ulist/recyclebin')?'':'hide'}" href="ulist/recyclebin" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i> {:__('Recycle bin')}</a>
24 </div> 24 </div>
@@ -98,7 +98,7 @@ class Index extends Api @@ -98,7 +98,7 @@ class Index extends Api
98 if($this->request->isGet()){ 98 if($this->request->isGet()){
99 $arr = []; 99 $arr = [];
100 //轮播图 100 //轮播图
101 - $res_banner = Common::selectData('banner','id,image,url'); 101 + $res_banner = Common::selectWhereData('banner',['status'=>'normal'],'id,image,url');
102 foreach ($res_banner as &$b_value){ 102 foreach ($res_banner as &$b_value){
103 $b_value['image'] = $this->auth->absolutionUrlOne($b_value['image']); 103 $b_value['image'] = $this->auth->absolutionUrlOne($b_value['image']);
104 } 104 }
@@ -127,8 +127,7 @@ class Index extends Api @@ -127,8 +127,7 @@ class Index extends Api
127 $arr['res_design'] = $res_design; 127 $arr['res_design'] = $res_design;
128 128
129 //用户晒单 129 //用户晒单
130 - $limit = config('verify.limit');  
131 - $res_u_list = Common::selectSoftLimitData('ulist','id,images,title,nickname,address',$limit); 130 + $res_u_list = Common::selectSoftWhereLimitData('ulist',['status'=>'normal'],'id,images,title,nickname,address','id desc');
132 foreach ($res_u_list as &$u_value){ 131 foreach ($res_u_list as &$u_value){
133 $u_value['images'] = $this->auth->absolutionUrl($u_value['images']); 132 $u_value['images'] = $this->auth->absolutionUrl($u_value['images']);
134 } 133 }
@@ -256,7 +255,7 @@ class Index extends Api @@ -256,7 +255,7 @@ class Index extends Api
256 "data": { 255 "data": {
257 "id": 2,//晒单id 256 "id": 2,//晒单id
258 "g_id": 6,//商品id 257 "g_id": 6,//商品id
259 - "images": [//图片路径(取第一个即可) 258 + "images": [//图片路径
260 "http://jinglong.springchunjia.cn/uploads/20191127/febfea9a34c918cb2f100f669ede2547.png", 259 "http://jinglong.springchunjia.cn/uploads/20191127/febfea9a34c918cb2f100f669ede2547.png",
261 "http://jinglong.springchunjia.cn/uploads/20191127/042a3256122af7b10e26efb5e7649904.png" 260 "http://jinglong.springchunjia.cn/uploads/20191127/042a3256122af7b10e26efb5e7649904.png"
262 ], 261 ],
@@ -27,6 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -27,6 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
27 {field: 'id', title: __('Id')}, 27 {field: 'id', title: __('Id')},
28 {field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false}, 28 {field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
29 {field: 'url', title: __('Url')}, 29 {field: 'url', title: __('Url')},
  30 + {field: 'status', title: __('Status'), formatter: Table.api.formatter.status, searchList: {normal:'启用', hidden: '禁用'}},
30 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 31 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
31 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 32 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
32 ] 33 ]
@@ -31,6 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -31,6 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
31 {field: 'address', title: __('Address')}, 31 {field: 'address', title: __('Address')},
32 {field: 'goods.name', title: __('Goods.name')}, 32 {field: 'goods.name', title: __('Goods.name')},
33 {field: 'goods.type_name', title: __('Goods.type_name')}, 33 {field: 'goods.type_name', title: __('Goods.type_name')},
  34 + {field: 'status', title: __('Status'), formatter: Table.api.formatter.status, searchList: {normal:'启用', hidden: '禁用'}},
34 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 35 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
35 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 36 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
36 ] 37 ]