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
Plain Diff
Browse Files
Authored by
microTT
9 years ago
Commit
35bd234705536d0221c8ba61e65a09b608cdc83c
2 parents
3200e33a
6663951a
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
16 deletions
res/js/yohood.js
res/swf/YohoodPlayer.swf
website/controller/News.class.php
website/sqlmap/news/sqlmap-news.xml
website/view/widget/news/list.php
res/js/yohood.js
View file @
35bd234
...
...
@@ -1599,7 +1599,7 @@ define('yohood', function(require, exports) {
setTimeout
(
function
()
{
$
(
'.dialog-w'
).
fadeOut
();
window
.
location
.
reload
();
},
2
000
);
},
5
000
);
}
else
{
alert
(
d
.
message
);
}
...
...
res/swf/YohoodPlayer.swf
View file @
35bd234
No preview for this file type
website/controller/News.class.php
View file @
35bd234
...
...
@@ -232,6 +232,7 @@ EOT;
$info
[
'thumb'
]
=
Lib_Images
::
getImageUrl
(
$info
[
'thumb'
],
'source'
,
'fragmentimg'
);
//增加浏览量
Facade_News
::
updateHits
(
$id
);
$info
=
str_replace
(
'<embed align="middle"'
,
'<embed align="middle" allowfullscreen="true" '
,
$info
);
$this
->
_view
[
'info'
]
=
$info
;
$this
->
_view
[
'banners'
]
=
Facade_Index
::
getIndex
(
4
);
$this
->
_view
[
'news'
]
=
$news
;
...
...
website/sqlmap/news/sqlmap-news.xml
View file @
35bd234
<?xml version="1.0" encoding="UTF-8"?>
<sqlMap
namespace=
"news"
>
<select
id=
"getList"
>
SELECT * FROM `tbl_news` #where# order by
`sort` DESC ,
create_time desc limit :offset, :limit
SELECT * FROM `tbl_news` #where# order by create_time desc limit :offset, :limit
</select>
<select
id=
"getOneById"
>
SELECT * FROM `tbl_news` where `id`=:id
...
...
website/view/widget/news/list.php
View file @
35bd234
...
...
@@ -30,20 +30,20 @@ $width = 342;
</div>
<div class="
item
-
info
">
<a class="
fluid
-
tag
item
-
tag
<?
php
switch
(
$news
[
'tag'
]){
case
"品牌资讯"
:
echo
"brand-info"
;
break
;
case
"活动介绍"
:
echo
"activity-intro"
;
break
;
case
"亮点活动"
:
echo
"spotlight-activity"
;
break
;
case
"限量商品"
:
echo
"limited-edition"
;
break
;
}
if
(
$news
[
'tag'
]
==
"品牌资讯"
){
echo
"brand-info"
;
}
elseif
(
$news
[
'tag'
]
==
"活动介绍"
){
echo
"activity-intro"
;
}
elseif
(
$news
[
'tag'
]
==
"亮点活动"
){
echo
"spotlight-activity"
;
}
elseif
(
$news
[
'tag'
]
==
"限量商品"
){
echo
"limited-edition"
;
}
else
{
echo
"brand-info"
;
}
?>
" href="/news/index/tag/
<?php
echo
$news
[
'tag'
]
?>
">
<?php
$newtag
=
array
(
"品牌资讯"
,
"活动介绍"
,
"亮点活动"
,
"限量商品"
);
...
...
Please
register
or
login
to post a comment