|
|
|
// pack-cookbook/components/cart/cart.js
|
|
|
|
import util from '../../../utils/util';
|
|
|
|
import App from '../../../utils/api';
|
|
|
|
const {regeneratorRuntime} = global
|
|
|
|
Component({
|
|
|
|
/**
|
|
|
|
* 组件的属性列表
|
|
...
|
...
|
@@ -60,5 +63,14 @@ Component({ |
|
|
|
let opt=e.detail;
|
|
|
|
this.triggerEvent('foodCardCallback',opt);
|
|
|
|
},
|
|
|
|
RemoveCart(){
|
|
|
|
App.Advance.RemoveCart({
|
|
|
|
orderid:this.data.order.id,
|
|
|
|
identity:this.data.identity,
|
|
|
|
}).then(res=>{
|
|
|
|
this.hide();
|
|
|
|
this.triggerEvent('foodCardCallback',{type:'flushOrder',num:0});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}) |
...
|
...
|
|