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 244217d4
authored
Apr 08, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
e071906b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
10 deletions
pages/detail/components/ToolBox.vue
pages/detail/detail.vue
pages/detail/components/ToolBox.vue
View file @
244217d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
/>
/>
文件夹
文件夹
</view>
</view>
<view
:class=
"['list',
{showList:!show}]">
<view
:class=
"['list',
{showList:!show}
,{preview: !show
&&
type}
]">
<view
<view
class=
"title"
class=
"title"
@
click=
"show = true"
@
click=
"show = true"
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
{{
i
.
label
}}
{{
i
.
label
}}
</view>
</view>
</
template
>
</
template
>
<view
class=
"item"
>
<
template
v-if=
"type != 'preview'"
>
<view
class=
"item"
@
click=
"finish"
>
<view
class=
"icon"
>
<view
class=
"icon"
>
<glsx-image
<glsx-image
src=
"tool/finish.png"
src=
"tool/finish.png"
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
</view>
</view>
完成接待
完成接待
</view>
</view>
</
template
>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -46,6 +48,9 @@
...
@@ -46,6 +48,9 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'ToolBox'
,
name
:
'ToolBox'
,
props
:
{
type
:
String
},
data
()
{
data
()
{
return
{
return
{
show
:
true
,
show
:
true
,
...
@@ -87,6 +92,9 @@ export default {
...
@@ -87,6 +92,9 @@ export default {
jump
(
item
)
{
jump
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
this
.
$emit
(
'choose'
,
item
)
this
.
$emit
(
'choose'
,
item
)
},
finish
()
{
this
.
$emit
(
'finish'
)
}
}
}
}
}
}
...
@@ -117,13 +125,13 @@ export default {
...
@@ -117,13 +125,13 @@ export default {
width
:
60
rpx
;
width
:
60
rpx
;
height
:
60
rpx
;
height
:
60
rpx
;
margin-bottom
:
8
rpx
;
margin-bottom
:
8
rpx
;
transition
:
all
.15s
;
transition
:
all
0
.15s
;
}
}
}
}
.hideIcon
{
.hideIcon
{
height
:
0
;
height
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
.icon{
.icon
{
height
:
0
;
height
:
0
;
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
...
@@ -136,7 +144,7 @@ export default {
...
@@ -136,7 +144,7 @@ export default {
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
transition
:
all
.15s
;
transition
:
all
0
.15s
;
overflow
:
hidden
;
overflow
:
hidden
;
.title
{
.title
{
width
:
128
rpx
;
width
:
128
rpx
;
...
@@ -164,9 +172,12 @@ export default {
...
@@ -164,9 +172,12 @@ export default {
}
}
}
}
}
}
.showList
{
.showList
{
display
:
flex
;
display
:
flex
;
height
:
896
rpx
;
height
:
896
rpx
;
}
}
.preview
{
height
:
776
rpx
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
pages/detail/detail.vue
View file @
244217d
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
-->
-->
<
template
>
<
template
>
<view>
<view>
<tool-box
/>
<tool-box
:type=
"type"
@
choose=
"choose"
@
finish=
"open"
/>
详情页
详情页
<button
@
click=
"open"
>
完成接待
</button>
<button
@
click=
"open"
>
完成接待
</button>
<pay-pop
ref=
"pay"
></pay-pop>
<pay-pop
ref=
"pay"
></pay-pop>
...
@@ -20,14 +24,22 @@ import myClick from "@/mixin/click";
...
@@ -20,14 +24,22 @@ import myClick from "@/mixin/click";
export
default
{
export
default
{
components
:
{
ToolBox
,
payPop
},
components
:
{
ToolBox
,
payPop
},
mixins
:
[
myClick
],
mixins
:
[
myClick
],
data
()
{
data
()
{
return
{
return
{
type
:
'preview'
};
};
},
},
onLoad
(
options
)
{
this
.
type
=
options
.
type
},
methods
:
{
methods
:
{
open
()
{
open
()
{
this
.
$refs
.
pay
.
show
()
this
.
$refs
.
pay
.
show
()
},
},
/**切换素材 */
choose
(
e
)
{
console
.
log
(
e
)
}
},
},
};
};
</
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