清理冗余代码
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user