<?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 aWMQC; UJWCJ: View::share('_viewMemberFrame', $this->viewMemberFrame); goto q1LUs; q1LUs: $this->api = app(\App\Api\Controller\MemberProfileController::class); goto GVnU9; aWMQC: list($this->viewMemberFrame, $nes7_) = $this->viewPaths('member.frame'); goto UJWCJ; GVnU9: } public function index(WebConfigBuilder $dB1iE) { goto gIPWM; xs0Ds: $dB1iE->text('username', '用户名')->readonly(true); goto vreWg; rT3Bj: $dB1iE->text('realname', '姓名'); goto sNt41; gIPWM: $dB1iE->pageTitle('基本资料'); goto ENCfd; sNt41: $dB1iE->text('signature', '签名'); goto qwkHQ; vreWg: $dB1iE->radio('gender', '性别')->optionType(Gender::class); goto rT3Bj; qwkHQ: return $dB1iE->perform(MemberUser::user(), function (Form $zLMEB) { return $this->api->basic($zLMEB->dataForming()); }); goto YBw2C; ENCfd: $dB1iE->page()->view($this->viewMemberFrame); goto xs0Ds; YBw2C: } }