|
@@ -22,7 +22,7 @@ export default defineComponent({
|
|
|
videoDetailItem,
|
|
|
musicLIstItem,
|
|
|
hotSearch,
|
|
|
- banner,
|
|
|
+ banner
|
|
|
},
|
|
|
setup() {
|
|
|
const state = reactive({
|
|
@@ -63,13 +63,12 @@ export default defineComponent({
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
|
- const gotoSearch = (val:string)=>{
|
|
|
- router.push({path:'/searchdetail',query:{search:val}})
|
|
|
+ const gotoSearch = (val: string) => {
|
|
|
+ router.push({ path: '/searchdetail', query: { search: val } })
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- const gotoVideoList = ()=>{
|
|
|
- router.push({path:'/videoDetailList'})
|
|
|
+ const gotoVideoList = (val: string) => {
|
|
|
+ router.push({ path: '/videoDetailList', query: { search: val } })
|
|
|
}
|
|
|
//
|
|
|
onMounted(() => {
|
|
@@ -82,15 +81,20 @@ export default defineComponent({
|
|
|
<div class="bg-white">
|
|
|
<div class={styles.w1200}>
|
|
|
<div class={styles.section}>
|
|
|
- <div class={[styles.titleWrap,styles.mb48]}>
|
|
|
+ <div class={[styles.titleWrap, styles.mb48]}>
|
|
|
<img src={titleDot} class={styles.dotImg} alt="" />
|
|
|
<h4>热门专辑</h4>
|
|
|
<img src={titleDot} class={styles.dotImg} alt="" />
|
|
|
</div>
|
|
|
- <hotSearch searchType='MUSIC' onHotTag={(val:string)=>{gotoSearch(val)}}></hotSearch>
|
|
|
+ <hotSearch
|
|
|
+ searchType="MUSIC"
|
|
|
+ onHotTag={(val: string) => {
|
|
|
+ gotoSearch(val)
|
|
|
+ }}
|
|
|
+ ></hotSearch>
|
|
|
<div class={styles.albumList}>
|
|
|
{state.albumList.map(item => {
|
|
|
- return <albumItem detail={item} ></albumItem>
|
|
|
+ return <albumItem detail={item}></albumItem>
|
|
|
})}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -99,18 +103,25 @@ export default defineComponent({
|
|
|
<div>
|
|
|
<div class={styles.w1200}>
|
|
|
<div class={styles.section}>
|
|
|
- <div class={[styles.titleWrap,styles.mb32]}>
|
|
|
+ <div class={[styles.titleWrap, styles.mb32]}>
|
|
|
<img src={titleDot} class={styles.dotImg} alt="" />
|
|
|
<h4>精品视频课</h4>
|
|
|
<img src={titleDot} class={styles.dotImg} alt="" />
|
|
|
</div>
|
|
|
- <div class={styles.videoNav}>
|
|
|
+ {/* <div class={styles.videoNav}>
|
|
|
<h5>精品视频课</h5>
|
|
|
<div class={styles.wrapRight} onClick={()=>gotoVideoList()}>
|
|
|
<span>更多</span>
|
|
|
<img class={styles.arrow} src={arrow} alt="" />
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> */}
|
|
|
+ <hotSearch
|
|
|
+ searchType="COURSE"
|
|
|
+ onHotTag={(val: string) => {
|
|
|
+ gotoVideoList(val)
|
|
|
+ }}
|
|
|
+ gotoPath='/videoDetailList'
|
|
|
+ ></hotSearch>
|
|
|
<div class={styles.videoList}>
|
|
|
{state.videoList.map(item => {
|
|
|
return <videoDetailItem detail={item}></videoDetailItem>
|