<div class="am-tabs am-margin-0 am-tabs-border user-form-content-container user-login-content-container {{if MyC('home_user_login_img_verify_state') neq 1}} not-login-verify{{/if}}" data-am-tabs="{noSwipe: 1}">
    <!-- 用户登录容器内顶部钩子 -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
        <div class="plugins-tag">
            <span>plugins_view_user_login_content_inside_top</span>
        </div>
    {{/if}}
    {{if !empty($plugins_view_user_login_content_inside_top_data) and is_array($plugins_view_user_login_content_inside_top_data)}}
        {{foreach $plugins_view_user_login_content_inside_top_data as $hook}}
            {{if is_string($hook) or is_int($hook)}}
                {{$hook|raw}}
            {{/if}}
        {{/foreach}}
    {{/if}}

    {{if count($home_user_login_type) gt 1}}
        <!-- am-tabs-border：底部边框 -->
        <ul class="am-tabs-nav am-nav am-nav-tabs user-entrance-tabs">
            {{if in_array('username', $home_user_login_type)}}
                <li class="am-active"><a href="[data-tab-panel-0]">{{:MyLang('user.login_type_username_title')}}</a></li>
            {{/if}}
            {{if in_array('sms', $home_user_login_type)}}
                <li class="{{if !in_array('username', $home_user_login_type) and !in_array('email', $home_user_login_type)}}am-active{{/if}}"><a href="[data-tab-panel-1]">{{:MyLang('user.login_type_mobile_title')}}</a></li>
            {{/if}}
            {{if in_array('email', $home_user_login_type)}}
                <li class="{{if !in_array('username', $home_user_login_type)}}am-active{{/if}}"><a href="[data-tab-panel-2]">{{:MyLang('user.login_type_email_title')}}</a></li>
            {{/if}}
        </ul>
    {{/if}}
    <div class="am-tabs-bd am-border-0">
        {{if in_array('username', $home_user_login_type)}}
            <div data-tab-panel-0 class="am-tab-panel am-active">
                <!-- form start -->
                <form class="am-form form-validation-username" method="post" action="{{:MyUrl('index/user/login')}}" request-type="ajax-fun" request-value="LoginBackHandle">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="text" name="accounts" class="am-radius am-form-field" data-validation-message="{{:MyLang('user.form_item_account_message')}}" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('user.form_item_account')}}</label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="password" name="pwd" class="am-radius am-form-field input-padding-right-max" pattern="{{:MyConst('common_regex_pwd')}}" data-validation-message="{{:MyLang('user.form_item_password_message')}}" autocomplete="new-password" data-is-clearout="0" required />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius am-icon-eye eye-submit" type="button"></button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('user.form_item_password')}}</label>
                    </div>

                    {{if MyC('home_user_login_img_verify_state') eq 1}}
                        <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                            <input type="text" name="verify" class="am-radius am-form-field input-padding-right-max" minlength="4" maxlength="4" data-validation-message="{{:MyLang('form_images_verify_message')}}" autocomplete="off" data-is-clearout="0" required />
                            <span class="am-input-group-btn am-position-verify">
                                <span class="form-verify">
                                    <img src="{{:MyUrl('index/user/userverifyentry', ['type'=>'user_login'])}}" class="am-cursor-pointer am-radius" id="form-verify-img" onClick="this.src=this.src+(({{$url_model}} == 0) ? '&' : '?')+Math.random();" />
                                    <a href="javascript:;" class="form-verify-tips am-radius" onClick="document.getElementById('form-verify-img').src='{{:MyUrl('index/user/userverifyentry', ['type'=>'user_login'])}}{{if $url_model eq 0}}&{{else /}}?{{/if}}'+Math.random();">{{:MyLang('form_images_verify_button_text')}}</a>
                                </span>
                            </span>
                            <span class="am-material-bar"></span>
                            <label class="am-material-label">{{:MyLang('form_verify_title')}}</label>
                        </div>
                    {{/if}}
                    <div class="am-form-group am-form-group-refreshing am-margin-top-lg am-padding-0">
                        <input type="hidden" name="type" value="username" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius am-btn-md btn-loading-example" data-am-loading="{loadingText: '{{:MyLang('login_title')}}'}">{{:MyLang('login_title')}}</button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        {{/if}}
        {{if in_array('sms', $home_user_login_type)}}
            <div data-tab-panel-1 class="am-tab-panel {{if !in_array('username', $home_user_login_type) and !in_array('email', $home_user_login_type)}}am-active{{/if}}">
                <!-- form start -->
                <form class="am-form form-validation-sms" method="post" action="{{:MyUrl('index/user/login')}}" request-type="ajax-fun" request-value="LoginBackHandle">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="text" name="accounts" class="am-radius am-form-field" pattern="{{:MyConst('common_regex_mobile')}}" data-validation-message="{{:MyLang('user.form_item_mobile_message')}}" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('user.form_item_mobile')}}</label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="number" name="verify" class="am-radius am-form-field input-padding-right-max" min="0" minlength="4" maxlength="4" data-validation-message="{{:MyLang('form_verify_message')}}" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-input-group-btn am-position-verify-sms">
                            <button class="am-btn btn-loading-example user-verify-submit am-text-sm" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'{{:MyLang('send_tips')}}'}" data-url="{{:MyUrl('index/user/loginverifysend')}}" data-verify="{{:MyC('common_img_verify_state')}}" data-text="{{:MyLang('form_verify_button_text')}}" data-send-text="{{:MyLang('form_verify_send_text')}}" data-time="{{:MyC('common_verify_interval_time', 30, true)}}" data-form-tag="form.form-validation-sms">{{:MyLang('form_verify_button_text')}}</button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('form_verify_title')}}</label>
                    </div>
                    <div class="am-form-group am-form-group-refreshing am-margin-top-lg am-padding-0">
                        <input type="hidden" name="type" value="sms" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius btn-loading-example" data-am-loading="{loadingText: '{{:MyLang('login_title')}}'}">{{:MyLang('login_title')}}</button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        {{/if}}
        {{if in_array('email', $home_user_login_type)}}
            <div data-tab-panel-2 class="am-tab-panel {{if !in_array('username', $home_user_login_type)}}am-active{{/if}}">
                <!-- form start -->
                <form class="am-form form-validation-email" method="post" action="{{:MyUrl('index/user/login')}}" request-type="ajax-fun" request-value="LoginBackHandle">
                    <div class="am-form-group am-form-group-refreshing am-form-input-material">
                        <input type="email" name="accounts" class="am-radius am-form-field" data-validation-message="{{:MyLang('user.form_item_email_message')}}" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('user.form_item_email')}}</label>
                    </div>

                    <div class="am-form-group am-form-group-refreshing am-margin-top-main am-form-input-material">
                        <input type="number" name="verify" class="am-radius am-form-field input-padding-right-max" min="0" minlength="4" maxlength="4" data-validation-message="{{:MyLang('form_verify_message')}}" autocomplete="off" data-is-clearout="0" required />
                        <span class="am-input-group-btn am-position-verify-sms">
                            <button class="am-btn am-text-sm btn-loading-example user-verify-submit" type="button" data-am-loading="{spinner:'circle-o-notch', loadingText:'{{:MyLang('send_tips')}}'}" data-url="{{:MyUrl('index/user/loginverifysend')}}" data-verify="{{:MyC('common_img_verify_state')}}" data-text="{{:MyLang('form_verify_button_text')}}" data-send-text="{{:MyLang('form_verify_send_text')}}" data-time="{{:MyC('common_verify_interval_time', 30, true)}}" data-form-tag="form.form-validation-email">{{:MyLang('form_verify_button_text')}}</button>
                        </span>
                        <span class="am-material-bar"></span>
                        <label class="am-material-label">{{:MyLang('form_verify_title')}}</label>
                    </div>
                    <div class="am-form-group am-form-group-refreshing am-margin-top-lg am-padding-0">
                        <input type="hidden" name="type" value="email" />
                        <button type="submit" class="am-btn am-btn-primary am-btn-block am-radius btn-loading-example" data-am-loading="{loadingText: '{{:MyLang('login_title')}}'}">{{:MyLang('login_title')}}</button>
                    </div>
                </form>
                <!-- form end -->
            </div>
        {{/if}}
    </div>

    <!-- 底部内容 -->
    <div class="bottom-container am-padding-horizontal-lg am-padding-top-xs am-margipaddingn-bottom-sm am-nbfc">
        <div class="am-padding-horizontal-sm am-margin-bottom-sm am-nbfc">
            <!-- 用户登录内底部钩子 -->
            {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                <div class="plugins-tag">
                    <span>plugins_view_user_login_inside_bottom</span>
                </div>
            {{/if}}
            {{if !empty($plugins_view_user_login_inside_bottom_data) and is_array($plugins_view_user_login_inside_bottom_data)}}
                {{foreach $plugins_view_user_login_inside_bottom_data as $hook}}
                    {{if is_string($hook) or is_int($hook)}}
                        {{$hook|raw}}
                    {{/if}}
                {{/foreach}}
            {{/if}}

            <!-- 右侧快捷入口 -->
            <div class="am-fr">
                <a href="{{:MyUrl('index/user/forgetpwdinfo')}}" target="_blank" class="am-color-grey">{{:MyLang('user.forget_password_nav_title')}}</a>
            </div>
        </div>
        <div class="am-padding-horizontal-sm am-padding-vertical-xs am-margin-bottom-sm am-nbfc">
            <div class="bottom-content">
                {{if !empty($home_user_reg_type)}}
                    <span>{{:MyLang('user.login_top_register_tips')}}</span>
                    <a href="{{:MyUrl('index/user/reginfo')}}" class="am-btn-xs am-color-main" {{if isset($action_name) and $action_name eq 'modallogininfo'}}target="_blank"{{/if}}>{{:MyLang('user.register_ahora_register_title')}}</a>
                {{/if}}

                <!-- 用户登录内注册底部钩子 -->
                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                    <div class="plugins-tag">
                        <span>plugins_view_user_login_inside_reg_bottom</span>
                    </div>
                {{/if}}
                {{if !empty($plugins_view_user_login_inside_reg_bottom_data) and is_array($plugins_view_user_login_inside_reg_bottom_data)}}
                    {{foreach $plugins_view_user_login_inside_reg_bottom_data as $hook}}
                        {{if is_string($hook) or is_int($hook)}}
                            {{$hook|raw}}
                        {{/if}}
                    {{/foreach}}
                {{/if}}
            </div>
        </div>
    </div>

    <!-- 用户登录容器内底部钩子 -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
        <div class="plugins-tag">
            <span>plugins_view_user_login_content_inside_bottom</span>
        </div>
    {{/if}}
    {{if !empty($plugins_view_user_login_content_inside_bottom_data) and is_array($plugins_view_user_login_content_inside_bottom_data)}}
        {{foreach $plugins_view_user_login_content_inside_bottom_data as $hook}}
            {{if is_string($hook) or is_int($hook)}}
                {{$hook|raw}}
            {{/if}}
        {{/foreach}}
    {{/if}}
</div>

<!-- 用户登录内容页面底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
    <div class="plugins-tag">
        <span>plugins_view_user_login_content_bottom</span>
    </div>
{{/if}}
{{if !empty($plugins_view_user_login_content_bottom_data) and is_array($plugins_view_user_login_content_bottom_data)}}
    {{foreach $plugins_view_user_login_content_bottom_data as $hook}}
        {{if is_string($hook) or is_int($hook)}}
            {{$hook|raw}}
        {{/if}}
    {{/foreach}}
{{/if}}