mo 3 gadi atpakaļ
vecāks
revīzija
a4e868023b

BIN
src/common/images/2code.png


BIN
src/common/images/whileLogo.png


+ 25 - 3
src/components/col-footer/index.module.less

@@ -1,14 +1,16 @@
 .footerSection {
 .footerSection {
   overflow: hidden;
   overflow: hidden;
   margin: 0 auto;
   margin: 0 auto;
-  background: #30343E;
+  background: #30343e;
 }
 }
 
 
 .footerInfo {
 .footerInfo {
   color: #cecece;
   color: #cecece;
-  background:#30343E;
+  background: #30343e;
   padding: 77px 0 35px;
   padding: 77px 0 35px;
   .width1200 {
   .width1200 {
+    width: 1200px;
+    margin: 0 auto;
     display: flex;
     display: flex;
     flex-direction: row;
     flex-direction: row;
     justify-content: space-between;
     justify-content: space-between;
@@ -90,8 +92,28 @@
     color: #cecece;
     color: #cecece;
     line-height: 20px;
     line-height: 20px;
     padding-top: 21px;
     padding-top: 21px;
-    a{
+    a {
       color: #cecece;
       color: #cecece;
     }
     }
   }
   }
 }
 }
+.whileLogo {
+  width: 144px;
+  height: 68px;
+}
+.codeImg {
+  width: 74px;
+  height: 74px;
+}
+.qrcode {
+  margin-right: 34px;
+  p {
+    height: 17px;
+    font-size: 12px;
+    font-family: PingFangSC-Regular, PingFang SC;
+    font-weight: 400;
+    color: #cecece;
+    margin-top: 15px;
+    text-align: center;
+  }
+}

+ 8 - 3
src/components/col-footer/index.tsx

@@ -2,6 +2,8 @@ import { defineComponent } from 'vue'
 import classes  from './index.module.less'
 import classes  from './index.module.less'
 import download from '../silder/images/download.png'
 import download from '../silder/images/download.png'
 import publicCode from '../silder/images/public-code.jpg'
 import publicCode from '../silder/images/public-code.jpg'
