|
@@ -845,19 +845,15 @@ const _sfc_main = {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.scrollIntoView = `list_${this.talklist.length - 1}`;
|
|
this.scrollIntoView = `list_${this.talklist.length - 1}`;
|
|
});
|
|
});
|
|
- if (redata.cmd == "deleteId") {
|
|
|
|
|
|
+ if (redata.data.cmd == "deleteId") {
|
|
common_vendor.index.$emit("deleteId");
|
|
common_vendor.index.$emit("deleteId");
|
|
- } else if (redata.cmd == "init") {
|
|
|
|
|
|
+ } else if (redata.data.cmd == "init") {
|
|
common_vendor.index.$emit("init", redata.data);
|
|
common_vendor.index.$emit("init", redata.data);
|
|
- } else if (redata.cmd == "reload") {
|
|
|
|
|
|
+ } else if (redata.data.cmd == "reload") {
|
|
common_vendor.index.$emit("reload");
|
|
common_vendor.index.$emit("reload");
|
|
- } else if (redata.cmd == "red") {
|
|
|
|
|
|
+ } else if (redata.data.cmd == "red") {
|
|
console.log(" 领红包>>", redata);
|
|
console.log(" 领红包>>", redata);
|
|
- this.redInfo = redata.data;
|
|
|
|
- redata.data.redId;
|
|
|
|
- this.redInfo.redNum = redata.data.redNum;
|
|
|
|
- this.redInfo.redStatus = redata.data.redStatus;
|
|
|
|
- this.redInfo.duration = redata.data.duration;
|
|
|
|
|
|
+ this.redInfo = JSON.parse(redata.data.data);
|
|
} else if (redata.data.cmd == "sendRedPacketQuestion") {
|
|
} else if (redata.data.cmd == "sendRedPacketQuestion") {
|
|
const list = JSON.parse(redata.data.data);
|
|
const list = JSON.parse(redata.data.data);
|
|
this.redanswerAll = [...this.redanswerAll, ...list];
|
|
this.redanswerAll = [...this.redanswerAll, ...list];
|