|
@@ -22,7 +22,7 @@
|
|
|
<view class="box">
|
|
|
<view class="cont">
|
|
|
<view class="line">
|
|
|
- <view class="lineLeft">姓名</view>
|
|
|
+ <view class="lineLeft"><span class="stars">*</span>姓名</view>
|
|
|
<view class="lineRight">
|
|
|
<input type="text" v-model="customerName" class="lineInput" placeholder="请填写姓名"/>
|
|
|
</view>
|
|
@@ -112,6 +112,14 @@
|
|
|
methods: {
|
|
|
submit(){
|
|
|
//this.convertToUpperCase(this.plateNumber)
|
|
|
+ if(!this.customerName){
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入姓名',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.plateNumber=this.plateNumber.toUpperCase()
|
|
|
console.log(this.plateNumber)
|
|
|
var reg = /^1[3|4|5|7|8][0-9]\d{8}$/;
|