deviceAdd.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='添加新设备' bgColor='transparent'></cus-header>
  4. <image class="topbg" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/bee1dc02-6981-4104-bcd8-e491976d364a.png" mode="widthFix"></image>
  5. <div class="icons adfacjb">
  6. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/9f8a6a1a-9fb9-4cd9-9521-33ab9b531a21.png"></image>
  7. <image class="next" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/5af3029d-96e7-456b-b402-7e4e89fb590c.png"></image>
  8. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/b87c8a61-ceb7-41b5-aea2-569be4b9828f.png"></image>
  9. <image class="next" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/5af3029d-96e7-456b-b402-7e4e89fb590c.png"></image>
  10. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/123abb26-3207-4abc-8c55-87261026421f.png"></image>
  11. </div>
  12. <div class="tip">请确认玩具已开机,点击下方开始配网</div>
  13. <div class="memo adfacjb" @tap="showSetMemo">
  14. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/05/29/c1361464-f71e-4071-ba24-85e254c0be96.png"></image>
  15. <text>配置网络说明</text>
  16. </div>
  17. <div class="steps">
  18. <div class="item">
  19. <div class="yuan"></div>
  20. <p>首次开机设备将会自动进入配网模式</p>
  21. </div>
  22. <div class="item">
  23. <div class="yuan"></div>
  24. <p>选择<span>"xiaozhi"</span>Wi-Fi热点,连接成功</p>
  25. </div>
  26. <div class="item">
  27. <div class="yuan"></div>
  28. <p>选择网络,输入Wi-Fi密码,设备配网成功</p>
  29. </div>
  30. <div class="item">
  31. <div class="yuan"></div>
  32. <p>扫描设备或说明书上的二维码,绑定设备成功</p>
  33. </div>
  34. </div>
  35. <div class="zt_btn" @tap="startWiFi">开始配网</div>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data(){
  41. return {
  42. }
  43. },
  44. methods:{
  45. startWiFi(){
  46. uni.navigateTo({
  47. url:'/pagesMy/wifi'
  48. })
  49. },
  50. showSetMemo(){
  51. uni.navigateTo({
  52. url:'/pagesHome/wifiSetMemo1'
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="less">
  59. .page{
  60. background: #FFFFFF;
  61. padding: 0 60rpx 160rpx;
  62. box-sizing: border-box;
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. .topbg{
  67. width: 100%;
  68. position: fixed;
  69. left: 0;
  70. top: 0;
  71. }
  72. .icons{
  73. width: 100%;
  74. position: relative;
  75. margin-top: 57rpx;
  76. image{
  77. width: 56rpx;
  78. height: 56rpx;
  79. &.next{
  80. width: 80rpx;
  81. height: 14rpx;
  82. }
  83. }
  84. }
  85. .tip{
  86. position: relative;
  87. margin-top: 260rpx;
  88. font-family: PingFangSC, PingFang SC;
  89. font-weight: 400;
  90. font-size: 26rpx;
  91. color: #7C8592;
  92. line-height: 37rpx;
  93. text-align: center;
  94. }
  95. .memo{
  96. width: 250rpx;
  97. position: relative;
  98. margin-top: 36rpx;
  99. background: rgba(27,80,255,0.06);
  100. border-radius: 28rpx;
  101. padding: 10rpx 29rpx;
  102. box-sizing: border-box;
  103. image{
  104. width: 26rpx;
  105. height: 26rpx;
  106. }
  107. text{
  108. font-family: PingFangSC, PingFang SC;
  109. font-weight: 400;
  110. font-size: 26rpx;
  111. color: #1B50FF;
  112. line-height: 37rpx;
  113. margin-left: 10rpx;
  114. }
  115. }
  116. .steps{
  117. margin-top: 219rpx;
  118. margin-left: 16rpx;
  119. border-left: 1rpx solid #E2E2E2;
  120. padding-left: 30rpx;
  121. .item{
  122. margin-top: 58rpx;
  123. position: relative;
  124. &:first-child{
  125. margin-top: 0;
  126. }
  127. .yuan{
  128. width: 32rpx;
  129. height: 32rpx;
  130. border-radius: 50%;
  131. border: 2rpx solid #C7C7C7;
  132. background: #FFFFFF;
  133. box-shadow: 0 0 4rpx 4rpx #FFFFFF;
  134. position: absolute;
  135. left: -48rpx;
  136. top: 50%;
  137. margin-top: -16rpx;
  138. }
  139. p{
  140. font-family: PingFangSC, PingFang SC;
  141. font-weight: 400;
  142. font-size: 26rpx;
  143. color: #7C8592;
  144. line-height: 37rpx;
  145. span{
  146. font-weight: bold;
  147. color: #111111;
  148. }
  149. }
  150. }
  151. }
  152. .zt_btn{
  153. margin-top: 149rpx;
  154. }
  155. }
  156. </style>