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
7f4c814f
Commit
7f4c814f
authored
Jun 27, 2015
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决设置模板在iOS平台无法多次从相册选择头像的bug
parent
ed5ef5e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
12 deletions
+39
-12
examples/hello-mui/examples/setting.html
examples/hello-mui/examples/setting.html
+39
-12
No files found.
examples/hello-mui/examples/setting.html
View file @
7f4c814f
...
@@ -606,6 +606,7 @@
...
@@ -606,6 +606,7 @@
mui
.
toast
(
'
Hello MUI 已是最新版本~
'
)
mui
.
toast
(
'
Hello MUI 已是最新版本~
'
)
}
}
});
});
});
});
var
view
=
viewApi
.
view
;
var
view
=
viewApi
.
view
;
(
function
(
$
)
{
(
function
(
$
)
{
...
@@ -665,7 +666,7 @@
...
@@ -665,7 +666,7 @@
c
.
captureImage
(
function
(
e
)
{
c
.
captureImage
(
function
(
e
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
e
,
function
(
entry
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
e
,
function
(
entry
)
{
var
s
=
entry
.
toLocalURL
()
+
"
?version=
"
+
new
Date
().
getTime
();
var
s
=
entry
.
toLocalURL
()
+
"
?version=
"
+
new
Date
().
getTime
();
console
.
log
(
s
);
console
.
log
(
s
);
document
.
getElementById
(
"
head-img
"
).
src
=
s
;
document
.
getElementById
(
"
head-img
"
).
src
=
s
;
document
.
getElementById
(
"
head-img1
"
).
src
=
s
;
document
.
getElementById
(
"
head-img1
"
).
src
=
s
;
//变更大图预览的src
//变更大图预览的src
...
@@ -677,22 +678,48 @@
...
@@ -677,22 +678,48 @@
},
function
(
s
)
{
},
function
(
s
)
{
console
.
log
(
"
error
"
+
s
);
console
.
log
(
"
error
"
+
s
);
},
{
},
{
filename
:
"
_doc/head
"
filename
:
"
_doc/head
.jpg
"
})
})
}
}
function
galleryImg
()
{
function
galleryImg
()
{
plus
.
gallery
.
pick
(
function
(
a
)
{
plus
.
gallery
.
pick
(
function
(
a
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
a
,
function
(
entry
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
a
,
function
(
entry
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
"
_doc/
"
,
function
(
fs
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
"
_doc/
"
,
function
(
root
)
{
entry
.
copyTo
(
fs
,
'
head.jpg
'
,
function
(
e
)
{
root
.
getFile
(
"
head.jpg
"
,{},
function
(
file
)
{
var
e
=
e
.
toLocalURL
()
+
"
?version=
"
+
new
Date
().
getTime
();
//文件已存在
document
.
getElementById
(
"
head-img
"
).
src
=
e
;
file
.
remove
(
function
()
{
document
.
getElementById
(
"
head-img1
"
).
src
=
e
;
console
.
log
(
"
file remove success
"
);
//变更大图预览的src
entry
.
copyTo
(
root
,
'
head.jpg
'
,
function
(
e
)
{
//目前仅有一张图片,暂时如此处理,后续需要通过标准组件实现
var
e
=
e
.
fullPath
+
"
?version=
"
+
new
Date
().
getTime
();
document
.
querySelector
(
"
#__mui-imageview__group .mui-slider-item img
"
).
src
=
e
+
"
?version=
"
+
new
Date
().
getTime
();;
document
.
getElementById
(
"
head-img
"
).
src
=
e
;
},
function
(
e
)
{
console
.
log
(
e
.
message
);})
document
.
getElementById
(
"
head-img1
"
).
src
=
e
;
//变更大图预览的src
//目前仅有一张图片,暂时如此处理,后续需要通过标准组件实现
document
.
querySelector
(
"
#__mui-imageview__group .mui-slider-item img
"
).
src
=
e
+
"
?version=
"
+
new
Date
().
getTime
();;
},
function
(
e
)
{
console
.
log
(
'
copy image fail:
'
+
e
.
message
);
});
},
function
()
{
console
.
log
(
"
delete image fail:
"
+
e
.
message
);
});
},
function
()
{
//文件不存在
entry
.
copyTo
(
root
,
'
head.jpg
'
,
function
(
e
)
{
var
path
=
e
.
fullPath
+
"
?version=
"
+
new
Date
().
getTime
();
document
.
getElementById
(
"
head-img
"
).
src
=
path
;
document
.
getElementById
(
"
head-img1
"
).
src
=
path
;
//变更大图预览的src
//目前仅有一张图片,暂时如此处理,后续需要通过标准组件实现
document
.
querySelector
(
"
#__mui-imageview__group .mui-slider-item img
"
).
src
=
path
;
},
function
(
e
)
{
console
.
log
(
'
copy image fail:
'
+
e
.
message
);
});
});
},
function
(
e
)
{
console
.
log
(
"
get _www folder fail
"
);
})
})
},
function
(
e
)
{
},
function
(
e
)
{
console
.
log
(
"
读取拍照文件错误:
"
+
e
.
message
);
console
.
log
(
"
读取拍照文件错误:
"
+
e
.
message
);
...
@@ -704,7 +731,7 @@
...
@@ -704,7 +731,7 @@
function
defaultImg
()
{
function
defaultImg
()
{
plus
.
io
.
resolveLocalFileSystemURL
(
"
_doc/head.jpg
"
,
function
(
entry
)
{
plus
.
io
.
resolveLocalFileSystemURL
(
"
_doc/head.jpg
"
,
function
(
entry
)
{
var
s
=
entry
.
toLocalURL
()
;
var
s
=
entry
.
fullPath
+
"
?version=
"
+
new
Date
().
getTime
();
;
document
.
getElementById
(
"
head-img
"
).
src
=
s
;
document
.
getElementById
(
"
head-img
"
).
src
=
s
;
document
.
getElementById
(
"
head-img1
"
).
src
=
s
;
document
.
getElementById
(
"
head-img1
"
).
src
=
s
;
},
function
(
e
)
{
},
function
(
e
)
{
...
...
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