|
@@ -38,11 +38,11 @@ class UserController extends AdminController
|
|
|
|
|
|
$grid->column('pid','上级ID');
|
|
$grid->column('pid','上级ID');
|
|
$grid->column('sex','性别')->using([0=>"未知",1=>'男',2=>'女'])->label(['','primary','danger']);
|
|
$grid->column('sex','性别')->using([0=>"未知",1=>'男',2=>'女'])->label(['','primary','danger']);
|
|
- $grid->column('is_vip','VIP')->display(function ($res){
|
|
|
|
|
|
+ $grid->column('is_vip','VIP/到期时间')->display(function ($res){
|
|
if($res==1){
|
|
if($res==1){
|
|
$str = '<span class="label" style="background:#dda451">VIP</span>';
|
|
$str = '<span class="label" style="background:#dda451">VIP</span>';
|
|
$day = date('Y-m-d',strtotime($this->end_day));
|
|
$day = date('Y-m-d',strtotime($this->end_day));
|
|
- $str .= '<br>过期时间:'.$day;
|
|
|
|
|
|
+ $str .= '<br><span'.$day.'</span>';
|
|
}else{
|
|
}else{
|
|
$str = '<span class="label" style="background:#b9c3cd">无</span>';
|
|
$str = '<span class="label" style="background:#b9c3cd">无</span>';
|
|
}
|
|
}
|