|
@@ -258,9 +258,7 @@ class CloudVodView(View):
|
|
|
<body>
|
|
|
<p style="color: red">嵌入页区域</p>
|
|
|
<p>以拦截跳转链接的方式实现</p>
|
|
|
- <input type="text" id="loginInputID">
|
|
|
<button class="btn" id="login">发起APP登录</button>
|
|
|
- <input type="text" id="shareInputID">
|
|
|
<button class="btn" id="share">发起社交化分享</button>
|
|
|
|
|
|
<pre id="response"></pre>
|
|
@@ -277,17 +275,11 @@ class CloudVodView(View):
|
|
|
|
|
|
$(function () {
|
|
|
$('#login').click(function () {
|
|
|
- let loginInputVal = $('#loginInputID').val()
|
|
|
- alert(loginInputVal)
|
|
|
- window.location = loginInputVal;
|
|
|
- //window.location = 'app://login?account=13011112222&password=123456';
|
|
|
+ window.location = 'app://login?account=13011112222&password=123456';
|
|
|
});
|
|
|
|
|
|
$('#share').click(function () {
|
|
|
- let shareInputVal = $('#shareInputID').val()
|
|
|
- alert(shareInputVal)
|
|
|
- window.location = shareInputVal
|
|
|
- //window.location = 'app://share?title=分享的标题&desc=分享的描述'
|
|
|
+ window.location = 'app://share?title=分享的标题&desc=分享的描述'
|
|
|
});
|
|
|
});
|
|
|
</script>
|