小程序注册添加字段
This commit is contained in:
+30
-17
@@ -22,7 +22,7 @@
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<uni-data-select
|
||||
style="text-align: left;"
|
||||
style="text-align: left;width: 200px;"
|
||||
v-model="registerForm.idType"
|
||||
:localdata="certificate"
|
||||
@change="certificateValue"
|
||||
@@ -30,7 +30,7 @@
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<uni-data-select
|
||||
style="text-align: left;"
|
||||
style="text-align: left;width: 200px;"
|
||||
v-model="registerForm.nationality"
|
||||
:localdata="nationality"
|
||||
></uni-data-select>
|
||||
@@ -116,21 +116,30 @@ import constant from '../utils/constant'
|
||||
nationality: [
|
||||
{ value: 0, text: "国内" },
|
||||
{ value: 1, text: "国外" },
|
||||
],
|
||||
],
|
||||
passportVal:{}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getCode()
|
||||
},
|
||||
onLoad(option) {
|
||||
let {
|
||||
params
|
||||
} = option
|
||||
// this.improvedetail = JSON.parse(improvedetail)
|
||||
let paramsObj = JSON.parse(params);
|
||||
this.registerForm.name = paramsObj.nickName;
|
||||
this.registerForm.identityNo = paramsObj.idCard
|
||||
this.registerForm.id = paramsObj.id
|
||||
onLoad(option) {
|
||||
this.sysType = uni.getStorageSync('sysType');
|
||||
// this.passportVal = option;
|
||||
if(option.valus==1){
|
||||
this.registerForm.idType =1
|
||||
this.registerForm.nationality =1
|
||||
}else{
|
||||
let {
|
||||
params
|
||||
} = option
|
||||
// this.improvedetail = JSON.parse(improvedetail)
|
||||
let paramsObj = JSON.parse(params);
|
||||
this.registerForm.name = paramsObj.nickName;
|
||||
this.registerForm.identityNo = paramsObj.idCard
|
||||
this.registerForm.id = paramsObj.id
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 获取手机验证码
|
||||
@@ -228,10 +237,7 @@ import constant from '../utils/constant'
|
||||
certificateValue(e){
|
||||
this.registerForm.idType = e
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
this.sysType = uni.getStorageSync('sysType');
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -244,7 +250,14 @@ import constant from '../utils/constant'
|
||||
}
|
||||
::v-deep .uni-icons[data-v-a2e81f6e]{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.uni-icons{
|
||||
display: none;
|
||||
}
|
||||
// ::v-deep .uni-select{
|
||||
// border: none;
|
||||
// width: 200%;
|
||||
// }
|
||||
.normal-login-container {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user