Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
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
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
e15a2cd538c2cb719dff947676bad82d30d2fde8
1 parent
eb8cea41
去掉空白
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
website/config/Defines.class.php
website/controller/Abstract.class.php
website/view/layout/default_layout.php
website/view/script/default/index.php
website/config/Defines.class.php
View file @
e15a2cd
...
...
@@ -121,7 +121,7 @@ class Config_Defines
define
(
'SHOW_SITE_MAIN'
,
'http://show.test.yoho.cn/'
);
define
(
'YOHOBUY_API'
,
'http://api.open.yohobuy.com/?'
);
define
(
'SITE_PUBLISH_NEWS_SECRET'
,
'123456'
);
self
::
setCache
(
false
,
false
,
false
,
fals
e
);
self
::
setCache
(
true
,
true
,
true
,
tru
e
);
}
/**
...
...
website/controller/Abstract.class.php
View file @
e15a2cd
...
...
@@ -59,6 +59,8 @@ class Controller_Abstract extends Framework_YController
$this
->
beforeExecute
();
$callback
=
$this
->
_request
->
query
(
'callback'
,
''
);
$cookieName
=
'callbackUrl'
;
//获取推荐状态的商品
$this
->
_view
[
'recom_product_total'
]
=
Facade_Prod
::
getProdTotal
(
1
);
if
(
empty
(
$callback
))
{
$cookieUrl
=
Util_Utils_SafeCookie
::
get
(
$cookieName
);
...
...
website/view/layout/default_layout.php
View file @
e15a2cd
...
...
@@ -118,6 +118,7 @@
$this
->
_endblock
();
?>
</div>
</div>
<?php
if
(
$this
->
view
->
recom_product_total
)
:?>
<
div
class
="
ft
"> <!-- 限量推荐 -->
<div class="
limited
-
goods
">
<h2>限量商品</h2>
...
...
@@ -131,6 +132,7 @@
</div>
</div>
</div>
<?php endif;?>
<div class="
return
-
top
" style="
display
:
none
;
">
<a href="
javascript
:
void
(
0
);
" id="
toTop
" class="
ifont
" style="
display
:
inline
;
">
<span class="
iconfont
"></span>
...
...
website/view/script/default/index.php
View file @
e15a2cd
...
...
@@ -37,11 +37,12 @@
</div>
</div>
</div>
<?php
if
(
count
(
$this
->
view
->
partnerList
))
:?>
<
div
class
="
cooperation
clearfix
">
<div class="
cooperation
-
slide
-
box
">
<div class="
slide
-
wrap
clearfix
">
<?php
$partnerGroups
=
array
();
$partnerGroups
= array();
foreach(
$this->view
->partnerList as
$partner
)
{
foreach(
$this->view
->partnerTypes as
$key
=>
$type
)
...
...
@@ -136,7 +137,8 @@ EOL;
<a class="
cooperation
-
slide
-
next
iconfont
" href="
javascript
:
void
(
0
);
"></a>
</div>
</div>
<?php endif;?>
<div id="
right_banner
" style="
display
:
none
;
" num="
<?
php
echo
count
(
$this
->
view
->
rightBanners
);
?>
">
<div
class=
"fluid-item layout-item tiled"
>
<?php
...
...
Please
register
or
login
to post a comment