|
@@ -18,7 +18,7 @@
|
|
|
<view class="tip">
|
|
|
<u-text text="身份证:"></u-text>
|
|
|
</view>
|
|
|
- <u-input placeholder="请输入身份证号" border="surround" v-model="idNumber" type="idcard" clearable></u-input>
|
|
|
+ <u-input placeholder="请输入身份证号" border="surround" v-model="idNumber" type="idcard" clearable :maxlength="18"></u-input>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
<u-button text="确定" color="#a09cc4" @click="updateNameAndIdNumber"></u-button>
|
|
@@ -85,7 +85,7 @@
|
|
|
onLoad() {
|
|
|
var pages = getCurrentPages(); // 当前页面
|
|
|
var beforePage = pages[pages.length - 2]; // 前一个页面
|
|
|
- console.log(beforePage)
|
|
|
+ // console.log(beforePage)
|
|
|
this.name = this.userInfo.name
|
|
|
this.idNumber = this.userInfo.idNumber
|
|
|
},
|