App Store category filter fixed.
This commit is contained in:
16
resources/assets/js/views/modules/apps.js
vendored
16
resources/assets/js/views/modules/apps.js
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
12
resources/assets/js/views/modules/item.js
vendored
12
resources/assets/js/views/modules/item.js
vendored
@ -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,
|
||||
|
Reference in New Issue
Block a user