Ver código fonte

ouList click

andy 1 ano atrás
pai
commit
60e778f124
1 arquivos alterados com 8 adições e 3 exclusões
  1. 8 3
      pages/drawCard_infinite/drawCard_infinite.vue

+ 8 - 3
pages/drawCard_infinite/drawCard_infinite.vue

@@ -276,6 +276,7 @@ export default {
   },
   methods: {
     showList() {
+      this.getOuKingList()
       this.$refs.popup.open('center')
     },
     closeList() {
@@ -320,6 +321,11 @@ export default {
         this.getPrizeUserList()
       }
     },
+    getOuKingList() {
+      getOuList({ raffleId: this.raffleId, page: 1, limit: 1000 }).then(rs => {
+        this.ouList = rs.data
+      })
+    },
     getDetail() {
       let params = {
         raffleId: this.raffleId,
@@ -331,11 +337,10 @@ export default {
           getOuCount(params).then(rs => {
             this.ouCount = rs.data
           })
-          getOuList({ ...params, page: 1, limit: 1000 }).then(rs => {
-            this.ouList = rs.data
-          })
         }
       })
+
+      this.getOuKingList()
     },
     getPrizeList() {
       let params = {