Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
9562e51e
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9562e51e
编写于
5月 31, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
a495a8df
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
8 deletion
+5
-8
application/index/view/default/search/index.html
application/index/view/default/search/index.html
+1
-1
application/index/view/default/user/index.html
application/index/view/default/user/index.html
+2
-2
application/service/GoodsService.php
application/service/GoodsService.php
+2
-2
public/static/index/default/css/search.css
public/static/index/default/css/search.css
+0
-3
未找到文件。
application/index/view/default/search/index.html
浏览文件 @
9562e51e
...
...
@@ -15,7 +15,7 @@
<!-- content -->
<div
class=
"am-container search-content"
data-category-id=
"{{$params.category_id}}"
>
<div
class=
"search-list"
>
<div
class=
"am-u-sm-12 am-u-md-12"
>
<div
class=
"am-u-sm-12 am-u-md-12
am-padding-left-0 am-padding-right-0
"
>
<div
class=
"theme-popover"
>
<ul
class=
"select"
>
<p
class=
"title-tips"
>
...
...
application/index/view/default/user/index.html
浏览文件 @
9562e51e
...
...
@@ -255,7 +255,7 @@
<a
href=
"{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}"
target=
"_blank"
>
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-radius"
/>
<h3
class=
"am-gallery-title"
>
{{$goods.title}}
</h3>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.price}}
</div>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.
min_
price}}
</div>
</a>
</div>
</li>
...
...
@@ -294,7 +294,7 @@
<img
src=
"{{$goods.images}}"
alt=
"{{$goods.title}}"
class=
"am-img-thumbnail am-circle"
/>
<h3
class=
"am-gallery-title"
>
{{$goods.title}}
</h3>
</a>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.price}}
</div>
<div
class=
"am-gallery-desc line-price"
>
¥{{$goods.
min_
price}}
</div>
</div>
</li>
{{/foreach}}
...
...
application/service/GoodsService.php
浏览文件 @
9562e51e
...
...
@@ -671,7 +671,7 @@ class GoodsService
$m
=
isset
(
$params
[
'm'
])
?
intval
(
$params
[
'm'
])
:
0
;
$n
=
isset
(
$params
[
'n'
])
?
intval
(
$params
[
'n'
])
:
10
;
$order_by
=
empty
(
$params
[
'order_by'
])
?
'f.id desc'
:
$params
[
'order_by'
];
$field
=
'f.*, g.title, g.original_price, g.price, g.images'
;
$field
=
'f.*, g.title, g.original_price, g.price, g.
min_price, g.
images'
;
// 获取数据
$data
=
Db
::
name
(
'GoodsFavor'
)
->
alias
(
'f'
)
->
join
([
'__GOODS__'
=>
'g'
],
'g.id=f.goods_id'
)
->
field
(
$field
)
->
where
(
$where
)
->
limit
(
$m
,
$n
)
->
order
(
$order_by
)
->
select
();
...
...
@@ -817,7 +817,7 @@ class GoodsService
$m
=
isset
(
$params
[
'm'
])
?
intval
(
$params
[
'm'
])
:
0
;
$n
=
isset
(
$params
[
'n'
])
?
intval
(
$params
[
'n'
])
:
10
;
$order_by
=
empty
(
$params
[
'order_by'
])
?
'b.id desc'
:
$params
[
'order_by'
];
$field
=
'b.*, g.title, g.original_price, g.price, g.images'
;
$field
=
'b.*, g.title, g.original_price, g.price, g.
min_price, g.
images'
;
// 获取数据
$data
=
Db
::
name
(
'GoodsBrowse'
)
->
alias
(
'b'
)
->
join
([
'__GOODS__'
=>
'g'
],
'g.id=b.goods_id'
)
->
field
(
$field
)
->
where
(
$where
)
->
limit
(
$m
,
$n
)
->
order
(
$order_by
)
->
select
();
...
...
public/static/index/default/css/search.css
浏览文件 @
9562e51e
...
...
@@ -5,7 +5,6 @@
.select
.title-tips
{
font-size
:
12px
;
color
:
#888
;
}
.select
.title-tips
strong
{
font-weight
:
500
;
color
:
#fe90a0
;
}
/* select */
.sort-nav
{
padding
:
0px
;
font-size
:
12px
}
.suggest
{
display
:
none
;}
...
...
@@ -38,9 +37,7 @@ li.select-result dt {left:-26px; top:0;font-weight:bold;width:50px;}
/*筛选条件*/
.select-list
{
float
:
left
;
display
:
inline
;
left
:
0
;
width
:
33.33%
;
height
:
30px
;}
.select-list
dl
dt
{
left
:
0px
;
cursor
:
pointer
;
text-align
:
center
;}
{
display
:
none
;
float
:
left
;
top
:
20px
;
padding-top
:
5px
;
z-index
:
10
;
left
:
0px
;
width
:
300%
;
position
:
absolute
;}
.select-list
.dd-conent
{
display
:
none
;
z-index
:
10
;
left
:
0
;
width
:
100%
;
position
:
fixed
;
background
:
#fff
;
max-height
:
50%
;
padding-bottom
:
10px
;
}
.select-list
.dd-conent
dd
{
width
:
33.33%
;
text-align
:
center
;
margin-left
:
0px
;
height
:
25px
;}
dl
#select2
.dd-conent
{
left
:
-100%
;
right
:
-100%
;}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录