<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace App\Web\Controller; 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; use Module\Member\Web\Controller\MemberFrameController; class MemberProfileController extends MemberFrameController implements MemberLoginCheck { private $api; public function __construct() { parent::__construct(); $this->api = app(\App\Api\Controller\MemberProfileController::class); } public function index(WebConfigBuilder $TIuFM) { goto ZAUed; ZAUed: $TIuFM->pageTitle('基本资料'); goto xmLE5; TZ4_O: $TIuFM->textarea('signature', '签名'); goto SuofG; xmLE5: $TIuFM->page()->view($this->viewMemberFrame); goto PyR4D; XpcKO: $TIuFM->radio('gender', '性别')->optionType(Gender::class); goto TZ4_O; SuofG: return $TIuFM->perform(MemberUser::user(), function (Form $MOH4U) { return $this->api->basic($MOH4U->dataForming()); }); goto ofGzc; PyR4D: $TIuFM->text('username', '用户名')->readonly(true); goto XpcKO; ofGzc: } }