Sfoglia il codice sorgente

图片缓存功能js修正

Mac 6 anni fa
parent
commit
4fe84a25c0

+ 3 - 8
show-server/src/main/webapp/biz/js/plugins/imagecache.js

@ -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
});

+ 1 - 1
show-server/src/main/webapp/template/webapp/plugins/WDFImageCache.html

@ -18,7 +18,7 @@
18 18
		
19 19
		<div class="ipu-content ipu-content-vertical">
20 20
			<div class="value">
21
				<span class="fa fa-image ipu-image-holder" id="pic3" ></span>
21
				<img class="fa fa-image ipu-image-holder" id="pic3" />
22 22
			</div>
23 23
		</div>
24 24
</div>