async getCustomerCart() {
let that = this,
res = await this.$request(this.$API.GetCustomerCart);
let list = res.Data;//请求到的新数组
let new_list = [] //一个空变量用来存放新的数组数据
this.order_list.forEach(el => {//forEach循环老数组
for (var i = 0; i < list.length; i++) {//for循环刚刚拿到的新数组
if (el.CartId == list[i].CartId) {//判断老数组的CartId 与新数组的CartId是不是相等
new_list.push(list[i]) //是相等的就push到定义好的空数组中new_list
}
}
});
that.order_list = new_list;
return list;
},