diff --git a/pages/address/index.js b/pages/address/index.js index 1a4cf5d..8722d28 100644 --- a/pages/address/index.js +++ b/pages/address/index.js @@ -72,7 +72,7 @@ Page({ onLoad: function (options) { - console.log(options) + // console.log(options) var that = this; that.setData({ productStr: options.product, @@ -277,6 +277,12 @@ Page({ wx.setStorageSync('addressId', addressId); } }, + navToUpaddress: function (e) { + var item = e.currentTarget.dataset + wx.navigateTo({ + url: "/pages/address/upaddress?addr_id="+item.id+"&name="+item.name+"&tel="+item.tel+"&sheng="+item.sheng+"&city="+item.city+"&quyu="+item.quyu+"&address="+item.address+"&is_default="+item.is_default, + }) + }, // 数据加载 DataonLoad: function () { var that = this; diff --git a/pages/address/index.wxml b/pages/address/index.wxml index 0311af9..31bd294 100644 --- a/pages/address/index.wxml +++ b/pages/address/index.wxml @@ -12,9 +12,9 @@ {{item.tel}} {{item.address_xq}} - + - + @@ -30,9 +30,9 @@ 默认地址 - + 编辑 - + 删除 diff --git a/pages/address/upaddress.js b/pages/address/upaddress.js index f7c8f5f..17ed37f 100644 --- a/pages/address/upaddress.js +++ b/pages/address/upaddress.js @@ -38,7 +38,6 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { - console.log(options) var region = [] region.push(options.sheng) region.push(options.city)