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
a8464e20bdd46c04e7cf094515c00ff0fd3c4706
1 parent
910577bc
h5详情页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
website/view/script/brand/indexmobile.php
website/view/script/news/detailmobile.php
website/view/script/brand/indexmobile.php
View file @
a8464e2
...
...
@@ -9,8 +9,9 @@
<div
class=
"slide-wrap clearfix"
>
<?php
foreach
(
$this
->
view
->
banners
as
$banner
)
:?>
<
div
class
="
box
">
<a href="
<?
php
echo
$banner
[
'url'
];
?>
" target="_blank" title="
<?php
echo
$banner
[
'text'
];
?>
">
<img
src=
"
<?php
echo
Lib_Images
::
getImageUrl
(
$banner
[
'res'
],
'0360x0174'
,
'fragmentimg'
);
?>
"
alt=
""
/></a>
<a href="
<?
php
echo
$banner
[
'url'
];
?>
" target="_blank" title="
<?php
echo
$banner
[
'text'
];
?>
">
<img
src=
"
<?php
echo
Lib_Images
::
getImageUrl
(
$banner
[
'res'
],
'0320x0155'
,
'fragmentimg'
);
?>
"
alt=
""
/>
</a>
</div>
<?php
endforeach
;
?>
</div>
...
...
website/view/script/news/detailmobile.php
View file @
a8464e2
...
...
@@ -4,6 +4,24 @@
<h2
class=
"title"
>
<?php
echo
$this
->
view
->
info
[
'title'
]
?>
</h2>
<h3
class=
"subtitle"
>
<?php
echo
date
(
'm月d日 H:i'
,
$this
->
view
->
info
[
'create_time'
])
?>
</h3>
</div>
<div
class=
"slide-main"
>
<div
class=
"slide-box"
>
<div
class=
"slide-wrap clearfix"
>
<?php
foreach
(
$this
->
view
->
info
[
'pics'
]
as
$pic
)
:?>
<
div
class
="
box
">
<a href="
javascript
:
;
">
<img src="
<?
php
echo
Lib_Images
::
getImageUrl
(
$pic
,
'0320x0155'
,
'fragmentimg'
);
?>
" alt="" style="width:320px;height:155px;"/>
</a>
</div>
<?php
endforeach
;
?>
</div>
</div>
<div
class=
"slide-navigator"
>
<div
class=
"dib clearfix"
>
<?php
echo
'<a href="javascript:;" class="on"></a>'
.
str_repeat
(
'<a href="javascript:;"></a>'
,
count
(
$this
->
view
->
info
[
'pics'
])
-
1
);
?>
</div>
</div>
</div>
<div
class=
"detail-article"
>
<?php
preg_match_all
(
"@<embed([^>]*)\s*src=
\"
http:\/\/res\.yoho\.cn\/res\/yohood\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4)
\"
@"
,
$this
->
view
->
info
[
'content'
],
$videoMatches
);
...
...
Please
register
or
login
to post a comment