|
|
@ -1,10 +1,10 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="search" v-show="show">
|
|
|
|
<div class="search" v-show="show">
|
|
|
|
<h1><span>Search for</span> "{{ keywords }}"</h1>
|
|
|
|
<h1><span>Search for</span> "{{ keywords }}"</h1>
|
|
|
|
<div class="result" v-if="result !== undefined">
|
|
|
|
<div class="result" v-if="isExistResult">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="artists" v-if="result.hasOwnProperty('artist')">
|
|
|
|
<div class="artists" v-if="result.hasOwnProperty('artist')">
|
|
|
|
<div class="section-title">Artists</div>
|
|
|
|
<div class="section-title">{{ $t("search.artist") }}</div>
|
|
|
|
<div class="artists-list">
|
|
|
|
<div class="artists-list">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="artist"
|
|
|
|
class="artist"
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="albums" v-if="result.hasOwnProperty('album')">
|
|
|
|
<div class="albums" v-if="result.hasOwnProperty('album')">
|
|
|
|
<div class="section-title">Albums</div>
|
|
|
|
<div class="section-title">{{ $t("search.album") }}</div>
|
|
|
|
<div class="albums-list">
|
|
|
|
<div class="albums-list">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="album"
|
|
|
|
class="album"
|
|
|
@ -69,17 +69,17 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tracks" v-if="result.hasOwnProperty('song')">
|
|
|
|
<div class="tracks" v-if="result.hasOwnProperty('song')">
|
|
|
|
<div class="section-title">Songs</div>
|
|
|
|
<div class="section-title">{{ $t("search.song") }}</div>
|
|
|
|
<TrackList :tracks="tracks" :type="'tracklist'" />
|
|
|
|
<TrackList :tracks="tracks" :type="'tracklist'" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mvs" v-if="mvs !== null && mvs.length > 0">
|
|
|
|
<div class="mvs" v-if="mvs !== null && mvs.length > 0">
|
|
|
|
<div class="section-title">MVs</div>
|
|
|
|
<div class="section-title">{{ $t("search.mv") }}</div>
|
|
|
|
<MvRow class="mv-row" :mvs="mvs.slice(0, 5)" />
|
|
|
|
<MvRow class="mv-row" :mvs="mvs.slice(0, 5)" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="playlists" v-if="result.hasOwnProperty('playList')">
|
|
|
|
<div class="playlists" v-if="result.hasOwnProperty('playList')">
|
|
|
|
<div class="section-title">{{ $t("playlist.playlist") }}</div>
|
|
|
|
<div class="section-title">{{ $t("search.playlist") }}</div>
|
|
|
|
<div class="albums-list">
|
|
|
|
<div class="albums-list">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="album"
|
|
|
|
class="album"
|
|
|
@ -110,7 +110,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="no-results" v-else>
|
|
|
|
<div class="no-results" v-else>
|
|
|
|
No Results
|
|
|
|
{{ $t("search.noResult") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -150,7 +150,10 @@ export default {
|
|
|
|
tracks() {
|
|
|
|
tracks() {
|
|
|
|
let tracks = this.result.song.songs.slice(0, 12);
|
|
|
|
let tracks = this.result.song.songs.slice(0, 12);
|
|
|
|
return tracks;
|
|
|
|
return tracks;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
isExistResult() {
|
|
|
|
|
|
|
|
return Object.keys(this.result).length;
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
goToAlbum(id) {
|
|
|
|
goToAlbum(id) {
|
|
|
|