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 53d5610f
authored
Apr 08, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 新增文件夹
1 parent
7e3c9bbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
0 deletions
pages/detail/components/ToolBox.vue
pages/detail/detail.vue
pages/detail/components/ToolBox.vue
0 → 100644
View file @
53d5610
<
template
>
<view
class=
"tool-box"
>
<view
:class=
"['btn',
{hideIcon:!show}]"
@click="show = false"
>
<glsx-image
src=
"tool/file.png"
class=
"icon"
/>
文件夹
</view>
<view
:class=
"['list',
{showList:!show}]">
<view
class=
"title"
@
click=
"show = true"
>
文件夹
</view>
<template
v-for=
"(i,index) in toolList"
>
<view
class=
"item"
:key=
"index"
@
click=
"jump(i)"
>
<view
class=
"icon"
>
<glsx-image
:src=
"i.icon"
class=
"icon"
/>
</view>
{{
i
.
label
}}
</view>
</
template
>
<view
class=
"item"
>
<view
class=
"icon"
>
<glsx-image
src=
"tool/finish.png"
class=
"icon"
/>
</view>
完成接待
</view>
</view>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'ToolBox'
,
data
()
{
return
{
show
:
true
,
toolList
:
[
{
id
:
1
,
label
:
'交车告知书'
,
icon
:
'tool/1.png'
},
{
id
:
2
,
label
:
'延保明细'
,
icon
:
'tool/2.png'
},
{
id
:
3
,
label
:
'保修告知书'
,
icon
:
'tool/3.png'
},
{
id
:
4
,
label
:
'三包政策'
,
icon
:
'tool/4.png'
},
{
id
:
5
,
label
:
'历史成交'
,
icon
:
'tool/5.png'
},
{
id
:
6
,
label
:
'质保升级'
,
icon
:
'tool/6.png'
}
]
}
},
methods
:
{
jump
(
item
)
{
console
.
log
(
item
)
this
.
$emit
(
'choose'
,
item
)
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.tool-box
{
position
:
fixed
;
right
:
40
rpx
;
top
:
50%
;
transform
:
translateY
(
-50%
);
z-index
:
998
;
width
:
128
rpx
;
.btn
{
width
:
100%
;
height
:
128
rpx
;
background-image
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#f8f9fb
100%
);
border
:
2.08
rpx
solid
#ffffff
;
box-shadow
:
0
8
rpx
24
rpx
0
#00000033
;
border-radius
:
16
rpx
;
font-size
:
24
rpx
;
color
:
#292d33
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
.icon
{
width
:
60
rpx
;
height
:
60
rpx
;
margin-bottom
:
8
rpx
;
transition
:
all
.15s
;
}
}
.hideIcon
{
height
:
0
;
overflow
:
hidden
;
.icon{
height
:
0
;
margin-bottom
:
0
;
}
}
.list
{
width
:
100%
;
height
:
0
;
background
:
#ffffff
;
box-shadow
:
0
8
rpx
22
rpx
0
#00000029
;
border-radius
:
16
rpx
;
flex-direction
:
column
;
align-items
:
center
;
transition
:
all
.15s
;
overflow
:
hidden
;
.title
{
width
:
128
rpx
;
height
:
56
rpx
;
background
:
#f4f4f5
;
border
:
2
rpx
solid
#ffffff
;
border-radius
:
16
rpx
16
rpx
0
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.item
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
20
rpx
;
color
:
#666666
;
height
:
120
rpx
;
width
:
100%
;
.icon
{
width
:
60
rpx
;
height
:
60
rpx
;
margin-bottom
:
8
rpx
;
}
}
}
.showList
{
display
:
flex
;
height
:
896
rpx
;
}
}
</
style
>
\ No newline at end of file
pages/detail/detail.vue
View file @
53d5610
...
...
@@ -7,6 +7,7 @@
-->
<
template
>
<view>
<tool-box
/>
详情页
<button
@
click=
"open"
>
完成接待
</button>
<uni-popup
...
...
@@ -75,6 +76,7 @@
</view>
</
template
>
<
script
>
import
ToolBox
from
'./components/ToolBox.vue'
const
PAYMENT_TYPE
=
[
{
name
:
"扫码支付"
,
...
...
@@ -109,7 +111,11 @@ const ACCOUT_LIST = [
];
import
myClick
from
"@/mixin/click"
;
export
default
{
components
:
{
ToolBox
},
mixins
:
[
myClick
],
component
:{
ToolBox
},
data
()
{
return
{
payInfo
:
{},
...
...
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