|
@@ -591,13 +591,17 @@ Page({
|
|
|
wx.setNavigationBarTitle({
|
|
wx.setNavigationBarTitle({
|
|
|
title:"编辑床垫"
|
|
title:"编辑床垫"
|
|
|
})
|
|
})
|
|
|
- this.setData({
|
|
|
|
|
- placeOfUse: "",
|
|
|
|
|
- usingHuman: "",
|
|
|
|
|
- sn: "",
|
|
|
|
|
- ssid: "",
|
|
|
|
|
- password: "",
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ const item = wx.getStorageSync("item");
|
|
|
|
|
+ if (item) {
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ placeOfUse: item.location,
|
|
|
|
|
+ usingHuman: item.person,
|
|
|
|
|
+ sn: item.sn,
|
|
|
|
|
+ ssid: "",
|
|
|
|
|
+ password: "",
|
|
|
|
|
+ })
|
|
|
|
|
+ wx.removeStorageSync("item")
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|