Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 790b56a1
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
d3e1c2c7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
components/Canvas/wn-canvas.vue
pages/detail/components/Media_3.vue
pages/detail/components/Media_5.vue
pages/detail/components/ToolBox.vue
pages/detail/detail.vue
components/Canvas/wn-canvas.vue
View file @
790b56a
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
mode
:
"pen"
,
//操作模式
mode
:
"pen"
,
//操作模式
currentColor
:
"red"
,
//当前画笔颜色
currentColor
:
"red"
,
//当前画笔颜色
bgColor
:
"#fff"
,
//画板背景颜色
bgColor
:
"#fff"
,
//画板背景颜色
lineWidth
:
20
,
//画笔粗细 px
lineWidth
:
5
,
//画笔粗细 px
lastRect
:
{},
//运动轨迹最后一个方形
lastRect
:
{},
//运动轨迹最后一个方形
lastCircle
:
{},
//运动轨迹最后一个圆形
lastCircle
:
{},
//运动轨迹最后一个圆形
//工具箱
//工具箱
...
@@ -803,7 +803,6 @@ export default {
...
@@ -803,7 +803,6 @@ export default {
}
else
{
}
else
{
this
.
isLandScape
=
false
this
.
isLandScape
=
false
}
}
// console.log(this.isLandScape);
// console.log(this.isLandScape);
let
imageInfoObj
=
(
await
uni
.
getImageInfo
({
let
imageInfoObj
=
(
await
uni
.
getImageInfo
({
src
:
this
.
drawImage
src
:
this
.
drawImage
...
@@ -819,9 +818,8 @@ export default {
...
@@ -819,9 +818,8 @@ export default {
this
.
drawContext
.
setLineCap
(
'round'
)
// 让线条圆润
this
.
drawContext
.
setLineCap
(
'round'
)
// 让线条圆润
this
.
drawContext
.
strokeStyle
=
this
.
currentColor
;
//设置画笔颜色
this
.
drawContext
.
strokeStyle
=
this
.
currentColor
;
//设置画笔颜色
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
);
//设置画笔粗细
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
);
//设置画笔粗细
//设置背景
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
penWidthChange
(
)
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
)
this
.
fillBackground
();
this
.
fillBackground
();
})
})
}
}
...
...
pages/detail/components/Media_3.vue
View file @
790b56a
<
template
>
<
template
>
<view
class=
"layout"
>
<view
class=
"layout"
>
<view
class=
"bg"
>
<view
class=
"bg"
>
<glsx-image
src=
"media/bg-
2
.png"
/>
<glsx-image
src=
"media/bg-
5
.png"
/>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"canvas-box"
>
<view
class=
"canvas-box"
>
...
...
pages/detail/components/Media_5.vue
View file @
790b56a
<
template
>
<
template
>
<view
class=
"layout"
>
<view
class=
"layout"
>
<view
class=
"bg"
>
<view
class=
"bg"
>
<glsx-image
src=
"media/bg-
2
.png"
/>
<glsx-image
src=
"media/bg-
5
.png"
/>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"canvas-box"
>
<view
class=
"canvas-box"
>
...
...
pages/detail/components/ToolBox.vue
View file @
790b56a
...
@@ -76,12 +76,12 @@ export default {
...
@@ -76,12 +76,12 @@ export default {
icon
:
'tool/4.png'
icon
:
'tool/4.png'
},
},
{
{
id
:
5
,
id
:
6
,
label
:
'历史成交'
,
label
:
'历史成交'
,
icon
:
'tool/5.png'
icon
:
'tool/5.png'
},
},
{
{
id
:
6
,
id
:
5
,
label
:
'质保升级'
,
label
:
'质保升级'
,
icon
:
'tool/6.png'
icon
:
'tool/6.png'
}
}
...
@@ -103,8 +103,7 @@ export default {
...
@@ -103,8 +103,7 @@ export default {
.tool-box
{
.tool-box
{
position
:
fixed
;
position
:
fixed
;
right
:
40
rpx
;
right
:
40
rpx
;
top
:
50%
;
top
:
5%
;
transform
:
translateY
(
-50%
);
z-index
:
998
;
z-index
:
998
;
width
:
128
rpx
;
width
:
128
rpx
;
.btn
{
.btn
{
...
@@ -130,6 +129,7 @@ export default {
...
@@ -130,6 +129,7 @@ export default {
.hideIcon
{
.hideIcon
{
height
:
0
;
height
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
opacity
:
0
;
.icon
{
.icon
{
height
:
0
;
height
:
0
;
margin-bottom
:
0
;
margin-bottom
:
0
;
...
...
pages/detail/detail.vue
View file @
790b56a
...
@@ -42,6 +42,9 @@
...
@@ -42,6 +42,9 @@
<media
_6
:views=
"mediaList"
/>
<media
_6
:views=
"mediaList"
/>
</view>
</view>
<pay-pop
ref=
"pay"
></pay-pop>
<pay-pop
ref=
"pay"
></pay-pop>
<view
class=
"pen-box"
>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment