Ver Código Fonte

提交图片

xuchunyang 8 anos atrás
pai
commit
7121a7acd2
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      app/js/public/upload-avatar.js

+ 7 - 1
app/js/public/upload-avatar.js

@ -47,7 +47,13 @@ mui.plusReady(function() {
47 47
		var c = plus.camera.getCamera();
48 48
		c.captureImage(function(e) {
49 49
			plus.io.resolveLocalFileSystemURL(e, function(entry) {
50

50
			var filPage = plus.webview.getWebviewById('../html/fillinfo.html');
51
			var dyPage = plus.webview.currentWebview();
52
			if(dyPage == filPage) {
53
				var imgvar = '<img src="' + entry.toLocalURL() + '" style="width:100%"/>';
54
				//console.log(imgvar) 
55
				document.getElementById('imgshow').innerHTML = imgvar;
56
			}
51 57
				mui.openWindow({
52 58
					url: '../html/picture-upload.html',
53 59
					id: 'html/picture-upload.html',