浇花器

This commit is contained in:
3321822538@qq.com 2024-12-05 14:36:26 +08:00
parent 65414517b0
commit 0007cf28bd
3 changed files with 18 additions and 10 deletions

View File

@ -355,7 +355,7 @@
this.datalist = ''
this.mac = ''
this.ver_data = {}
uni.navigateTo({
uni.reLaunch({
url:'/pages/myorder/index'
})
},
@ -391,7 +391,7 @@
name: that.name
})
}
}, 10000)
}, 5000)
},
//
getchao(){
@ -460,7 +460,7 @@
}
})
}
},
}
})
},
//
@ -901,7 +901,7 @@
name: that.name
})
}
}, 10000)
}, 5000)
that.getchao()
}else{
uni.showToast({
@ -974,8 +974,6 @@
url: '/page_user/jiaoshui'
})
},
//
funListenDeviceMsgEvent: function(options) {
switch (options.type) {
@ -1005,7 +1003,6 @@
if (device.name.slice(5, 17) == this.mac) {
this.deviceId = device.deviceId
this.name = device.name
// console.log(device.name,this.mac,'222');
this.devicesList.push(device)
let uniqueDevicesList = Array.from(new Set(this.devicesList))
this.devicesList = uniqueDevicesList;

View File

@ -1,7 +1,7 @@
<template>
<view class="pages">
<u-navbar title="设备录入" :border-bottom="false" :background="bgc" title-size='38' title-color='#000'
back-icon-color="#000" height='50'></u-navbar>
back-icon-color="#000" height='50' :custom-back="btnfanahui"></u-navbar>
<view class="title">
<text>设备录入列表</text>
<!-- <text style="font-size: 28rpx;width: 160rpx;height: 60rpx;border-radius: 20rpx;background-color: #7FAD76;text-align: center;color: #fff;line-height: 60rpx;margin-top: 20rpx;" @click="btnkzt">控制台</text> -->
@ -132,6 +132,12 @@
url:'/page_user/wifijoint/index'
})
},
//
btnfanahui(){
uni.reLaunch({
url:'/pages/index/index'
})
},
// sn
scanQRCode(item) {
this.snname = item.name
@ -312,7 +318,7 @@
createBLEConnections(e) {
let Bluetoothmac = e.name.substring(5)
this.devicesLists = []
uni.navigateTo({
uni.reLaunch({
url:'/pages/myorder/returned/index?mac='+Bluetoothmac
})
},

View File

@ -1,7 +1,7 @@
<template>
<view class="page">
<u-navbar title="添加设备" :border-bottom="false" :background="bgc" title-color='#262B37' title-size='38'
height='50'></u-navbar>
height='50' :custom-back="btns"></u-navbar>
<view class="iptbox" @click="backpage()">
<input type="text" class="ips" v-model="mac" placeholder=" " style="margin-left: 32rpx;"
@ -170,6 +170,11 @@
},
methods: {
btns(){
uni.reLaunch({
url:'/pages/myorder/index'
})
},
confirm(e) {
// console.log(e);
this.banben = e[0].label