dist
This commit is contained in:
parent
61e1b9b4a2
commit
aa51c45755
62
index.html
62
index.html
@ -1,60 +1,2 @@
|
||||
<!doctype 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);
|
||||
console.log(window["_dsbridge"].call)
|
||||
var provSelect1 = document.getElementById("provSelect1");
|
||||
//provSelect1.value = "123132";
|
||||
//alert(provSelect1.focus);
|
||||
//provSelect1.focus();
|
||||
provSelect1.value = "";
|
||||
document.getElementById("button1").blur();
|
||||
console.log(bridge.call("JSSDK.readQRCode", "", function(code){
|
||||
console.log("hotellog - 扫描结果:" + code);
|
||||
// provSelect1.value = code;
|
||||
|
||||
}),11111222);
|
||||
|
||||
}
|
||||
|
||||
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>
|
||||
<!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.d5288d2a.js></script></body></html>
|
@ -1,2 +0,0 @@
|
||||
<!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.d5288d2a.js></script></body></html>
|
Loading…
Reference in New Issue
Block a user