Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
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
周成波
text2video-frontend
Commits
76d3f9b3
Commit
76d3f9b3
authored
Apr 20, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2aaad0d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
index.vue
src/views/home/index.vue
+15
-4
No files found.
src/views/home/index.vue
View file @
76d3f9b3
...
...
@@ -896,8 +896,8 @@ const onChangeScreen = (val: string) => {
// cover_backcover.cover_pic_with_text_local = default_data.cover_backcover.cover_pic_with_text_local;
update_and_modify_product
.
if_need
=
"true"
;
update_and_modify_product
.
pic
=
"http://127.0.0.1:5001/assets/2024/04/
18/b7f41e18-fd2f-11ee-980d-76e065928c9e_resized.png?v=20240418112349682
"
;
update_and_modify_product
.
pic_local
=
"assets/2024/04/
18/b7f41e18-fd2f-11ee-980d-76e065928c9e_resized.pn
g"
;
update_and_modify_product
.
pic
=
"http://127.0.0.1:5001/assets/2024/04/
20/7336ed1a-fefa-11ee-8709-76e065928c9e_resized.jpg
"
;
update_and_modify_product
.
pic_local
=
"assets/2024/04/
20/7336ed1a-fefa-11ee-8709-76e065928c9e_resized.jp
g"
;
}
// 宽高
...
...
@@ -1730,7 +1730,9 @@ const showUploadAndModifyProductPicInPaintDialog = () => {
mask_ctx
.
moveTo
(
offsetX
,
offsetY
);
mask_ctx
.
lineTo
(
offsetX
,
offsetY
);
mask_ctx
.
stroke
();
console
.
log
(
offsetX
,
offsetY
)
console
.
log
(
offsetX
,
offsetY
);
// 清空再push,保证里面只有一个点
update_and_modify_product
.
cutout_obj
=
<
Wm
.
Coordinate
[]
>
[];
update_and_modify_product
.
cutout_obj
.
push
({
x
:
offsetX
,
y
:
offsetY
})
}
// 清除画布
...
...
@@ -1924,7 +1926,16 @@ const onSubmitUploadAndModifyProductPicInPaint = async () => {
:style=
"
{ width: String(parseInt(form.img_size.width) / 3) + 'px' }"
class="dashed-div"
>
<el-image
:src=
"update_and_modify_product.pic"
/>
<!--
<el-image
:src=
"update_and_modify_product.pic"
/>
-->
<el-image
:src=
"update_and_modify_product.pic"
:zoom-rate=
"1.0"
:max-scale=
"1.5"
:min-scale=
"1.5"
:preview-src-list=
"[update_and_modify_product.pic]"
fit=
"cover"
:hide-on-click-modal=
"true"
/>
</div>
<!--
<div
:style=
"
{ width: String(parseInt(form.img_size.width) / 3) + 'px' }"
...
...
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