Parcourir la Source

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

wuyong3 5 ans auparavant
Parent
commit
693e011e14

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

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
            },getIdCardInfo:function (callback,type,picInfo,needMark,sdk_type,sdk_key) {
603
            },getIdCardInfo:function (callback,type,picInfo,needMark,sdk_type,sdk_key) {
604
                storageCallback("getIdCardInfo",callback);
604
                storageCallback("getIdCardInfo",callback);
605
                execute("getIdCardInfo",[type,picInfo,needMark,sdk_type,sdk_key])
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
                <div class="ipu-btn" id="closeScreenCapture">禁止截屏</div>
23
                <div class="ipu-btn" id="closeScreenCapture">禁止截屏</div>
24
                <div class="ipu-btn" id="openScreenCapture">允许截屏</div>
24
                <div class="ipu-btn" id="openScreenCapture">允许截屏</div>
25
                <div class="ipu-btn" id="executeScreenCapture">截屏</div>
25
                <div class="ipu-btn" id="executeScreenCapture">截屏</div>
26
                <div class="ipu-btn" id="getAppScreen">截屏(无状态栏)</div>
26
                <div class="ipu-btn" id="recordScreen">录屏</div>
27
                <div class="ipu-btn" id="recordScreen">录屏</div>
27
            </div>
28
            </div>
28
            
29