list
This commit is contained in:
@@ -53,7 +53,7 @@ Page({
|
|||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
wx.navigateBack({
|
wx.navigateBack({
|
||||||
delta: 1
|
delta: 2
|
||||||
})
|
})
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -164,8 +164,13 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
devicesList: res
|
devicesList: res
|
||||||
});
|
});
|
||||||
|
this.selectDevice();
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
selectDevice() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if(this.data.devicesList && this.data.devicesList.length) {
|
||||||
this.setData({
|
this.setData({
|
||||||
getDeviceSetting: false,
|
getDeviceSetting: false,
|
||||||
initText: "设备搜索完成"
|
initText: "设备搜索完成"
|
||||||
@@ -195,6 +200,9 @@ Page({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 3000)
|
} else {
|
||||||
|
this.selectDevice();
|
||||||
|
}
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user