|
@@ -1,7 +1,8 @@
|
|
|
-import { Icon, NoticeBar, Tag } from 'vant'
|
|
|
-import { defineComponent, PropType } from 'vue'
|
|
|
+import { CellGroup, Cell, Icon, Image, Popup, Tag } from 'vant'
|
|
|
+import { defineComponent, PropType, ref } from 'vue'
|
|
|
import styles from './index.module.less'
|
|
|
import IconPlay from '@/common/images/icon-play.png'
|
|
|
+import IconMore from '@/common/images/icon_more.png'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
export default defineComponent({
|
|
|
name: 'TheSong',
|
|
@@ -13,6 +14,8 @@ export default defineComponent({
|
|
|
},
|
|
|
emits: ['detail'],
|
|
|
setup(props, { emit }) {
|
|
|
+ const isMore = ref<boolean>(false)
|
|
|
+ const moreData = ref<any>({})
|
|
|
const router = useRouter()
|
|
|
const colors: any = {
|
|
|
FREE: {
|
|
@@ -62,11 +65,60 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style={styles.play}>
|
|
|
+ <div class={styles.play}>
|
|
|
<Icon name={IconPlay} size={28} />
|
|
|
+
|
|
|
+ <Icon
|
|
|
+ name={IconMore}
|
|
|
+ size={18}
|
|
|
+ style={{ marginLeft: '12px ' }}
|
|
|
+ onClick={() => {
|
|
|
+ isMore.value = true
|
|
|
+ moreData.value = n
|
|
|
+ }}
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
))}
|
|
|
+
|
|
|
+ <Popup v-model:show={isMore.value} position="bottom" round>
|
|
|
+ <CellGroup border={false}>
|
|
|
+ <Cell
|
|
|
+ center
|
|
|
+ v-slots={{
|
|
|
+ icon: () => (
|
|
|
+ <Image class={styles.pImg} src={moreData?.value.titleImg} />
|
|
|
+ ),
|
|
|
+ title: () => (
|
|
|
+ <div class={styles.info}>
|
|
|
+ <h4 class="van-ellipsis">
|
|
|
+ {moreData?.value.musicSheetName}
|
|
|
+ </h4>
|
|
|
+ <p>
|
|
|
+ <Tag
|
|
|
+ style={{
|
|
|
+ color: colors[moreData?.value.chargeType].color,
|
|
|
+ marginRight: '6px'
|
|
|
+ }}
|
|
|
+ class={styles.tag}
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ >
|
|
|
+ {colors[moreData?.value.chargeType].text}
|
|
|
+ </Tag>
|
|
|
+ {moreData?.value.composer}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ <Cell border={false} size="large" title={'收藏曲目'} />
|
|
|
+ <Cell border={false} size="large" title={'分享曲目'} />
|
|
|
+ <Cell border={false} size="large" title={'作曲:xxx'} />
|
|
|
+ <Cell border={false} size="large" title={`上传:xxx`} />
|
|
|
+ <Cell border={false} size="large" title={'小酷Ai练习'} />
|
|
|
+ </CellGroup>
|
|
|
+ </Popup>
|
|
|
</div>
|
|
|
)
|
|
|
}
|