diff --git a/pages/address/index.js b/pages/address/index.js
index 84a5001..1a4cf5d 100644
--- a/pages/address/index.js
+++ b/pages/address/index.js
@@ -271,9 +271,11 @@ Page({
},
// 返回结算页面
chooseBack: function (e) {
- wx.navigateBack()
- var addressId = e.currentTarget.dataset.id
- wx.setStorageSync('addressId', addressId);
+ if (this.data.productStr) {
+ wx.navigateBack()
+ var addressId = e.currentTarget.dataset.id
+ wx.setStorageSync('addressId', addressId);
+ }
},
// 数据加载
DataonLoad: function () {
@@ -287,7 +289,7 @@ Page({
if (res.code == 200) {
var data = res.data;
var address = data.adds;
- that.numbers = data.adds;
+ // that.numbers = data.adds;
if (address == '') {
var address = []
}
diff --git a/pages/address/index.wxml b/pages/address/index.wxml
index e14f668..0311af9 100644
--- a/pages/address/index.wxml
+++ b/pages/address/index.wxml
@@ -30,7 +30,7 @@
默认地址
-
+
编辑
删除
diff --git a/pages/address/upaddress.js b/pages/address/upaddress.js
index 17ed37f..f7c8f5f 100644
--- a/pages/address/upaddress.js
+++ b/pages/address/upaddress.js
@@ -38,6 +38,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ console.log(options)
var region = []
region.push(options.sheng)
region.push(options.city)