|
@@ -18,7 +18,7 @@
|
|
<view class="tip">
|
|
<view class="tip">
|
|
<u-text text="身份证:"></u-text>
|
|
<u-text text="身份证:"></u-text>
|
|
</view>
|
|
</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>
|
|
<view class="btn">
|
|
<view class="btn">
|
|
<u-button text="确定" color="#a09cc4" @click="updateNameAndIdNumber"></u-button>
|
|
<u-button text="确定" color="#a09cc4" @click="updateNameAndIdNumber"></u-button>
|
|
@@ -85,7 +85,7 @@
|
|
onLoad() {
|
|
onLoad() {
|
|
var pages = getCurrentPages(); // 当前页面
|
|
var pages = getCurrentPages(); // 当前页面
|
|
var beforePage = pages[pages.length - 2]; // 前一个页面
|
|
var beforePage = pages[pages.length - 2]; // 前一个页面
|
|
- console.log(beforePage)
|
|
|
|
|
|
+ // console.log(beforePage)
|
|
this.name = this.userInfo.name
|
|
this.name = this.userInfo.name
|
|
this.idNumber = this.userInfo.idNumber
|
|
this.idNumber = this.userInfo.idNumber
|
|
},
|
|
},
|