Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd89f75b
authored
Dec 07, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营销:完善装修编辑器预览功能
parent
78462372
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/views/mall/promotion/diy/template/decorate.vue
+7
-0
No files found.
src/views/mall/promotion/diy/template/decorate.vue
View file @
cd89f75b
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
:show-page-config=
"selectedTemplateItem !== 0"
:show-page-config=
"selectedTemplateItem !== 0"
:show-tab-bar=
"selectedTemplateItem === 0"
:show-tab-bar=
"selectedTemplateItem === 0"
:show-navigation-bar=
"selectedTemplateItem !== 0"
:show-navigation-bar=
"selectedTemplateItem !== 0"
:preview-url=
"previewUrl"
@
save=
"submitForm"
@
save=
"submitForm"
@
reset=
"handleEditorReset"
@
reset=
"handleEditorReset"
>
>
...
@@ -50,6 +51,8 @@ const formData = ref<DiyTemplateApi.DiyTemplatePropertyVO>()
...
@@ -50,6 +51,8 @@ const formData = ref<DiyTemplateApi.DiyTemplatePropertyVO>()
const
formRef
=
ref
()
// 表单 Ref
const
formRef
=
ref
()
// 表单 Ref
// 当前编辑的属性
// 当前编辑的属性
const
currentFormData
=
ref
<
DiyTemplateApi
.
DiyTemplatePropertyVO
|
DiyPageApi
.
DiyPageVO
>
()
const
currentFormData
=
ref
<
DiyTemplateApi
.
DiyTemplatePropertyVO
|
DiyPageApi
.
DiyPageVO
>
()
// 商城H5预览地址
const
previewUrl
=
ref
(
''
)
// 获取详情
// 获取详情
const
getPageDetail
=
async
(
id
:
any
)
=>
{
const
getPageDetail
=
async
(
id
:
any
)
=>
{
...
@@ -57,6 +60,10 @@ const getPageDetail = async (id: any) => {
...
@@ -57,6 +60,10 @@ const getPageDetail = async (id: any) => {
try
{
try
{
formData
.
value
=
await
DiyTemplateApi
.
getDiyTemplateProperty
(
id
)
formData
.
value
=
await
DiyTemplateApi
.
getDiyTemplateProperty
(
id
)
currentFormData
.
value
=
formData
.
value
currentFormData
.
value
=
formData
.
value
// 拼接手机预览链接
const
domain
=
import
.
meta
.
env
.
VITE_MALL_H5_DOMAIN
previewUrl
.
value
=
`
${
domain
}
/#/pages/index/index?templateId=
${
formData
.
value
.
id
}
`
}
finally
{
}
finally
{
formLoading
.
value
=
false
formLoading
.
value
=
false
}
}
...
...
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