|
|
@@ -4,7 +4,7 @@
|
|
|
<div class="content">
|
|
|
<div class="content-top">
|
|
|
<h3>企业注册</h3>
|
|
|
- <a class="go" href="/register/personalRegistration"><i class="fa fa-long-arrow-right"></i>个人注册</a>
|
|
|
+ <a class="go" @click="goRegister"><i class="fa fa-long-arrow-right"></i>个人注册</a>
|
|
|
</div>
|
|
|
<div v-show="goNextStep">
|
|
|
<el-form :model="enterprise" :rules="rules" ref="enterprise" label-width="100px" class="demo-ruleForm">
|
|
|
@@ -399,7 +399,6 @@
|
|
|
this.$http.get(`/api/user/checkEmail`, {params: {email: this.enterprise1.email}})
|
|
|
.then(response => {
|
|
|
if (response.data.hasRegister) {
|
|
|
- console.log(response.data.hasRegister)
|
|
|
this.emailChecked = false
|
|
|
this.emailHasRegister = true
|
|
|
} else {
|
|
|
@@ -462,6 +461,8 @@
|
|
|
isSpaceNameExist: false,
|
|
|
isBusinessCodeExist: false,
|
|
|
emailHasRegister: false,
|
|
|
+ queryLink: '',
|
|
|
+ appId: '',
|
|
|
// 企业注册第一步
|
|
|
rules: {
|
|
|
mobile: [
|
|
|
@@ -495,7 +496,32 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+// 获取链接
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.getUrl()
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ // 获取链接
|
|
|
+ getUrl () {
|
|
|
+ var url = window.location.search
|
|
|
+ var request = {}
|
|
|
+ if (url.indexOf('?' !== -1)) {
|
|
|
+ var str = url.substr(1)
|
|
|
+ var strs = str.split('&')
|
|
|
+ this.queryLink = str
|
|
|
+ for (var i = 0; i < strs.length; i++) {
|
|
|
+ request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.appId = request['appId'] || ''
|
|
|
+ },
|
|
|
+ // 注册
|
|
|
+ goRegister () {
|
|
|
+ console.log(this.queryLink)
|
|
|
+ window.location.href = `/register/personalRegistration?${this.queryLink}`
|
|
|
+ },
|
|
|
// 我同意是否被选中
|
|
|
checkboxIsChecked () {
|
|
|
this.checked = !this.checked
|
|
|
@@ -535,20 +561,10 @@
|
|
|
checkPhone () {
|
|
|
if (this.mobileChecked && this.codeChecked && this.checked) {
|
|
|
this.isShowLoading = true
|
|
|
- var url = window.location.search
|
|
|
- var request = {}
|
|
|
- if (url.indexOf('?' !== -1)) {
|
|
|
- var str = url.substr(1)
|
|
|
- var strs = str.split('&')
|
|
|
- for (var i = 0; i < strs.length; i++) {
|
|
|
- request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
|
|
|
- }
|
|
|
- }
|
|
|
- var appId = request['appId'] || ''
|
|
|
let param = new FormData()
|
|
|
param.append('mobile', this.enterprise.mobile)
|
|
|
param.append('code', this.enterprise.code)
|
|
|
- param.append('appId', appId)
|
|
|
+ param.append('appId', this.appId)
|
|
|
param.append('token', this.token)
|
|
|
let config = {
|
|
|
headers: {'Content-Type': 'multipart/form-data'}
|