|
|
@@ -1563,10 +1563,15 @@ export default {
|
|
|
addressId: e
|
|
|
}
|
|
|
this.$Request.get('/app/address/selectAddressById', data).then((res) => {
|
|
|
+ console.log(res, 77777777)
|
|
|
if (res.code == 0) {
|
|
|
this.address = res.data
|
|
|
|
|
|
- this.getInsideDeliveryFee(this.address.insideAddressId)
|
|
|
+ if (this.address.insideAddressId) {
|
|
|
+ this.getInsideDeliveryFee(this.address.insideAddressId)
|
|
|
+ } else {
|
|
|
+ this.getInsideDeliveryFee(0)
|
|
|
+ }
|
|
|
if (JSON.stringify(this.address) != '{}') {
|
|
|
this.getDistance()
|
|
|
}
|
|
|
@@ -1582,6 +1587,7 @@ export default {
|
|
|
limit: 100
|
|
|
}
|
|
|
that.$Request.get('/app/address/selectAddressList', data).then((res) => {
|
|
|
+ console.log(res, 741852)
|
|
|
if (res.code == 0) {
|
|
|
that.address = res.data.list[0] ? res.data.list[0] : {}
|
|
|
res.data.list.forEach((ret) => {
|
|
|
@@ -1590,9 +1596,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- // console.log(that.address, '我的地址列表460777')
|
|
|
+ console.log(that.address, '我的地址列表460777')
|
|
|
|
|
|
- this.getInsideDeliveryFee(this.address.insideAddressId)
|
|
|
+ if (this.address.insideAddressId) {
|
|
|
+ this.getInsideDeliveryFee(this.address.insideAddressId)
|
|
|
+ } else {
|
|
|
+ this.getInsideDeliveryFee(0)
|
|
|
+ }
|
|
|
|
|
|
if (JSON.stringify(this.address) != '{}') {
|
|
|
this.getDistance()
|
|
|
@@ -1602,7 +1612,7 @@ export default {
|
|
|
},
|
|
|
getInsideDeliveryFee(insideAddressId) {
|
|
|
this.$Request.get(`/app/inside-address/${insideAddressId}`).then((res) => {
|
|
|
- // console.log(res, 987456)
|
|
|
+ console.log(res, 987456)
|
|
|
if (res.code == 0) {
|
|
|
this.address.insideDeliveryFee = res.data.deliveryFee || 0
|
|
|
}
|
|
|
@@ -1971,4 +1981,4 @@ export default {
|
|
|
top: -20rpx; */
|
|
|
z-index: 9;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|