<template> <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}"> <cus-header title='添加新设备' bgColor='transparent'></cus-header> <image class="topbg" src="http://106.54.209.120:8188/static/device_add_bg.png" mode="widthFix"></image> <div class="icons adfacjb"> <image src="http://106.54.209.120:8188/static/device_query.png"></image> <image class="next" src="http://106.54.209.120:8188/static/device_next.png"></image> <image src="http://106.54.209.120:8188/static/device_wifi.png"></image> <image class="next" src="http://106.54.209.120:8188/static/device_next.png"></image> <image src="http://106.54.209.120:8188/static/device_scan.png"></image> </div> <div class="tip">请确认玩具已开机,点击下方开始配网</div> <div class="memo adfacjb" @tap="showSetMemo"> <image src="http://106.54.209.120:8188/static/info_mini.png"></image> <text>配置网络说明</text> </div> <div class="steps"> <div class="item"> <div class="yuan"></div> <p>首次开机设备将会自动进入配网模式</p> </div> <div class="item"> <div class="yuan"></div> <p>选择<span>"xiaozhi"</span>Wi-Fi热点,连接成功</p> </div> <div class="item"> <div class="yuan"></div> <p>选择网络,输入Wi-Fi密码,设备配网成功</p> </div> <div class="item"> <div class="yuan"></div> <p>扫描设备或说明书上的二维码,绑定设备成功</p> </div> </div> <div class="zt_btn" @tap="startWiFi">开始配网</div> </view> </template> <script> export default { data(){ return { } }, methods:{ startWiFi(){ uni.navigateTo({ url:'/pagesMy/wifi' }) }, showSetMemo(){ uni.navigateTo({ url:'/pagesHome/wifiSetMemo1' }) } } } </script> <style scoped lang="less"> .page{ background: #FFFFFF; padding: 0 60rpx 160rpx; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; .topbg{ width: 100%; position: fixed; left: 0; top: 0; } .icons{ width: 100%; position: relative; margin-top: 57rpx; image{ width: 56rpx; height: 56rpx; &.next{ width: 80rpx; height: 14rpx; } } } .tip{ position: relative; margin-top: 260rpx; font-family: PingFangSC, PingFang SC; font-weight: 400; font-size: 26rpx; color: #7C8592; line-height: 37rpx; text-align: center; } .memo{ width: 250rpx; position: relative; margin-top: 36rpx; background: rgba(27,80,255,0.06); border-radius: 28rpx; padding: 10rpx 29rpx; box-sizing: border-box; image{ width: 26rpx; height: 26rpx; } text{ font-family: PingFangSC, PingFang SC; font-weight: 400; font-size: 26rpx; color: #1B50FF; line-height: 37rpx; margin-left: 10rpx; } } .steps{ margin-top: 219rpx; margin-left: 16rpx; border-left: 1rpx solid #E2E2E2; padding-left: 30rpx; .item{ margin-top: 58rpx; position: relative; &:first-child{ margin-top: 0; } .yuan{ width: 32rpx; height: 32rpx; border-radius: 50%; border: 2rpx solid #C7C7C7; background: #FFFFFF; box-shadow: 0 0 4rpx 4rpx #FFFFFF; position: absolute; left: -48rpx; top: 50%; margin-top: -16rpx; } p{ font-family: PingFangSC, PingFang SC; font-weight: 400; font-size: 26rpx; color: #7C8592; line-height: 37rpx; span{ font-weight: bold; color: #111111; } } } } .zt_btn{ margin-top: 149rpx; } } </style>