Commit 621504f2 by 李伟康

修改样式

1 parent 9cf095cb
......@@ -42,19 +42,13 @@
</div>
</template>
</div>
<!-- <button
class="paste"
hover-class="btn-hover"
@click="paste"
>
一键粘贴
</button> -->
</div>
<div
class="license-plate-keyboard isFullSucreen"
:key="dataKey"
>
<div class="keyboard-left">
<div class="license-plate-bottom">
<div
:class="['license-plate-keyboard' , {'type-2':plateIndex != 0}]"
:key="dataKey"
>
<template v-if="plateIndex == 0">
<div class="grid city">
<template v-for="(item,index) in cityList">
......@@ -69,59 +63,60 @@
</div>
</template>
<template v-else>
<div class="grid number">
<template v-for="(item,index) in 10">
<button
:key="index"
class="item"
@click="changePlateNo(item - 1)"
:disabled="plateIndex == 1 || (keyboardDisabled && plateIndex == 7)"
>
{{item - 1}}
</button>
</template>
</div>
<div class="grid letter">
<template v-for="(item,index) in letter">
<button
:key="index"
class="item"
@click="changePlateNo(item)"
:disabled="keyboardDisabled && plateIndex == 7"
>
{{item}}
</button>
</template>
</div>
<div class="grid suffix">
<template v-for="(item,index) in suffix">
<button
:key="index"
class="item"
@click="changePlateNo(item)"
:disabled="plateIndex < 6 || (keyboardDisabled && plateIndex == 7)"
>
{{item}}
</button>
</template>
<div class="keyboard-left">
<div class="grid number">
<template v-for="(item,index) in 10">
<button
:key="index"
class="item"
@click="changePlateNo(item - 1)"
:disabled="plateIndex == 1 || (keyboardDisabled && plateIndex == 7)"
>
{{item - 1}}
</button>
</template>
</div>
<div class="grid letter">
<template v-for="(item,index) in letter">
<button
:key="index"
class="item"
@click="changePlateNo(item)"
:disabled="keyboardDisabled && plateIndex == 7"
>
{{item}}
</button>
</template>
</div>
<div class="grid suffix">
<template v-for="(item,index) in suffix">
<button
:key="index"
class="item"
@click="changePlateNo(item)"
:disabled="plateIndex < 6 || (keyboardDisabled && plateIndex == 7)"
>
{{item}}
</button>
</template>
</div>
</div>
</template>
</div>
<div
class="keyboard-del flex"
@click="del"
>
<img
src="https://img02.glsx.com.cn/weapp/resource/miniprogram/crowdfunding/KeyboardDeleteOutlined.png?v=1.0.3"
class="icon"
<div
class="keyboard-del flex"
@click="del"
>
<img
src="https://img02.glsx.com.cn/weapp/resource/miniprogram/crowdfunding/KeyboardDeleteOutlined.png?v=1.0.3"
class="icon"
>
</div>
</div>
</div>
</div>
</div>
</van-action-sheet>
</template>
<script type='text/ecmascript-6'>
const suffix = '港澳学挂',
city = '京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼'
......@@ -229,7 +224,7 @@ export default {
}
.done {
background-color: #556af5;
background-color: #f13c3d;
color: #fff;
}
......@@ -277,7 +272,7 @@ export default {
margin-left: 9px;
}
.active {
border-color: #556af5;
border-color: #f13c3d;
}
.arc {
......@@ -290,7 +285,7 @@ export default {
}
.paste {
background-color: #556af5;
background-color: #f13c3d;
color: #fff;
margin: 30px !important;
width: calc(100% - 60px);
......@@ -298,40 +293,39 @@ export default {
border: none;
}
}
&-keyboard {
&-bottom{
position: absolute;
width: calc(100% - 20px);
min-height: 200px;
width: 100%;
min-height: 400rpx;
left: 0;
bottom: 0;
background: rgba($color: #b6b6b6, $alpha: 0.16);
background: rgba($color: #B6B6B6, $alpha: .16);
}
&-keyboard {
padding: 10px;
display: flex;
.keyboard-left {
width: calc(100% - 70px);
}
.keyboard-del {
width: 60px;
height: auto;
margin-left: auto;
background-color: #fff;
justify-content: center;
border-radius: 8rpx;
.icon {
width: 30px;
height: 30px;
}
}
.city {
width: calc(100% - 70px);
grid-template-columns: repeat(6, 1fr);
}
.grid {
display: grid;
gap: 7px;
}
.city,
.letter {
grid-template-columns: repeat(7, 1fr);
}
......@@ -361,24 +355,23 @@ export default {
opacity: 0.2;
}
}
}
.license-plate.show {
animation: show-license-plate 0.5s forwards;
}
.license-plate.true {
animation: show-license-plate 0.5s forwards reverse;
}
@keyframes show-license-plate {
0% {
bottom: -100%;
}
100% {
bottom: 0;
.type-2{
display: block;
.keyboard-left{
width: 100%;
}
.number{
width: 100%;
}
.letter,.suffix{
width: calc(100% - 70px);
}
.keyboard-del{
position: absolute;
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>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!