Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 621504f2
authored
Dec 13, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
9cf095cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
89 deletions
src/components/LicensePlate.vue
src/components/LicensePlate.vue
View file @
621504f
...
@@ -42,19 +42,13 @@
...
@@ -42,19 +42,13 @@
</div>
</div>
</template>
</template>
</div>
</div>
<!-- <button
class="paste"
hover-class="btn-hover"
@click="paste"
>
一键粘贴
</button> -->
</div>
</div>
<div
<div
class=
"license-plate-bottom"
>
class=
"license-plate-keyboard isFullSucreen"
<div
:key=
"dataKey"
:class=
"['license-plate-keyboard' , {'type-2':plateIndex != 0}]"
>
:key=
"dataKey"
<div
class=
"keyboard-left"
>
>
<
template
v-if=
"plateIndex == 0"
>
<
template
v-if=
"plateIndex == 0"
>
<div
class=
"grid city"
>
<div
class=
"grid city"
>
<template
v-for=
"(item,index) in cityList"
>
<template
v-for=
"(item,index) in cityList"
>
...
@@ -69,59 +63,60 @@
...
@@ -69,59 +63,60 @@
</div>
</div>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<div
class=
"grid number"
>
<div
class=
"keyboard-left"
>
<template
v-for=
"(item,index) in 10"
>
<div
class=
"grid number"
>
<button
<template
v-for=
"(item,index) in 10"
>
:key=
"index"
<button
class=
"item"
:key=
"index"
@
click=
"changePlateNo(item - 1)"
class=
"item"
:disabled=
"plateIndex == 1 || (keyboardDisabled && plateIndex == 7)"
@
click=
"changePlateNo(item - 1)"
>
:disabled=
"plateIndex == 1 || (keyboardDisabled && plateIndex == 7)"
{{
item
-
1
}}
>
</button>
{{
item
-
1
}}
</
template
>
</button>
</div>
</
template
>
<div
class=
"grid letter"
>
</div>
<
template
v-for=
"(item,index) in letter"
>
<div
class=
"grid letter"
>
<button
<
template
v-for=
"(item,index) in letter"
>
:key=
"index"
<button
class=
"item"
:key=
"index"
@
click=
"changePlateNo(item)"
class=
"item"
:disabled=
"keyboardDisabled && plateIndex == 7"
@
click=
"changePlateNo(item)"
>
:disabled=
"keyboardDisabled && plateIndex == 7"
{{
item
}}
>
</button>
{{
item
}}
</
template
>
</button>
</div>
</
template
>
<div
class=
"grid suffix"
>
</div>
<
template
v-for=
"(item,index) in suffix"
>
<div
class=
"grid suffix"
>
<button
<
template
v-for=
"(item,index) in suffix"
>
:key=
"index"
<button
class=
"item"
:key=
"index"
@
click=
"changePlateNo(item)"
class=
"item"
:disabled=
"plateIndex
< 6
||
(
keyboardDisabled
&&
plateIndex =
=
7
)"
@
click=
"changePlateNo(item)"
>
:disabled=
"plateIndex
< 6
||
(
keyboardDisabled
&&
plateIndex =
=
7
)"
{{
item
}}
>
</button>
{{
item
}}
</
template
>
</button>
</
template
>
</div>
</div>
</div>
</template>
</template>
</div>
<div
<div
class=
"keyboard-del flex"
class=
"keyboard-del flex"
@
click=
"del"
@
click=
"del"
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/crowdfunding/KeyboardDeleteOutlined.png?v=1.0.3"
class=
"icon"
>
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/crowdfunding/KeyboardDeleteOutlined.png?v=1.0.3"
class=
"icon"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</van-action-sheet>
</van-action-sheet>
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
const
suffix
=
'港澳学挂'
,
const
suffix
=
'港澳学挂'
,
city
=
'京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼'
city
=
'京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼'
...
@@ -229,7 +224,7 @@ export default {
...
@@ -229,7 +224,7 @@ export default {
}
}
.done
{
.done
{
background-color
:
#
556af5
;
background-color
:
#
f13c3d
;
color
:
#fff
;
color
:
#fff
;
}
}
...
@@ -277,7 +272,7 @@ export default {
...
@@ -277,7 +272,7 @@ export default {
margin-left
:
9px
;
margin-left
:
9px
;
}
}
.active
{
.active
{
border-color
:
#
556af5
;
border-color
:
#
f13c3d
;
}
}
.arc
{
.arc
{
...
@@ -290,7 +285,7 @@ export default {
...
@@ -290,7 +285,7 @@ export default {
}
}
.paste
{
.paste
{
background-color
:
#
556af5
;
background-color
:
#
f13c3d
;
color
:
#fff
;
color
:
#fff
;
margin
:
30px
!important
;
margin
:
30px
!important
;
width
:
calc
(
100%
-
60px
);
width
:
calc
(
100%
-
60px
);
...
@@ -298,40 +293,39 @@ export default {
...
@@ -298,40 +293,39 @@ export default {
border
:
none
;
border
:
none
;
}
}
}
}
&
-bottom
{
&
-keyboard
{
position
:
absolute
;
position
:
absolute
;
width
:
calc
(
100%
-
20px
)
;
width
:
100%
;
min-height
:
200
px
;
min-height
:
400
r
px
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
background
:
rgba
(
$
color
:
#b6b6b6
,
$
alpha
:
0.16
);
background
:
rgba
(
$
color
:
#B6B6B6
,
$
alpha
:
.16
);
}
&
-keyboard
{
padding
:
10px
;
padding
:
10px
;
display
:
flex
;
display
:
flex
;
.keyboard-left
{
width
:
calc
(
100%
-
70px
);
}
.keyboard-del
{
.keyboard-del
{
width
:
60px
;
width
:
60px
;
height
:
auto
;
height
:
auto
;
margin-left
:
auto
;
margin-left
:
auto
;
background-color
:
#fff
;
background-color
:
#fff
;
justify-content
:
center
;
justify-content
:
center
;
border-radius
:
8
rpx
;
.icon
{
.icon
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
}
}
}
}
.city
{
width
:
calc
(
100%
-
70px
);
grid-template-columns
:
repeat
(
6
,
1
fr
);
}
.grid
{
.grid
{
display
:
grid
;
display
:
grid
;
gap
:
7px
;
gap
:
7px
;
}
}
.city
,
.letter
{
.letter
{
grid-template-columns
:
repeat
(
7
,
1
fr
);
grid-template-columns
:
repeat
(
7
,
1
fr
);
}
}
...
@@ -361,24 +355,23 @@ export default {
...
@@ -361,24 +355,23 @@ export default {
opacity
:
0.2
;
opacity
:
0.2
;
}
}
}
}
}
.type-2
{
display
:
block
;
.license-plate.show
{
.keyboard-left{
animation
:
show-license-plate
0.5s
forwards
;
width
:
100%
;
}
}
.license-plate.true
{
.number
{
animation
:
show-license-plate
0.5s
forwards
reverse
;
width
:
100%
;
}
}
@keyframes
show-license-plate
{
.letter
,
.suffix
{
0
%
{
width
:
calc
(
100%
-
70px
);
bottom
:
-100%
;
}
}
.keyboard-del
{
100
%
{
position
:
absolute
;
bottom
:
0
;
right
:
10px
;
top
:
47px
;
height
:
calc
(
100%
-
57px
);
}
}
}
}
}
.isFullSucreen
{
padding-bottom
:
constant
(
safe-area-inset-bottom
)
!important
;
padding-bottom
:
env
(
safe-area-inset-bottom
)
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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