154 lines
3.0 KiB
Vue
154 lines
3.0 KiB
Vue
<template>
|
|
<view class="page">
|
|
<u-navbar :title="title" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
|
|
:title-bold='true' height='45' id="navbar">
|
|
</u-navbar>
|
|
<view class="tit">
|
|
扫描二维码
|
|
</view>
|
|
<view class="iptbox">
|
|
<view class="qrcode">
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uy7BNwAMIKwvstqFnRhs" mode=""></image>
|
|
</view>
|
|
<input type="text" class="ips" v-model="code" placeholder="请扫描蜂箱上的二维码" style="margin-left: 32rpx;"
|
|
placeholder-class="my-placeholder" />
|
|
|
|
</view>
|
|
<view class="tit">
|
|
自定义蜂箱名称
|
|
</view>
|
|
<view class="iptbox">
|
|
<input type="text" class="ips" v-model="code" placeholder="请输入蜂箱的自定义名称"
|
|
placeholder-class="my-placeholder" />
|
|
|
|
</view>
|
|
<view class="tit">
|
|
所属蜂场
|
|
</view>
|
|
<view class="iptbox" >
|
|
<input type="text" class="ips" v-model="form.address" placeholder="请选择蜂场具体位置" placeholder-class="my-placeholder"
|
|
disabled />
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/ugAdKZm5ZHZ4to1cDsNI" mode=""></image>
|
|
</view>
|
|
<view class="tit">
|
|
设备ID或视频流地址
|
|
</view>
|
|
<view class="iptbox">
|
|
<input type="text" class="ips" v-model="code" placeholder="请输入设备ID或视频流地址"
|
|
placeholder-class="my-placeholder" />
|
|
|
|
</view>
|
|
<view class="btn">
|
|
确认添加
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
bgc: {
|
|
backgroundColor: " #F4FAF8",
|
|
},
|
|
title: "添加蜂箱",
|
|
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
onShow() {
|
|
|
|
},
|
|
methods: {
|
|
addApiary(){
|
|
uni.navigateTo({
|
|
url:'/pages/Apiary/AddApiary'
|
|
})
|
|
}
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background-color: #F4FAF8;
|
|
}
|
|
|
|
.page {
|
|
// position: relative;
|
|
width: 750rpx;
|
|
.tit {
|
|
margin-top: 40rpx;
|
|
margin-left: 50rpx;
|
|
font-weight: 600;
|
|
font-size: 32rpx;
|
|
color: #3D3D3D;
|
|
}
|
|
.imgbox{
|
|
margin-top: 28rpx;
|
|
margin-left: 46rpx;
|
|
image{
|
|
width: 412rpx;
|
|
height: 222rpx;
|
|
}
|
|
}
|
|
.btn{
|
|
margin: 160rpx auto;
|
|
// position: fixed;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
// bottom: 100rpx;
|
|
// left: 46rpx;
|
|
width: 658rpx;
|
|
height: 88rpx;
|
|
background: #FFCC25;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
|
font-weight: 500;
|
|
font-size: 32rpx;
|
|
color: #FFFFFF;
|
|
}
|
|
.iptbox {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
padding: 22rpx;
|
|
margin: 28rpx auto 0;
|
|
width: 658rpx;
|
|
height: 88rpx;
|
|
background: #FFFFFF;
|
|
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0, 0, 0, 0.15);
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
.qrcode{
|
|
padding-right: 20rpx;
|
|
border-right: 2rpx solid #D8D8D8;
|
|
image{
|
|
width: 54rpx;
|
|
height: 54rpx;
|
|
}
|
|
}
|
|
.ips {
|
|
width: 630rpx;
|
|
|
|
}
|
|
|
|
image {
|
|
width: 18rpx;
|
|
height: 32rpx;
|
|
}
|
|
|
|
.my-placeholder {
|
|
font-weight: 400;
|
|
font-size: 32rpx;
|
|
color: #808080;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
</style> |