|
@@ -43,9 +43,9 @@ export default defineComponent({
|
|
|
data: {
|
|
|
albumStatus: 1,
|
|
|
page: 1,
|
|
|
- rows: 8,
|
|
|
+ rows: 8
|
|
|
},
|
|
|
- params:{
|
|
|
+ params: {
|
|
|
clientType: getUserType()
|
|
|
}
|
|
|
})
|
|
@@ -73,13 +73,13 @@ export default defineComponent({
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
|
- const gotoSearch = (val: string,type:any) => {
|
|
|
- router.push({ name: 'searchdetail', params: { search: val,type } })
|
|
|
+ const gotoSearch = (val: string, type: any) => {
|
|
|
+ router.push({ name: 'searchdetail', params: { search: val, type } })
|
|
|
}
|
|
|
const getTagTree = async () => {
|
|
|
try {
|
|
|
const res = await request.get('/api-website/open/MusicTag/tree', {})
|
|
|
- state.tagTree = res.data.splice(0,2)
|
|
|
+ state.tagTree = res.data.splice(0, 2)
|
|
|
|
|
|
// state.hotList = res.data
|
|
|
} catch (e) {
|
|
@@ -87,11 +87,18 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
const gotoVideoList = () => {
|
|
|
- router.push({ path: '/videoDetailList', })
|
|
|
+ router.push({ path: '/videoDetailList' })
|
|
|
}
|
|
|
|
|
|
- const gotoSearchTag = (tag:any) =>{
|
|
|
- router.push({ name: 'searchdetail', params: { search: state.search,tag:tag.id,parentTagId:tag.parentTagId } })
|
|
|
+ const gotoSearchTag = (tag: any) => {
|
|
|
+ router.push({
|
|
|
+ name: 'searchdetail',
|
|
|
+ params: {
|
|
|
+ search: state.search,
|
|
|
+ tag: tag.id,
|
|
|
+ parentTagId: tag.parentTagId
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
//
|
|
|
onMounted(() => {
|
|
@@ -118,7 +125,10 @@ export default defineComponent({
|
|
|
<h4>热门专辑</h4>
|
|
|
<img src={titleDot} class={styles.dotImg} alt="" />
|
|
|
</div>
|
|
|
- <div class={[styles.titleWrapMore]} onClick={() => gotoSearch('','album')}>
|
|
|
+ <div
|
|
|
+ class={[styles.titleWrapMore]}
|
|
|
+ onClick={() => gotoSearch('', 'album')}
|
|
|
+ >
|
|
|
<span>更多</span>
|
|
|
<img src={moreArrow} alt="" />
|
|
|
</div>
|
|
@@ -135,7 +145,7 @@ export default defineComponent({
|
|
|
<img
|
|
|
src={searchIcon}
|
|
|
class={styles.searchIcon}
|
|
|
- onClick={()=>gotoSearch(state.search,'music')}
|
|
|
+ onClick={() => gotoSearch(state.search, 'music')}
|
|
|
alt=""
|
|
|
/>
|
|
|
<ElInput
|