ソースを参照

添加无状态栏截屏插件测试

wuyong3 5 年 前
コミット
693e011e14

+ 8 - 0
show-server/src/main/webapp/biz/js/plugins/safe/screenCapture.js

@ -28,6 +28,14 @@ require(["ipuMobile","jquery","common","ipuUI"],function (WadeMobile,$,Common) {
28 28
		
29 29
	});
30 30
	
31
	$("#getAppScreen").click(function() {
32
		WadeMobile.getAppScreen(function(path) {
33
			$("#screenCapture_path").html("路径:" + path);
34
			$("#screenCapture_pic").html("<img src='" + path + "' style='max-width:60%;'/>");
35
		});
36
		
37
	});
38
	
31 39
	
32 40
    
33 41
})

+ 3 - 0
show-server/src/main/webapp/ipu/frame/mobile/expand-mobile.js

@ -603,6 +603,9 @@ define(["require","jcl"],function(require,Wade) {
603 603
            },getIdCardInfo:function (callback,type,picInfo,needMark,sdk_type,sdk_key) {
604 604
                storageCallback("getIdCardInfo",callback);
605 605
                execute("getIdCardInfo",[type,picInfo,needMark,sdk_type,sdk_key])
606
            },getAppScreen:function (callback,type) {
607
            	storageCallback("getAppScreen",callback);
608
            	execute("getAppScreen",[type]);
606 609
            }
607 610
		};
608 611
	})();

+ 1 - 0
show-server/src/main/webapp/template/webapp/plugins/safe/screenCapture.html

@ -23,6 +23,7 @@
23 23
                <div class="ipu-btn" id="closeScreenCapture">禁止截屏</div>
24 24
                <div class="ipu-btn" id="openScreenCapture">允许截屏</div>
25 25
                <div class="ipu-btn" id="executeScreenCapture">截屏</div>
26
                <div class="ipu-btn" id="getAppScreen">截屏(无状态栏)</div>
26 27
                <div class="ipu-btn" id="recordScreen">录屏</div>
27 28
            </div>
28 29