优化蜂箱录入
This commit is contained in:
parent
30eb2768e2
commit
8f179a4d25
|
@ -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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 开启蜂鸣
|
// 开启蜂鸣
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 点击跳转到录入设备页面
|
// 点击跳转到录入设备页面
|
||||||
btnluru(){
|
btnluru(){
|
||||||
uni.navigateTo({
|
uni.reLaunch({
|
||||||
url:'/page_user/luru'
|
url:'/page_user/luru'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user