Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digitalPerson
digitalPerson-fe
Commits
dae24d24
You need to sign in or sign up before continuing.
Commit
dae24d24
authored
Sep 30, 2024
by
Dazzle Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 视频数字人图片比例
parent
62d36952
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
template.ts
src/store/types/template.ts
+3
-0
digital-human-card.vue
src/views/creation/components/digital/digital-human-card.vue
+1
-1
preview-content.vue
src/views/creation/components/preview-content.vue
+1
-1
index.vue
src/views/creation/layout/index.vue
+7
-3
No files found.
src/store/types/template.ts
View file @
dae24d24
import
{
ScreenType
}
from
'./creation'
export
enum
TemplateType
{
export
enum
TemplateType
{
FINANCIAL_MARKETING
=
'FINANCIAL_MARKETING'
,
// 理財營銷
FINANCIAL_MARKETING
=
'FINANCIAL_MARKETING'
,
// 理財營銷
EDUCATION_LEARNING
=
'EDUCATION_LEARNING'
,
// 教育學習
EDUCATION_LEARNING
=
'EDUCATION_LEARNING'
,
// 教育學習
...
@@ -41,6 +43,7 @@ export interface DigitalTemplate {
...
@@ -41,6 +43,7 @@ export interface DigitalTemplate {
width
:
number
width
:
number
height
:
number
height
:
number
transparent
:
boolean
transparent
:
boolean
pageLayout
:
ScreenType
}
|
null
}
|
null
dhParams
:
{
dhParams
:
{
cameraId
:
number
|
null
cameraId
:
number
|
null
...
...
src/views/creation/components/digital/digital-human-card.vue
View file @
dae24d24
...
@@ -22,7 +22,7 @@ const digitalCreationStore = useDigitalCreationStore()
...
@@ -22,7 +22,7 @@ const digitalCreationStore = useDigitalCreationStore()
:class=
"digitalCreationStore.figureId === value.figureId ? 'border-blue' : 'border-transparent'"
:class=
"digitalCreationStore.figureId === value.figureId ? 'border-blue' : 'border-transparent'"
@
click=
"emit('click', value)"
@
click=
"emit('click', value)"
>
>
<img
:src=
"value.imageUrl"
class=
"h-full w-full"
/>
<img
:src=
"value.imageUrl"
class=
"h-full w-full
object-cover
"
/>
<div
class=
"absolute bottom-0 h-5 w-full bg-gradient-to-t from-gray-600 px-1 text-xs leading-5 text-white"
>
<div
class=
"absolute bottom-0 h-5 w-full bg-gradient-to-t from-gray-600 px-1 text-xs leading-5 text-white"
>
{{
value
.
imageName
}}
{{
value
.
imageName
}}
</div>
</div>
...
...
src/views/creation/components/preview-content.vue
View file @
dae24d24
...
@@ -157,7 +157,7 @@ function controlAudio() {
...
@@ -157,7 +157,7 @@ function controlAudio() {
<img
<img
v-if=
"digitalCreationStore.inputImageUrl"
v-if=
"digitalCreationStore.inputImageUrl"
:src=
"digitalCreationStore.inputImageUrl"
:src=
"digitalCreationStore.inputImageUrl"
class=
"absolute max-w-none object-co
ntain
"
class=
"absolute max-w-none object-co
ver
"
:style=
"
{
:style=
"
{
width: `${digitalHumanWidth}px`,
width: `${digitalHumanWidth}px`,
height: `${digitalHumanHeight}px`,
height: `${digitalHumanHeight}px`,
...
...
src/views/creation/layout/index.vue
View file @
dae24d24
...
@@ -3,7 +3,7 @@ import { fetchDraftConfigById } from '@/apis/digital-creation'
...
@@ -3,7 +3,7 @@ import { fetchDraftConfigById } from '@/apis/digital-creation'
import
{
fetchGetTaskConfig
}
from
'@/apis/opus'
import
{
fetchGetTaskConfig
}
from
'@/apis/opus'
import
{
fetchDigitalHumanTemplateStatus
}
from
'@/apis/template'
import
{
fetchDigitalHumanTemplateStatus
}
from
'@/apis/template'
import
{
useDigitalCreationStore
}
from
'@/store/modules/creation'
import
{
useDigitalCreationStore
}
from
'@/store/modules/creation'
import
{
DraftConfig
}
from
'@/store/types/creation'
import
{
DraftConfig
,
ScreenType
}
from
'@/store/types/creation'
import
{
DigitalTemplate
}
from
'@/store/types/template'
import
{
DigitalTemplate
}
from
'@/store/types/template'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
{
formatDateTime
}
from
'@/utils/date-formatter'
import
{
onMounted
}
from
'vue'
import
{
onMounted
}
from
'vue'
...
@@ -53,9 +53,13 @@ async function getDigitalTemplate(id: string) {
...
@@ -53,9 +53,13 @@ async function getDigitalTemplate(id: string) {
height
:
digitalTemplate
.
videoParams
?.
height
||
digitalCreationStore
.
height
,
height
:
digitalTemplate
.
videoParams
?.
height
||
digitalCreationStore
.
height
,
cameraId
:
digitalTemplate
.
dhParams
?.
cameraId
||
null
,
cameraId
:
digitalTemplate
.
dhParams
?.
cameraId
||
null
,
x
:
digitalTemplate
.
dhParams
?.
position
.
x
||
digitalCreationStore
.
x
,
x
:
digitalTemplate
.
dhParams
?.
position
.
x
||
digitalCreationStore
.
x
,
w
:
digitalTemplate
.
dhParams
?.
position
.
w
||
digitalCreationStore
.
w
,
w
:
digitalTemplate
.
dhParams
?.
position
.
w
||
(
digitalTemplate
.
videoParams
?.
pageLayout
===
ScreenType
.
LANDSCAPE
?
607
:
1080
),
y
:
digitalTemplate
.
dhParams
?.
position
.
y
||
digitalCreationStore
.
y
,
y
:
digitalTemplate
.
dhParams
?.
position
.
y
||
digitalCreationStore
.
y
,
h
:
digitalTemplate
.
dhParams
?.
position
.
h
||
digitalCreationStore
.
h
,
h
:
digitalTemplate
.
dhParams
?.
position
.
h
||
(
digitalTemplate
.
videoParams
?.
pageLayout
===
ScreenType
.
LANDSCAPE
?
1080
:
1920
),
subtitlePolicy
:
digitalTemplate
.
subtitleParams
?.
subtitlePolicy
||
digitalCreationStore
.
subtitlePolicy
,
subtitlePolicy
:
digitalTemplate
.
subtitleParams
?.
subtitlePolicy
||
digitalCreationStore
.
subtitlePolicy
,
enabled
:
digitalTemplate
.
subtitleParams
?.
enabled
?
'Y'
:
'N'
,
enabled
:
digitalTemplate
.
subtitleParams
?.
enabled
?
'Y'
:
'N'
,
backgroundImageUrl
:
digitalTemplate
.
backgroundImageUrl
,
backgroundImageUrl
:
digitalTemplate
.
backgroundImageUrl
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment