2018-12-28 10:58:37 +00:00
|
|
|
{{include file="public/header" /}}
|
|
|
|
|
|
|
|
|
|
<!-- header top nav -->
|
|
|
|
|
{{include file="public/header_top_nav" /}}
|
|
|
|
|
|
|
|
|
|
<!-- search -->
|
|
|
|
|
{{include file="public/nav_search" /}}
|
|
|
|
|
|
|
|
|
|
<!-- header nav -->
|
|
|
|
|
{{include file="public/header_nav" /}}
|
|
|
|
|
|
|
|
|
|
<!-- goods category -->
|
|
|
|
|
{{include file="public/goods_category" /}}
|
|
|
|
|
|
|
|
|
|
<!-- conntent start -->
|
2019-05-17 09:47:47 +00:00
|
|
|
<div class="am-g my-content" {{if !empty($user_login_left_data['bg_color'])}}style="background-color:{{$user_login_left_data.bg_color}};"{{/if}}>
|
2019-05-16 10:42:22 +00:00
|
|
|
<div class="am-container user-login-container">
|
|
|
|
|
<div class="am-hide-sm-only am-u-md-6 am-u-lg-8 am-vertical-align am-text-center container-left">
|
2019-05-17 09:47:47 +00:00
|
|
|
{{if !empty($user_login_left_data['images'])}}
|
2021-11-23 01:21:16 +00:00
|
|
|
<a {{if empty($user_login_left_data['url'])}}href="javascript:;"{{else /}}href="{{$user_login_left_data.url}}" target="_blank"{{/if}}>
|
2019-05-17 09:47:47 +00:00
|
|
|
<img src="{{$user_login_left_data.images}}" class="am-vertical-align-middle" alt="用户登录" />
|
|
|
|
|
</a>
|
|
|
|
|
{{/if}}
|
2019-05-16 10:42:22 +00:00
|
|
|
</div>
|
2019-05-16 17:42:37 +00:00
|
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-4 container-right">
|
2021-03-04 13:50:30 +00:00
|
|
|
<div class="login-top">
|
|
|
|
|
{{if !empty($home_user_reg_type)}}
|
2019-05-16 10:42:22 +00:00
|
|
|
<span class="">还没有帐号?</span>
|
2019-05-24 09:58:05 +00:00
|
|
|
<a href="{{:MyUrl('index/user/reginfo')}}" class="am-btn am-btn-secondary am-btn-xs am-radius">注册</a>
|
2019-05-16 10:42:22 +00:00
|
|
|
{{/if}}
|
2019-03-02 06:33:51 +00:00
|
|
|
|
2019-05-16 10:42:22 +00:00
|
|
|
<!-- 用户登录页面顶部钩子 -->
|
2019-03-15 16:22:06 +00:00
|
|
|
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
|
|
|
|
<div class="plugins-tag">
|
|
|
|
|
<span>plugins_view_user_login_info_top</span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if !empty($plugins_view_user_login_info_top_data) and is_array($plugins_view_user_login_info_top_data)}}
|
|
|
|
|
{{foreach $plugins_view_user_login_info_top_data as $hook}}
|
|
|
|
|
{{if is_string($hook) or is_int($hook)}}
|
|
|
|
|
{{$hook|raw}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/foreach}}
|
|
|
|
|
{{/if}}
|
2019-05-16 10:42:22 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="user-form-container">
|
2021-03-04 13:50:30 +00:00
|
|
|
{{if count($home_user_login_type) gt 0}}
|
|
|
|
|
{{include file="user/login_content" /}}
|
|
|
|
|
{{else /}}
|
|
|
|
|
<div class="am-text-center am-padding-vertical-lg register-close"><i class="am-icon-warning"></i> 暂时关闭了登录</div>
|
|
|
|
|
{{/if}}
|
2019-05-16 10:42:22 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-12-28 10:58:37 +00:00
|
|
|
</div>
|
|
|
|
|
<!-- conntent end -->
|
|
|
|
|
|
2021-03-04 13:50:30 +00:00
|
|
|
<!-- 图片验证码 -->
|
|
|
|
|
{{if MyC('common_img_verify_state') eq 1}}
|
|
|
|
|
{{include file="user/images_verify" type="user_login" /}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2019-04-04 03:14:03 +00:00
|
|
|
{{include file="public/footer" /}}
|
2018-12-28 10:58:37 +00:00
|
|
|
|
2019-04-04 03:14:03 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
// 登录成功回调
|
2021-03-04 13:50:30 +00:00
|
|
|
function LoginBackHandle(e)
|
2019-04-04 03:14:03 +00:00
|
|
|
{
|
2021-03-04 13:50:30 +00:00
|
|
|
$.AMUI.progress.done();
|
2019-04-04 03:14:03 +00:00
|
|
|
if(e.code == 0)
|
|
|
|
|
{
|
|
|
|
|
Prompt(e.msg, 'success');
|
|
|
|
|
|
|
|
|
|
// 登录返回html处理
|
|
|
|
|
if((e.data.body_html || null) != null)
|
|
|
|
|
{
|
|
|
|
|
$('body').append(e.data.body_html);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTimeout(function()
|
|
|
|
|
{
|
|
|
|
|
window.location.href = '{{$referer_url}}';
|
|
|
|
|
}, 1500);
|
|
|
|
|
} else {
|
2021-03-04 13:50:30 +00:00
|
|
|
$('form.am-form').find('button[type="submit"]').button('reset');
|
2019-04-04 03:14:03 +00:00
|
|
|
Prompt(e.msg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|