|
@ -1,55 +1,49 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<div class="app-main"> |
|
|
<div class="app-main"> |
|
|
|
|
|
<p class="font-size-24 font-weight-bold line-height-2em">加入联盟</p> |
|
|
|
|
|
<el-divider></el-divider> |
|
|
<el-form :model="form" :rules="rules" ref="userInfo" class="el-form-new"> |
|
|
<el-form :model="form" :rules="rules" ref="userInfo" class="el-form-new"> |
|
|
<el-row class="text-center"> |
|
|
<el-row> |
|
|
<p class="font-size-21 font-weight-bold text-center line-height-2em">登录信息</p> |
|
|
<p class="tab-title">登录信息</p> |
|
|
<el-col :span="11" > |
|
|
<el-col :span="11" > |
|
|
<el-form-item label="用户名:" :label-width="formLabelWidth" prop="userName"> |
|
|
<el-form-item label="用户名:" :label-width="formLabelWidth" prop="userName"> |
|
|
<el-input v-model="form.userName" auto-complete="new-password" size="small"></el-input> |
|
|
<el-input v-model="form.userName" auto-complete="new-password" size="small" placeholder="请输入用户名"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="密码:" :label-width="formLabelWidth" prop="password"> |
|
|
<el-form-item label="密码:" :label-width="formLabelWidth" prop="password"> |
|
|
<el-input type="password" v-model="form.password" auto-complete="new-password" size="small"></el-input> |
|
|
<el-input type="password" v-model="form.password" auto-complete="new-password" size="small" placeholder="请输入密码"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label-width="formLabelWidth"> |
|
|
<el-form-item :label-width="formLabelWidth"> |
|
|
<check-password-strong :sValue="form.password"></check-password-strong> |
|
|
<check-password-strong :sValue="form.password"></check-password-strong> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="确认密码:" :label-width="formLabelWidth" prop="again"> |
|
|
<el-form-item label="确认密码:" :label-width="formLabelWidth" prop="again"> |
|
|
<el-input type="password" v-model="form.again" autocomplete="off" size="small"></el-input> |
|
|
<el-input type="password" v-model="form.again" autocomplete="off" size="small" placeholder="请再次输入密码"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
|
|
|
|
|
|
<el-form-item label="姓名:" :label-width="formLabelWidth" prop="name"> |
|
|
<el-form-item label="姓名:" :label-width="formLabelWidth" prop="name"> |
|
|
<el-input v-model="form.name" autocomplete="off" size="small"></el-input> |
|
|
<el-input v-model="form.name" autocomplete="off" size="small" placeholder="请输入姓名"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="邮箱:" :label-width="formLabelWidth" prop="email"> |
|
|
<el-form-item label="邮箱:" :label-width="formLabelWidth" prop="email"> |
|
|
<el-input v-model="form.email" autocomplete="off" size="small"></el-input> |
|
|
<el-input v-model="form.email" autocomplete="off" size="small" placeholder="请输入邮箱"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="手机号:" :label-width="formLabelWidth" prop="telPhone" ref="telPhone"> |
|
|
<el-form-item label="手机号:" :label-width="formLabelWidth" prop="telPhone" ref="telPhone"> |
|
|
<el-input v-model.number="form.telPhone" autocomplete="off" size="small"></el-input> |
|
|
<el-input v-model.number="form.telPhone" autocomplete="off" size="small" placeholder="请输入手机号"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="验证码:" :label-width="formLabelWidth" prop="code"> |
|
|
<el-form-item label="验证码:" :label-width="formLabelWidth" prop="code"> |
|
|
<el-input v-model="form.code" autocomplete="off" size="small" style="width:110px;"></el-input> |
|
|
<el-input v-model="form.code" autocomplete="off" size="small" style="width:180px;" placeholder="请输入验证码"></el-input> |
|
|
<img id="codePic" :src="codeSrc" alt="点击刷新" class="code-pic" @click="refreshCode"/> |
|
|
<img id="codePic" :src="codeSrc" alt="点击刷新" class="code-pic" @click="refreshCode"/> |
|
|
<img :src="_getImage('login','refresh.png')" alt="点击刷新" class="code-refresh" @click="refreshCode" /> |
|
|
<img :src="_getImage('login','refresh.png')" alt="点击刷新" class="code-refresh" @click="refreshCode" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- <el-form-item label="短信验证码:" :label-width="formLabelWidth" prop="code"> |
|
|
|
|
|
<el-input v-model.number="form.code" autocomplete="off" size="small" style="width:110px;margin-right:5px;"></el-input> |
|
|
|
|
|
<el-button type="danger" style="width:100px;" size="small" @click="getSendMessage" :disabled="sendStatus"> |
|
|
|
|
|
{{ !sendStatus ? '获取验证码' : timer + '秒' }} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</el-form-item> --> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<p class="font-size-21 font-weight-bold text-center line-height-2em">企业信息</p> |
|
|
<p class="tab-title">企业信息</p> |
|
|
<el-col :span="11" style="padding-right:30px;"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item label="企业名称:" :label-width="formLabelWidth" prop="name"> |
|
|
<el-form-item label="企业名称:" :label-width="formLabelWidth" prop="name"> |
|
|
<el-input v-model="form.name" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.name" autocomplete="off" placeholder="请输入企业名称"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="企业类型:" :label-width="formLabelWidth" prop="typeId"> |
|
|
<el-form-item label="企业类型:" :label-width="formLabelWidth" prop="typeId"> |
|
|
<!-- 企业类型的下拉菜单 --> |
|
|
<!-- 企业类型的下拉菜单 --> |
|
@ -61,7 +55,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="统一社会信用代码:" :label-width="formLabelWidth" prop="code"> |
|
|
<el-form-item label="统一社会信用代码:" :label-width="formLabelWidth" prop="code"> |
|
|
<el-input v-model="form.code" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.code" autocomplete="off" placeholder="请输入统一社会信用代码"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="法人证件类型:" :label-width="formLabelWidth" prop="ceId"> |
|
|
<el-form-item label="法人证件类型:" :label-width="formLabelWidth" prop="ceId"> |
|
|
<!-- 法人证件类型的下拉菜单 --> |
|
|
<!-- 法人证件类型的下拉菜单 --> |
|
@ -75,11 +69,11 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="法人证件号码:" :label-width="formLabelWidth" prop="enCeNumber"> |
|
|
<el-form-item label="法人证件号码:" :label-width="formLabelWidth" prop="enCeNumber"> |
|
|
<el-input v-model="form.enCeNumber" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.enCeNumber" autocomplete="off" placeholder="请输入法人证件号码"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="11" style="padding-right:30px;"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item label="所属行业:" :label-width="formLabelWidth" prop="inBigId"> |
|
|
<el-form-item label="所属行业:" :label-width="formLabelWidth" prop="inBigId"> |
|
|
<!-- 行业大类的下拉菜单 --> |
|
|
<!-- 行业大类的下拉菜单 --> |
|
|
<el-select |
|
|
<el-select |
|
@ -110,7 +104,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="法人姓名:" :label-width="formLabelWidth" prop="enLegalName"> |
|
|
<el-form-item label="法人姓名:" :label-width="formLabelWidth" prop="enLegalName"> |
|
|
<el-input v-model="form.enLegalName" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.enLegalName" autocomplete="off" placeholder="请输入法人姓名"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="法人证件:" :label-width="formLabelWidth" prop="enCeAddressZ"> |
|
|
<el-form-item label="法人证件:" :label-width="formLabelWidth" prop="enCeAddressZ"> |
|
|
<div class="flex-box"> |
|
|
<div class="flex-box"> |
|
@ -140,15 +134,15 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24" style="padding-right:30px;"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item label="企业简介:" :label-width="formLabelWidth" prop="enIntroduction"> |
|
|
<el-form-item label="企业简介:" :label-width="formLabelWidth" prop="enIntroduction"> |
|
|
<!-- <el-input v-model="form.enIntroduction" autocomplete="off"></el-input> --> |
|
|
<!-- <el-input v-model="form.enIntroduction" autocomplete="off"></el-input> --> |
|
|
<el-input type="textarea" v-model="form.enIntroduction"></el-input> |
|
|
<el-input type="textarea" v-model="form.enIntroduction" placeholder="请输入企业简介"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="11" style="padding-right:30px;"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item label="组织/单位注册所在地:" :label-width="formLabelWidth" prop="areaId"> |
|
|
<el-form-item label="组织/单位注册所在地:" :label-width="formLabelWidth" prop="areaId"> |
|
|
<!-- <v-distpicker @selected="onSelected" class="my-distpicker"></v-distpicker> --> |
|
|
<!-- <v-distpicker @selected="onSelected" class="my-distpicker"></v-distpicker> --> |
|
|
<el-select |
|
|
<el-select |
|
@ -187,21 +181,24 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="官方网址:" :label-width="formLabelWidth" prop="enOffWeb"> |
|
|
<el-form-item label="官方网址:" :label-width="formLabelWidth" prop="enOffWeb"> |
|
|
<el-input v-model="form.enOffWeb" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.enOffWeb" autocomplete="off" placeholder="请输入官方网址"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="联系人姓名:" :label-width="formLabelWidth" prop="conName"> |
|
|
<el-form-item label="联系人姓名:" :label-width="formLabelWidth" prop="conName"> |
|
|
<el-input v-model="form.conName" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.conName" autocomplete="off" placeholder="请输入联系人姓名"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="联系人电话:" :label-width="formLabelWidth" prop="telPhone"> |
|
|
|
|
|
<el-input v-model="form.telPhone" autocomplete="off" placeholder="请输入联系人电话"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="联系人邮箱:" :label-width="formLabelWidth" prop="email"> |
|
|
<el-form-item label="联系人邮箱:" :label-width="formLabelWidth" prop="email"> |
|
|
<el-input v-model="form.email" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.email" autocomplete="off" placeholder="请输入联系人邮箱"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="2" style="height:1px;"></el-col> |
|
|
<el-col :span="11" style="padding-right:30px;"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item label="注册详细地址:" :label-width="formLabelWidth" prop="enDetAddress"> |
|
|
<el-form-item label="注册详细地址:" :label-width="formLabelWidth" prop="enDetAddress"> |
|
|
<el-input v-model="form.enDetAddress" autocomplete="off"></el-input> |
|
|
<el-input v-model="form.enDetAddress" autocomplete="off" placeholder="请输入注册详细地址"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="组织/单位营业执照:" :label-width="formLabelWidth" prop="enOpeAddress"> |
|
|
<el-form-item label="组织/单位营业执照:" :label-width="formLabelWidth" prop="enOpeAddress"> |
|
|
<div class="flex-box"> |
|
|
<div class="flex-box"> |
|
@ -217,16 +214,13 @@ |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</div> |
|
|
</div> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="联系人电话:" :label-width="formLabelWidth" prop="telPhone"> |
|
|
|
|
|
<el-input v-model="form.telPhone" autocomplete="off"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item :label-width="formLabelWidth" style="text-align: center;"> |
|
|
<el-form-item :label-width="formLabelWidth" style="text-align: center;"> |
|
|
<el-button type="danger" size="small" @click="submitForm('userInfo')" style="width:200px;text-align: center;">注册</el-button> |
|
|
<el-button type="primary" size="small" @click="submitForm('userInfo')" style="width:200px;text-align: center;">注册</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label-width="formLabelWidth" class="text-center"> |
|
|
<el-form-item :label-width="formLabelWidth" class="text-center"> |
|
|
已有账号? |
|
|
已有账号? |
|
@ -259,7 +253,19 @@ export default { |
|
|
sendStatus: false, |
|
|
sendStatus: false, |
|
|
timer: 60, |
|
|
timer: 60, |
|
|
codeSrc: '', |
|
|
codeSrc: '', |
|
|
formLabelWidth: '150px', |
|
|
formLabelWidth: '160px', |
|
|
|
|
|
upload_file: config.UPLOAD_URL, //上传图片的接口地址 |
|
|
|
|
|
bigIndustryType: [], //行业大类列表 |
|
|
|
|
|
smallIndustryType: [], //行业小类列表 |
|
|
|
|
|
photoUrl: "", //正面法人证件照 |
|
|
|
|
|
reversePhotoUrl: "", //反面法人证件照 |
|
|
|
|
|
businessLicenceUrl: "", //组织/单位营业执照 |
|
|
|
|
|
provinceValue: "", //注册地的省 |
|
|
|
|
|
provinces: [], //注册地-省列表 |
|
|
|
|
|
cityValue: "", //注册地的市 |
|
|
|
|
|
citys: [], //注册地-市列表 |
|
|
|
|
|
areaValue: "", //注册地的区域 |
|
|
|
|
|
areas: [], //注册地-区列表 |
|
|
form: { |
|
|
form: { |
|
|
name: '', |
|
|
name: '', |
|
|
userName: '', |
|
|
userName: '', |
|
@ -307,9 +313,9 @@ export default { |
|
|
goLogin() { |
|
|
goLogin() { |
|
|
this.$router.push({name: 'login'}) |
|
|
this.$router.push({name: 'login'}) |
|
|
}, |
|
|
}, |
|
|
// refreshCode:function(){ |
|
|
refreshCode:function(){ |
|
|
// document.getElementById("codePic").setAttribute("src",config.API_URL+"/api-login/common/verifycode?" + Math.random()) |
|
|
document.getElementById("codePic").setAttribute("src",config.API_URL+"/api-login/common/verifycode?" + Math.random()) |
|
|
// }, |
|
|
}, |
|
|
getSendMessage() { |
|
|
getSendMessage() { |
|
|
this.$refs['userInfo'].validateField('telPhone', (valid) => { |
|
|
this.$refs['userInfo'].validateField('telPhone', (valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
@ -356,18 +362,67 @@ export default { |
|
|
resetForm(formName) { |
|
|
resetForm(formName) { |
|
|
this.$refs[formName].resetFields(); |
|
|
this.$refs[formName].resetFields(); |
|
|
this.$router.go(-1) |
|
|
this.$router.go(-1) |
|
|
|
|
|
}, |
|
|
|
|
|
//行业大类变化获取行业小类 |
|
|
|
|
|
changeSmallIndustry(clean) { |
|
|
|
|
|
// if (clean) { |
|
|
|
|
|
// this.formData.inSmallId = ""; |
|
|
|
|
|
// } |
|
|
|
|
|
// getSmallIndustryList({pid: this.formData.inBigId}).then(res => { |
|
|
|
|
|
// this.smallIndustryType = res.data; |
|
|
|
|
|
// }); |
|
|
|
|
|
}, |
|
|
|
|
|
//组织/单位营业执照图片上传成功的回调 |
|
|
|
|
|
handleLicenceSuccess(res, file) { |
|
|
|
|
|
// this.businessLicenceUrl = URL.createObjectURL(file.raw); |
|
|
|
|
|
// this.formData.enOpeAddress = res; |
|
|
|
|
|
}, |
|
|
|
|
|
//法人正面照图片上传成功的回调 |
|
|
|
|
|
handlePhotoSuccess(res, file) { |
|
|
|
|
|
// this.photoUrl = URL.createObjectURL(file.raw); |
|
|
|
|
|
// this.formData.enCeAddressZ = res; |
|
|
|
|
|
}, |
|
|
|
|
|
//法人反面照图片上传成功的回调 |
|
|
|
|
|
handleReverseSuccess(res, file) { |
|
|
|
|
|
// this.reversePhotoUrl = URL.createObjectURL(file.raw); |
|
|
|
|
|
// this.formData.enCeAddressF = res; |
|
|
|
|
|
}, |
|
|
|
|
|
//图片上传前的检测 |
|
|
|
|
|
beforeAvatarUpload(file) { |
|
|
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2; |
|
|
|
|
|
if (!isLt2M) { |
|
|
|
|
|
this.$message.error("上传图片大小不能超过 2MB!"); |
|
|
} |
|
|
} |
|
|
|
|
|
return isLt2M; |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scope> |
|
|
<style lang="scss" scope> |
|
|
.form-footer { |
|
|
// .form-footer { |
|
|
text-align: center; |
|
|
// text-align: center; |
|
|
|
|
|
// } |
|
|
|
|
|
.tab-title { |
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
font-family: Microsoft YaHei; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
color: #000000; |
|
|
|
|
|
line-height: 26px; |
|
|
|
|
|
margin: 20px 0; |
|
|
|
|
|
&::before { |
|
|
|
|
|
content: " "; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: -15px; |
|
|
|
|
|
top: 23px; |
|
|
|
|
|
width: 5px; |
|
|
|
|
|
height: 18px; |
|
|
|
|
|
background: #01496E; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.el-form-new { |
|
|
.el-form-new { |
|
|
max-width: 1200px; |
|
|
max-width: 1200px; |
|
|
|
|
|
padding: 0 70px; |
|
|
// width: 400px; |
|
|
// width: 400px; |
|
|
// margin: 0 auto; |
|
|
// margin: 0 auto; |
|
|
} |
|
|
} |
|
@ -388,4 +443,7 @@ export default { |
|
|
height: 32px; |
|
|
height: 32px; |
|
|
vertical-align: middle; |
|
|
vertical-align: middle; |
|
|
} |
|
|
} |
|
|
|
|
|
.el-select { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|