fix
This commit is contained in:
parent
cf5462b901
commit
6ae1d3740c
@ -203,6 +203,7 @@ class Main extends Component {
|
||||
}));
|
||||
};
|
||||
selectDeliveryCallback(point){
|
||||
if(point){
|
||||
fetch(addr_prefix + '/api/cart/select_delivery?delivery='+point.name).then(resp => resp.json()).then(json => {
|
||||
if(json.status == "failed"){
|
||||
this.setState({
|
||||
@ -222,6 +223,7 @@ class Main extends Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
selectDelivery = () => {
|
||||
Packeta.Widget.pick("8599115769fd895b", this.selectDeliveryCallback.bind(this))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user