| xqd
@@ -109,28 +109,23 @@ class UserController extends AdminController
|
|
|
|
|
|
$form = new Form(new User());
|
|
|
$form->model()->belongsTo(UserInfoModel::class,'id','user_id','user_info');
|
|
|
- // return Form::make(new User(), function (Form $form) {
|
|
|
+
|
|
|
$form->display('id');
|
|
|
$form->text('mobile','手机号')->required();
|
|
|
$form->text('pid','上级ID');
|
|
|
-// $form->text('tencent_im_user_id');
|
|
|
+
|
|
|
$form->radio('sex','性别')->options([1=>'男',2=>'女'])->default(1);
|
|
|
$form->radio('is_vip','是否是VIP')->options([0=>'否',1=>'是'])->default(0);
|
|
|
$form->radio('is_auth','是否认证')->options([0=>'未认证',1=>'真人认证',2=>'女神认证'])->default(1);
|
|
|
- $form->text('ycode','邀请码');
|
|
|
+// $form->text('ycode','邀请码');
|
|
|
$form->text('city','所在城市')->default("成都市");
|
|
|
$form->radio('online','在线状态')->options([0=>'离线',1=>'在线'])->default(1);
|
|
|
-// $form->text('notice_status');
|
|
|
-// $form->text('like_num');
|
|
|
-// $form->text('like_me_num');
|
|
|
-// $form->text('look_num');
|
|
|
+
|
|
|
$form->switch('status','状态')->default(1);
|
|
|
$form->text('user_info.nickname','昵称');
|
|
|
$form->saving(function ($res){
|
|
|
|
|
|
});
|
|
|
-
|
|
|
return $form;
|
|
|
- // });
|
|
|
}
|
|
|
}
|