liujiaxin 1 месяц назад
Родитель
Сommit
dccb9262de
2 измененных файлов с 14 добавлено и 18 удалено
  1. 9 9
      pages/home/living.vue
  2. 5 9
      unpackage/dist/dev/mp-weixin/pages/home/living.js

+ 9 - 9
pages/home/living.vue

@@ -1312,20 +1312,20 @@
 							this.$nextTick(() => {
 								this.scrollIntoView = `list_${this.talklist.length-1}`
 							})
-							if (redata.cmd == 'deleteId') {
+							if (redata.data.cmd == 'deleteId') {
 								uni.$emit('deleteId');
-							} else if (redata.cmd == 'init') {
+							} else if (redata.data.cmd == 'init') {
 								uni.$emit('init', redata.data);
-							} else if (redata.cmd == 'reload') {
+							} else if (redata.data.cmd == 'reload') {
 								uni.$emit('reload');
-							} else if (redata.cmd == 'red') {
+							} else if (redata.data.cmd == 'red') {
 								// 领红包
 								console.log(" 领红包>>",redata)
-								this.redInfo=redata.data
-								let redId=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)
+								// let redId= this.redInfo.redId
+								// this.redInfo.redNum=redata.data.redNum
+								// this.redInfo.redStatus=redata.data.redStatus
+								// this.redInfo.duration=redata.data.duration
 								
 							} else if (redata.data.cmd == 'sendRedPacketQuestion') {
 								const list = JSON.parse(redata.data.data)

+ 5 - 9
unpackage/dist/dev/mp-weixin/pages/home/living.js

@@ -845,19 +845,15 @@ const _sfc_main = {
             this.$nextTick(() => {
               this.scrollIntoView = `list_${this.talklist.length - 1}`;
             });
-            if (redata.cmd == "deleteId") {
+            if (redata.data.cmd == "deleteId") {
               common_vendor.index.$emit("deleteId");
-            } else if (redata.cmd == "init") {
+            } else if (redata.data.cmd == "init") {
               common_vendor.index.$emit("init", redata.data);
-            } else if (redata.cmd == "reload") {
+            } else if (redata.data.cmd == "reload") {
               common_vendor.index.$emit("reload");
-            } else if (redata.cmd == "red") {
+            } else if (redata.data.cmd == "red") {
               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") {
               const list = JSON.parse(redata.data.data);
               this.redanswerAll = [...this.redanswerAll, ...list];