Merge pull request !281 from dylanmay/dev
This commit is contained in:
xingyu
2025-11-27 05:33:41 +00:00
committed by Gitee
35 changed files with 714 additions and 925 deletions

View File

@@ -16,12 +16,6 @@ export namespace MpAccountApi {
remark?: string;
createTime?: Date;
}
// TODO @dylan这个直接使用 Account简化一点
export interface AccountSimple {
id: number;
name: string;
}
}
/** 查询公众号账号列表 */
@@ -41,7 +35,7 @@ export function getAccount(id: number) {
/** 查询公众号账号列表 */
export function getSimpleAccountList() {
return requestClient.get<MpAccountApi.AccountSimple[]>(
return requestClient.get<MpAccountApi.Account[]>(
'/mp/account/list-all-simple',
);
}

View File

@@ -18,7 +18,7 @@ defineExpose({
<template>
<div class="mx-auto flex w-full flex-col gap-[10px] bg-white">
<div v-for="(article, index) in articles" :key="index" class="news-div">
<div v-for="(article, index) in articles" :key="index">
<!-- 头条 -->
<a v-if="index === 0" :href="article.url" target="_blank">
<div class="mx-auto w-full">
@@ -26,11 +26,10 @@ defineExpose({
<img
:src="article.picUrl"
:preview="false"
class="flex w-[100%] items-center justify-center object-cover"
class="w-[100px] object-cover"
/>
<div
class="absolute bottom-0 left-0 ml-[10px] inline-block w-[98%] whitespace-normal p-[1%] text-base text-white"
style="box-sizing: unset !important"
>
<span>{{ article.title }}</span>
</div>

View File

@@ -64,23 +64,24 @@ function amrStop() {
playing.value = false;
amr.value.stop();
}
// TODO dylan下面样式有点问题
</script>
<template>
<div
class="flex min-h-[50px] min-w-[120px] flex-col items-center justify-center rounded-[10px] bg-[#eaeaea] px-3 py-2"
class="flex h-[50px] w-[120px] cursor-pointer items-center justify-center rounded-[10px] bg-[#eaeaea] p-[5px]"
@click="playVoice"
>
<div class="flex items-center">
<el-icon>
<IconifyIcon
v-if="playing !== true"
icon="lucide:circle-play"
:size="32"
/>
<IconifyIcon v-else icon="lucide:circle-pause" :size="32" />
<span class="ml-2 text-xs" v-if="duration">{{ duration }} </span>
</div>
<span v-if="duration" class="ml-[5px] text-[11px]">
{{ duration }}
</span>
</el-icon>
<div v-if="content">
<ElTag type="success" size="small">语音识别</ElTag>
{{ content }}

View File

@@ -6,7 +6,7 @@ import { formatDateTime } from '@vben/utils';
import { getSimpleAccountList } from '#/api/mp/account';
let accountList: MpAccountApi.AccountSimple[] = [];
let accountList: MpAccountApi.Account[] = [];
getSimpleAccountList().then((data) => (accountList = data));
/** 搜索表单配置 */