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
whb
10 years ago
Commit
61ac045aa1b26091ef3ffed06690c095d2129a1f
2 parents
f71a962d
c0dc5979
h5的资讯页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
res/js/mobile.js
website/view/script/news/indexmobile.php
res/js/mobile.js
View file @
61ac045
...
...
@@ -160,8 +160,8 @@ define('mobile', function(require, exports) {
/*var nowIndex = $('option').not(function() {
return !this.selected
}).index();
//
$('.news-main').removeClass('current').eq(nowIndex).addClass('current');*/
$('.news-main').removeClass('current').eq(nowIndex).addClass('current');*/
window
.
location
.
href
=
$
(
this
).
val
();
})
};
});
\ No newline at end of file
});
...
...
website/view/script/news/indexmobile.php
View file @
61ac045
...
...
@@ -4,7 +4,7 @@
<select>
<?php
array_unshift
(
$this
->
view
->
tags
,
array
(
'tag'
=>
''
,
'num'
=>
$this
->
view
->
total
));
foreach
(
$this
->
view
->
tags
as
$tag
)
:?>
foreach
(
$this
->
view
->
tags
as
$tag
)
:
if
(
empty
(
$tag
[
'num'
]))
continue
;
?>
<option
value =
"
<?php
echo
url
(
'news/index'
,
array
(
'tag'
=>
$tag
[
'tag'
]))
?>
"
<?php
echo
(
$this
->
view
->
current_tag
==
$tag
[
'tag'
])
?
'selected'
:
''
?>
>
<?php
echo
sprintf
(
"%s(%s)"
,
$tag
[
'tag'
]
==
''
?
'全部资讯'
:
$tag
[
'tag'
],
$tag
[
'num'
]);
?>
...
...
Please
register
or
login
to post a comment