ytj 6 anni fa
parent
commit
e30187e1ad
1 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 10
    10
      src/views/supportMain/supportMain.vue

+ 10
- 10
src/views/supportMain/supportMain.vue Vedi File

@@ -33,15 +33,15 @@
33 33
       <div class="box" @click.stop="1+1">
34 34
         <div class="item">
35 35
           <label for="name">姓名</label>
36
-          <input type="text" v-model="name" @blur='blur'>
36
+          <input type="text" v-model="name" @blur="blur">
37 37
         </div>
38 38
         <div class="item">
39 39
           <label for="phone">手机号</label>
40
-          <input type="tel" v-model="phone" @blur='blur'>
40
+          <input type="tel" v-model="phone" @blur="blur">
41 41
         </div>
42 42
         <div class="item">
43 43
           <label for="address">所在社区</label>
44
-          <input type="text" v-model="address" @blur='blur'>
44
+          <input type="text" v-model="address" @blur="blur">
45 45
         </div>
46 46
         <div class="submit" @click="sign()">提交</div>
47 47
       </div>
@@ -73,7 +73,7 @@ export default {
73 73
       showPage: false
74 74
     }
75 75
   },
76
-  methods () {
76
+  created () {
77 77
     this.getGame().then(() => {
78 78
       if (this.game.game.Status == 2) {
79 79
         this.btn.text = '活动已结束'
@@ -103,12 +103,6 @@ export default {
103 103
       this.share()
104 104
     })
105 105
   },
106
-  computed: {
107
-    ...mapIndexState({
108
-      userInfo: item => item.userInfo,
109
-      game: item => item.game,
110
-    })
111
-  },
112 106
   methods: {
113 107
     ...mapIndexActions(['getGame', 'signUp', 'setRecord']),
114 108
     submit () {
@@ -173,6 +167,12 @@ export default {
173 167
         clearInterval(timer);
174 168
       }, 1);
175 169
     }
170
+  },
171
+  computed: {
172
+    ...mapIndexState({
173
+      userInfo: item => item.userInfo,
174
+      game: item => item.game,
175
+    })
176 176
   }
177 177
 }
178 178
 </script>