Commit 5336cb16 authored by ganjingcun's avatar ganjingcun

vote

parent d5de2740
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
"bootstrap": "^3.3.7", "bootstrap": "^3.3.7",
"datatables.net": "^1.10.13", "datatables.net": "^1.10.13",
"datatables.net-bs": "^1.10.13", "datatables.net-bs": "^1.10.13",
"element-ui": "^1.2.8", "element-ui": "^1.4.4",
"moment": "^2.18.1", "moment": "^2.18.1",
"shelljs": "^0.7.7", "shelljs": "^0.7.7",
"swiper": "^3.4.2", "swiper": "^3.4.2",
"vue": "^2.2.2", "vue": "^2.4.2",
"vue-resource": "^1.3.1", "vue-resource": "^1.3.4",
"vue-router": "^2.2.0", "vue-router": "^2.2.0",
"vuex": "^2.2.1" "vuex": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^6.7.2", "autoprefixer": "^6.7.2",
...@@ -41,17 +41,17 @@ ...@@ -41,17 +41,17 @@
"function-bind": "^1.1.0", "function-bind": "^1.1.0",
"html-webpack-plugin": "^2.28.0", "html-webpack-plugin": "^2.28.0",
"http-proxy-middleware": "^0.17.3", "http-proxy-middleware": "^0.17.3",
"webpack-bundle-analyzer": "^2.2.1",
"semver": "^5.3.0",
"opn": "^4.0.2", "opn": "^4.0.2",
"optimize-css-assets-webpack-plugin": "^1.3.0", "optimize-css-assets-webpack-plugin": "^1.3.0",
"ora": "^1.1.0", "ora": "^1.1.0",
"rimraf": "^2.6.0", "rimraf": "^2.6.0",
"semver": "^5.3.0",
"url-loader": "^0.5.7", "url-loader": "^0.5.7",
"vue-loader": "^11.1.4", "vue-loader": "^11.3.4",
"vue-style-loader": "^2.0.0", "vue-style-loader": "^2.0.0",
"vue-template-compiler": "^2.2.4", "vue-template-compiler": "^2.4.2",
"webpack": "^2.2.1", "webpack": "^2.2.1",
"webpack-bundle-analyzer": "^2.2.1",
"webpack-dev-middleware": "^1.10.0", "webpack-dev-middleware": "^1.10.0",
"webpack-hot-middleware": "^2.16.1", "webpack-hot-middleware": "^2.16.1",
"webpack-merge": "^2.6.1" "webpack-merge": "^2.6.1"
......
...@@ -72,4 +72,13 @@ export default class Api { ...@@ -72,4 +72,13 @@ export default class Api {
return Vue.http.get(`${URL}/report`, { 'params': opt }); 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 @@ ...@@ -9,18 +9,19 @@
<div @click="gogo('windows')" class="col-md-4 col-sm-6 item1"> <div @click="gogo('windows')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-windows"></i> <div class="box"><i class="fa fa-windows"></i>
<h3 class="name">Windows </h3> <h3 class="name">Windows </h3>
<!--<p class="title">asd</p>--> <!--<p class="title"> &nbsp;</p>-->
</div> </div>
</div> </div>
<div @click="gogo('mac')" class="col-md-4 col-sm-6 item1"> <div @click="gogo('mac')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-apple"></i> <div class="box"><i class="fa fa-apple"></i>
<h3 class="name">Mac </h3> <h3 class="name">Mac </h3>
<!--<p class="title">asd</p>--> <!--<p class="title"> </p>-->
</div> </div>
</div> </div>
<div @click="gogo('android')" class="col-md-4 col-sm-6 item1"> <div @click="gogo('android')" class="col-md-4 col-sm-6 item1">
<div class="box"><i class="fa fa-android"></i> <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>
</div> </div>
......
This diff is collapsed.
...@@ -10,6 +10,7 @@ import Cardinfo from '@/components/Cardinfo' ...@@ -10,6 +10,7 @@ import Cardinfo from '@/components/Cardinfo'
import History from '@/components/History' import History from '@/components/History'
import Deck from '@/components/Deck' import Deck from '@/components/Deck'
import Report from '@/components/Report' import Report from '@/components/Report'
import Vote from '@/components/Vote'
Vue.use(Router) Vue.use(Router)
...@@ -65,5 +66,10 @@ export default new Router({ ...@@ -65,5 +66,10 @@ export default new Router({
name: 'Report', name: 'Report',
component: 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