App Store category filter fixed.

This commit is contained in:
Cüneyt Şentürk
2019-11-20 17:45:19 +03:00
parent 771d73f0d1
commit e4422a22d7
6 changed files with 48 additions and 1 deletions

View File

@ -14,12 +14,28 @@ import Form from './../../plugins/form';
const app = new Vue({
el: '#app',
mixins: [
Global
],
data: function () {
return {
form: new Form('form-app')
}
},
methods: {
onChangeCategory(category) {
let path = document.getElementById('category_page').value;
if (category) {
path += '/' + encodeURIComponent(category);
} else {
path = app_home;
}
location = path;
}
}
});

View File

@ -47,6 +47,18 @@ const app = new Vue({
},
methods: {
onChangeCategory(category) {
let path = document.getElementById('category_page').value;
if (category) {
path += '/' + encodeURIComponent(category);
} else {
path = app_home;
}
location = path;
},
onGetReviews (path, page) {
axios.post(url + '/apps/' + app_slug + '/reviews', {
patth: path,