清理冗余代码

This commit is contained in:
唐明明
2022-06-15 16:31:57 +08:00
parent 7d8b0994f5
commit 5357b0fde6
26 changed files with 32 additions and 684 deletions

View File

@@ -73,7 +73,6 @@
this.getOrder()
eventBus.$on('paySuccess', function(data) {
let index = this.array.findIndex((item) => item.no === data);
console.log(typeof this.index, this.index)
if (this.index == '0') {
this.array[index].stateText = '待发货'
this.array[index].cans = {
@@ -92,7 +91,6 @@
}.bind(this));
eventBus.$on('applyRefundMoney', (data)=> {
console.log(data,'data....');
let index = this.array.findIndex((item) => item.no === data);
this.array.splice(index, 1);
});
@@ -264,8 +262,6 @@
}
if (!onFount) return
onFount.then(res => {
console.log(res)
let orderIndex = this.array.findIndex(val => val.no === e.order.no)
if (e.type === 'delete' || e.type === 'sign') {
this.array.splice(orderIndex, 1)