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 30fe2c46
authored
Apr 09, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.1
2 parents
1f6c88db
cf950e26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
25 deletions
pages/detail/components/Media_1.vue
pages/detail/components/Media_1.vue
View file @
30fe2c4
...
...
@@ -6,37 +6,24 @@
<view
class=
"content"
>
<view
class=
"title"
>
问界·交车告知书
</view>
<view
class=
"form"
>
<template
v-for=
"(i,index) in formObject"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<template
v-for=
"(i, index) in formObject"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<view
class=
"value"
>
<template
v-if=
"i.type == 'input'"
>
<input
:type=
"i.inputType"
:maxlength=
"i.maxlength"
/>
<input
:type=
"i.inputType"
:maxlength=
"i.maxlength"
/>
</
template
>
<
template
v-else
>
<view
class=
"select"
>
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
<view
class=
"select"
@
click=
"showPopup"
>
<uni-icons
class=
"arrow"
type=
"down"
:size=
"16"
></uni-icons>
</view>
</
template
>
</view>
</view>
</template>
</view>
<
template
v-for=
"(i,index) in views"
>
<view
class=
"view"
:key=
"index"
>
<
template
v-for=
"(i, index) in views"
>
<view
class=
"view"
:key=
"index"
>
<wnCanvas
saveImageType=
"3"
:drawImage=
"i.detailUrl"
...
...
@@ -47,10 +34,23 @@
</view>
</
template
>
</view>
<MessageBox
v-if=
"carBoxVisible"
:isFooter=
"false"
>
<view
class=
"select-box"
>
<view
class=
"select-item"
:class=
"{ checked: selectId == item.id }"
@
click=
"handleSelect(item)"
v-for=
"(item, index) in list"
:key=
"index"
>
{{ item.name }}
</view>
</view>
</MessageBox>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
props
:
{
views
:
Array
,
...
...
@@ -59,6 +59,26 @@ export default {
name
:
'Media_1'
,
data
()
{
return
{
selectId
:
1
,
carBoxVisible
:
false
,
list
:
[
{
id
:
1
,
name
:
"问界"
,
},
{
id
:
2
,
name
:
"问界"
,
},
{
id
:
3
,
name
:
"问界"
,
},
{
id
:
4
,
name
:
"问界"
,
},
],
formObject
:
[
{
label
:
'车主姓名'
,
...
...
@@ -90,12 +110,18 @@ export default {
mounted
()
{
},
methods
:
{
handleSelect
(
item
)
{
this
.
selectId
=
item
.
id
;
this
.
carBoxVisible
=
false
},
showPopup
()
{
this
.
carBoxVisible
=
true
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.layout
{
padding-top
:
272
rpx
;
position
:
relative
;
...
...
@@ -167,4 +193,22 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
.select-box
{
margin
:
40
rpx
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
);
gap
:
20
rpx
;
.select-item
{
text-align
:
center
;
height
:
68
rpx
;
line-height
:
68
rpx
;
opacity
:
1
;
border
:
2
rpx
solid
#dce0e6
;
color
:
#292d33
;
font-size
:
28
rpx
;
&.checked
{
border
:
2
rpx
solid
#292d33
;
}
}
}
</
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