This commit is contained in:
parent
85aed162b2
commit
e5eb0bef93
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"/js/velocity.js": "/js/velocity.js?id=ac80a6434bb67471e57f",
|
||||
"/css/velocity-admin.css": "/css/velocity-admin.css?id=612d35e452446366eef7",
|
||||
"/css/velocity.css": "/css/velocity.css?id=0b6e54246b36551194f9"
|
||||
"/css/velocity.css": "/css/velocity.css?id=fbfb578be18c6c21ec59"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
type="search"
|
||||
class="form-control"
|
||||
placeholder="{{ __('velocity::app.header.search-text') }}"
|
||||
:value="unescape(searchedQuery.term) ? unescape(searchedQuery.term.split('+').join(' ')) : ''" />
|
||||
:value="searchedQuery.term ? searchedQuery.term.split('+').join(' ') : ''" />
|
||||
|
||||
<image-search-component></image-search-component>
|
||||
|
||||
|
|
@ -404,7 +404,7 @@
|
|||
localStorage.searchedImageUrl = self.uploadedImageUrl;
|
||||
|
||||
queryString = localStorage.searched_terms = analysedResult.join('_');
|
||||
|
||||
|
||||
self.$root.hideLoader();
|
||||
|
||||
window.location.href = "{{ route('shop.search.index') }}" + '?term=' + queryString + '&image-search=1';
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@
|
|||
@endpush
|
||||
|
||||
@section('content-wrapper')
|
||||
<div class="container category-page-wrapper">
|
||||
<div
|
||||
style="padding-left: 50px !important;"
|
||||
class="container category-page-wrapper"
|
||||
>
|
||||
<section class="search-container row category-container">
|
||||
@if (request('image-search'))
|
||||
<image-search-result-component></image-search-result-component>
|
||||
|
|
@ -81,8 +84,8 @@
|
|||
</h3>
|
||||
|
||||
<div class="term-list">
|
||||
<a v-for="term in searched_terms" :href="'{{ route('shop.search.index') }}?term=' + term">
|
||||
@{{ term }}
|
||||
<a v-for="term in searched_terms" :href="'{{ route('shop.search.index') }}?term=' + term.slug">
|
||||
@{{ term.name }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -102,6 +105,13 @@
|
|||
|
||||
created: function() {
|
||||
this.searched_terms = localStorage.searched_terms.split('_');
|
||||
|
||||
this.searched_terms = this.searched_terms.map(term => {
|
||||
return {
|
||||
name: term,
|
||||
slug: term.split(' ').join('+'),
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue