|
@@ -1721,12 +1721,24 @@
|
|
|
});
|
|
|
} else if (socketMessage.cmd == 'goods') {
|
|
|
this.$set(liveItem, 'goodsCard', JSON.parse(socketMessage.data));
|
|
|
+ } else if (socketMessage.cmd == 'out') {
|
|
|
+ // console.log("进入:", liveItem);
|
|
|
+ console.log("有人退出了:");
|
|
|
+
|
|
|
+ } else if (socketMessage.cmd == 'live_start') {
|
|
|
+ // 直播开始
|
|
|
+ } else if (socketMessage.cmd == 'live_end') {
|
|
|
+ // 直播结束
|
|
|
+ } else if (socketMessage.data.cmd == 'deleteId') {
|
|
|
+ uni.$emit('deleteId');
|
|
|
+ } else if (socketMessage.data.cmd == 'sendRedPacketQuestion') {
|
|
|
+ // const list = JSON.parse(socketMessage)
|
|
|
+ // liveItem.redanswerAll = [...liveItem.redanswerAll, ...list]
|
|
|
+ // if (liveItem.redanswerAll[1].randomAmount !== null) {
|
|
|
+ // liveItem.redanswertips = JSON.parse(liveItem.redanswerAll[0]
|
|
|
+ // .randomAmount)
|
|
|
+ // }
|
|
|
}
|
|
|
- // else if (socketMessage.cmd == 'deleteId') {
|
|
|
-
|
|
|
- // } else if (socketMessage.cmd =='sendRedPacketQuestion') {
|
|
|
-
|
|
|
- // }
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: data.msg,
|