Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
1ff0cee9
Commit
1ff0cee9
authored
Jun 29, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
abf987c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
advertfont.css
src/assets/css/advert/advertfont.css
+1
-1
makeAd.vue
src/pages/activity/makeAd.vue
+7
-5
No files found.
src/assets/css/advert/advertfont.css
View file @
1ff0cee9
...
...
@@ -170,7 +170,7 @@
}
.adv-box
.property-box
{
position
:
absolute
;
left
:
5
32
px
;
left
:
5
50
px
;
top
:
0px
;
width
:
640px
;
right
:
10px
;
...
...
src/pages/activity/makeAd.vue
View file @
1ff0cee9
...
...
@@ -75,7 +75,7 @@
</li>
-->
</ul>
<div
class=
"property-box"
v-if=
'currentNode.type==0 && !isMax'
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
10
0px"
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
8
0px"
>
<el-form-item
label=
"内容:"
>
<el-input
type=
"textarea"
v-model=
"currentNode.content"
></el-input>
</el-form-item>
...
...
@@ -171,7 +171,7 @@
<img
:src=
"st"
/>
</div>
<div
class=
"property-box"
v-if=
'currentNode.type==1 && !isMax'
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
10
0px"
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
8
0px"
>
<!-- <el-form-item label="宽度:">
<el-input-number v-model="currentNode.width" :min="0"></el-input-number>
</el-form-item>
...
...
@@ -229,7 +229,7 @@
</el-form>
</div>
<div
class=
"property-box"
v-if=
'currentNode.type==2 && !isMax'
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
10
0px"
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
8
0px"
>
<el-form-item
label=
"圆角:"
>
<el-input-number
v-model=
"currentNode.radius"
:min=
"0"
></el-input-number>
<label
class=
"remark"
>
修改块的圆角弧度(有背景色时体现)
</label>
...
...
@@ -287,7 +287,7 @@
</el-form>
</div>
<div
class=
"property-box"
v-if=
'currentNode.type==3 && !isMax'
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
10
0px"
>
<el-form
ref=
"form"
:model=
"currentNode"
label-width=
"
8
0px"
>
<el-form-item
label=
"内容:"
>
<el-input
type=
"textarea"
v-model=
"currentNode.content"
></el-input>
</el-form-item>
...
...
@@ -807,8 +807,10 @@
var
shareContent
=
cntElem
var
width
=
shareContent
.
offsetWidth
var
height
=
shareContent
.
offsetHeight
console
.
log
(
'canvas'
,
width
,
height
)
var
canvas
=
document
.
createElement
(
"canvas"
)
var
scale
=
2
// var scale = window.devicePixelRatio;//显示设备的物理像素分辨率与CSS像素分辨率之比
var
scale
=
1
canvas
.
width
=
width
*
scale
canvas
.
height
=
height
*
scale
canvas
.
getContext
(
"2d"
).
scale
(
scale
,
scale
)
...
...
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