You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
<%@ page import="weaver.general.Util,weaver.hrm.*" %>
|
|
<%@ page import="weaver.general.BaseBean" %>
|
|
<%@ page import="java.net.URLDecoder" %>
|
|
<%@ page import="com.engine.common.util.ParamUtil" %>
|
|
<%@ page import="java.util.Map" %>
|
|
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
|
|
<%
|
|
|
|
%>
|
|
<!-- html -->
|
|
<script type="text/javascript" src="https://appx/web-view.min.js"></script>
|
|
<script>
|
|
if (navigator.userAgent.indexOf('AlipayClient') > -1 || navigator.userAgent.indexOf('mPaaSClient') > -1) {
|
|
document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
|
|
}
|
|
|
|
//alert("jump");
|
|
//my.postMessage({name:"onMessage"});
|
|
|
|
// 接收来自小程序的消息。
|
|
// my.onMessage = function(e) {
|
|
// console.log(e); //{'sendToWebView': '1'}
|
|
// }
|
|
alert(1)
|
|
// 判断是否运行在小程序环境里
|
|
my.getEnv(function(res) {
|
|
if(res.miniprogram){
|
|
my.postMessage({name:"onMessage"});
|
|
}else{
|
|
window.location.href="/spa/workflow/static4mobile/index.html#/center/doing?moduleid=1";
|
|
}
|
|
});
|
|
|
|
// my.startShare();
|
|
</script>
|