Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
bf7e9622
Commit
bf7e9622
authored
Nov 25, 2014
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决hello mui首页侧滑导航链接错误的问题
parent
8a121cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
examples/hello-mui/examples/index-menu.html
examples/hello-mui/examples/index-menu.html
+27
-14
No files found.
examples/hello-mui/examples/index-menu.html
View file @
bf7e9622
...
...
@@ -31,12 +31,12 @@
</a>
</li>
<li
class=
"mui-table-view-cell"
>
<a
class=
"mui-navigate-right"
href=
"switche
s.html"
>
<a
class=
"mui-navigate-right"
open-type=
"common"
href=
"input
s.html"
>
input(输入框)
</a>
</li>
<li
class=
"mui-table-view-cell"
>
<a
class=
"mui-navigate-right"
href=
"
switches
.html"
>
<a
class=
"mui-navigate-right"
href=
"
tableview-image-left
.html"
>
media list(图文列表)
</a>
</li>
...
...
@@ -60,22 +60,35 @@
index
=
plus
.
webview
.
currentWebview
().
opener
();
})
mui
(
'
.mui-table-view
'
).
on
(
'
tap
'
,
'
a
'
,
function
()
{
if
(
subWebview
==
null
){
subWebview
=
plus
.
webview
.
getWebviewById
(
"
template_sub
"
);
template
=
plus
.
webview
.
getWebviewById
(
"
demoTemplate
"
);
}
var
title
=
this
.
innerText
;
template
.
evalJS
(
"
with(document.getElementById('title')){innerHTML='
"
+
title
+
"
';className='mui-title mui-fadein';};
"
);
if
(
subWebview
.
getURL
()
==
this
.
href
){
subWebview
.
show
();
var
id
=
this
.
getAttribute
(
"
href
"
);
var
type
=
this
.
getAttribute
(
"
open-type
"
);
if
(
type
==
"
common
"
){
mui
.
openWindow
({
id
:
id
,
url
:
this
.
href
,
waiting
:{
autoShow
:
false
}
});
}
else
{
subWebview
.
loadURL
(
this
.
href
);
}
template
.
show
(
'
slide-in-right
'
,
150
);
if
(
subWebview
==
null
){
subWebview
=
plus
.
webview
.
getWebviewById
(
"
template_sub
"
);
template
=
plus
.
webview
.
getWebviewById
(
"
demoTemplate
"
);
}
var
title
=
this
.
innerText
;
template
.
evalJS
(
"
with(document.getElementById('title')){innerHTML='
"
+
title
+
"
';className='mui-title mui-fadein';};
"
);
if
(
subWebview
.
getURL
()
==
this
.
href
){
subWebview
.
show
();
}
else
{
subWebview
.
loadURL
(
this
.
href
);
}
template
.
show
(
'
slide-in-right
'
,
150
);
}
//然后要关闭侧滑菜单;
index
.
evalJS
(
"
toggleMenu()
"
);
});
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment