1
0
forked from dyf/APP

app网络请求封装修改

This commit is contained in:
fengerli
2025-07-07 18:59:34 +08:00
parent 1128114e73
commit e69ff064d5
8 changed files with 145 additions and 85 deletions

View File

@ -27,6 +27,7 @@
</template>
<script>
import {deviceBind} from "@/api/common/qrcode.js"
export default {
data() {
return {
@ -36,21 +37,25 @@
}
},
methods: {
handleConnect() {
async handleConnect() {
if (this.isConnecting) {
} else {
console.log('这里了么');
// 开始连接逻辑
uni.showLoading({
mask: true,
title: '加载中....'
})
this.isConnecting = true;
//这里可以添加实际的连接操作
setTimeout(() => {
this.connectSuccess();
}, 2000);
try {
// 调用绑定设备接口
await deviceBind({
//deviceImei: this.deviceId,
deviceIMEI: 'FYS-YF-082-SB',
})
} catch (error) {
}
}
},
connectSuccess() {