271 lines
4.9 KiB
Vue
271 lines
4.9 KiB
Vue
|
|
<template>
|
||
|
|
<view class="device-detail">
|
||
|
|
<view class="bj"></view>
|
||
|
|
<!-- 头部保持原样 -->
|
||
|
|
<view class="tabback">
|
||
|
|
<view class="" @click="onCancel">
|
||
|
|
{{ $i18n.t('cancel') }}
|
||
|
|
</view>
|
||
|
|
<view class="name">{{ $i18n.t('addHubTitle') }}</view>
|
||
|
|
<view class="add-btn" style="width: 50rpx;"></view>
|
||
|
|
</view>
|
||
|
|
<view class="contlunwen"></view>
|
||
|
|
<view class="content-container" style="background-color: #F3F5F6;">
|
||
|
|
<view class="" style="width: 100%;text-align: center;font-size: 30rpx;color: #727272;padding: 0 88rpx;box-sizing: border-box;margin-top: 110rpx;">
|
||
|
|
{{ $i18n.t('addHubPowerTip') }}
|
||
|
|
</view>
|
||
|
|
<view class="" style="width: 100%;text-align: center;font-size: 30rpx;color: #727272;margin-top: 98rpx;padding: 0 88rpx;box-sizing: border-box;">
|
||
|
|
{{ $i18n.t('addHubLedTipPrefix') }}<text style="font-weight: 600;color: #000;">{{ $i18n.t('addHubLedLogoArea') }}</text>{{ $i18n.t('addHubLedTipMiddle') }}<text style="font-weight: 600;color: #000;">{{ $i18n.t('addHubLedGreen') }}</text>{{ $i18n.t('addHubLedTipSuffix') }}
|
||
|
|
</view>
|
||
|
|
<view class="" style="width: 410rpx;height: 410rpx;margin: auto;margin-top: 132rpx;">
|
||
|
|
<image style="width: 410rpx;height: 410rpx;" src="https://api.ccttiot.com/smartmeter/img/static/u1KJqp0IUoQks3cbTVtI" mode=""></image>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
<view class="anniu">
|
||
|
|
<view class="btnan" @click="btnjx">
|
||
|
|
{{ $i18n.t('continueText') }}
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
|
||
|
|
}
|
||
|
|
},
|
||
|
|
computed: {
|
||
|
|
|
||
|
|
},
|
||
|
|
onLoad() {
|
||
|
|
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
// 点击取消添加设备
|
||
|
|
onCancel() {
|
||
|
|
uni.navigateBack({
|
||
|
|
delta: 1
|
||
|
|
})
|
||
|
|
},
|
||
|
|
// 点击继续下一步
|
||
|
|
btnjx(){
|
||
|
|
uni.navigateTo({
|
||
|
|
url:'/pages/device/addhubtwo'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped lang="less">
|
||
|
|
.anniu{
|
||
|
|
width: 750rpx;
|
||
|
|
height: 126rpx;
|
||
|
|
padding-top: 24rpx;
|
||
|
|
box-sizing: border-box;
|
||
|
|
background: #FFFFFF;
|
||
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||
|
|
position: fixed;
|
||
|
|
left: 0;
|
||
|
|
bottom: 0;
|
||
|
|
.btnan{
|
||
|
|
width: 674rpx;
|
||
|
|
height: 80rpx;
|
||
|
|
background: #0F0F0F;
|
||
|
|
font-size: 32rpx;
|
||
|
|
color: #FFFFFF;
|
||
|
|
text-align: center;
|
||
|
|
line-height: 80rpx;
|
||
|
|
border-radius: 50rpx;
|
||
|
|
margin: auto;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.crop-container {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
background-color: #000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bj {
|
||
|
|
width: 100%;
|
||
|
|
height: 50vh;
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
z-index: -1;
|
||
|
|
background-color: #0F0F0F;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabback {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
width: 100%;
|
||
|
|
height: 126rpx;
|
||
|
|
padding: 0 20rpx;
|
||
|
|
box-sizing: border-box;
|
||
|
|
background-color: #fff;
|
||
|
|
margin-top: 102rpx;
|
||
|
|
border-radius: 30rpx 30rpx 0 0;
|
||
|
|
|
||
|
|
.rtjt {
|
||
|
|
font-size: 36rpx;
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.name {
|
||
|
|
font-size: 36rpx;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #333;
|
||
|
|
margin: 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.add-btn {
|
||
|
|
font-size: 32rpx;
|
||
|
|
color: #ccc;
|
||
|
|
transition: color 0.3s;
|
||
|
|
|
||
|
|
&.active {
|
||
|
|
color: #333;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.device-detail {
|
||
|
|
// min-height: 100vh;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-container {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
min-height: calc(100vh - 228rpx);
|
||
|
|
padding-bottom: 200rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.instruction-section {
|
||
|
|
background: #f3f5f6;
|
||
|
|
text-align: center;
|
||
|
|
width: 100%;
|
||
|
|
height: 448rpx;
|
||
|
|
|
||
|
|
view {
|
||
|
|
position: relative;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
width: 272rpx;
|
||
|
|
margin-top: 88rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.da {
|
||
|
|
width: 272rpx;
|
||
|
|
height: 272rpx;
|
||
|
|
border-radius: 50%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.xiao {
|
||
|
|
width: 116rpx;
|
||
|
|
height: 72rpx;
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.instruction-text {
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #666;
|
||
|
|
line-height: 1.6;
|
||
|
|
margin-top: 30rpx;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.input-section {
|
||
|
|
background: #fff;
|
||
|
|
padding: 40rpx 32rpx;
|
||
|
|
margin-top: 40rpx;
|
||
|
|
|
||
|
|
.input-group {
|
||
|
|
margin-bottom: 40rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.input-label {
|
||
|
|
display: block;
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #666;
|
||
|
|
margin-bottom: 20rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.code-input {
|
||
|
|
width: 100%;
|
||
|
|
height: 80rpx;
|
||
|
|
border: none;
|
||
|
|
border-bottom: 2rpx solid #e5e5e5;
|
||
|
|
font-size: 32rpx;
|
||
|
|
color: #333;
|
||
|
|
background: transparent;
|
||
|
|
padding: 0;
|
||
|
|
|
||
|
|
&::placeholder {
|
||
|
|
color: #bbb;
|
||
|
|
letter-spacing: 8rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
&:focus {
|
||
|
|
border-bottom-color: #000;
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.help-section {
|
||
|
|
background: #f3f5f6;
|
||
|
|
padding: 40rpx 0;
|
||
|
|
padding-top: 20rpx;
|
||
|
|
padding-left: 48rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.help-text {
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #727272;
|
||
|
|
}
|
||
|
|
|
||
|
|
.button-section {
|
||
|
|
margin-top: auto;
|
||
|
|
padding-top: 42rpx;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
width: 750rpx;
|
||
|
|
height: 220rpx;
|
||
|
|
background: #FFFFFF;
|
||
|
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||
|
|
position: fixed;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
bottom: 0;
|
||
|
|
|
||
|
|
.continue-btn {
|
||
|
|
width: 674rpx;
|
||
|
|
height: 80rpx;
|
||
|
|
line-height: 80rpx;
|
||
|
|
background: #BBBBBB;
|
||
|
|
color: #fff;
|
||
|
|
border: none;
|
||
|
|
border-radius: 50rpx;
|
||
|
|
font-size: 32rpx;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.continue-btn.active {
|
||
|
|
background: #000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.cancel-btn {
|
||
|
|
margin-top: 34rpx;
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #000;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|