优化代码

This commit is contained in:
wuxw 2022-09-12 01:47:30 +08:00
parent f34373b0d1
commit 5ca7605128
3 changed files with 16 additions and 6 deletions

View File

@ -240,6 +240,8 @@
title: '9'
}, {
title: '挂'
}, {
title: '学'
}
], //
// gualist:[], //
@ -321,7 +323,7 @@
return
}
if (i == 2) {
if (this.inplist[2].title.length == 5) {
if (this.inplist[2].title.length >= 5) {
this.chehao = this.inplist[0].title + this.inplist[1].title + this.inplist[2].title
this.$emit('confirm', this.chehao);
this.close();
@ -364,10 +366,10 @@
// //
// return
// }
if (this.inplist[2].title.length < 5) {
if (this.inplist[2].title.length < 6) {
this.ary.push(title)
}
if (this.inplist[2].title.length == 5) {
if (this.inplist[2].title.length == 6) {
this.pandaun()
}
}
@ -642,10 +644,10 @@
position: relative;
.keyboard_title {
width: 16%;
width: 13%;
height: 80rpx;
background-color: #FFFFFF;
margin: 0.33%;
margin: 0.6%;
box-shadow: 2rpx 2rpx 5rpx 2rpx #888888;
border-radius: 8rpx;
}

View File

@ -93,6 +93,10 @@
border-radius: 4rpx;
}
.green-border{
border: 2rpx solid #39b54a;
}
.plate-num-text {
flex: 1;
line-height: 100rpx;

View File

@ -43,6 +43,10 @@
:class="inputOnFocusIndex=='6'?'plate-nums-foc':'plate-nums-first'">
<text class="plate-num-text">{{inputPlates.index6}}</text>
</view>
<view bindtap="inputClick" data-id="7" class="green-border"
:class="inputOnFocusIndex=='7'?'plate-nums-foc':'plate-nums-first'">
<text class="plate-num-text">{{inputPlates.index7}}</text>
</view>
</view>
</view>
@ -147,7 +151,7 @@
if (isWxOrAli() == 'ALIPAY') {
this._refreshAliPayOpenId();
} else {
this._refreshWechatOpenId();
//this._refreshWechatOpenId();
}
return;
}