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 9095c8d0
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
790b56a1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
24 deletions
components/Canvas/wn-canvas.vue
pages/detail/components/Media_1.vue
pages/detail/components/Media_2.vue
pages/detail/components/Media_3.vue
pages/detail/components/Media_4.vue
pages/detail/components/Media_5.vue
pages/detail/detail.vue
components/Canvas/wn-canvas.vue
View file @
9095c8d
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<canvas
<canvas
class=
"board-canvas"
class=
"board-canvas"
:canvas-id=
"canvasId"
:canvas-id=
"canvasId"
disable-scroll=
"true
"
:disable-scroll=
"drawStatus
"
@
touchstart=
"touchStart"
@
touchstart=
"touchStart"
@
touchmove=
"touchMove"
@
touchmove=
"touchMove"
@
touchend=
"touchEnd"
@
touchend=
"touchEnd"
...
@@ -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
:
5
,
//画笔粗细 px
lineWidth
:
3
,
//画笔粗细 px
lastRect
:
{},
//运动轨迹最后一个方形
lastRect
:
{},
//运动轨迹最后一个方形
lastCircle
:
{},
//运动轨迹最后一个圆形
lastCircle
:
{},
//运动轨迹最后一个圆形
//工具箱
//工具箱
...
...
pages/detail/components/Media_1.vue
View file @
9095c8d
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
:isUnderBkg=
"true"
:isUnderBkg=
"true"
:canvasId=
"`c-1-$
{index}`"
:canvasId=
"`c-1-$
{index}`"
drawStatus
:drawStatus="penSwitch"
>
</wnCanvas>
>
</wnCanvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -53,7 +53,8 @@
...
@@ -53,7 +53,8 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
props
:
{
props
:
{
views
:
Array
views
:
Array
,
penSwitch
:
Boolean
},
},
name
:
'Media_1'
,
name
:
'Media_1'
,
data
()
{
data
()
{
...
@@ -123,6 +124,7 @@ export default {
...
@@ -123,6 +124,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
28
rpx
0
;
gap
:
28
rpx
0
;
padding
:
30
rpx
0
;
&-item
{
&-item
{
flex
:
50%
;
flex
:
50%
;
display
:
flex
;
display
:
flex
;
...
@@ -151,14 +153,14 @@ export default {
...
@@ -151,14 +153,14 @@ export default {
.select
{
.select
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.arrow{
.arrow
{
margin-left
:
auto
;
margin-left
:
auto
;
}
}
}
}
}
}
}
}
}
}
.view
{
.view
{
position
:
relative
;
position
:
relative
;
z-index
:
2
;
z-index
:
2
;
margin-top
:
36
rpx
;
margin-top
:
36
rpx
;
...
...
pages/detail/components/Media_2.vue
View file @
9095c8d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
saveImageType=
"3"
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
:isUnderBkg=
"true"
:isUnderBkg=
"true"
drawStatus
:drawStatus=
"penSwitch"
:canvasId=
"`c-2-$
{index}`"
:canvasId=
"`c-2-$
{index}`"
>
</wnCanvas>
>
</wnCanvas>
</view>
</view>
...
@@ -34,7 +34,8 @@ import Tabs from './Tabs.vue'
...
@@ -34,7 +34,8 @@ import Tabs from './Tabs.vue'
export
default
{
export
default
{
components
:
{
Tabs
},
components
:
{
Tabs
},
props
:
{
props
:
{
views
:
Array
views
:
Array
,
penSwitch
:
Boolean
},
},
name
:
'Media_2'
,
name
:
'Media_2'
,
data
()
{
data
()
{
...
...
pages/detail/components/Media_3.vue
View file @
9095c8d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
saveImageType=
"3"
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
:isUnderBkg=
"true"
:isUnderBkg=
"true"
drawStatus
:drawStatus=
"penSwitch"
:canvasId=
"`c-3-$
{index}`"
:canvasId=
"`c-3-$
{index}`"
>
</wnCanvas>
>
</wnCanvas>
</view>
</view>
...
@@ -27,9 +27,10 @@
...
@@ -27,9 +27,10 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
props
:
{
props
:
{
views
:
Array
views
:
Array
,
penSwitch
:
Boolean
},
},
name
:
'Media_
2
'
,
name
:
'Media_
3
'
,
data
()
{
data
()
{
return
{
return
{
viewIndex
:
0
viewIndex
:
0
...
...
pages/detail/components/Media_4.vue
View file @
9095c8d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
saveImageType=
"3"
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
:isUnderBkg=
"true"
:isUnderBkg=
"true"
drawStatus
:drawStatus=
"penSwitch"
:canvasId=
"`c-4-$
{index}`"
:canvasId=
"`c-4-$
{index}`"
>
</wnCanvas>
>
</wnCanvas>
</view>
</view>
...
@@ -34,9 +34,10 @@ import Tabs from './Tabs.vue'
...
@@ -34,9 +34,10 @@ import Tabs from './Tabs.vue'
export
default
{
export
default
{
components
:
{
Tabs
},
components
:
{
Tabs
},
props
:
{
props
:
{
views
:
Array
views
:
Array
,
penSwitch
:
Boolean
},
},
name
:
'Media_
2
'
,
name
:
'Media_
4
'
,
data
()
{
data
()
{
return
{
return
{
viewIndex
:
0
viewIndex
:
0
...
...
pages/detail/components/Media_5.vue
View file @
9095c8d
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
saveImageType=
"3"
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawImage=
"i.detailUrl"
:isUnderBkg=
"true"
:isUnderBkg=
"true"
drawStatus
:drawStatus=
"penSwitch"
:canvasId=
"`c-5-$
{index}`"
:canvasId=
"`c-5-$
{index}`"
>
</wnCanvas>
>
</wnCanvas>
</view>
</view>
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
props
:
{
props
:
{
views
:
Array
views
:
Array
,
penSwitch
:
Boolean
},
},
name
:
'Media_5'
,
name
:
'Media_5'
,
data
()
{
data
()
{
...
...
pages/detail/detail.vue
View file @
9095c8d
...
@@ -24,26 +24,26 @@
...
@@ -24,26 +24,26 @@
@
finish=
"open"
@
finish=
"open"
/>
/>
<view
:class=
"['view',
{showView:id == 1}]">
<view
:class=
"['view',
{showView:id == 1}]">
<media
_1
:views=
"mediaList"
/>
<media
_1
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 2}]">
<view
:class=
"['view',
{showView:id == 2}]">
<media
_2
:views=
"mediaList"
/>
<media
_2
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 3}]">
<view
:class=
"['view',
{showView:id == 3}]">
<media
_3
:views=
"mediaList"
/>
<media
_3
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 4}]">
<view
:class=
"['view',
{showView:id == 4}]">
<media
_4
:views=
"mediaList"
/>
<media
_4
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 5}]">
<view
:class=
"['view',
{showView:id == 5}]">
<media
_5
:views=
"mediaList"
/>
<media
_5
:views=
"mediaList"
:penSwitch=
"type != 'preview' && drawStatus"
/>
</view>
</view>
<view
:class=
"['view',
{showView:id == 6}]">
<view
:class=
"['view',
{showView:id == 6}]">
<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
class=
"pen-box"
>
<glsx-image
src=
"media"
/>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -57,14 +57,16 @@ import Media_3 from './components/Media_3.vue'
...
@@ -57,14 +57,16 @@ import Media_3 from './components/Media_3.vue'
import
Media_4
from
'./components/Media_4.vue'
import
Media_4
from
'./components/Media_4.vue'
import
Media_5
from
'./components/Media_5.vue'
import
Media_5
from
'./components/Media_5.vue'
import
Media_6
from
'./components/Media_6.vue'
import
Media_6
from
'./components/Media_6.vue'
import
GlsxImage
from
'../../components/GlsxImage.vue'
;
export
default
{
export
default
{
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
,
Media_3
,
Media_4
,
Media_5
,
Media_6
},
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
,
Media_3
,
Media_4
,
Media_5
,
Media_6
,
GlsxImage
},
mixins
:
[
myClick
],
mixins
:
[
myClick
],
data
()
{
data
()
{
return
{
return
{
type
:
'preview'
,
type
:
'preview'
,
id
:
''
,
id
:
''
,
mediaList
:
[]
mediaList
:
[],
drawStatus
:
false
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
...
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