|
@@ -14,10 +14,16 @@ import { vipData } from "../vip"
|
|
|
export default defineComponent({
|
|
|
name: "TheMusicList-list",
|
|
|
props: {
|
|
|
+ // 最近练习
|
|
|
recentFlag: {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
+ // 我的收藏
|
|
|
+ favoriteFlag: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
},
|
|
|
setup(props) {
|
|
|
const query: any = getQuery();
|
|
@@ -27,8 +33,9 @@ export default defineComponent({
|
|
|
rows: 20,
|
|
|
musicalInstrumentId: state.specialPercussionFlag ? state.musicalInstrumentIds.split(",")[0] : (state.isConcert ? "" : state.instrumentId),
|
|
|
musicSheetCategoriesId: state.bizMusicCategoryId,
|
|
|
- recentFlag: props.recentFlag ? true : null,
|
|
|
- excludeMusicId: props.recentFlag ? null : state.examSongId,
|
|
|
+ recentFlag: props.recentFlag ? true : null, // 最近练习
|
|
|
+ favoriteFlag: props.favoriteFlag ? true : null, // 我的收藏
|
|
|
+ excludeMusicId: props.recentFlag || props.favoriteFlag ? null : state.examSongId,
|
|
|
});
|
|
|
const data = reactive({
|
|
|
isFocus: false,
|
|
@@ -70,6 +77,12 @@ export default defineComponent({
|
|
|
data.hasNext = true;
|
|
|
}
|
|
|
);
|
|
|
+ watch(
|
|
|
+ () => props.favoriteFlag,
|
|
|
+ () => {
|
|
|
+ data.hasNext = true;
|
|
|
+ }
|
|
|
+ );
|
|
|
onMounted(() => {
|
|
|
getList();
|
|
|
});
|