latest
This commit is contained in:
4
bookstore-api/.idea/workspace.xml
generated
4
bookstore-api/.idea/workspace.xml
generated
@@ -1020,12 +1020,12 @@
|
||||
<workItem from="1488378219247" duration="650000" />
|
||||
<workItem from="1488461561430" duration="18419000" />
|
||||
<workItem from="1488731165185" duration="30270000" />
|
||||
<workItem from="1489159532831" duration="14854000" />
|
||||
<workItem from="1489159532831" duration="14994000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="107136000" />
|
||||
<option name="totallyTimeSpent" value="107276000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="112" y="23" width="1280" height="797" extended-state="0" />
|
||||
|
||||
@@ -172,7 +172,16 @@ export class OrderComponent implements OnInit {
|
||||
res=>{
|
||||
console.log(res.json());
|
||||
this.userShippingList=res.json();
|
||||
this.emptyShippingList = false;
|
||||
if(this.userShippingList.length) {
|
||||
this.emptyShippingList = false;
|
||||
|
||||
for (let userShipping of this.userShippingList) {
|
||||
if(userShipping.userShippingDefault) {
|
||||
this.setShippingAddress(userShipping);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error=>{
|
||||
console.log(error.text());
|
||||
@@ -184,6 +193,17 @@ export class OrderComponent implements OnInit {
|
||||
console.log(res.json());
|
||||
this.userPaymentList=res.json();
|
||||
this.emptyPaymentList = false;
|
||||
|
||||
if(this.userPaymentList.length) {
|
||||
this.emptyPaymentList = false;
|
||||
|
||||
for (let userPayment of this.userPaymentList) {
|
||||
if(userPayment.defaultPayment) {
|
||||
this.setPaymentMethod(userPayment);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error=>{
|
||||
console.log(error.text());
|
||||
|
||||
Reference in New Issue
Block a user