|
|
@@ -16,7 +16,7 @@
|
|
|
<van-steps :active="state.active" class="pl20 pr20 pt10">
|
|
|
<van-step>登录信息</van-step>
|
|
|
<van-step>个人信息</van-step>
|
|
|
- <van-step v-if="state.form.registerType == '20'">项目信息</van-step>
|
|
|
+ <!-- <van-step v-if="state.form.registerType == '20'">项目信息</van-step> -->
|
|
|
</van-steps>
|
|
|
<van-form ref="loginInfoRef" v-show="state.active == 0" required="auto">
|
|
|
<van-cell-group inset>
|
|
|
@@ -97,7 +97,7 @@
|
|
|
</template>
|
|
|
</van-cell-group>
|
|
|
</van-form>
|
|
|
- <van-form ref="projectInfoRef" v-show="state.active == 2" required="auto">
|
|
|
+ <!-- <van-form ref="projectInfoRef" v-show="state.active == 2" required="auto">
|
|
|
<van-cell-group inset>
|
|
|
<van-field>
|
|
|
<template #input>
|
|
|
@@ -113,13 +113,13 @@
|
|
|
</template>
|
|
|
</van-field>
|
|
|
</van-cell-group>
|
|
|
- </van-form>
|
|
|
+ </van-form> -->
|
|
|
</div>
|
|
|
<footer>
|
|
|
<van-button v-if="state.active > 0" @click="preStep">上一步</van-button>
|
|
|
- <van-button v-if="state.active < (state.form.registerType == '10' ? 1 : 2)" type="primary" class="ml10" @click="nextStep">下一步</van-button>
|
|
|
+ <van-button v-if="state.active < (state.form.registerType == '10' ? 1 : 1)" type="primary" class="ml10" @click="nextStep">下一步</van-button>
|
|
|
<van-button
|
|
|
- v-if="(state.form.registerType == '10' && state.active === 1) || (state.form.registerType == '20' && state.active === 2)"
|
|
|
+ v-if="(state.form.registerType == '10' && state.active === 1) || (state.form.registerType == '20' && state.active === 1)"
|
|
|
@click="onRegister"
|
|
|
type="primary"
|
|
|
class="ml10"
|
|
|
@@ -313,7 +313,7 @@
|
|
|
state.form.projectList[pjtTypeIndex.value].projectTypeName = selectedOptions[0].dictLabel
|
|
|
}
|
|
|
const onRegister = async () => {
|
|
|
- const form = state.form.registerType == '10' ? personInfoRef.value : projectInfoRef.value
|
|
|
+ const form = state.form.registerType == '10' ? personInfoRef.value : personInfoRef.value
|
|
|
const [error] = await to(form.validate())
|
|
|
if (error) return
|
|
|
const params = JSON.parse(JSON.stringify(state.form))
|