vr-shopxo-plugin/shopxo/app/index/view/default/user/reginfo.html

107 lines
3.9 KiB
HTML
Raw Normal View History

{{:ModuleInclude('public/header')}}
<!-- header top nav -->
{{:ModuleInclude('public/header_top_nav')}}
<!-- header simple nav -->
{{:ModuleInclude('public/header_nav_simple', [
'title' => MyLang('user.register_nav_title'),
'is_go_home' => '1',
'is_sm_hide' => '0'
])}}
<!-- conntent start -->
<div class="am-g user-register-container theme-data-edit-event" data-module="user_register" {{if !empty($user_register_bg_images)}}style="background: {{if empty($user_register_bg_color)}}#f5f5f5{{else /}}{{$user_register_bg_color}}{{/if}} url({{:AttachmentPathViewHandle($user_register_bg_images)}});"{{/if}}>
<div class="am-container">
<!-- 用户注册页面顶部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_user_reg_info_top</span>
</div>
{{/if}}
{{if !empty($plugins_view_user_reg_info_top_data) and is_array($plugins_view_user_reg_info_top_data)}}
{{foreach $plugins_view_user_reg_info_top_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
<div class="register-container am-margin-auto">
<div class="register-top">
<!-- 用户注册页面钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_user_reg_info</span>
</div>
{{/if}}
{{if !empty($plugins_view_user_reg_info_data) and is_array($plugins_view_user_reg_info_data)}}
{{foreach $plugins_view_user_reg_info_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
<div class="am-radius-lg am-background-white">
{{if count($home_user_reg_type) gt 0}}
{{:ModuleInclude('user/reg_content')}}
{{else /}}
<div class="am-text-center am-padding-vertical-lg register-close">
<i class="am-icon-warning"></i>
<span>{{:MyLang('user.register_close_tips')}}</span>
</div>
{{/if}}
</div>
</div>
<!-- 用户注册页面底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_user_reg_info_bottom</span>
</div>
{{/if}}
{{if !empty($plugins_view_user_reg_info_bottom_data) and is_array($plugins_view_user_reg_info_bottom_data)}}
{{foreach $plugins_view_user_reg_info_bottom_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
<!-- conntent end -->
<!-- 图片验证码 -->
{{if MyC('common_img_verify_state') eq 1}}
{{:ModuleInclude('user/images_verify', ['type'=>'user_reg'])}}
{{/if}}
{{:ModuleInclude('public/footer')}}
<script type="text/javascript">
// 注册成功回调
function RegisterSuccessBack(e)
{
if(e.code == 0)
{
$.AMUI.progress.done();
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 {
$('.register-container form.am-form').find('button[type="submit"]').button('reset');
$.AMUI.progress.done();
Prompt(e.msg);
}
}
</script>