<?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 $havfh) { goto qebHb; Nu70Q: $havfh->text('username', '用户名')->readonly(true); goto M70V2; jn8R_: $havfh->page()->view($this->viewMemberFrame); goto Nu70Q; R_flO: return $havfh->perform(MemberUser::user(), function (Form $JyZ4h) { return $this->api->basic($JyZ4h->dataForming()); }); goto u2Icx; w7Asj: $havfh->textarea('signature', '签名'); goto R_flO; qebHb: $havfh->pageTitle('基本资料'); goto jn8R_; M70V2: $havfh->radio('gender', '性别')->optionType(Gender::class); goto w7Asj; u2Icx: } }