|
@ -1,12 +1,7 @@
|
1
|
|
require(["domReady!","wadeMobile","jcl","iScroll","tap"], function(doc,WadeMobile,$,iScroll) {
|
2
|
|
|
3
|
|
|
4
|
|
// 调用手机自带的图库类应用,选择一张相片后返回路径或Base64编码
|
5
|
|
$("#pic3").tap(function() {
|
6
|
|
WadeMobile.setImageWithURL('http://cafe.smallpay.com/xd/media/goods/m_1003/g_940/20151112202854_844.png',function(path) {
|
|
1
|
require(["domReady!","wadeMobile","jcl","tap"], function(doc,WadeMobile,$) {
|
|
2
|
//图片缓存
|
|
3
|
WadeMobile.setImageWithURL('http://cafe.smallpay.com/xd/media/goods/m_1003/g_940/20151112202854_844.png',function(path) {
|
7
|
4
|
$("#pic3").attr("src",path);
|
8
|
|
}, 1);
|
9
|
5
|
});
|
10
|
6
|
|
11
|
|
|
12
|
7
|
});
|