|
@@ -682,8 +682,8 @@ export default {
|
|
|
}).catch(()=>{})
|
|
}).catch(()=>{})
|
|
|
},
|
|
},
|
|
|
modifyAddress(){
|
|
modifyAddress(){
|
|
|
- let account = this.option.account
|
|
|
|
|
- let hdId = this.option.hdId
|
|
|
|
|
|
|
+ let account = this.option.account ? this.option.account : (uni.getStorageSync('account') || 0)
|
|
|
|
|
+ let hdId = this.option.hdId ? this.option.hdId : (uni.getStorageSync('hdId') || 0)
|
|
|
this.$util.pageTo({ url: '/pages/user/address?account='+account+'&hdId='+hdId})
|
|
this.$util.pageTo({ url: '/pages/user/address?account='+account+'&hdId='+hdId})
|
|
|
},
|
|
},
|
|
|
changeSendType(num){
|
|
changeSendType(num){
|
|
@@ -781,8 +781,8 @@ export default {
|
|
|
console.log('selectDelivery -- isFreeDelivery: ',isFreeDelivery)
|
|
console.log('selectDelivery -- isFreeDelivery: ',isFreeDelivery)
|
|
|
},
|
|
},
|
|
|
confirmForm(){
|
|
confirmForm(){
|
|
|
- let hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
|
|
- let account = this.option.account ? this.option.account : 0
|
|
|
|
|
|
|
+ let hdId = this.option.hdId ? this.option.hdId : (uni.getStorageSync('hdId') || 0)
|
|
|
|
|
+ let account = this.option.account ? this.option.account : (uni.getStorageSync('account') || 0)
|
|
|
|
|
|
|
|
if(Number(hdId)<=0 || Number(account)<=0){
|
|
if(Number(hdId)<=0 || Number(account)<=0){
|
|
|
inform({hdId:hdId,account:account,page:'affirmGhs'})
|
|
inform({hdId:hdId,account:account,page:'affirmGhs'})
|
|
@@ -824,7 +824,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
return { productId: ele.id, num: num, itemId: ele.itemId, unitType: unitType, property: 1 };
|
|
return { productId: ele.id, num: num, itemId: ele.itemId, unitType: unitType, property: 1 };
|
|
|
});
|
|
});
|
|
|
- let hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
|
|
|
|
+ let hdId = this.option.hdId ? this.option.hdId : (uni.getStorageSync('hdId') || 0)
|
|
|
let params = {
|
|
let params = {
|
|
|
product: JSON.stringify(product),
|
|
product: JSON.stringify(product),
|
|
|
...this.form,
|
|
...this.form,
|
|
@@ -872,7 +872,7 @@ export default {
|
|
|
this.limitExceedProductId = ''
|
|
this.limitExceedProductId = ''
|
|
|
this.limitExceedLimitBuy = ''
|
|
this.limitExceedLimitBuy = ''
|
|
|
this.limitExceedNum = ''
|
|
this.limitExceedNum = ''
|
|
|
- let account = this.option.account ? this.option.account : 0
|
|
|
|
|
|
|
+ let account = this.option.account ? this.option.account : (uni.getStorageSync('account') || 0)
|
|
|
let getPayType = res.data.getPayType?res.data.getPayType:0
|
|
let getPayType = res.data.getPayType?res.data.getPayType:0
|
|
|
let totalPrice = res.data.totalPrice?res.data.totalPrice:0
|
|
let totalPrice = res.data.totalPrice?res.data.totalPrice:0
|
|
|
let orderSn = res.data.orderSn?res.data.orderSn:''
|
|
let orderSn = res.data.orderSn?res.data.orderSn:''
|
|
@@ -899,8 +899,8 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
modifyItem() {
|
|
modifyItem() {
|
|
|
- let account = this.option.account ? this.option.account : 0
|
|
|
|
|
- let hdId = this.option.hdId ? this.option.hdId : 0
|
|
|
|
|
|
|
+ let account = this.option.account ? this.option.account : (uni.getStorageSync('account') || 0)
|
|
|
|
|
+ let hdId = this.option.hdId ? this.option.hdId : (uni.getStorageSync('hdId') || 0)
|
|
|
this.$util.pageTo({url:'/pages/item/item?account='+account+'&hdId='+hdId,type:2})
|
|
this.$util.pageTo({url:'/pages/item/item?account='+account+'&hdId='+hdId,type:2})
|
|
|
},
|
|
},
|
|
|
isLimitExceededItem(item){
|
|
isLimitExceededItem(item){
|