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
07985561
Commit
07985561
authored
Feb 02, 2015
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决hello mui首页侧滑菜单首次点击不显示的问题
parent
a767c88a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
examples/hello-mui/index-menu.html
examples/hello-mui/index-menu.html
+8
-1
No files found.
examples/hello-mui/index-menu.html
View file @
07985561
...
@@ -88,7 +88,8 @@
...
@@ -88,7 +88,8 @@
mui
.
plusReady
(
function
()
{
mui
.
plusReady
(
function
()
{
//获得主页面webview引用;
//获得主页面webview引用;
index
=
plus
.
webview
.
currentWebview
().
opener
();
index
=
plus
.
webview
.
currentWebview
().
opener
();
})
});
var
firstClick
=
true
;
mui
(
'
.mui-table-view
'
).
on
(
'
tap
'
,
'
a
'
,
function
()
{
mui
(
'
.mui-table-view
'
).
on
(
'
tap
'
,
'
a
'
,
function
()
{
var
id
=
this
.
getAttribute
(
"
href
"
);
var
id
=
this
.
getAttribute
(
"
href
"
);
var
type
=
this
.
getAttribute
(
"
open-type
"
);
var
type
=
this
.
getAttribute
(
"
open-type
"
);
...
@@ -110,6 +111,12 @@
...
@@ -110,6 +111,12 @@
subWebview
.
show
();
subWebview
.
show
();
template
.
show
(
'
slide-in-right
'
,
150
);
template
.
show
(
'
slide-in-right
'
,
150
);
}
else
{
}
else
{
if
(
firstClick
){
firstClick
=
false
;
//通知列表界面,已经开始点击;
var
list
=
index
.
children
()[
0
];
mui
.
fire
(
list
,
'
firstClick
'
,{});
}
template
=
plus
.
webview
.
getWebviewById
(
"
default-main
"
);
template
=
plus
.
webview
.
getWebviewById
(
"
default-main
"
);
//获得共用子webview
//获得共用子webview
subWebview
=
template
.
children
()[
0
];
subWebview
=
template
.
children
()[
0
];
...
...
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