diff --git a/package.json b/package.json index 2af4f47..8d3ee9b 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "html2canvas": "^1.4.1", "linqts": "^1.15.0", "mitt": "^3.0.1", + "music-metadata-browser": "^2.5.10", "pinia": "^2.1.7", "prettier": "^3.2.5", "qrcode.vue": "^3.4.1", diff --git a/src/data/constants.ts b/src/data/constants.ts index c2da1c3..86dfac1 100644 --- a/src/data/constants.ts +++ b/src/data/constants.ts @@ -1,5 +1,5 @@ import DefaultIndexTemplateVue from '@/views/view/indexTemplate/DefaultIndexTemplate.vue' -import { computed, defineAsyncComponent, ref, watchEffect } from 'vue' +import { defineAsyncComponent, ref } from 'vue' const debugAPI = import.meta.env.VITE_DEBUG_API const releseAPI = `https://vtsuru.suki.club/api/` diff --git a/src/views/manage/SongListManageView.vue b/src/views/manage/SongListManageView.vue index 85447da..a45e929 100644 --- a/src/views/manage/SongListManageView.vue +++ b/src/views/manage/SongListManageView.vue @@ -878,6 +878,9 @@ onMounted(async () => { /> + + 开发中... + diff --git a/src/views/manage/point/PointUserManage.vue b/src/views/manage/point/PointUserManage.vue index 349e553..e04dcf8 100644 --- a/src/views/manage/point/PointUserManage.vue +++ b/src/views/manage/point/PointUserManage.vue @@ -12,6 +12,7 @@ import { NDivider, NEmpty, NFlex, + NIcon, NInput, NInputGroup, NInputGroupLabel, @@ -21,12 +22,14 @@ import { NScrollbar, NSpin, NTag, + NText, NTime, NTooltip, useMessage, } from 'naive-ui' import { computed, h, onMounted, ref } from 'vue' import PointUserDetailCard from './PointUserDetailCard.vue' +import { Info24Filled } from '@vicons/fluent' const props = defineProps<{ goods: ResponsePointGoodModel[] @@ -78,7 +81,13 @@ const column: DataTableColumns = [ title: '用户名', key: 'username', render: (row: ResponsePointUserModel) => { - return row.info?.name ?? '未知' + return ( + row.info?.name ?? + h(NFlex, null, () => [ + '未知', + h(NText, { depth: 3 }, { default: () => `(${row.info.userId ?? row.info.openId})` }), + ]) + ) }, }, { @@ -231,16 +240,18 @@ onMounted(async () => { - - 目标用户 - - + + + 目标用户 + + + + + 如果目标用户没在直播间发言过则无法显示用户名, 不过不影响使用 + + 积分数量