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 1b6f3861
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
696bcb40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
17 deletions
components/Canvas/wn-canvas.vue
pages/detail/components/Media_2.vue
pages/detail/components/Media_6.vue
pages/detail/detail.vue
components/Canvas/wn-canvas.vue
View file @
1b6f386
<
template
>
<view
class=
"
content
"
>
<view
class=
"
wn-canvas
"
>
<template
v-if=
"false"
>
<template
v-if=
"showPenBox"
>
<view
class=
"pen-box"
>
...
...
@@ -78,11 +78,11 @@
>
</view>
</view>
<color
<
!-- <
color
:colorShow="colorShow"
@colorPickTap="colorPickTapHandler"
></color>
<view
></color>
-->
<
!-- <
view
class="btn-box"
v-if="showSave"
>
...
...
@@ -90,7 +90,7 @@
type="primary"
@click="saveImage"
>保存</button>
</view>
</view>
-->
</view>
</template>
...
...
@@ -273,7 +273,7 @@ export default {
this
.
toolsShow
=
!
this
.
toolsShow
},
penWidthChange
(
e
)
{
this
.
lineWidth
=
e
.
detail
.
value
;
if
(
e
?.
detail
?.
value
)
this
.
lineWidth
=
e
.
detail
.
value
;
this
.
drawContext
.
setLineWidth
(
this
.
lineWidth
);
},
//开始绘制曲线
...
...
@@ -825,7 +825,7 @@ export default {
</
script
>
<
style
lang=
"scss"
>
.
content
{
.
wn-canvas
{
height
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
...
...
pages/detail/components/Media_2.vue
View file @
1b6f386
...
...
@@ -9,7 +9,7 @@
<view
class=
"canvas-box"
>
<template
v-for=
"(i,index) in views"
>
<view
class=
"canvas-view
"
:class=
"['canvas-view',
{showView:viewIndex == index}]
"
:key="index"
>
<wnCanvas
...
...
@@ -51,14 +51,14 @@ export default {
<
style
scoped
lang=
'scss'
>
.layout
{
padding-top
:
272
rpx
;
padding-top
:
146
rpx
;
position
:
relative
;
.bg
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
432
rpx
;
height
:
368
rpx
;
}
.content
{
border-radius
:
40
rpx
40
rpx
0
0
;
...
...
@@ -73,11 +73,21 @@ export default {
padding
:
32
rpx
0
;
text-align
:
center
;
}
.canvas-box
{
display
:
flex
;
.canvas-box
{
width
:
100%
;
//
flex-wrap
:
nowrap
;
}
.canvas-view
{
z-index
:
-1
;
opacity
:
0
;
left
:
0
;
top
:
0
;
display
:
none
;
width
:
100%
;
}
.showView
{
display
:
block
;
z-index
:
2
;
}
}
}
...
...
pages/detail/components/Media_6.vue
0 → 100644
View file @
1b6f386
<
template
>
<view
class=
"layout"
>
<view
class=
"bg"
>
<glsx-image
src=
"media/bg-6.png"
/>
</view>
<view
class=
"content"
>
<view
class=
"title"
>
历史成交记录
</view>
<Tabs
:list=
"list"
/>
</view>
</view>
</
template
>
<
script
type=
'text/ecmascript-6'
>
import
Tabs
from
'./Tabs.vue'
;
export
default
{
name
:
'Media_6'
,
props
:
{
},
components
:
{
Tabs
},
data
()
{
return
{
list
:
[
]
}
},
mounted
()
{
const
{
merchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
console
.
log
(
this
.
userInfo
,
'=========='
);
this
.
getQuotationList
(
merchantId
);
},
methods
:
{
async
getQuotationList
(
merchantId
)
{
const
data
=
await
uni
.
$api
.
commonApi
.
getQuotationList
({
currentPage
:
1
,
pageSize
:
10
,
merchantId
:
421127
,
orderStatus
:
3
})
console
.
log
(
data
,
'============'
)
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.layout
{
padding-top
:
272
rpx
;
position
:
relative
;
.bg
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
864
rpx
;
background-color
:
#096
;
}
.content
{
border-radius
:
40
rpx
40
rpx
0
0
;
background
:
linear-gradient
(
180deg
,
#f7f9fc
0%
,
#f7f9fc
100%
);
overflow
:
hidden
;
position
:
relative
;
z-index
:
1
;
.title
{
font-weight
:
500
;
font-size
:
48
rpx
;
color
:
#1a1a1a
;
padding
:
32
rpx
0
;
text-align
:
center
;
}
.form
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
28
rpx
0
;
&-item{
flex
:
50%
;
display
:
flex
;
align-items
:
center
;
.value{
}
}
}
}
}
</
style
>
\ No newline at end of file
pages/detail/detail.vue
View file @
1b6f386
...
...
@@ -29,6 +29,9 @@
<view
:class=
"['view',
{showView:id == 2}]">
<media
_2
:views=
"mediaList"
/>
</view>
<view
:class=
"['view',
{showView:id == 6}]">
<media
_6
:views=
"mediaList"
/>
</view>
<pay-pop
ref=
"pay"
></pay-pop>
</view>
</
template
>
...
...
@@ -38,8 +41,9 @@ import ToolBox from './components/ToolBox.vue'
import
myClick
from
"@/mixin/click"
;
import
Media_1
from
'./components/Media_1.vue'
import
Media_2
from
'./components/Media_2.vue'
import
Media_6
from
'./components/Media_6.vue'
export
default
{
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
},
components
:
{
ToolBox
,
payPop
,
Media_1
,
Media_2
,
Media_6
},
mixins
:
[
myClick
],
data
()
{
return
{
...
...
@@ -75,7 +79,7 @@ export default {
};
</
script
>
<
style
scoped
lang=
"scss"
>
.detail-box
{
.detail-box
{
position
:
relative
;
}
.nav-bar
{
...
...
@@ -99,11 +103,13 @@ export default {
opacity
:
0
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
display
:
none
;
}
.showView
{
display
:
block
;
z-index
:
2
;
opacity
:
1
;
width
:
100%
;
height
:
100%
;
}
</
style
>
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