提交代码

This commit is contained in:
duan
2024-06-12 11:10:59 +08:00
parent 02cbc93a14
commit 06a9c4f2de
8 changed files with 46 additions and 17 deletions

View File

@@ -339,6 +339,7 @@
return false;
}
} else {
wx.hideLoading()
switch (msg.type) {
case 'sku': // sku 数量
this.$set(this, 'amountcartNumber', msg.amount)
@@ -406,6 +407,10 @@
}
},
handlemessage() {
wx.showLoading({
title: '',
})
this.socketTicket ? this.socketTicket.Close() : null //调用前先判断是否有socket正在进行 先关闭后链接
this.socketTicket = new webSocketUtils(`${uni.conf.baseUrlwws}`, 5000, {
tableId: uni.cache.get('tableCode'),