<?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 $jmuJh) { goto DqUhf; xS_vG: $jmuJh->text('username', '用户名')->readonly(true); goto CwZnW; bDsNR: $jmuJh->radio('gender', '性别')->optionType(Gender::class); goto vilRR; DqUhf: $jmuJh->pageTitle('基本资料'); goto O2x7G; vilRR: $jmuJh->textarea('signature', '签名'); goto uJ0dd; CwZnW: $jmuJh->text('nickname', '昵称'); goto bDsNR; uJ0dd: return $jmuJh->perform(MemberUser::user(), function (Form $Mbinq) { return $this->api->basic($Mbinq->dataForming()); }); goto ZMIqt; O2x7G: $jmuJh->page()->view($this->viewMemberFrame); goto xS_vG; ZMIqt: } }