| xqd
@@ -34,7 +34,7 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
$this->fill($user_info);
|
|
|
$this->text('user_id',"用户ID")->readOnly();
|
|
|
$this->text('nickname', '昵称')->required();
|
|
|
- $this->image('avatar', '头像')->uniqueName()->removable(false);
|
|
|
+ $this->image('avatar', '头像')->saveFullUrl()->uniqueName()->removable(false);
|
|
|
$this->text('weixin', '微信号');
|
|
|
$this->text('birthday', '生日');
|
|
|
$this->text('height', '身高');
|
| xqd
@@ -51,8 +51,8 @@ class UsersInfoForm extends Form implements LazyRenderable
|
|
|
$this->text('drink', '喝酒');
|
|
|
$this->text('smoke', '抽烟');
|
|
|
$this->array('photo', function ($form) {
|
|
|
- $form->image('url','图片')->uniqueName()->removable(false);
|
|
|
- $form->radio('state','阅后即焚')->options([0=>"否",1=>"是"]);
|
|
|
+ $form->image('url','图片')->saveFullUrl()->uniqueName()->removable(false);
|
|
|
+ $form->radio('state','阅后即焚')->options([0=>"否",1=>"是"])->default(0);
|
|
|
})->saveAsJson()->label('相册');
|
|
|
|
|
|
}
|