|
@@ -88,6 +88,7 @@ Page({
|
|
|
},
|
|
|
|
|
|
changeClose2(e) {
|
|
|
+ // console.log(e)
|
|
|
this.setData({
|
|
|
show2: !this.data.show2,
|
|
|
remark: this.data.remark
|
|
@@ -204,9 +205,10 @@ Page({
|
|
|
address: that.data.address,
|
|
|
|
|
|
}, "post").then(function (res) {
|
|
|
+
|
|
|
if (res.code != 200) {
|
|
|
wx.showLoading({
|
|
|
- title: res.message.msg,
|
|
|
+ title: res.original.message.msg,
|
|
|
})
|
|
|
setTimeout(function () {
|
|
|
wx.hideLoading({
|
|
@@ -221,7 +223,7 @@ Page({
|
|
|
}
|
|
|
|
|
|
}).catch(function (err) {
|
|
|
- console.log(222);
|
|
|
+ console.log(err);
|
|
|
})
|
|
|
},
|
|
|
updateaddr(e) {
|
|
@@ -261,9 +263,10 @@ Page({
|
|
|
user_remark: that.data.remark,
|
|
|
address_id:that.data.address_id
|
|
|
}, "post").then(function (res) {
|
|
|
- if (res.original.code != 200) {
|
|
|
+ console.log(res)
|
|
|
+ if (res.code != 200) {
|
|
|
wx.showLoading({
|
|
|
- title: res.original.message.msg,
|
|
|
+ title: res.message.msg,
|
|
|
})
|
|
|
setTimeout(function () {
|
|
|
wx.hideLoading({
|
|
@@ -280,7 +283,8 @@ Page({
|
|
|
|
|
|
|
|
|
}).catch(function (err) {
|
|
|
- console.log(222);
|
|
|
+ // console.log(222);
|
|
|
+ console.log(err)
|
|
|
})
|
|
|
},
|
|
|
|