+import whileLogo from '@/common/images/whileLogo.png'
+import code from '@/common/images/2code.png'
 export default defineComponent({
 export default defineComponent({
   name: 'col-footer',
   name: 'col-footer',
   setup() {
   setup() {
@@ -15,7 +17,8 @@ export default defineComponent({
                   <div class={classes.qrcode} >
                   <div class={classes.qrcode} >
                     <div class={classes.qrcodeItem}  style="padding-right:50px">
                     <div class={classes.qrcodeItem}  style="padding-right:50px">
                       <img
                       <img
-                        src="../assets/images/logoWhile1.png"
+                      class={classes.whileLogo}
+                        src={whileLogo}
                         width="142px"
                         width="142px"
                         height="65px"
                         height="65px"
                         alt=""
                         alt=""
@@ -25,7 +28,8 @@ export default defineComponent({
                   <div class={classes.qrcode}>
                   <div class={classes.qrcode}>
                     <div class={classes.qrcodeItem}>
                     <div class={classes.qrcodeItem}>
                       <img
                       <img
-                        src={publicCode}
+                         class={classes.codeImg}
+                        src={code}
                         width="74px"
                         width="74px"
                         height="74px"
                         height="74px"
                       />
                       />
@@ -35,7 +39,8 @@ export default defineComponent({
                   <div class={classes.qrcode}>
                   <div class={classes.qrcode}>
                     <div  class={classes.qrcodeItem}>
                     <div  class={classes.qrcodeItem}>
                       <img
                       <img
-                        src={download}
+                      class={classes.codeImg}
+                        src={code}
                         width="74px"
                         width="74px"
                         height="74px"
                         height="74px"
                       />
                       />

+ 11 - 9
src/components/col-header/modals/loganInfo.tsx

@@ -52,16 +52,19 @@ export default defineComponent({
       router.push({ path: val })
       router.push({ path: val })
     }
     }
     const changeRoute = () => {
     const changeRoute = () => {
-      ElMessageBox.confirm('是否确定切换角色吗?', '提示', {
+      const token = getAuth()
+      let userType = ''
+      let str =''
+      if (states.userType == 'TEACHER') {
+        userType = 'STUDENT'
+        str='学生'
+      } else {
+        userType = 'TEACHER'
+        str='老师'
+      }
+      ElMessageBox.confirm(`是否确定切换到${str}?`, '提示', {
         type: 'warning'
         type: 'warning'
       }).then(() => {
       }).then(() => {
-        const token = getAuth()
-        let userType = ''
-        if (states.userType == 'TEACHER') {
-          userType = 'STUDENT'
-        } else {
-          userType = 'TEACHER'
-        }
         setAuth(
         setAuth(
           JSON.stringify({
           JSON.stringify({
             token,
             token,
@@ -104,7 +107,6 @@ export default defineComponent({
     return (
     return (
       <>
       <>
         <ElDropdown
         <ElDropdown
-
           onCommand={val => this.changeState(val)}
           onCommand={val => this.changeState(val)}
           v-slots={{
           v-slots={{
             dropdown: () => (
             dropdown: () => (

BIN
src/components/hotSearch/images/arrow.png


BIN
src/components/hotSearch/images/clearIcon.png


BIN
src/components/hotSearch/images/hot.png


BIN
src/components/hotSearch/images/search.png


+ 67 - 22
src/components/hotSearch/index.module.less

@@ -40,14 +40,21 @@
   }
   }
   .searchWrap {
   .searchWrap {
     cursor: pointer;
     cursor: pointer;
+    display: flex;
+    flex-direction: row;
+    align-items: center;
+    border-radius: 2px;
+    border: 1px solid #e5e5e5;
+    padding: 0 8px;
     span {
     span {
       color: #666 !important;
       color: #666 !important;
-      line-height: 28px;
+      line-height: 24px;
+      font-size: 13px;
     }
     }
     .search {
     .search {
-      width: 24px;
-      height: 24px;
-      margin-left: 6px;
+      width: 14px;
+      height: 14px;
+      margin-left: 8px;
     }
     }
   }
   }
 }
 }
@@ -55,9 +62,11 @@
 .searchDetail {
 .searchDetail {
   .searchResult {
   .searchResult {
     // height: 58px;
     // height: 58px;
-    line-height: 58px;
+    line-height: 24px;
     display: flex;
     display: flex;
     flex-direction: row;
     flex-direction: row;
+    align-items: center;
+    margin-bottom: 18px;
     .resultTitle {
     .resultTitle {
       padding: 0 20px 0 14px;
       padding: 0 20px 0 14px;
       display: flex;
       display: flex;
@@ -72,39 +81,53 @@
       }
       }
     }
     }
     .tagList {
     .tagList {
-      width: 1010px;
+      width: 931px;
       display: flex;
       display: flex;
       flex-direction: row;
       flex-direction: row;
       align-items: center;
       align-items: center;
     }
     }
-    .clearBtn {
-      cursor: pointer;
+
+    .searchResultRight {
       display: flex;
       display: flex;
       flex-direction: row;
       flex-direction: row;
-      align-items: center;
-      font-size: 16px;
-      font-family: PingFangSC-Regular, PingFang SC;
-      font-weight: 400;
-      color: #666666;
-      .clearIcon {
-        width: 28px;
-        height: 28px;
-        margin-left: 6px;
+      // align-items: center;
+      .clearBtn {
+        margin-left: 8px;
+        line-height: 24px;
+        height: 24px;
+        cursor: pointer;
+        display: flex;
+        flex-direction: row;
+        align-items: center;
+        border-radius: 2px;
+        border: 1px solid #e5e5e5;
+        padding: 0 8px;
+        span {
+          color: #666 !important;
+          line-height: 24px;
+          font-size: 13px;
+        }
+        .clearIcon {
+          width: 14px;
+          height: 14px;
+          margin-left: 6px;
+        }
       }
       }
     }
     }
   }
   }
   .searchChioseWrap {
   .searchChioseWrap {
     background-color: #fff;
     background-color: #fff;
     border-radius: 8px;
     border-radius: 8px;
-    padding: 20px;
+    padding: 20px 20px 5px;
     .chioseLineWrap {
     .chioseLineWrap {
-      border-bottom: 1px solid #ededed;
+      // border-bottom: 1px solid #ededed;
       .chioseRow {
       .chioseRow {
         display: flex;
         display: flex;
         flex-direction: row;
         flex-direction: row;
         align-items: center;
         align-items: center;
+        margin-bottom: 30px;
         p {
         p {
-          margin-bottom: 14px;
+          line-height: 48px;
           width: 112px;
           width: 112px;
           text-align: center;
           text-align: center;
           margin-right: 5px;
           margin-right: 5px;
@@ -115,7 +138,8 @@
             position: absolute;
             position: absolute;
             content: '';
             content: '';
             width: 1px;
             width: 1px;
-            height: calc(100% - 14px);
+            height: 100%;
+            // height: calc(100% - 14px);
             background: #ededed;
             background: #ededed;
             left: 0;
             left: 0;
           }
           }
@@ -125,6 +149,26 @@
             margin-bottom: 14px;
             margin-bottom: 14px;
           }
           }
         }
         }
+        .tags {
+          // height: 24px;
+          background: #e0f7f3;
+          line-height: 24px;
+          display: inline-block;
+          margin-right: 40px;
+          color: #2dc7aa;
+          padding: 2px 11px;
+          border-radius: 6px;
+          font-size: 15px;
+        }
+        .tagText {
+          margin-right: 40px;
+          display: inline-block;
+          line-height: 24px;
+
+          font-size: 15px;
+          color: #666;
+          cursor: pointer;
+        }
       }
       }
     }
     }
   }
   }
@@ -141,7 +185,8 @@
   }
   }
 }
 }
 :global {
 :global {
-  .el-tag--Light,.el-tag--light {
+  .el-tag--Light,
+  .el-tag--light {
     border: 1px solid #2dc7aa;
     border: 1px solid #2dc7aa;
     font-size: 14px;
     font-size: 14px;
     font-family: PingFangSC-Medium, PingFang SC;
     font-family: PingFangSC-Medium, PingFang SC;

+ 65 - 31
src/components/hotSearch/index.tsx

@@ -5,25 +5,28 @@ import tagItem from '@/components/tagItem'
 import hot from './images/hot.png'
 import hot from './images/hot.png'
 import arrow from '@/components/musicLIstItem/images/arrow.png'
 import arrow from '@/components/musicLIstItem/images/arrow.png'
 import search from '@/components/hotSearch/images/search.png'
 import search from '@/components/hotSearch/images/search.png'
+
 import request from '@/helpers/request'
 import request from '@/helpers/request'
+import arrows from './images/arrow.png'
 import clearIcon from './images/clearIcon.png'
 import clearIcon from './images/clearIcon.png'
 import item from '@/views/user-info/components/item'
 import item from '@/views/user-info/components/item'
 import { useRouter } from 'vue-router'
 import { useRouter } from 'vue-router'
+import { spawn } from 'child_process'
 export default defineComponent({
 export default defineComponent({
   name: 'hotSearch',
   name: 'hotSearch',
   components: { tagItem },
   components: { tagItem },
-  emits:['searchRust','hotTag'],
+  emits: ['searchRust', 'hotTag'],
   props: {
   props: {
     type: {
     type: {
       type: String,
       type: String,
       default: 'more'
       default: 'more'
     },
     },
-    searchType:{
+    searchType: {
       type: String,
       type: String,
       default: 'MUSIC'
       default: 'MUSIC'
     }
     }
   },
   },
-  setup(props,conent) {
+  setup(props, conent) {
     const state = reactive({
     const state = reactive({
       hotList: [],
       hotList: [],
       type: props.type,
       type: props.type,
@@ -32,12 +35,13 @@ export default defineComponent({
       chioseTagList: [],
       chioseTagList: [],
       chioseParentList: [],
       chioseParentList: [],
       searchTagList: [],
       searchTagList: [],
-      searchType:props.searchType
+      searchType: props.searchType
     })
     })
     const router = useRouter()
     const router = useRouter()
     const getHotList = async () => {
     const getHotList = async () => {
       try {
       try {
-        const res = await request.get(`/api-website/open/music/sheet/hotTag/${state.searchType}`
+        const res = await request.get(
+          `/api-website/open/music/sheet/hotTag/${state.searchType}`
         )
         )
 
 
         state.hotList = res.data
         state.hotList = res.data
@@ -110,7 +114,8 @@ export default defineComponent({
           }
           }
         })
         })
       })
       })
-      console.log(state.searchTagList, 'searchTagList')
+      // console.log(state.searchTagList, 'searchTagList')
+      searchSubmit()
     }
     }
     const isChiose = (tag: any) => {
     const isChiose = (tag: any) => {
       if (tag.isCheck) {
       if (tag.isCheck) {
@@ -133,17 +138,17 @@ export default defineComponent({
         })
         })
       })
       })
     }
     }
-    const searchSubmit = ()=>{
+    const searchSubmit = () => {
       // 请求
       // 请求
-      conent.emit('searchRust',state.chioseTagList)
-      state.showDetail = true
+      conent.emit('searchRust', state.chioseTagList)
+      // state.showDetail = true
     }
     }
 
 
-    const clickHotTag = (key:string)=>{
-      conent.emit('hotTag',key)
+    const clickHotTag = (key: string) => {
+      conent.emit('hotTag', key)
     }
     }
-    const gotoSearch = ()=>{
-      router.push({path:'/searchdetail'})
+    const gotoSearch = () => {
+      router.push({ path: '/searchdetail' })
     }
     }
     onMounted(() => {
     onMounted(() => {
       getHotList()
       getHotList()
@@ -159,7 +164,14 @@ export default defineComponent({
               <div class={classes.tagWrap}>
               <div class={classes.tagWrap}>
                 {state.hotList.map((item: any) => {
                 {state.hotList.map((item: any) => {
                   //
                   //
-                  return <tagItem title={item.key} onSearchTag={(key)=>clickHotTag(key)}>{item.key}</tagItem>
+                  return (
+                    <tagItem
+                      title={item.key}
+                      onSearchTag={key => clickHotTag(key)}
+                    >
+                      {item.key}
+                    </tagItem>
+                  )
                 })}
                 })}
               </div>
               </div>
             </div>
             </div>
@@ -170,7 +182,10 @@ export default defineComponent({
               </div>
               </div>
             ) : null}
             ) : null}
             {state.type == 'search' ? (
             {state.type == 'search' ? (
-              <div class={[classes.wrapRight, classes.searchWrap]} onClick={()=>state.showDetail = false}>
+              <div
+                class={[classes.wrapRight, classes.searchWrap]}
+                onClick={() => (state.showDetail = false)}
+              >
                 <span>筛选</span>
                 <span>筛选</span>
                 <img class={classes.search} src={search} alt="" />
                 <img class={classes.search} src={search} alt="" />
               </div>
               </div>
@@ -180,7 +195,7 @@ export default defineComponent({
           <div class={classes.searchDetail}>
           <div class={classes.searchDetail}>
             <div class={classes.searchResult}>
             <div class={classes.searchResult}>
               <div class={classes.resultTitle}>
               <div class={classes.resultTitle}>
-                <span>搜索结果</span>
+                <span>已选类型</span>
                 <img src={arrow} alt="" />
                 <img src={arrow} alt="" />
               </div>
               </div>
               <div class={classes.tagList}>
               <div class={classes.tagList}>
@@ -190,16 +205,22 @@ export default defineComponent({
                       closable
                       closable
                       onClose={() => closeChioseTag(item)}
                       onClose={() => closeChioseTag(item)}
                       class="chioseTag"
                       class="chioseTag"
-                      size="large"
+
                     >
                     >
                       {item.name}
                       {item.name}
                     </ElTag>
                     </ElTag>
                   )
                   )
                 })}
                 })}
               </div>
               </div>
-              <div class={classes.clearBtn} onClick={clearSearch}>
-                <span>清空</span>
-                <img src={clearIcon} class={classes.clearIcon} alt="" />
+              <div class={classes.searchResultRight}>
+                <div class={classes.clearBtn} onClick={()=>{state.showDetail = true}}>
+                  <span>收起</span>
+                  <img src={arrows} class={classes.clearIcon} alt="" />
+                </div>
+                <div class={classes.clearBtn} onClick={clearSearch}>
+                  <span>清空</span>
+                  <img src={clearIcon} class={classes.clearIcon} alt="" />
+                </div>
               </div>
               </div>
             </div>
             </div>
             <div class={classes.searchChioseWrap}>
             <div class={classes.searchChioseWrap}>
@@ -211,16 +232,27 @@ export default defineComponent({
                       <div class={[classes.chioseTagWrap, 'chioseTagWrap']}>
                       <div class={[classes.chioseTagWrap, 'chioseTagWrap']}>
                         {tree.children.map((tag: any) => {
                         {tree.children.map((tag: any) => {
                           return (
                           return (
-                            <ElTag
-                              class={classes.tags}
-                              size="large"
-                              effect={isChiose(tag)}
-                              onClick={() => {
-                                chioseTag(tag)
-                              }}
-                            >
-                              {tag.name}
-                            </ElTag>
+                            //  effect={isChiose(tag)}
+                            tag.isCheck ? (
+                              <div
+                                class={classes.tags}
+                                onClick={() => {
+                                  chioseTag(tag)
+                                }}
+                              >
+                                {' '}
+                                {tag.name}
+                              </div>
+                            ) : (
+                              <span
+                                onClick={() => {
+                                  chioseTag(tag)
+                                }}
+                                class={classes.tagText}
+                              >
+                                {tag.name}
+                              </span>
+                            )
                           )
                           )
                         })}
                         })}
                       </div>
                       </div>
@@ -228,7 +260,9 @@ export default defineComponent({
                   )
                   )
                 })}
                 })}
               </div>
               </div>
-              <div class={classes.submitBtn} onClick={searchSubmit}>搜索</div>
+              {/* <div class={classes.submitBtn} onClick={searchSubmit}>
+                搜索
+              </div> */}
             </div>
             </div>
           </div>
           </div>
         )}
         )}

+ 0 - 1
src/components/searchInput/index.tsx

@@ -41,7 +41,6 @@ export default defineComponent({
     watch(
     watch(
       () => props.searchVal,
       () => props.searchVal,
       searchVal => {
       searchVal => {
-        // console.log(searchVal,'searchVal')
         state.search = searchVal.search?searchVal.search:''
         state.search = searchVal.search?searchVal.search:''
         state.subject = Number(props.searchVal.subject)?Number(props.searchVal.subject):''
         state.subject = Number(props.searchVal.subject)?Number(props.searchVal.subject):''
       }
       }

+ 1 - 1
src/components/tagItem/index.module.less

@@ -7,7 +7,7 @@
   border: 1px solid #2dc7aa;
   border: 1px solid #2dc7aa;
   padding: 0 12px;
   padding: 0 12px;
   font-size: 13px;
   font-size: 13px;
-  margin-right: 12px;
+  margin-right: 10px;
   &:last-child{
   &:last-child{
     margin-right: 0!important;
     margin-right: 0!important;
   }
   }

BIN
src/views/albumDetail/images/somePan.png


+ 5 - 5
src/views/albumDetail/index.module.less

@@ -38,7 +38,7 @@
       }
       }
       .albumInfoTopConent {
       .albumInfoTopConent {
         h2 {
         h2 {
-          font-size: 26px;
+          font-size: 24px;
           font-family: PingFangSC-Semibold, PingFang SC;
           font-family: PingFangSC-Semibold, PingFang SC;
           font-weight: 600;
           font-weight: 600;
           color: #000000;
           color: #000000;
@@ -46,7 +46,7 @@
           margin-bottom: 16px;
           margin-bottom: 16px;
         }
         }
         p {
         p {
-          font-size: 20px;
+          font-size: 18px;
           font-family: PingFangSC-Regular, PingFang SC;
           font-family: PingFangSC-Regular, PingFang SC;
           font-weight: 400;
           font-weight: 400;
           color: #666666;
           color: #666666;
@@ -151,10 +151,10 @@
           font-weight: 600;
           font-weight: 600;
           color: #000000;
           color: #000000;
           line-height: 30px;
           line-height: 30px;
-          font-size: 22px;
+          font-size: 18px;
           img {
           img {
-            width: 28px;
-            height: 28px;
+            width: 24px;
+            height: 24px;
             margin-right: 8px;
             margin-right: 8px;
           }
           }
         }
         }

BIN
src/views/downLoad/images/demo.png


+ 3 - 0
src/views/downLoad/index.module.less

@@ -2,6 +2,9 @@
   background-color: #fff;
   background-color: #fff;
   background: url('./images/downBg.png') no-repeat center;
   background: url('./images/downBg.png') no-repeat center;
   background-size: cover;
   background-size: cover;
+  .wall {
+    height: 60px;
+  }
   .container {
   .container {
     width: 1200px;
     width: 1200px;
     margin: 0 auto;
     margin: 0 auto;

+ 9 - 2
src/views/downLoad/index.tsx

@@ -5,6 +5,7 @@ import finch from './images/finch.png'
 import demo from './images/demo.png'
 import demo from './images/demo.png'
 import ios from './images/iosIcon.png'
 import ios from './images/iosIcon.png'
 import andIcon from './images/andIcon.png'
 import andIcon from './images/andIcon.png'
+import code from '@/common/images/2code.png'
 import { Vue3Lottie } from 'vue3-lottie'
 import { Vue3Lottie } from 'vue3-lottie'
 import 'vue3-lottie/dist/style.css'
 import 'vue3-lottie/dist/style.css'
 import AstronautJSON  from '@/common/animate/kulexiuyunjiaolian.json'
 import AstronautJSON  from '@/common/animate/kulexiuyunjiaolian.json'
@@ -18,7 +19,9 @@ export default defineComponent({
   },
   },
   render() {
   render() {
     return (
     return (
+
       <div class={styles.bgWhite}>
       <div class={styles.bgWhite}>
+          <div class={styles.wall}></div>
         <div class={styles.container}>
         <div class={styles.container}>
           <div class={styles.imgWrap}>
           <div class={styles.imgWrap}>
             <img src={demo} class={styles.demo} alt="" />
             <img src={demo} class={styles.demo} alt="" />
@@ -38,7 +41,9 @@ export default defineComponent({
             <div class={styles.codeList}>
             <div class={styles.codeList}>
               <div class={styles.codeItem}>
               <div class={styles.codeItem}>
                 <h5>学生端APP</h5>
                 <h5>学生端APP</h5>
-                <div class={styles.code}></div>
+                <div class={styles.code}>
+                  <img src={code} alt="" />
+                </div>
                 <div class={styles.iconWrap}>
                 <div class={styles.iconWrap}>
                   <div
                   <div
                     class={styles.iconItem}
                     class={styles.iconItem}
@@ -55,7 +60,9 @@ export default defineComponent({
               </div>
               </div>
               <div class={styles.codeItem}>
               <div class={styles.codeItem}>
                 <h5>老师端APP</h5>
                 <h5>老师端APP</h5>
-                <div class={styles.code}></div>
+                <div class={styles.code}>
+                <img src={code} alt="" />
+                </div>
                 <div class={styles.iconWrap}>
                 <div class={styles.iconWrap}>
                   <div
                   <div
                     class={styles.iconItem}
                     class={styles.iconItem}

+ 2 - 2
src/views/home/index.module.less

@@ -8,7 +8,7 @@
   margin: 0 auto;
   margin: 0 auto;
 }
 }
 .section {
 .section {
-  padding: 34px 0;
+  padding: 44px 0 16px;
   .titleWrap {
   .titleWrap {
     text-align: center;
     text-align: center;
     margin: 0 auto;
     margin: 0 auto;
@@ -33,7 +33,7 @@
     flex-direction: row;
     flex-direction: row;
     align-items: center;
     align-items: center;
     flex-wrap: wrap;
     flex-wrap: wrap;
-    margin-bottom: 25px;
+    // margin-bottom: 25px;
     margin-top: 25px;
     margin-top: 25px;
   }
   }
   .videoList {
   .videoList {

+ 2 - 2
src/views/muiscDetial/index.module.less

@@ -221,7 +221,7 @@
           width: 67px;
           width: 67px;
           background: #2dc7aa;
           background: #2dc7aa;
           border-radius: 21px;
           border-radius: 21px;
-          font-size: 16px;
+          font-size: 14px;
           font-family: PingFangSC-Semibold, PingFang SC;
           font-family: PingFangSC-Semibold, PingFang SC;
           color: #ffffff;
           color: #ffffff;
           line-height: 30px;
           line-height: 30px;
@@ -315,7 +315,7 @@
         justify-content: space-between;
         justify-content: space-between;
         margin-bottom: 14px;
         margin-bottom: 14px;
         h5 {
         h5 {
-          font-size: 22px;
+          font-size: 16px;
           font-weight: 500;
           font-weight: 500;
           color: #000000;
           color: #000000;
           line-height: 30px;
           line-height: 30px;

+ 1 - 1
src/views/muiscDetial/modals/musicItem.module.less

@@ -7,7 +7,7 @@
   justify-content: space-between;
   justify-content: space-between;
   width: 100%;
   width: 100%;
   border-radius: 12px;
   border-radius: 12px;
-  margin-bottom: 10px;
+  margin-bottom: 20px;
   cursor: pointer;
   cursor: pointer;
   .left {
   .left {
     display: flex;
     display: flex;

+ 5 - 2
src/views/musicLibrary/index.module.less

@@ -47,7 +47,7 @@
     color: #000000;
     color: #000000;
     line-height: 30px;
     line-height: 30px;
   }
   }
-  padding: 34px 0;
+  padding: 34px 0 15px;
   .titleWrap {
   .titleWrap {
     text-align: center;
     text-align: center;
     margin: 0 auto;
     margin: 0 auto;
@@ -73,7 +73,7 @@
     align-items: center;
     align-items: center;
     flex-wrap: wrap;
     flex-wrap: wrap;
     margin-bottom: 25px;
     margin-bottom: 25px;
-    margin-top: 25px;
+    margin-top: 20px;
   }
   }
   .videoList {
   .videoList {
     display: flex;
     display: flex;
@@ -109,3 +109,6 @@
     }
     }
   }
   }
 }
 }
+.hotSearch {
+  margin-top: 20px;
+}

+ 3 - 0
src/views/musicLibrary/index.tsx

@@ -93,8 +93,11 @@ export default defineComponent({
                 <h4>热门专辑</h4>
                 <h4>热门专辑</h4>
                 <img src={titleDot} class={styles.dotImg} alt="" />
                 <img src={titleDot} class={styles.dotImg} alt="" />
               </div> */}
               </div> */}
+
               <searchInput isWhile={false} onStartSearch={(val:any)=>gotoSearch(val)}></searchInput>
               <searchInput isWhile={false} onStartSearch={(val:any)=>gotoSearch(val)}></searchInput>
+              <div class={styles.hotSearch}>
               <hotSearch onHotTag={(val:string)=>{gotoSearch(val)}} type={''}></hotSearch>
               <hotSearch onHotTag={(val:string)=>{gotoSearch(val)}} type={''}></hotSearch>
+              </div>
               <h5 class={styles.hotAlbum}>热门专辑</h5>
               <h5 class={styles.hotAlbum}>热门专辑</h5>
               <div class={styles.albumList}>
               <div class={styles.albumList}>
                 {state.albumList.map(item => {
                 {state.albumList.map(item => {

+ 1 - 1
src/views/musicLibrary/modals/searchAlbum.tsx

@@ -69,7 +69,7 @@ export default defineComponent({
       getAlbumList()
       getAlbumList()
     }
     }
     onMounted(() => {
     onMounted(() => {
-      getAlbumList()
+      // getAlbumList()
       // getMusicList()
       // getMusicList()
     })
     })
     return {
     return {

+ 1 - 1
src/views/musicLibrary/modals/searchMusic.tsx

@@ -90,7 +90,7 @@ export default defineComponent({
     }
     }
     onMounted(() => {
     onMounted(() => {
       // getAlbumList()
       // getAlbumList()
-      getList(state.search)
+      // getList(state.search)
     })
     })
     return {
     return {
       ...toRefs(state),
       ...toRefs(state),

+ 15 - 4
src/views/musicLibrary/searchdetail.tsx

@@ -5,7 +5,8 @@ import {
   reactive,
   reactive,
   onMounted,
   onMounted,
   ref,
   ref,
-  nextTick
+  nextTick,
+  watch
 } from 'vue'
 } from 'vue'
 import arrow from '@/components/musicLIstItem/images/arrow.png'
 import arrow from '@/components/musicLIstItem/images/arrow.png'
 import styles from './index.module.less'
 import styles from './index.module.less'
@@ -21,7 +22,6 @@ import 'swiper/css/pagination'
 import 'swiper/css/scrollbar'
 import 'swiper/css/scrollbar'
 import { ElTabPane, ElTabs } from 'element-plus'
 import { ElTabPane, ElTabs } from 'element-plus'
 import { useRoute } from 'vue-router'
 import { useRoute } from 'vue-router'
-
 export default defineComponent({
 export default defineComponent({
   name: 'searchdetail',
   name: 'searchdetail',
   components: {
   components: {
@@ -93,6 +93,16 @@ export default defineComponent({
         searchMusicRef.value.getList(state.searchs)
         searchMusicRef.value.getList(state.searchs)
       }
       }
     }
     }
+
+    watch(
+      () => state.chiose,
+      chiose => {
+        console.log(chiose)
+        nextTick(() => {
+          search()
+        })
+      }
+    )
     onMounted(() => {
     onMounted(() => {
       if (route.query.search) {
       if (route.query.search) {
         state.searchs.search = route.query.search as string
         state.searchs.search = route.query.search as string
@@ -103,7 +113,6 @@ export default defineComponent({
       if (route.query.type) {
       if (route.query.type) {
         state.chiose = route.query.type as string
         state.chiose = route.query.type as string
       }
       }
-      console.log(state.chiose, 'chiose')
       nextTick(() => {
       nextTick(() => {
         search()
         search()
       })
       })
@@ -116,7 +125,8 @@ export default defineComponent({
       startSearch,
       startSearch,
       searchRust,
       searchRust,
       searchAlbumRef,
       searchAlbumRef,
-      searchMusicRef
+      searchMusicRef,
+      search
     }
     }
   },
   },
   render() {
   render() {
@@ -139,6 +149,7 @@ export default defineComponent({
                   onSearchRust={(val: any) => this.searchRust(val)}
                   onSearchRust={(val: any) => this.searchRust(val)}
                   onHotTag={(val: string) => {
                   onHotTag={(val: string) => {
                     this.searchs.search = val
                     this.searchs.search = val
+                    this.search()
                   }}
                   }}
                 ></hotSearch>
                 ></hotSearch>
               </div>
               </div>

+ 1 - 1
src/views/videoDetailList/index.module.less

@@ -144,7 +144,7 @@
         width: 67px;
         width: 67px;
         background: #2dc7aa;
         background: #2dc7aa;
         border-radius: 21px;
         border-radius: 21px;
-        font-size: 16px;
+        font-size: 14px;
         font-family: PingFangSC-Semibold, PingFang SC;
         font-family: PingFangSC-Semibold, PingFang SC;
         color: #ffffff;
         color: #ffffff;
         line-height: 30px;
         line-height: 30px;

+ 6 - 5
src/views/videoDetailList/index.tsx

@@ -57,10 +57,7 @@ export default defineComponent({
       }
       }
     }
     }
 
 
-    const gotoSearch = (val: string) => {
-      console.log(val)
-      state.searchs.search = val
-    }
+
     const startSearch = (val: any) => {
     const startSearch = (val: any) => {
       state.searchs = {
       state.searchs = {
         ...state.searchs,
         ...state.searchs,
@@ -70,6 +67,10 @@ export default defineComponent({
       console.log(val, 'valstartSearch')
       console.log(val, 'valstartSearch')
       getVideoList()
       getVideoList()
     }
     }
+    const gotoSearch = (val: string) => {
+      state.searchs.search = val
+      startSearch( state.searchs)
+    }
     onMounted(() => {
     onMounted(() => {
       getVideoList()
       getVideoList()
     })
     })
@@ -81,7 +82,7 @@ export default defineComponent({
             <div class={styles.section}>
             <div class={styles.section}>
               <searchInput
               <searchInput
                 isWhile={true}
                 isWhile={true}
-                // searchVal={state.searchs.search}
+                searchVal={state.searchs}
                 onStartSearch={(val: any) => {
                 onStartSearch={(val: any) => {
                   startSearch(val)
                   startSearch(val)
                 }}
                 }}