|
|
|
|
|
|
|
|
import { ref, reactive } from "vue"; |
|
|
import { ref, reactive } from "vue"; |
|
|
import { onLoad, onReady } from "@dcloudio/uni-app"; |
|
|
import { onLoad, onReady } from "@dcloudio/uni-app"; |
|
|
import { fileURL } from "@/datas/fileURL.js"; |
|
|
import { fileURL } from "@/datas/fileURL.js"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const imgURL = `${fileURL}image/`; |
|
|
const imgURL = `${fileURL}image/`; |
|
|
const selectedUrl = "common/selected.png`"; |
|
|
const selectedUrl = "common/selected.png`"; |
|
|
|
|
|
|
|
|
jtApi.connectDevice( |
|
|
jtApi.connectDevice( |
|
|
device, |
|
|
device, |
|
|
function (res) { |
|
|
function (res) { |
|
|
|
|
|
console.log('设备链接1', res) |
|
|
connectSuccess(res); |
|
|
connectSuccess(res); |
|
|
}, |
|
|
}, |
|
|
function (res) { |
|
|
function (res) { |
|
|
|
|
|
console.log('设备链接2', res) |
|
|
listenStatus(res); |
|
|
listenStatus(res); |
|
|
} |
|
|
} |
|
|
); |
|
|
); |