地址信息完善
This commit is contained in:
@@ -291,12 +291,9 @@
|
||||
this.shangIDNum = e.list
|
||||
}
|
||||
// this.getYunFei()
|
||||
if (this.typeId == 1) {
|
||||
this.getCartList()
|
||||
|
||||
} else if (this.typeId == 0) {
|
||||
this.getShangList(this.shangIDNum);
|
||||
}
|
||||
|
||||
this.getData()
|
||||
this.getOS()
|
||||
},
|
||||
onShow() {
|
||||
// if (this.typeId == 1) {
|
||||
@@ -305,9 +302,13 @@
|
||||
// } else if (this.typeId == 0) {
|
||||
// this.getShangList(this.shangIDNum);
|
||||
// }
|
||||
this.getData()
|
||||
this.getOS()
|
||||
this.getUserAddress()
|
||||
if (this.typeId == 1) {
|
||||
this.getCartList()
|
||||
|
||||
} else if (this.typeId == 0) {
|
||||
this.getShangList(this.shangIDNum);
|
||||
}
|
||||
// this.getUserAddress()
|
||||
},
|
||||
computed: {
|
||||
...mapState(['userInfo']),
|
||||
@@ -361,11 +362,15 @@
|
||||
// console.log(this.addressList,'地址列表')
|
||||
this.adressMoRen = this.addressList[this.adressMoRIndex]
|
||||
console.log(this.adressMoRen, '默认')
|
||||
if(this.adressMoRen != {}){
|
||||
if(this.adressMoRen != {} && this.adressMoRen.id){
|
||||
// console.log('运费之前')
|
||||
this.getYunFei()
|
||||
}else{
|
||||
this.getUserAddress()
|
||||
// this.getUserAddress()
|
||||
uni.showToast({
|
||||
title:'获取用户地址失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -459,7 +464,7 @@
|
||||
key.push({productId: item.productId, quantity:item.productAmount})
|
||||
// dataToString = dataToString.concat(item.productId+"="+item.productAmount+"&")
|
||||
})
|
||||
console.log(key,'this.adressMoRen.areaidpath')
|
||||
// console.log(key,'this.adressMoRen.areaidpath')
|
||||
|
||||
$http.request({
|
||||
// url: "book/buyOrder/calculateTransportPrice/",
|
||||
|
||||
Reference in New Issue
Block a user