deviceAdd.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='开机' bgColor='transparent' :backUrl="'/pages/home'"></cus-header>
  4. <image class="topbg" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/57d11386-a720-4e76-ac9b-69826e56d83a.png" mode="widthFix"></image>
  5. <div class="icons adfacjb">
  6. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/76406f0b-dba6-4797-a42d-0254e9f06ee6.png"></image>
  7. <image class="next" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/b4acf520-1d30-4f67-8fa8-fb03de1768cf.png"></image>
  8. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/c32524e5-e4f4-4ee9-886c-ec7156c7d019.png"></image>
  9. <image class="next" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/b4acf520-1d30-4f67-8fa8-fb03de1768cf.png"></image>
  10. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/b47cb0c5-7df7-49a1-8d2f-e6362de17a89.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/06/03/d218058d-3720-461a-8a25-87b5657c1957.png"></image>
  15. <text>配置网络说明</text>
  16. </div>
  17. <div class="steps">
  18. <div class="s_item">
  19. <div class="si_top adfac">
  20. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/04/7942575f-4288-4109-9a55-2a48c526530c.png"></image>
  21. <div class="sit_title">确认蓝牙权限</div>
  22. </div>
  23. <div class="si_tip">请确认手机蓝牙功能打开,并且小程序拥有蓝牙权限</div>
  24. </div>
  25. <div class="s_item">
  26. <div class="si_top adfac">
  27. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/04/b6716138-07a5-42f9-86b3-b9517e64ffe8.png"></image>
  28. <div class="sit_title">靠近设备</div>
  29. </div>
  30. <div class="si_tip">请将手机靠近设备并保持2米以内</div>
  31. </div>
  32. <div class="s_item">
  33. <div class="si_top adfac">
  34. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/04/01707d1d-6a11-4001-9db2-6680f5f2b9c9.png"></image>
  35. <div class="sit_title">首次开机</div>
  36. </div>
  37. <div class="si_tip">首次开机设备将会自动进入配网模式</div>
  38. </div>
  39. <div class="s_item">
  40. <div class="si_top adfac">
  41. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/04/42cb08bf-b7a9-4d54-a1b0-eff9e1afca9d.png"></image>
  42. <div class="sit_title">重新配网</div>
  43. </div>
  44. <div class="si_tip">重新配网请长按M键3秒钟,听到提示音之后进入配网模式</div>
  45. </div>
  46. </div>
  47. <div class="zt_btn" @tap="startWiFi">我已开机</div>
  48. </view>
  49. </template>
  50. <script>
  51. // import xBlufiInit from '@/mixins/xBlufiInit'
  52. export default {
  53. // mixins:[xBlufiInit],
  54. data(){
  55. return {
  56. }
  57. },
  58. methods:{
  59. startWiFi(){
  60. uni.navigateTo({
  61. url:'/pagesMy/wifiSearch'
  62. })
  63. },
  64. showSetMemo(){
  65. uni.navigateTo({
  66. url:'/pagesHome/wifiSetMemo1'
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style scoped lang="less">
  73. .page{
  74. background: #FFFFFF;
  75. padding: 0 80rpx 160rpx;
  76. box-sizing: border-box;
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. .topbg{
  81. width: 100%;
  82. position: fixed;
  83. left: 0;
  84. top: 0;
  85. }
  86. .icons{
  87. width: 100%;
  88. position: relative;
  89. margin-top: 57rpx;
  90. image{
  91. width: 56rpx;
  92. height: 56rpx;
  93. &.next{
  94. width: 80rpx;
  95. height: 14rpx;
  96. }
  97. }
  98. }
  99. .tip{
  100. position: relative;
  101. margin-top: 124rpx;
  102. font-family: PingFang-SC, PingFang-SC;
  103. font-weight: bold;
  104. font-size: 32rpx;
  105. color: #111111;
  106. line-height: 45rpx;
  107. text-align: center;
  108. }
  109. .memo{
  110. width: 250rpx;
  111. position: relative;
  112. margin-top: 34rpx;
  113. background: rgba(27,80,255,0.06);
  114. border-radius: 28rpx;
  115. padding: 10rpx 29rpx;
  116. box-sizing: border-box;
  117. image{
  118. width: 26rpx;
  119. height: 26rpx;
  120. }
  121. text{
  122. font-family: PingFangSC, PingFang SC;
  123. font-weight: 400;
  124. font-size: 26rpx;
  125. color: #1B50FF;
  126. line-height: 37rpx;
  127. margin-left: 10rpx;
  128. }
  129. }
  130. .steps{
  131. position: relative;
  132. margin-top: 53rpx;
  133. .s_item{
  134. margin-top: 56rpx;
  135. .si_top{
  136. image{
  137. width: 36rpx;
  138. height: 36rpx;
  139. border-radius: 50%;
  140. }
  141. .sit_title{
  142. font-family: PingFang-SC, PingFang-SC;
  143. font-weight: bold;
  144. font-size: 28rpx;
  145. color: #111111;
  146. line-height: 40rpx;
  147. margin-left: 18rpx;
  148. }
  149. }
  150. .si_tip{
  151. font-family: PingFangSC, PingFang SC;
  152. font-weight: 400;
  153. font-size: 24rpx;
  154. color: #7C8592;
  155. line-height: 33rpx;
  156. text-align: left;
  157. margin: 23rpx 0 0 54rpx;
  158. }
  159. }
  160. }
  161. .zt_btn{
  162. margin-top: 149rpx;
  163. }
  164. }
  165. </style>