//调整购买数量
addGoodsNum(item) {
let _this = this;
if (_this.ischeck) {
_this.ischeck = false
http.get(`/api/Message/ChangeMessageOrderCt?liveShowId=${_this.liveShowId}&msgId=${item.id}&oldct=${item.oldNum}&newct=${item.matchCt}`).then((res) => {
if (res.statusCode == 200) {
item.oldNum = item.matchCt;
_this.liveDetail()
}
else {
item.matchCt = item.oldNum;
_this.$message({
showClose: true,
message: res.message,
type: 'error'
});
}
}).catch(function (err) {
item.matchCt = item.oldNum;
console.log(err)
}).finally(() => {
_this.ischeck = true
})
} else {
item.matchCt = item.oldNum;
}
},