ytj 6 years ago
parent
commit
e30187e1ad
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      src/views/supportMain/supportMain.vue

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

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