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
e70dc362
Commit
e70dc362
authored
Sep 30, 2024
by
shirlyn.guo
🤡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 推荐模板优化
parent
ba060a3f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
204 additions
and
353 deletions
+204
-353
template.ts
src/apis/template.ts
+11
-2
recommend-template.vue
src/views/workbench/components/recommend-template.vue
+188
-99
template-preview-modal.vue
src/views/workbench/components/template-preview-modal.vue
+5
-5
templateData.ts
src/views/workbench/templateData.ts
+0
-247
No files found.
src/apis/template.ts
View file @
e70dc362
import
{
request
}
from
'@/utils/request'
// 获取模板
export
function
fetchDigitalHumanTemplateStatusList
<
T
>
(
payload
:
object
)
{
return
request
.
post
<
T
>
(
'/aiDigitalHumanTemplateStatusRest/getDigitalHumanTemplateStatusList.json'
,
payload
)
export
function
fetchDigitalHumanTemplateStatusList
<
T
>
(
templateType
:
string
,
pagingInfo
:
{
pageNo
:
number
;
pageSize
:
number
},
)
{
return
request
.
post
<
T
>
(
'/aiDigitalHumanTemplateStatusRest/getDigitalHumanTemplateStatusList.json'
,
null
,
{
params
:
{
templateType
,
pageNo
:
pagingInfo
.
pageNo
,
pageSize
:
pagingInfo
.
pageSize
,
},
})
}
// 根据ID获取推荐模板信息
...
...
src/views/workbench/components/recommend-template.vue
View file @
e70dc362
This diff is collapsed.
Click to expand it.
src/views/workbench/components/template-preview-modal.vue
View file @
e70dc362
...
...
@@ -7,15 +7,15 @@ const props = defineProps<{
selectedTemplate
:
DigitalTemplate
}
>
()
const
emit
=
defineEmits
<
{
(
event
:
'go-to-create'
,
id
:
number
):
void
(
event
:
'go-to-create'
,
template
:
DigitalTemplate
):
void
}
>
()
function
handlePreviewModalClose
()
{
PreviewModalVisible
.
value
=
false
}
function
handle
Go
ToCreate
(
this
:
any
)
{
emit
(
'go-to-create'
,
props
.
selectedTemplate
.
id
)
function
handleToCreate
(
this
:
any
)
{
emit
(
'go-to-create'
,
props
.
selectedTemplate
as
DigitalTemplate
)
}
</
script
>
<
template
>
...
...
@@ -33,8 +33,8 @@ function handleGoToCreate(this: any) {
:src=
"props.selectedTemplate.demonstrationVideoUrl"
:poster=
"props.selectedTemplate.coverUrl"
class=
"h-[448px] w-[752px]"
autoplay
controls
autoplay
></video>
</div>
</div>
...
...
@@ -47,7 +47,7 @@ function handleGoToCreate(this: any) {
</button>
<button
class=
"!box-content !h-[38px] !w-[74px] cursor-pointer rounded-[6px] border-[1px] border-solid border-[#dde3f0] bg-gradient-to-r from-[#30b5f2] to-[#2468f2] px-[10px] text-[#ffffff] transition-all duration-300 hover:from-[#30b5f2] hover:to-[#528eff]"
@
click=
"handle
Go
ToCreate"
@
click=
"handleToCreate"
>
做同款
</button>
...
...
src/views/workbench/templateData.ts
deleted
100644 → 0
View file @
ba060a3f
This diff is collapsed.
Click to expand it.
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