|
@@ -51,11 +51,8 @@
|
|
|
},
|
|
|
components: {XInput, Group, Cell, Alert},
|
|
|
beforeCreate () {
|
|
|
-// localStorage.setItem('positionName', '请定位您的小区或者街道')
|
|
|
if (localStorage.getItem('positionName')) {
|
|
|
-// console.log('true')
|
|
|
} else {
|
|
|
-// console.log('false')
|
|
|
localStorage.setItem('positionName', '请定位您的小区或者街道')
|
|
|
}
|
|
|
},
|
|
@@ -130,15 +127,10 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // 新增地址
|
|
|
+ // 编辑地址
|
|
|
axios.get('api/shop/editAddress&request_from=weixin&name=' + this.userName + '&mobile=' + this.userMobile + '&user_id=' + config.userId + '&address_id=' + config.editAddress.address_id + '&address_position=' + JSON.stringify(config.addressPio.location) + '&address=' + JSON.stringify(config.addressDetail)).then(res => {
|
|
|
if (res.data.success) {
|
|
|
- console.log(res.data)
|
|
|
this.$router.push({path: '/addressList'})
|
|
|
-
|
|
|
-// console.log(res.data.data.address)
|
|
|
-// console.log(config.shopAddress)
|
|
|
// this.alertTitle = '恭喜'
|
|
|
// this.alertContent = '修改成功!'
|
|
|
// this.showAlert = true
|