onShow: function () {
const options = plus.runtime.arguments
console.log('options', options)
}
// h5
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>打开App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
text-align: center;
padding: 80px 20px;
}
h2 {
color: #333;
}
.btn {
background: #007aff;
color: white;
padding: 14px 24px;
border-radius: 8px;
font-size: 16px;
text-decoration: none;
display: inline-block;
margin-top: 20px;
}
.tip {
margin-top: 30px;
font-size: 14px;
color: #888;
}
</style>
</head>
<body>
<h2>正在打开App...</h2>
<p>若没有自动跳转,请点击下方按钮手动打开或下载 App</p>
<a class="btn" href="yijing://artGallery?id=206">手动打开 App</a>
<div class="tip">还没有安装?请点击跳转到应用市场或官网下载</div>
<script>
// 自动跳转到 App Scheme
(function () {
const start = Date.now();
// 跳转到 App 指定页面
window.location.href = 'yijing://artGallery?id=206';
})();
</script>
</body>
</html>