|  | @@ -50,7 +50,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        title: ' ',
 | 
	
		
			
				|  |  |        playState: 'pause' as 'play' | 'pause',
 | 
	
		
			
				|  |  |        showPlayer: false,
 | 
	
		
			
				|  |  | -      listActive: 0,
 | 
	
		
			
				|  |  | +      listActive: 0
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      /** 选中的item */
 | 
	
		
			
				|  |  |      const activeItem = computed(() => {
 | 
	
	
		
			
				|  | @@ -68,7 +68,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            '<video class="video-music" style="width: 100% !important;" controlslist="nodownload" poster="https://oss.dayaedu.com/ktqy/1701759849244.png"'
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  |          forms.dataInfo = data || {};
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          forms.musicList = data.knowledgeWikiResources.map((item: any) => {
 | 
	
		
			
				|  |  |            return {
 | 
	
		
			
				|  |  |              id: item.id,
 | 
	
	
		
			
				|  | @@ -82,7 +82,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /** 播放曲目 */
 | 
	
		
			
				|  |  |      const handlePlay = (item: any) => {
 | 
	
		
			
				|  |  | -      if (!initDone.value) initDone.value = true
 | 
	
		
			
				|  |  | +      if (!initDone.value) initDone.value = true;
 | 
	
		
			
				|  |  |        const index = forms.musicList.findIndex(
 | 
	
		
			
				|  |  |          (_item: any) => _item.id === item.id
 | 
	
		
			
				|  |  |        );
 | 
	
	
		
			
				|  | @@ -120,6 +120,9 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        val => {
 | 
	
		
			
				|  |  |          if (val) {
 | 
	
		
			
				|  |  |            // onToggleAudio();
 | 
	
		
			
				|  |  | +          forms.dataInfo = {};
 | 
	
		
			
				|  |  | +          forms.musicList = [];
 | 
	
		
			
				|  |  | +          getDetail();
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            //  audioRef.value.pause();
 | 
	
		
			
				|  |  |            //  data.playState = 'pause';
 | 
	
	
		
			
				|  | @@ -180,7 +183,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                <img src={forms.dataInfo.avatar || pBg} />
 | 
	
		
			
				|  |  |                <div class={styles.insName}>{forms.dataInfo.name || ''}</div>
 | 
	
		
			
				|  |  |                <div class={styles.insTro}>
 | 
	
		
			
				|  |  | -                {forms.dataInfo.knowledgeWikiCategories?.[0]?.knowledgeWikiCategoryTypeName || ''}
 | 
	
		
			
				|  |  | +                {forms.dataInfo.knowledgeWikiCategories?.[0]
 | 
	
		
			
				|  |  | +                  ?.knowledgeWikiCategoryTypeName || ''}
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            )}
 | 
	
	
		
			
				|  | @@ -189,7 +193,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                <img class={styles.musician} src={forms.dataInfo.avatar || pBg} />
 | 
	
		
			
				|  |  |                <div class={styles.insName}>{forms.dataInfo.name || ''}</div>
 | 
	
		
			
				|  |  |                <div class={styles.insTro}>
 | 
	
		
			
				|  |  | -                {forms.dataInfo.knowledgeWikiCategories?.[0]?.knowledgeWikiCategoryTypeName || ''}
 | 
	
		
			
				|  |  | +                {forms.dataInfo.knowledgeWikiCategories?.[0]
 | 
	
		
			
				|  |  | +                  ?.knowledgeWikiCategoryTypeName || ''}
 | 
	
		
			
				|  |  |                </div>
 | 
	
		
			
				|  |  |              </div>
 | 
	
		
			
				|  |  |            )}
 | 
	
	
		
			
				|  | @@ -203,15 +208,26 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                  {forms.musicList.map((item: any, index: number) => {
 | 
	
		
			
				|  |  |                    return (
 | 
	
		
			
				|  |  |                      <div
 | 
	
		
			
				|  |  | -                      class={[styles.li, initDone.value && forms.listActive === index ? styles.liActive : '']}
 | 
	
		
			
				|  |  | +                      class={[
 | 
	
		
			
				|  |  | +                        styles.li,
 | 
	
		
			
				|  |  | +                        initDone.value && forms.listActive === index
 | 
	
		
			
				|  |  | +                          ? styles.liActive
 | 
	
		
			
				|  |  | +                          : ''
 | 
	
		
			
				|  |  | +                      ]}
 | 
	
		
			
				|  |  |                        onClick={(e: Event) => {
 | 
	
		
			
				|  |  |                          e.stopPropagation();
 | 
	
		
			
				|  |  |                          handlePlay(item);
 | 
	
		
			
				|  |  |                        }}>
 | 
	
		
			
				|  |  |                        <div class={styles.liBg}>
 | 
	
		
			
				|  |  |                          <img src={musicBg} />
 | 
	
		
			
				|  |  | -                        <div class={[forms.listActive === index && forms.playState === 'play' ? styles.playingIcon : styles.hidePlayLoading]}>
 | 
	
		
			
				|  |  | -                          <PlayLoading /> 
 | 
	
		
			
				|  |  | +                        <div
 | 
	
		
			
				|  |  | +                          class={[
 | 
	
		
			
				|  |  | +                            forms.listActive === index &&
 | 
	
		
			
				|  |  | +                            forms.playState === 'play'
 | 
	
		
			
				|  |  | +                              ? styles.playingIcon
 | 
	
		
			
				|  |  | +                              : styles.hidePlayLoading
 | 
	
		
			
				|  |  | +                          ]}>
 | 
	
		
			
				|  |  | +                          <PlayLoading />
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  |                        </div>
 | 
	
		
			
				|  |  |                        {/* <div class={styles.liName}>{item.name || '--'}</div> */}
 |