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 46100d3a
authored
Jun 20, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
1fef4e97
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
30 deletions
assets/images/media/media-bg.webp
components/Canvas/wn-canvas.vue
components/Canvas/zoom-pan.vue
pages/equity/detail/components/MediaComponent.vue
pages/equity/detail/detail.vue
assets/images/media/media-bg.webp
0 → 100644
View file @
46100d3
No preview for this file type
components/Canvas/wn-canvas.vue
View file @
46100d3
...
...
@@ -862,10 +862,7 @@ export default {
},
//清空画板
clearBoard
()
{
this
.
defaultScaleValue
=
1.1
setTimeout
(()
=>
{
this
.
defaultScaleValue
=
1
},
100
)
this
.
defaultScaleValue
=
1
this
.
historyList
=
[];
this
.
drawContext
?.
draw
()
},
...
...
components/Canvas/zoom-pan.vue
View file @
46100d3
...
...
@@ -49,14 +49,16 @@ export default {
isDragging
:
false
,
transformOrigin
:
{
x
:
0
,
y
:
0
},
transformStyle
:
''
,
transformOriginStyle
:
'
0px 0px
'
,
transformOriginStyle
:
'
50% 50%
'
,
scaleFactor
:
0.01
,
};
},
watch
:
{
watchScaleValue
()
{
this
.
setScale
(
this
.
scaleValue
)
this
.
lastScale
=
this
.
scaleValue
this
.
scale
=
this
.
scaleValue
this
.
transformStyle
=
`translate(0px, 0px) scale(
${
this
.
scaleValue
}
)`
}
},
computed
:
{
...
...
pages/equity/detail/components/MediaComponent.vue
View file @
46100d3
<
template
>
<view
class=
"layout"
>
<view
class=
"bg"
>
<image
:src=
"mediaBg"
/>
</view>
<view
class=
"content"
:style=
"
{background:background}"
...
...
@@ -85,19 +82,11 @@ export default {
<
style
scoped
lang=
'scss'
>
.layout
{
padding-top
:
192
rpx
;
width
:
100vw
;
height
:
100vh
;
position
:
relative
;
.bg
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
240
rpx
;
image
{
width
:
100%
;
height
:
100%
;
}
}
background-image
:
url("@/assets/images/media/media-bg.webp")
;
background-size
:
100%
;
.content
{
border-radius
:
40
rpx
40
rpx
0
0
;
background
:
linear-gradient
(
180deg
,
#f7f9fc
0%
,
#f7f9fc
100%
);
...
...
pages/equity/detail/detail.vue
View file @
46100d3
...
...
@@ -50,7 +50,7 @@
@
finish=
"open"
:id=
"id"
@
toPay=
"toPay"
:showPayBtn=
"
showPayBtn
"
:showPayBtn=
"
watchPayInfo
"
/>
<view
class=
"pen-box"
...
...
@@ -95,7 +95,6 @@ export default {
data
()
{
return
{
drawStatus
:
false
,
showPayBtn
:
false
,
startX
:
null
,
screenWidth
:
null
};
...
...
@@ -108,7 +107,7 @@ export default {
return
this
.
type
!=
'preview'
&&
this
.
drawStatus
},
watchPayInfo
()
{
return
this
.
$store
.
state
.
user
.
paymentType
return
this
.
$store
.
state
.
user
.
paymentType
.
length
},
title
()
{
let
{
id
}
=
this
,
...
...
@@ -123,12 +122,6 @@ export default {
if
(
newval
)
this
.
drawStatus
=
false
}
},
watchPayInfo
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
showPayBtn
=
newval
.
length
?
true
:
false
}
}
},
mounted
()
{
const
systemInfo
=
uni
.
getSystemInfoSync
()
...
...
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