小程序新增添加国籍类型,修改页面跳转
This commit is contained in:
+45
-6
@@ -3,7 +3,8 @@
|
||||
<view class="logo-content align-center justify-center flex">
|
||||
<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
|
||||
</image>
|
||||
<text class="title">仲裁系统注册</text>
|
||||
<text class="title" v-if="sysType==1">仲裁系统注册</text>
|
||||
<text class="title" v-if="sysType==2">调解系统注册</text>
|
||||
</view>
|
||||
<view class="login-form-content">
|
||||
<view class="input-item flex align-center" style="width: 60%;margin: 0px;">
|
||||
@@ -18,10 +19,25 @@
|
||||
<!-- <view class="iconfont icon-user icon"></view> -->
|
||||
<input v-model="registerForm.verifyCode" class="input" type="number" placeholder="请输入手机验证码"
|
||||
maxlength="30" />
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<uni-data-select
|
||||
style="text-align: left;"
|
||||
v-model="registerForm.idType"
|
||||
:localdata="certificate"
|
||||
@change="certificateValue"
|
||||
></uni-data-select>
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<uni-data-select
|
||||
style="text-align: left;"
|
||||
v-model="registerForm.nationality"
|
||||
:localdata="nationality"
|
||||
></uni-data-select>
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<!-- <view class="iconfont icon-user icon"></view> -->
|
||||
<input v-model="registerForm.identityNo" class="input" type="text" placeholder="请输入身份证号"
|
||||
<input v-model="registerForm.identityNo" class="input" type="text" :placeholder="registerForm.idType==0?'请输入身份证号':'请输入护照'"
|
||||
maxlength="30" />
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
@@ -70,6 +86,7 @@
|
||||
sendCode,
|
||||
wxregister
|
||||
} from '@/api/login'
|
||||
import constant from '../utils/constant'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -87,8 +104,19 @@
|
||||
uuid: '',
|
||||
name: '',
|
||||
identityNo: "",
|
||||
id: ""
|
||||
}
|
||||
id: "",
|
||||
idType:0,
|
||||
nationality:0
|
||||
},
|
||||
sysType:null,
|
||||
certificate: [
|
||||
{ value: 0, text: "身份证" },
|
||||
{ value: 1, text: "护照" },
|
||||
],
|
||||
nationality: [
|
||||
{ value: 0, text: "国内" },
|
||||
{ value: 1, text: "国外" },
|
||||
],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -196,8 +224,14 @@
|
||||
this.$store.dispatch('GetInfo').then(res => {
|
||||
this.$tab.reLaunch('/pages/index')
|
||||
})
|
||||
},
|
||||
certificateValue(e){
|
||||
this.registerForm.idType = e
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
this.sysType = uni.getStorageSync('sysType');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -205,7 +239,12 @@
|
||||
page {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
::v-deep .uni-select[data-v-6b64008e]{
|
||||
border: none;
|
||||
}
|
||||
::v-deep .uni-icons[data-v-a2e81f6e]{
|
||||
display: none;
|
||||
}
|
||||
.normal-login-container {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user