toModify(e){
console.log(\'点击修改收货地址,携带的值为:\', e)
const siteInfo = e.currentTarget.dataset
wx.setStorageSync(\'siteInfo\', siteInfo);
this._goToSomePage(`/pages/third/add address/add address`)
},
_goToSomePage(url) {
wx.navigateTo({
url: url,
})
},
 

// // 取出缓存的收货地址信息
// wx.getStorageSync(\'siteInfo\')
// const siteInfo = wx.getStorageSync(\'siteInfo\')
// this.setData({
// siteInfo
// })

// console.log(\'获取的site缓存为:\', siteInfo)
// const names = siteInfo.names
// const phone = siteInfo.phone
// const home = siteInfo.address.match(/(\S*)-/)[1];
// const site = siteInfo.address.match(/-(\S*)/)[1];
// console.log(\'home\', home)
// console.log("site", site)
// this.setData({
// names,
// phone,
// site,
// Adress: home,
// })
 
 
注意:
一、当使用缓存时,跳转页面为两个,如果共用一个,则编辑和添加都会取用缓存的值
二、