Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
4b6a0880c7fa0ecfffd42a636496c4d735649768
2 parents
d2197f59
44a9e067
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
static/js/product/list.js
template/m.yohobuy.com/actions/product/index/index.phtml
yohobuy/m.yohobuy.com/application/models/Product/List.php
yohobuy/m.yohobuy.com/public/index.php
static/js/product/list.js
View file @
4b6a088
...
...
@@ -30,7 +30,8 @@ var defaultOpt = {
color
:
$
(
'#color'
).
val
(),
size
:
$
(
'#size'
).
val
(),
price
:
$
(
'#price'
).
val
(),
discount
:
$
(
'#discount'
).
val
()
discount
:
$
(
'#discount'
).
val
(),
query
:
$
(
'#query'
).
val
()
};
var
$listNav
=
$
(
'#list-nav'
),
...
...
template/m.yohobuy.com/actions/product/index/index.phtml
View file @
4b6a088
...
...
@@ -122,6 +122,10 @@
{
{#if
discount
}
}
<input
id=
"discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
{
{#if
query
}
}
<input
id=
"query"
type=
"hidden"
value=
{
{query
}
}>
{
{/if
}
}
{
{/
goodList
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/models/Product/List.php
View file @
4b6a088
...
...
@@ -79,8 +79,8 @@ class ListModel
// 获取品牌介绍信息, 有缓存1小时
$introData
=
BrandData
::
getBrandIntro
(
$id
,
$uid
);
if
(
isset
(
$introData
[
'data'
][
'brand_intro'
]))
{
$result
[
'brandHome'
][
'id'
]
=
$id
;
$result
[
'brandHome'
][
'intro'
]
=
$introData
[
'data'
][
'brand_intro'
];
$result
[
'id'
]
=
$id
;
$result
[
'intro'
]
=
$introData
[
'data'
][
'brand_intro'
];
// 顶部导航的标题
$title
=
isset
(
$introData
[
'data'
][
'brand_name'
])
?
$introData
[
'data'
][
'brand_name'
]
:
''
;
}
...
...
@@ -88,7 +88,7 @@ class ListModel
// 获取品牌banner的数据, 有缓存1小时
$bannerData
=
BrandData
::
getBrandBanner
(
$id
);
if
(
isset
(
$bannerData
[
'data'
][
'banner'
]))
{
$result
[
'b
randHome'
][
'b
anner'
]
=
Helpers
::
getImageUrl
(
$bannerData
[
'data'
][
'banner'
],
640
,
75
);
$result
[
'banner'
]
=
Helpers
::
getImageUrl
(
$bannerData
[
'data'
][
'banner'
],
640
,
75
);
}
return
$result
;
...
...
yohobuy/m.yohobuy.com/public/index.php
View file @
4b6a088
...
...
@@ -4,7 +4,7 @@ use Yaf\Application;
define
(
'SITE_MAIN'
,
'http://mtesth5.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.m.yohobuy.com'
);
// 子域名后缀
define
(
'SUB_DOMAIN'
,
'.m
testh5
.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
true
);
// 缓存的开关
define
(
'APPLICATION_PATH'
,
dirname
(
__DIR__
));
// 应用目录
define
(
'ROOT_PATH'
,
dirname
(
dirname
(
APPLICATION_PATH
)));
// 根目录
...
...
Please
register
or
login
to post a comment