|
@@ -258,7 +258,9 @@ export default {
|
|
if ($this.toy_item["hex"]) {
|
|
if ($this.toy_item["hex"]) {
|
|
let $hex = $this.toy_item["hex"].substr($this.toy_item["hex"].length - 2, 2);
|
|
let $hex = $this.toy_item["hex"].substr($this.toy_item["hex"].length - 2, 2);
|
|
if (hexStr.substr(8, 2) == $hex) {
|
|
if (hexStr.substr(8, 2) == $hex) {
|
|
- console.log("已连接到"+$this.toy_item.name);
|
|
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title:"已连接到"+$this.toy_item.name
|
|
|
|
+ });
|
|
$this.change_toy_connect_status(2);
|
|
$this.change_toy_connect_status(2);
|
|
}else if(hexStr.substr(8, 2) == "00"){
|
|
}else if(hexStr.substr(8, 2) == "00"){
|
|
$this.change_toy_connect_status(3);
|
|
$this.change_toy_connect_status(3);
|