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
867acddb854c4b8eb74e958e36398d282c1f48fa
1 parent
e3e17d60
客户端js
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
website/view/script/activity/planmobile.php
website/view/script/brand/detailmobile.php
website/view/script/activity/planmobile.php
View file @
867acdd
<?php
$this
->
_extends
(
'layout/default_layout_mobile'
);
?>
<?php
$this
->
_block
(
'main'
);
?>
<?php
if
(
strtotime
(
'2015-09-18 23:59:00'
)
>
$this
->
view
->
currentday
&&
time
()
<
strtotime
(
'2015-09-18 23:59:00'
))
:?>
<?php
if
(
false
)
://
strtotime
(
'2015-09-18 23:59:00'
)
>
$this
->
view
->
currentday
&&
time
()
<
strtotime
(
'2015-09-18 23:59:00'
))
:?>
<
img
src
=
"<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>"
style
=
"width:100%;"
/>
<?
php
else
:?>
<
div
class
="
scene
-
tab
">
<ul class="
clearfix
">
<?php
$navs
= current(
$this->view
->navs);ksort(
$navs
);
foreach(
$navs
as
$nav
):
if(strtotime('2015-09-18 00:00:00') >
$nav['timestamp']
) continue;
//
if(strtotime('2015-09-18 00:00:00') >
$nav['timestamp']
) continue;
?>
<li
<?php if(
$nav['timestamp']
==
$this->view
->currentday &&
$nav['enable']
) echo 'class="
current
"';
...
...
@@ -19,7 +19,7 @@
</ul>
</div>
<div
class=
"scene-content"
>
<?php
if
(
strtotime
(
'2015-09-18 23:59:00'
)
>
$this
->
view
->
currentday
&&
time
()
<
strtotime
(
'2015-09-18 23:59:00'
))
:?>
<?php
if
(
false
)
:
//(
strtotime('2015-09-18 23:59:00') > $this->view->currentday && time() < strtotime('2015-09-18 23:59:00')):?>
<
img
src
=
"<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>"
style
=
"width:100%;"
/>
<?
php
else
:?>
<
div
class
="
main
-
layout
current
clearfix
">
...
...
@@ -57,8 +57,13 @@
<?php
$this
->
_endblock
();
?>
<?php
$this
->
_block
(
'js'
);
?>
<script
type=
"text/javascript"
>
seajs
.
use
([
'
zepto'
,
'mobile'
],
function
(
$
,
mobile
){
seajs
.
use
([
'
mobile'
,
'lib/util/json'
],
function
(
mobile
,
json
){
mobile
.
scene
();
window
.
json
=
json
;
})
function
getClientShare
()
{
//return window.json.stringify({title: shareTitle,desc: shareDesc,imgUrl: shareImg, link: shareLink});
}
</script>
<?php
$this
->
_endblock
();
?>
...
...
website/view/script/brand/detailmobile.php
View file @
867acdd
...
...
@@ -29,7 +29,7 @@
<?php
$this
->
_block
(
'js'
);
?>
<script
type=
"text/javascript"
>
function getClientShare() {
return "
<?php
echo
str_replace
(
"
\\
"
,
"
"
,
addslashes
(
preg_replace
(
"#
\\
\u([0-9a-f]
{
4
}
)#ie"
,
"iconv('UCS-2BE', 'UTF-8', pack('H4', '
\\
1'))"
,
json_encode
(
array
(
'title'
=>
$this
->
view
->
info
[
'name'
],
'desc'
=>
$this
->
view
->
info
[
'description'
],
return "
<?php
echo
str_replace
(
"
\\
\\
"
,
"
\\
"
,
addslashes
(
preg_replace
(
"#
\\
\u([0-9a-f]
{
4
}
)#ie"
,
"iconv('UCS-2BE', 'UTF-8', pack('H4', '
\\
1'))"
,
json_encode
(
array
(
'title'
=>
$this
->
view
->
info
[
'name'
],
'desc'
=>
$this
->
view
->
info
[
'description'
],
'imgUrl'
=>
Lib_Images
::
getImageUrl
(
$this
->
view
->
info
[
'logo'
],
'source'
,
'fragmentimg'
),
'link'
=>
SITE_MAIN
.
'/brand/detail/id/'
.
$this
->
view
->
info
[
'id'
])))));
?>
"
;
}
...
...
Please
register
or
login
to post a comment