优化蜂箱录入

This commit is contained in:
3321822538@qq.com 2024-11-21 10:51:59 +08:00
parent 30eb2768e2
commit 8f179a4d25
4 changed files with 25 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="pages"> <view class="pages">
<u-navbar title="设备录入" :border-bottom="false" :background="bgc" title-size='38' title-color='#000' <u-navbar title="设备录入" :border-bottom="false" :background="bgc" title-size='38' title-color='#000' :custom-back="btns"
back-icon-color="#000" height='50'></u-navbar> back-icon-color="#000" height='50'></u-navbar>
<view class="title"> <view class="title">
<text>设备录入列表</text> <text>设备录入列表</text>
@ -124,9 +124,14 @@
// this.videoContext = uni.createVideoContext('myVideo', this) // this.videoContext = uni.createVideoContext('myVideo', this)
}, },
methods: { methods: {
btns(){
uni.reLaunch({
url:'/pages/my'
})
},
// //
btnkzt(){ btnkzt(){
uni.navigateTo({ uni.reLaunch({
url:'/page_user/lurutwo' url:'/page_user/lurutwo'
}) })
}, },
@ -294,7 +299,7 @@
// //
createBLEConnections(e) { createBLEConnections(e) {
let Bluetoothmac = e.name.substring(5) let Bluetoothmac = e.name.substring(5)
uni.navigateTo({ uni.reLaunch({
url:'/page_user/luruone?mac=' + Bluetoothmac url:'/page_user/luruone?mac=' + Bluetoothmac
}) })
}, },

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<u-navbar title="设备录入" :border-bottom="false" :background="bgc" title-color='#000' back-icon-color="#000" title-size='38' <u-navbar title="设备录入" :border-bottom="false" :background="bgc" title-color='#000' back-icon-color="#000" title-size='38' :custom-back="btns"
height='50'></u-navbar> height='50'></u-navbar>
<view class="iptbox" @click="backpage()"> <view class="iptbox" @click="backpage()">
@ -177,6 +177,11 @@
}, },
methods: { methods: {
btns(){
uni.reLaunch({
url:'/page_user/luru'
})
},
confirm(e) { confirm(e) {
// console.log(e); // console.log(e);
this.banben = e[0].label this.banben = e[0].label
@ -264,7 +269,7 @@
deviceId: this.deviceId, deviceId: this.deviceId,
}) })
setTimeout(()=>{ setTimeout(()=>{
uni.navigateTo({ uni.reLaunch({
url:'/page_user/lurutwo?sn=' + this.storeId url:'/page_user/lurutwo?sn=' + this.storeId
}) })
},1500) },1500)

View File

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<u-navbar title="设备控制" :border-bottom="false" :background="bgc" title-color='#000' back-icon-color="#000" <u-navbar title="设备控制" :border-bottom="false" :background="bgc" title-color='#000' back-icon-color="#000" :custom-back="btnshang"
title-size='36' height='50'></u-navbar> title-size='36' height='50'></u-navbar>
<view class="title"> <view class="title">
控制台 控制台
@ -127,6 +127,11 @@
this.clearInterval(); this.clearInterval();
}, },
methods: { methods: {
btnshang(){
uni.reLaunch({
url:'/page_user/luru'
})
},
startInterval() { startInterval() {
// //
const timerCallback = () => { const timerCallback = () => {
@ -225,7 +230,9 @@
// //
btnfh() { btnfh() {
uni.navigateBack() uni.reLaunch({
url:'/page_user/luru'
})
}, },
// //

View File

@ -68,7 +68,7 @@
methods: { methods: {
// //
btnluru(){ btnluru(){
uni.navigateTo({ uni.reLaunch({
url:'/page_user/luru' url:'/page_user/luru'
}) })
}, },