瀏覽代碼

feature: 增加配网过程中图片的传递展示

332777428@qq.com 5 月之前
父節點
當前提交
31427206a9
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 2 1
      pages/deviceConnect2/deviceConnect2.js
  2. 0 1
      pages/deviceConnect4/deviceConnect4.js

+ 2 - 1
pages/deviceConnect2/deviceConnect2.js

@@ -181,7 +181,8 @@ Page({
     const devicesList = that.data.devicesList;
     if (devicesList.length < 1) {
       var url = "../deviceConnect4/deviceConnect4";
-      var param = "?deviceId=" + deviceId;
+      var p = JSON.stringify(that.data.connectDevice);
+      var param = "?deviceId=" + deviceId + "&param=" + p;
       route_util.jumpParams(url, param);
       wx.showToast({
         title: '请短按设备配对键',

+ 0 - 1
pages/deviceConnect4/deviceConnect4.js

@@ -76,7 +76,6 @@ Page({
 
     BtHelper.getInstance().startScan(device,
       async function (b) {
-
           if (!b) {
             that.setData({
               connected: false