2 Commits 292a747ebd ... cd9820c756

Auteur SHA1 Bericht Datum
  huk cd9820c756 Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass 3 jaren geleden
  huk 8e3db85e47 tj 3 jaren geleden
1 gewijzigde bestanden met toevoegingen van 14 en 11 verwijderingen
  1. 14 11
      src/views/index/components/luckDraw.vue

+ 14 - 11
src/views/index/components/luckDraw.vue

@@ -109,22 +109,25 @@ export default {
             this.height = window.innerHeight - 200
         },
         initialization(){
-           let arr;
-            for(var i = 0 ;i<1000;i++){
-                let num = i + 1;
-                arr = {
-                    prop1:'测试' + num,
-                }
-                this.tableData1.push(arr)
-            }
+            this.axios.get('/game/v1/rflemplotterys/').then((res)=>{
+                this.tableData1 = res.data.list
+            })
+            console.log(this.tableData1)
+        //    let arr;
+        //     for(var i = 0 ;i<1000;i++){
+        //         let num = i + 1;
+        //         arr = {
+        //             prop1:'测试' + num,
+        //         }
+        //         this.tableData1.push(arr)
+        //     }
             this.total = this.tableData1.length;
+            
         },
         //查询事件
         selectClick(){
             this.selectLoading = true;
-            this.axios.get('/game/v1/rflemplotterys/').then((res)=>{
-                console.log(res);
-            })
+            
             this.selectLoading = false;
         },
         //行间样式