优化代码

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

View File

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

View File

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