首页路径

master
星期八 5 years ago
parent 08190f79ca
commit 0c131e1d89
  1. 37
      src/main/webapp/WEB-INF/views/jsp/index.jsp

@ -13,41 +13,14 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>test</title> <title>首页</title>
<!-- <link rel="stylesheet" href="https://test.com/index.css" />--> <!-- <link rel="stylesheet" href="https://test.com/index.css" />-->
</head> </head>
<%
//请求重定向
response.sendRedirect("cms/login");
%>
<body> <body>
<div class="app">
<h1>webview-wechat-detail</h1>
<p>
detail
</p>
<button type="button" id="btn">返回小程序</button>
</div>
<script src="${ctx}/resources/code/js/jquery-2.2.4.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js"></script>
<script>
/* eslint-disable */
$(function(){
// doucument.cookie = 'bb=bbbbbb';
$("#btn").click(function () {
alert("测试!");
wx.miniProgram.navigateTo({
url:'/pages/test/test',
success: function(){
console.log('success')
},
fail: function(){
console.log('fail');
},
complete:function(){
console.log('complete');
}
});
})
});
</script>
</body> </body>
</html> </html>

Loading…
Cancel
Save