eight
2025-04-15 589bcdb26f8e9d3e0d5ef46d27acc901c96d50ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!--
  【微信消息 - 音乐】
-->
<template>
  <div>
    <el-link
      type="success"
      :underline="false"
      target="_blank"
      :href="hqMusicUrl ? hqMusicUrl : musicUrl"
    >
      <div
        class="avue-card__body"
        style="padding: 10px; background-color: #fff; border-radius: 5px"
      >
        <div class="avue-card__avatar">
          <img :src="thumbMediaUrl" alt="" />
        </div>
        <div class="avue-card__detail">
          <div class="avue-card__title" style="margin-bottom: unset">{{ title }}</div>
          <div class="avue-card__info" style="height: unset">{{ description }}</div>
        </div>
      </div>
    </el-link>
  </div>
</template>
 
<script lang="ts" setup>
defineOptions({ name: 'WxMusic' })
 
const props = defineProps({
  title: {
    required: false,
    type: String
  },
  description: {
    required: false,
    type: String
  },
  musicUrl: {
    required: false,
    type: String
  },
  hqMusicUrl: {
    required: false,
    type: String
  },
  thumbMediaUrl: {
    required: true,
    type: String
  }
})
 
defineExpose({
  musicUrl: props.musicUrl
})
</script>
 
<style lang="scss" scoped>
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scss  */
@import url('../wx-msg/card.scss');
</style>