Commit 5336cb16 authored by ganjingcun's avatar ganjingcun

vote

parent d5de2740
......@@ -72,4 +72,13 @@ export default class Api {
return Vue.http.get(`${URL}/report`, { 'params': opt });
}
static getVoteList(opt) {
return Vue.http.get(`${URL}/votes`, { 'params': opt });
}
static saveVote(opt) {
const url = `${URL}/votes`
return Vue.http.post(url, opt, { 'emulateJSON': true });
}
}
......@@ -9,18 +9,19 @@
<div @click="gogo('windows')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-windows"></i>
<h3 class="name">Windows </h3>
<!--<p class="title">asd</p>-->
<!--<p class="title"> &nbsp;</p>-->
</div>
</div>
<div @click="gogo('mac')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-apple"></i>
<h3 class="name">Mac </h3>
<!--<p class="title">asd</p>-->
<!--<p class="title"> </p>-->
</div>
</div>
<div @click="gogo('android')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-android"></i>
<h3 class="name">Android (YGOMobile) </h3>
<h3 class="name">Android </h3>
<!--<p class="title">(YGOMobile)</p>-->
</div>
</div>
......
This diff is collapsed.
......@@ -10,6 +10,7 @@ import Cardinfo from '@/components/Cardinfo'
import History from '@/components/History'
import Deck from '@/components/Deck'
import Report from '@/components/Report'
import Vote from '@/components/Vote'
Vue.use(Router)
......@@ -65,5 +66,10 @@ export default new Router({
name: 'Report',
component: Report
},
{
path: '/vote',
name: 'Vote',
component: Vote
},
]
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment