切换导航条
此项目
正在载入...
登录
潘浩文
/
scoreshop
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
潘浩文
6 years ago
提交
2b88f76a0ab4a15c1aafcddbef9e3ba1aea7a566
1 个父辈
2d1045d9
1 个管道 的构建
通过
耗费 0 秒
测试反馈修改
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
16 行增加
和
9 行删除
public/themes/simpleboot3/portal/brand/brand.html
public/themes/simpleboot3/portal/brand/brand_detail.html
public/themes/simpleboot3/portal/brand/brand.html
查看文件 @
2b88f76
...
...
@@ -268,7 +268,7 @@
<div
class=
"kindwrapper"
style=
"display:none"
>
<ul
class=
"kindlist"
>
<li>
<p
data-id=
""
onclick=
"
floor
(this)"
>
全部
</p>
<p
data-id=
""
onclick=
"
category
(this)"
>
全部
</p>
</li>
<foreach
name=
"category"
item=
"vo"
>
<li>
...
...
@@ -499,19 +499,24 @@ $(".search_img").click(function(){
}
})
});
var
order
=
1
var
category
=
""
var
floor
=
""
//默认排序
$
(
"#order"
).
click
(
function
(){
var
status
=
$
(
"#order"
).
html
()
if
(
status
==
'默认排序'
){
var
order
=
1
;
order
=
1
;
}
else
if
(
status
==
'热度排序'
){
var
order
=
""
;
order
=
""
;
}
$
.
ajax
({
url
:
"{:url('portal/brand/brandAjax')}"
,
type
:
"post"
,
data
:
{
category
:
category
,
floor
:
floor
,
order
:
order
,
},
success
:
function
(
data
)
{
...
...
@@ -541,13 +546,15 @@ $("#order").click(function(){
})
});
function
category
(
obj
)
{
var
id
=
$
(
obj
).
data
(
"id"
);
category
=
$
(
obj
).
data
(
"id"
);
var
content
=
$
(
obj
).
html
();
$
.
ajax
({
url
:
"{:url('portal/brand/brandAjax')}"
,
type
:
"post"
,
data
:
{
category
:
id
,
category
:
category
,
floor
:
floor
,
order
:
order
,
},
success
:
function
(
data
)
{
var
html
=
""
...
...
@@ -580,13 +587,15 @@ function category(obj) {
})
}
function
floor
(
obj
)
{
var
id
=
$
(
obj
).
data
(
"id"
);
floor
=
$
(
obj
).
data
(
"id"
);
var
content
=
$
(
obj
).
html
();
$
.
ajax
({
url
:
"{:url('portal/brand/brandAjax')}"
,
type
:
"post"
,
data
:
{
floor
:
id
,
category
:
category
,
floor
:
floor
,
order
:
order
,
},
success
:
function
(
data
)
{
var
html
=
""
...
...
public/themes/simpleboot3/portal/brand/brand_detail.html
查看文件 @
2b88f76
...
...
@@ -329,7 +329,6 @@
var
num
=
$
(
".commentnum"
).
html
();
num
++
;
$
(
".commentnum"
).
html
(
num
)
$
(
'.praise'
).
css
(
'background'
,
'#CA277B'
)
window
.
location
.
reload
();
}
else
if
(
data
==
2
){
...
...
@@ -337,7 +336,6 @@
var
num
=
$
(
".commentnum"
).
html
();
num
--
;
$
(
".commentnum"
).
html
(
num
)
$
(
'.praise'
).
css
(
'background'
,
'#97A0A8'
)
window
.
location
.
reload
();
}
}
...
...
请
注册
或
登录
后发表评论