Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
ef928aee
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ef928aee
编写于
5月 15, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户注册
上级
d438d38e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
135 addition
and
4 deletion
+135
-4
application/index/view/default/user/reg_info.html
application/index/view/default/user/reg_info.html
+118
-4
public/static/index/default/css/user.reginfo.css
public/static/index/default/css/user.reginfo.css
+17
-0
未找到文件。
application/index/view/default/user/reg_info.html
浏览文件 @
ef928aee
...
...
@@ -14,8 +14,122 @@
<!-- conntent start -->
<div
class=
"am-g my-content"
>
<div
class=
"am-u-md-6 am-u-sm-centered"
>
<div
class=
"reg-switch-view"
>
<div
class=
"am-u-md-8 am-u-sm-centered"
>
<div
class=
"register-container"
>
{{if MyC('home_user_login_state') eq 1}}
<span>
已有帐号?
</span>
<a
href=
"{{:MyUrl('index/user/logininfo')}}"
>
<button
type=
"button"
class=
"am-btn am-btn-secondary am-btn-xs am-radius"
>
立即登录
</button>
</a>
{{/if}}
<div
data-am-widget=
"tabs"
class=
"am-tabs am-tabs-d2"
>
<ul
class=
"am-tabs-nav am-cf"
>
<li
class=
"am-active"
><a
href=
"[data-tab-panel-0]"
>
账号注册
</a></li>
<li
class=
""
><a
href=
"[data-tab-panel-1]"
>
手机注册
</a></li>
<li
class=
""
><a
href=
"[data-tab-panel-2]"
>
邮箱注册
</a></li>
</ul>
<div
class=
"am-tabs-bd"
>
<div
data-tab-panel-0
class=
"am-tab-panel am-active"
>
<!-- form start -->
<form
class=
"am-form form-validation"
method=
"post"
action=
"{{:MyUrl('index/user/reg')}}"
request-type=
"ajax-fun"
request-value=
"RegisterSuccessBack"
>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
用户名
</label>
<input
type=
"text"
name=
"accounts"
class=
"am-radius"
id=
"accounts"
placeholder=
"用户名"
data-validation-message=
"请填写有效的用户名"
required
/>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
设置登录密码
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"password"
name=
"pwd"
class=
"am-radius"
placeholder=
"设置登录密码"
pattern=
"{{:lang('common_regex_pwd')}}"
data-validation-message=
"密码格式 6~18 个字符之间"
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>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"type"
value=
"username"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius am-btn-sm btn-loading-example"
data-am-loading=
"{loadingText: '处理中...'}"
>
注册
</button>
</div>
</form>
<!-- form end -->
</div>
<div
data-tab-panel-1
class=
"am-tab-panel "
>
<!-- form start -->
<form
class=
"am-form form-validation"
method=
"post"
action=
"{{:MyUrl('index/user/reg')}}"
request-type=
"ajax-fun"
request-value=
"RegisterSuccessBack"
>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
手机号码
</label>
<input
type=
"text"
name=
"accounts"
class=
"am-radius"
id=
"accounts"
placeholder=
"手机号码"
pattern=
"{{:lang('common_regex_mobile')}}"
data-validation-message=
"手机号码格式错误"
required
/>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
验证码
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"number"
name=
"verify"
class=
"am-radius"
placeholder=
"验证码"
minlength=
"6"
maxlength=
"6"
data-validation-message=
"验证码格式 6 位数字"
required
/>
<span
class=
"am-input-group-btn"
>
<button
class=
"am-btn am-btn-default am-radius btn-loading-example verify-submit"
type=
"button"
data-am-loading=
"{spinner:'circle-o-notch', loadingText:'发送中...'}"
data-url=
"{{:MyUrl('index/user/regverifysend')}}"
data-verify=
"{{:MyC('home_img_verify_state')}}"
data-text=
"获取验证码"
data-send-text=
"还有 {time} 秒"
data-time=
"{{:MyC('common_verify_time_interval', 30, true)}}"
>
获取验证码
</button>
</span>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
设置登录密码
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"password"
name=
"pwd"
class=
"am-radius"
placeholder=
"设置登录密码"
pattern=
"{{:lang('common_regex_pwd')}}"
data-validation-message=
"密码格式 6~18 个字符之间"
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>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"type"
value=
"sms"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius am-btn-sm btn-loading-example"
data-am-loading=
"{loadingText: '处理中...'}"
>
注册
</button>
</div>
</form>
<!-- form end -->
</div>
<div
data-tab-panel-2
class=
"am-tab-panel "
>
<!-- form start -->
<form
class=
"am-form form-validation"
method=
"post"
action=
"{{:MyUrl('index/user/reg')}}"
request-type=
"ajax-fun"
request-value=
"RegisterSuccessBack"
>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
电子邮箱
</label>
<input
type=
"email"
name=
"accounts"
class=
"am-radius"
id=
"accounts"
placeholder=
"电子邮箱"
data-validation-message=
"电子邮箱格式错误"
required
/>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
验证码
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"number"
name=
"verify"
class=
"am-radius"
placeholder=
"验证码"
minlength=
"6"
maxlength=
"6"
data-validation-message=
"验证码格式 6 位数字"
required
/>
<span
class=
"am-input-group-btn"
>
<button
class=
"am-btn am-btn-default am-radius btn-loading-example verify-submit"
type=
"button"
data-am-loading=
"{spinner:'circle-o-notch', loadingText:'发送中...'}"
data-url=
"{{:MyUrl('index/user/regverifysend')}}"
data-verify=
"{{:MyC('home_img_verify_state')}}"
data-text=
"获取验证码"
data-send-text=
"还有 {time} 秒"
data-time=
"{{:MyC('common_verify_time_interval', 30, true)}}"
>
获取验证码
</button>
</span>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<label>
设置登录密码
</label>
<div
class=
"am-input-group am-input-group-sm"
>
<input
type=
"password"
name=
"pwd"
class=
"am-radius"
placeholder=
"设置登录密码"
pattern=
"{{:lang('common_regex_pwd')}}"
data-validation-message=
"密码格式 6~18 个字符之间"
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>
</div>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"type"
value=
"email"
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius am-btn-sm btn-loading-example"
data-am-loading=
"{loadingText: '处理中...'}"
>
注册
</button>
</div>
</form>
<!-- form end -->
</div>
</div>
</div>
<a
href=
"{{:MyUrl('index/user/forgetpwdinfo')}}"
class=
"am-fr m-t-5"
>
忘记密码?
</a>
</div>
<!-- <div class="reg-switch-view">
{{if in_array('sms', MyC('home_user_reg_state'))}}
<a href="{{:MyUrl('index/user/smsreginfo')}}" class="am-btn am-btn-primary"><i class="am-icon-comment-o am-icon-sm"></i> 短信注册</a>
{{else /}}
...
...
@@ -27,7 +141,7 @@
<a class="am-btn am-btn-danger am-disabled" href="javascript:;"><i class="am-icon-envelope-o am-icon-sm"></i> 暂时关闭邮箱注册</a>
{{/if}}
<!-- 用户注册页面钩子 -->
用户注册页面钩子
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_user_reg_info</span>
...
...
@@ -40,7 +154,7 @@
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
-->
</div>
</div>
<!-- conntent end -->
...
...
public/static/index/default/css/user.reginfo.css
0 → 100644
浏览文件 @
ef928aee
.register-container
,
.register-container
.am-tabs
{
margin-top
:
20px
;
}
.register-container
.am-tabs
{
background
:
rgba
(
0
,
0
,
0
,
0.15
);
padding
:
10px
;
}
.register-container
.am-tabs
.am-tabs-bd
{
background
:
#fff
;
}
.my-content
{
background
:
#FAFAFA
url(http://b2b2c.shopnctest.com/dema/member/templates/default/images/register_bg.png)
repeat
50%
50%
;
width
:
100%
;
height
:
680px
;
overflow
:
hidden
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录