<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace App\Web\Controller; use Illuminate\Support\Facades\View; use ModStart\App\Web\Layout\WebConfigBuilder; use ModStart\Form\Form; use Module\Member\Auth\MemberUser; use Module\Member\Support\MemberLoginCheck; use Module\Member\Type\Gender; class MemberProfileController extends BaseController implements MemberLoginCheck { private $api; private $viewMemberFrame; public function __construct() { goto yficP; yficP: list($this->viewMemberFrame, $eBJV4) = $this->viewPaths('member.frame'); goto lA0xt; vG2JM: $this->api = app(\App\Api\Controller\MemberProfileController::class); goto gYtqt; lA0xt: View::share('_viewMemberFrame', $this->viewMemberFrame); goto vG2JM; gYtqt: } public function index(WebConfigBuilder $Qe1vN) { goto QNUeL; QNUeL: $Qe1vN->pageTitle('基本资料'); goto VjYGH; uiRhH: return $Qe1vN->perform(MemberUser::user(), function (Form $JbXRF) { return $this->api->basic($JbXRF->dataForming()); }); goto TZxzq; L3x1n: $Qe1vN->radio('gender', '性别')->optionType(Gender::class); goto PQk1R; PQk1R: $Qe1vN->text('realname', '姓名'); goto C9IXB; VjYGH: $Qe1vN->page()->view($this->viewMemberFrame); goto FkOmD; C9IXB: $Qe1vN->text('signature', '签名'); goto uiRhH; FkOmD: $Qe1vN->text('username', '用户名')->readonly(true); goto L3x1n; TZxzq: } }