|
@@ -40,7 +40,8 @@ import {
|
|
|
api_subjectList
|
|
|
} from '../xiaoku-ai/api';
|
|
|
import { useUserStore } from '/src/store/modules/users';
|
|
|
-import Musicguide from '@/custom-plugins/guide-page/music-guide';
|
|
|
+import Musicguide from '@/custom-plugins/guide-page/music-guide'
|
|
|
+import TheEmpty from '/src/components/TheEmpty';
|
|
|
export default defineComponent({
|
|
|
name: 'XiaokuMusic',
|
|
|
setup() {
|
|
@@ -286,7 +287,7 @@ export default defineComponent({
|
|
|
<PlayLoading
|
|
|
class={[
|
|
|
data.listActive === index &&
|
|
|
- data.playState === 'play'
|
|
|
+ data.playState === 'play'
|
|
|
? ''
|
|
|
: styles.showPlayLoading
|
|
|
]}
|
|
@@ -314,7 +315,7 @@ export default defineComponent({
|
|
|
<img
|
|
|
src={
|
|
|
data.listActive === index &&
|
|
|
- data.playState === 'play'
|
|
|
+ data.playState === 'play'
|
|
|
? icon_pause
|
|
|
: icon_play
|
|
|
}
|
|
@@ -335,7 +336,7 @@ export default defineComponent({
|
|
|
<img
|
|
|
src={
|
|
|
data.listActive === index &&
|
|
|
- data.playState === 'play'
|
|
|
+ data.playState === 'play'
|
|
|
? icon_pause
|
|
|
: icon_play
|
|
|
}
|
|
@@ -355,7 +356,7 @@ export default defineComponent({
|
|
|
)}
|
|
|
{!data.loading && data.list.length === 0 && (
|
|
|
<div class={styles.empty}>
|
|
|
- <NEmpty />
|
|
|
+ <TheEmpty></TheEmpty>
|
|
|
</div>
|
|
|
)}
|
|
|
</div>
|
|
@@ -393,11 +394,11 @@ export default defineComponent({
|
|
|
</div>
|
|
|
<div class={styles.staffImgs}>
|
|
|
<TransitionGroup name="van-fade">
|
|
|
- {(activeItem.value?.musicSvg || activeItem.value?.musicImg)
|
|
|
+ {(activeItem.value?.musicSvg || activeItem.value?.musicImg) ? (activeItem.value?.musicSvg || activeItem.value?.musicImg)
|
|
|
?.split(',')
|
|
|
.map((item, index) => {
|
|
|
return <img src={item} key={item} />;
|
|
|
- })}
|
|
|
+ }) : <TheEmpty></TheEmpty>}
|
|
|
</TransitionGroup>
|
|
|
</div>
|
|
|
</div>
|