This commit is contained in:
luyuan 2020-11-04 10:41:22 +08:00
parent 361fa2c007
commit e6758a543c
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 61 additions and 2 deletions

View File

@ -1,2 +1,59 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>Greens</title><script src=./static/dsbridge.js></script><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!doctype html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5ca1c9cc.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.6b368212.js></script><script src=/static/js/index.5aed9ef5.js></script></body></html> <html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/dsbridge@3.1.3/dist/dsbridge.js"> </script>
<script src="https://unpkg.com/flyio/dist/fly.min.js"></script>
<script>
var adapter = require("flyio/dist/npm/adapter/dsbridge")
var EngineWrapper = require("flyio/dist/npm/engine-wrapper")
var dsEngine = EngineWrapper(adapter)
var fly = new Fly(dsEngine);
function dispatchScanEvent(code){
alert(code);
}
function onClieck(){
alert("_dsbridge.call存在说明注册成功:" + window["_dsbridge"].call);
var provSelect1 = document.getElementById("provSelect1");
//provSelect1.value = "123132";
//alert(provSelect1.focus);
//provSelect1.focus();
provSelect1.value = "";
document.getElementById("button1").blur();
bridge.call("JSSDK.readQRCode", "", function(code){
//console.log("hotellog - 扫描结果:" + code);
provSelect1.value = code;
});
}
function onFly(){
alert(fly);
fly.get('http://192.168.1.95/view/panel/app_updater_version.json')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
}
</script>
</head>
<body>
<button id="button1" onclick="onFly()">扫描</button>
<br>
<input type='text' id='provSelect1' disabled name='provSelect1' runat='server' value='请扫描二维码内容' />
</body>
</html>

2
indexback.html Normal file
View File

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>Greens</title><script src=./static/dsbridge.js></script><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5ca1c9cc.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.6b368212.js></script><script src=/static/js/index.5aed9ef5.js></script></body></html>