first commit
This commit is contained in:
1
code/SmallCart/RemoteControl/pages/index/.pydio
Normal file
1
code/SmallCart/RemoteControl/pages/index/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
38409589-c329-40ec-8bb4-3df49d334d28
|
||||
46
code/SmallCart/RemoteControl/pages/index/index.vue
Normal file
46
code/SmallCart/RemoteControl/pages/index/index.vue
Normal file
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<web-view :webview-styles="webviewStyles" src="http://192.168.4.1/"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello',
|
||||
webviewStyles: {
|
||||
progress: {
|
||||
color: '#FF3333'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.loadWifiInfo());
|
||||
plus.navigator.setFullscreen(true);
|
||||
plus.screen.lockOrientation('landscape-secondary');
|
||||
plus.screen.lockOrientation('landscape-primary');
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
loadWifiInfo() {
|
||||
var Context = plus.android.importClass("android.content.Context");
|
||||
var WifiManager = plus.android.importClass("android.net.wifi.WifiManager")
|
||||
var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
|
||||
var List = plus.android.importClass("java.util.List");
|
||||
var ArrayList = plus.android.importClass("java.util.ArrayList");
|
||||
var ScanResult = plus.android.importClass("android.net.wifi.ScanResult");
|
||||
var wifis = new ArrayList();
|
||||
wifis = wifiManager.getScanResults();
|
||||
return wifis;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user