Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
yii2_fecshop
提交
8201ca85
Y
yii2_fecshop
项目概览
OpenDocCN
/
yii2_fecshop
通知
17
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yii2_fecshop
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8201ca85
编写于
12月 12, 2017
作者:
T
Terry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
apphtml5评论的toolbar分页
上级
c3ff6e87
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
24 addition
and
13 deletion
+24
-13
app/appfront/modules/Catalog/controllers/CategoryController.php
...pfront/modules/Catalog/controllers/CategoryController.php
+1
-0
app/apphtml5/modules/Catalog/block/reviewproduct/Lists.php
app/apphtml5/modules/Catalog/block/reviewproduct/Lists.php
+2
-1
app/apphtml5/theme/base/html5/assets/css/fec.css
app/apphtml5/theme/base/html5/assets/css/fec.css
+4
-1
app/apphtml5/theme/base/html5/catalog/reviewproduct/lists.php
...apphtml5/theme/base/html5/catalog/reviewproduct/lists.php
+4
-2
app/apphtml5/theme/base/html5/customer/order/index.php
app/apphtml5/theme/base/html5/customer/order/index.php
+4
-2
app/apphtml5/theme/base/html5/customer/productreview/index.php
...pphtml5/theme/base/html5/customer/productreview/index.php
+3
-1
app/apphtml5/theme/base/html5/widgets/page.php
app/apphtml5/theme/base/html5/widgets/page.php
+6
-6
未找到文件。
app/appfront/modules/Catalog/controllers/CategoryController.php
浏览文件 @
8201ca85
...
...
@@ -27,6 +27,7 @@ class CategoryController extends AppfrontController
// 分类页面。
public
function
actionIndex
()
{
echo
date
(
'Y-m-d H:i:s'
);
$data
=
$this
->
getBlock
()
->
getLastData
();
if
(
is_array
(
$data
)){
return
$this
->
render
(
$this
->
action
->
id
,
$data
);
...
...
app/apphtml5/modules/Catalog/block/reviewproduct/Lists.php
浏览文件 @
8201ca85
...
...
@@ -23,7 +23,7 @@ class Lists
public
$filterBySpu
=
true
;
public
$filterOrderBy
=
'review_date'
;
public
$_page
=
'p'
;
public
$numPerPage
=
2
0
;
public
$numPerPage
=
1
0
;
public
$pageNum
;
/**
* 为了可以使用rewriteMap,use 引入的文件统一采用下面的方式,通过Yii::mapGet()得到className和Object
...
...
@@ -48,6 +48,7 @@ class Lists
protected
function
getProductPage
(
$countTotal
)
{
if
(
$countTotal
<=
$this
->
numPerPage
)
{
echo
"
$countTotal
<=
$this->numPerPage
"
;
return
''
;
}
$config
=
[
...
...
app/apphtml5/theme/base/html5/assets/css/fec.css
浏览文件 @
8201ca85
...
...
@@ -1042,8 +1042,11 @@ ul#billing_address_list li input , ul#billing_address_list li select{
text-decoration
:
line-through
;
}
.pageToolbar
{
margin
:
10px
auto
;
width
:
80%
;}
.pageToolbar
label
{
font-size
:
0.6rem
;
float
:
left
;}
.pageToolbar
.tb_rg
{
float
:
left
;}
...
...
app/apphtml5/theme/base/html5/catalog/reviewproduct/lists.php
浏览文件 @
8201ca85
...
...
@@ -117,8 +117,10 @@
<?php
if
(
$pageToolBar
)
:
?>
<div
class=
"pageToolbar"
>
<label
class=
"title"
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
</div>
<label
class=
""
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
<div
class=
"clear"
></div>
</div>
<?php
endif
;
?>
</div>
</div>
...
...
app/apphtml5/theme/base/html5/customer/order/index.php
浏览文件 @
8201ca85
...
...
@@ -58,8 +58,10 @@
</tbody>
</table>
<?php
if
(
$pageToolBar
)
:
?>
<div
class=
"pageToolbar"
>
<label
class=
"title"
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
<div
class=
"pageToolbar customer_order"
>
<label
class=
""
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
<div
class=
"clear"
></div>
</div>
<?php
endif
;
?>
</div>
...
...
app/apphtml5/theme/base/html5/customer/productreview/index.php
浏览文件 @
8201ca85
...
...
@@ -70,7 +70,9 @@ use fecshop\app\apphtml5\helper\Format;
</table>
<?php
if
(
$pageToolBar
)
:
?>
<div
class=
"pageToolbar"
>
<label
class=
"title"
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
<label
class=
""
>
<?=
Yii
::
$service
->
page
->
translate
->
__
(
'Page:'
);
?>
</label>
<?=
$pageToolBar
?>
<div
class=
"clear"
></div>
</div>
<?php
endif
;
?>
</div>
...
...
app/apphtml5/theme/base/html5/widgets/page.php
浏览文件 @
8201ca85
...
...
@@ -9,17 +9,17 @@
?>
<div
class=
"tb_rg"
>
<?php
if
(
$prevPage
)
:
?>
<a
href=
"
<?=
$prevPage
[
'url'
][
'url'
]
?>
"
><
</
a
>
<a
external
href=
"
<?=
$prevPage
[
'url'
][
'url'
]
?>
"
><
</
a
>
<?php
else
:
?>
<span><
</
span
>
<?php
endif
;
?>
<?php
if
(
$firstSpaceShow
)
:
?>
<a
href=
"
<?=
$firstSpaceShow
[
'url'
][
'url'
]
?>
"
>
<?=
$firstSpaceShow
[
'p'
]
?>
</a>
<a
external
href=
"
<?=
$firstSpaceShow
[
'url'
][
'url'
]
?>
"
>
<?=
$firstSpaceShow
[
'p'
]
?>
</a>
<?php
endif
;
?>
<?=
$hiddenFrontStr
?>
<?php
if
(
!
empty
(
$frontPage
))
:
?>
<?php
foreach
(
$frontPage
as
$page
)
:
?>
<a
href=
"
<?=
$page
[
'url'
][
'url'
]
?>
"
>
<?=
$page
[
'p'
]
?>
</a>
<a
external
href=
"
<?=
$page
[
'url'
][
'url'
]
?>
"
>
<?=
$page
[
'p'
]
?>
</a>
<?php
endforeach
;
?>
<?php
endif
;
?>
...
...
@@ -29,16 +29,16 @@
<?php
if
(
!
empty
(
$behindPage
))
:
?>
<?php
foreach
(
$behindPage
as
$page
)
:
?>
<a
href=
"
<?=
$page
[
'url'
][
'url'
]
?>
"
>
<?=
$page
[
'p'
]
?>
</a>
<a
external
href=
"
<?=
$page
[
'url'
][
'url'
]
?>
"
>
<?=
$page
[
'p'
]
?>
</a>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?=
$hiddenBehindStr
?>
<?php
if
(
$lastSpaceShow
)
:
?>
<a
href=
"
<?=
$lastSpaceShow
[
'url'
][
'url'
]
?>
"
>
<?=
$lastSpaceShow
[
'p'
]
?>
</a>
<a
external
href=
"
<?=
$lastSpaceShow
[
'url'
][
'url'
]
?>
"
>
<?=
$lastSpaceShow
[
'p'
]
?>
</a>
<?php
endif
;
?>
<?php
if
(
$nextPage
)
:
?>
<a
href=
"
<?=
$nextPage
[
'url'
][
'url'
]
?>
"
>
>
</a>
<a
external
href=
"
<?=
$nextPage
[
'url'
][
'url'
]
?>
"
>
>
</a>
<?php
else
:
?>
<span>
>
</span>
<?php
endif
;
?>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录