|
@@ -5,6 +5,8 @@ import { Cell, Skeleton } from 'vant'
|
|
|
import Item from '../list/item'
|
|
|
import { musicBuy } from '../music'
|
|
|
import { state } from '@/state'
|
|
|
+import styles from './index.module.less'
|
|
|
+import Song from '../component/song'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'Practice',
|
|
@@ -39,8 +41,16 @@ export default defineComponent({
|
|
|
}
|
|
|
return (
|
|
|
<>
|
|
|
- {prevNum.value > 0 && <Cell title="最近练习" />}
|
|
|
- {Array.from(Array(prevNum.value)).map((_, index) => {
|
|
|
+ {prevNum.value > 0 && <Cell title="最近练习" border={false} />}
|
|
|
+ <div class={styles.practice}>
|
|
|
+ <Song
|
|
|
+ list={list}
|
|
|
+ onDetail={(item: any) => {
|
|
|
+ musicBuy(item)
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ {/* {Array.from(Array(prevNum.value)).map((_, index) => {
|
|
|
const item = list[index]
|
|
|
console.log(list, item)
|
|
|
if (!item) {
|
|
@@ -56,7 +66,7 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
)
|
|
|
- })}
|
|
|
+ })} */}
|
|
|
</>
|
|
|
)
|
|
|
}
|