Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
e063f9c4
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,体验更适合开发者的 AI 搜索 >>
提交
e063f9c4
编写于
5月 21, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
登录注册页面优化
上级
ffbc43a7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
46 addition
and
6 deletion
+46
-6
application/index/controller/Common.php
application/index/controller/Common.php
+6
-0
application/index/view/default/user/login_content.html
application/index/view/default/user/login_content.html
+19
-3
application/index/view/default/user/reg_info.html
application/index/view/default/user/reg_info.html
+18
-0
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+2
-2
public/static/index/default/css/user.css
public/static/index/default/css/user.css
+1
-1
未找到文件。
application/index/controller/Common.php
浏览文件 @
e063f9c4
...
...
@@ -169,6 +169,9 @@ class Common extends Controller
// 用户登录页面顶部钩子
$this
->
assign
(
'plugins_view_user_login_info_top_data'
,
Hook
::
listen
(
'plugins_view_user_login_info_top'
,
[
'hook_name'
=>
'plugins_view_user_login_info_top'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
// 用户登录内底部钩子
$this
->
assign
(
'plugins_view_user_login_inside_bottom_data'
,
Hook
::
listen
(
'plugins_view_user_login_inside_bottom'
,
[
'hook_name'
=>
'plugins_view_user_login_inside_bottom'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
// 用户登录内容页面底部钩子
$this
->
assign
(
'plugins_view_user_login_content_bottom_data'
,
Hook
::
listen
(
'plugins_view_user_login_content_bottom'
,
[
'hook_name'
=>
'plugins_view_user_login_content_bottom'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
...
...
@@ -178,6 +181,9 @@ class Common extends Controller
// 用户注册页面顶部钩子
$this
->
assign
(
'plugins_view_user_reg_info_top_data'
,
Hook
::
listen
(
'plugins_view_user_reg_info_top'
,
[
'hook_name'
=>
'plugins_view_user_reg_info_top'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
// 用户注册页面内底部钩子
$this
->
assign
(
'plugins_view_user_reg_info_inside_bottom_data'
,
Hook
::
listen
(
'plugins_view_user_reg_info_inside_bottom'
,
[
'hook_name'
=>
'plugins_view_user_reg_info_inside_bottom'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
// 用户注册页面底部钩子
$this
->
assign
(
'plugins_view_user_reg_info_bottom_data'
,
Hook
::
listen
(
'plugins_view_user_reg_info_bottom'
,
[
'hook_name'
=>
'plugins_view_user_reg_info_bottom'
,
'is_backend'
=>
false
,
'user'
=>
$this
->
user
]));
...
...
application/index/view/default/user/login_content.html
浏览文件 @
e063f9c4
...
...
@@ -107,9 +107,25 @@
</div>
{{/if}}
<div
class=
"am-padding-sm am-nbfc"
>
<a
href=
"{{:MyUrl('index/user/reginfo')}}"
target=
"_blank"
class=
"am-fl"
>
免费注册
</a>
<a
href=
"{{:MyUrl('index/user/forgetpwdinfo')}}"
target=
"_blank"
class=
"am-fr"
>
忘记密码?
</a>
<div
class=
"am-padding-horizontal-xs am-padding-vertical-xs 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/reginfo')}}"
target=
"_blank"
class=
"am-text-danger am-margin-right-sm"
>
免费注册
</a>
<a
href=
"{{:MyUrl('index/user/forgetpwdinfo')}}"
target=
"_blank"
>
忘记密码
</a>
</div>
</div>
</div>
</div>
...
...
application/index/view/default/user/reg_info.html
浏览文件 @
e063f9c4
...
...
@@ -154,6 +154,8 @@
<input
type=
"checkbox"
value=
"1"
name=
"is_agree_agreement"
data-validation-message=
"请同意协议"
data-am-ucheck
required
/>
阅读并同意
</label>
<a
href=
"{{:MyUrl('index/agreement/index', ['document'=>'userregister'])}}"
target=
"_blank"
>
《服务协议》
</a>
<span>
与
</span>
<a
href=
"{{:MyUrl('index/agreement/index', ['document'=>'userprivacy'])}}"
target=
"_blank"
>
《隐私政策》
</a>
</div>
{{/if}}
...
...
@@ -200,6 +202,8 @@
<input
type=
"checkbox"
value=
"1"
name=
"is_agree_agreement"
data-validation-message=
"请同意协议"
data-am-ucheck
required
/>
阅读并同意
</label>
<a
href=
"{{:MyUrl('index/agreement/index', ['document'=>'userregister'])}}"
target=
"_blank"
>
《服务协议》
</a>
<span>
与
</span>
<a
href=
"{{:MyUrl('index/agreement/index', ['document'=>'userprivacy'])}}"
target=
"_blank"
>
《隐私政策》
</a>
</div>
{{/if}}
...
...
@@ -211,6 +215,20 @@
<!-- form end -->
</div>
{{/if}}
<!-- 用户注册页面内底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div
class=
"plugins-tag"
>
<span>
plugins_view_user_reg_info_inside_bottom
</span>
</div>
{{/if}}
{{if !empty($plugins_view_user_reg_info_inside_bottom_data) and is_array($plugins_view_user_reg_info_inside_bottom_data)}}
{{foreach $plugins_view_user_reg_info_inside_bottom_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
{{else /}}
...
...
public/static/index/default/css/common.css
浏览文件 @
e063f9c4
...
...
@@ -448,9 +448,9 @@ ul.am-dropdown-content > .am-active > a:focus,
@media
only
screen
and
(
min-width
:
641px
)
{
.common-login-modal
{
max-width
:
400px
;
height
:
4
08
px
;
height
:
4
30
px
;
left
:
calc
(
50%
-
200px
);
top
:
calc
(
50%
-
2
04
px
);
top
:
calc
(
50%
-
2
15
px
);
margin-left
:
0
;
margin-top
:
0
;
}
...
...
public/static/index/default/css/user.css
浏览文件 @
e063f9c4
...
...
@@ -54,7 +54,7 @@
.my-content
form
.am-form
{
background
:
#fff
;
overflow
:
hidden
;
padding
-top
:
10px
;
padding
:
10px
10px
15px
10px
;
}
.my-content
form
.am-form
.am-form-group
{
padding
:
5px
10px
!important
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录